2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libpng 1.6.39.
5 # Report bugs to <png-mng-implement@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: png-mng-implement@lists.sourceforge.net about your
280 $0: system, including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
622 PACKAGE_NAME='libpng'
623 PACKAGE_TARNAME='libpng'
624 PACKAGE_VERSION='1.6.39'
625 PACKAGE_STRING='libpng 1.6.39'
626 PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
629 ac_unique_file="pngget.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
662 ac_subst_vars='am__EXEEXT_FALSE
666 PNG_POWERPC_VSX_FALSE
674 DO_INSTALL_LIBPNG_CONFIG_FALSE
675 DO_INSTALL_LIBPNG_CONFIG_TRUE
676 DO_INSTALL_LIBPNG_PC_FALSE
677 DO_INSTALL_LIBPNG_PC_TRUE
678 DO_INSTALL_LINKS_FALSE
679 DO_INSTALL_LINKS_TRUE
690 HAVE_LD_VERSION_SCRIPT_FALSE
691 HAVE_LD_VERSION_SCRIPT_TRUE
692 HAVE_SOLARIS_LD_FALSE
694 HAVE_CLOCK_GETTIME_FALSE
695 HAVE_CLOCK_GETTIME_TRUE
731 am__fastdepCCAS_FALSE
753 MAINTAINER_MODE_FALSE
770 INSTALL_STRIP_PROGRAM
813 program_transform_name
827 enable_option_checking
829 enable_maintainer_mode
830 enable_dependency_tracking
844 enable_unversioned_links
845 enable_unversioned_libpng_pc
846 enable_unversioned_libpng_config
847 enable_hardware_optimizations
853 ac_precious_vars='build_alias
868 # Initialize some variables set by options.
870 ac_init_version=false
871 ac_unrecognized_opts=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
882 program_transform_name=s,x,x,
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 runstatedir='${localstatedir}/run'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
908 infodir='${datarootdir}/info'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 case $ac_dashdash$ac_option in
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: \`$ac_useropt'"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
984 eval enable_$ac_useropt=no ;;
986 -docdir | --docdir | --docdi | --doc | --do)
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1155 -runstatedir | --runstatedir | --runstatedi | --runstated \
1156 | --runstate | --runstat | --runsta | --runst | --runs \
1157 | --run | --ru | --r)
1158 ac_prev=runstatedir ;;
1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161 | --run=* | --ru=* | --r=*)
1162 runstatedir=$ac_optarg ;;
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: \`$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=\$ac_optarg ;;
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: \`$ac_useropt'"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir runstatedir
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1310 # Be sure to have absolute directory names.
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 printf "%s\n" X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures libpng 1.6.39 to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of libpng 1.6.39:";;
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --enable-maintainer-mode
1496 enable make rules and dependencies not useful (and
1497 sometimes confusing) to the casual installer
1498 --enable-dependency-tracking
1499 do not reject slow dependency extractors
1500 --disable-dependency-tracking
1501 speeds up one-time build
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1509 --enable-unversioned-links
1510 Installed libpng header files are placed in a
1511 versioned subdirectory and installed libpng library
1512 (including DLL) files are versioned. If this option
1513 is enabled unversioned links will be created
1514 pointing to the corresponding installed files. If
1515 you use libpng.pc or libpng-config for all builds
1516 you do not need these links, but if you compile
1517 programs directly they will typically #include
1518 <png.h> and link with -lpng; in that case you need
1519 the links. The links can be installed manually using
1520 'make install-header-links' and 'make
1521 install-library-links' and can be removed using the
1522 corresponding uninstall- targets. If you do enable
1523 this option every libpng 'make install' will
1524 recreate the links to point to the just installed
1525 version of libpng. The default is to create the
1526 links; use --disable-unversioned-links to change
1528 --enable-unversioned-libpng-pc
1529 Install the configuration file 'libpng.pc' as a link
1530 to the versioned version. This is done by default -
1531 use --disable-unversioned-libpng-pc to change this.
1532 --enable-unversioned-libpng-config
1533 Install the configuration file 'libpng-config' as a
1534 link to the versioned version. This is done by
1535 default - use --disable-unversioned-libpng-config to
1537 --enable-hardware-optimizations
1538 Enable hardware optimizations: =no/off, yes/on:
1539 --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
1540 yes/on: no/off: disable the optimizations; check:
1541 use internal checking code (deprecated and poorly
1542 supported); api: disable by default, enable by a
1543 call to png_set_option; yes/on: turn on
1544 unconditionally. If not specified: determined by the
1546 --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api,
1547 yes/on: no/off: disable the optimizations; check:
1548 use internal checking code (deprecated and poorly
1549 supported); api: disable by default, enable by a
1550 call to png_set_option; yes/on: turn on
1551 unconditionally. If not specified: determined by the
1553 --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on:
1554 no/off: disable the optimizations; yes/on: enable
1555 the optimizations. If not specified: determined by
1557 --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check,
1558 api, yes/on: no/off: disable the optimizations;
1559 check: use internal checking code api: disable by
1560 default, enable by a call to png_set_option yes/on:
1561 turn on unconditionally. If not specified:
1562 determined by the compiler.
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1568 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1570 --with-aix-soname=aix|svr4|both
1571 shared library versioning (aka "SONAME") variant to
1572 provide on AIX, [default=aix].
1573 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1574 compiler's sysroot if not specified).
1575 --with-zlib-prefix prefix that may have been used in installed zlib
1576 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1578 --with-binconfigs Generate shell libpng-config scripts as well as
1579 pkg-config data [default=yes]
1580 --with-libpng-prefix prefix libpng exported function (API) names with the
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CCAS assembler compiler command (defaults to CC)
1592 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1595 User-defined run-time library search path.
1596 PNG_COPTS additional flags for the C compiler, use this for options that
1597 would cause configure itself to fail
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to <png-mng-implement@lists.sourceforge.net>.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1632 .) # We are building in place.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for configure.gnu first; this name is used for a wrapper for
1649 # Metaconfig's "Configure" on case-insensitive file systems.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1657 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1666 libpng configure 1.6.39
1667 generated by GNU Autoconf 2.71
1669 Copyright (C) 2021 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1676 ## ------------------------ ##
1677 ## Autoconf initialization. ##
1678 ## ------------------------ ##
1680 # ac_fn_c_try_compile LINENO
1681 # --------------------------
1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_compile ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest.beam
1687 if { { ac_try="$ac_compile"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 printf "%s\n" "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext
1709 printf "%s\n" "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_compile
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 printf "%s\n" "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } > conftest.i && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1747 printf "%s\n" "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1757 # ac_fn_c_try_link LINENO
1758 # -----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1764 if { { ac_try="$ac_link"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 printf "%s\n" "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest$ac_exeext && {
1783 test "$cross_compiling" = yes ||
1784 test -x conftest$ac_exeext
1789 printf "%s\n" "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796 # interfere with the next link command; also delete a directory that is
1797 # left behind by Apple's compiler. We do this before executing the actions.
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1802 } # ac_fn_c_try_link
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 printf %s "checking for $2... " >&6; }
1813 if eval test \${$3+y}
1815 printf %s "(cached) " >&6
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1822 if ac_fn_c_try_compile "$LINENO"
1828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 printf "%s\n" "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 } # ac_fn_c_check_header_compile
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 printf %s "checking for $2... " >&6; }
1845 if eval test \${$3+y}
1847 printf %s "(cached) " >&6
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1853 #define $2 innocuous_$2
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $2 (); below. */
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1883 if ac_fn_c_try_link "$LINENO"
1889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1890 conftest$ac_exeext conftest.$ac_ext
1893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 printf "%s\n" "$ac_res" >&6; }
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 } # ac_fn_c_check_func
1898 ac_configure_args_raw=
1903 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 as_fn_append ac_configure_args_raw " '$ac_arg'"
1908 case $ac_configure_args_raw in
1912 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1913 ac_unsafe_a="$ac_unsafe_z#~"
1914 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1915 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1918 cat >config.log <<_ACEOF
1919 This file contains any messages produced by compilers while
1920 running configure, to aid debugging if configure makes a mistake.
1922 It was created by libpng $as_me 1.6.39, which was
1923 generated by GNU Autoconf 2.71. Invocation command line was
1925 $ $0$ac_configure_args_raw
1935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1942 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1944 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1945 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1947 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1948 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1949 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1950 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 case $as_dir in #(((
1961 *) as_dir=$as_dir/ ;;
1963 printf "%s\n" "PATH: $as_dir"
1979 # Keep a trace of the command line.
1980 # Strip out --no-create and --no-recursion so they do not pile up.
1981 # Strip out --silent because we don't want to record it for future runs.
1982 # Also quote any args containing shell meta-characters.
1983 # Make two passes to allow for proper duplicate-argument suppression.
1987 ac_must_keep_next=false
1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1995 | -silent | --silent | --silen | --sile | --sil)
1998 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2003 as_fn_append ac_configure_args1 " '$ac_arg'"
2004 if test $ac_must_keep_next = true; then
2005 ac_must_keep_next=false # Got value, back to normal.
2008 *=* | --config-cache | -C | -disable-* | --disable-* \
2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2011 | -with-* | --with-* | -without-* | --without-* | --x)
2012 case "$ac_configure_args0 " in
2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 -* ) ac_must_keep_next=true ;;
2019 as_fn_append ac_configure_args " '$ac_arg'"
2024 { ac_configure_args0=; unset ac_configure_args0;}
2025 { ac_configure_args1=; unset ac_configure_args1;}
2027 # When interrupted or exit'd, cleanup temporary files, and complete
2028 # config.log. We remove comments because anyway the quotes in there
2029 # would cause problems or look ugly.
2030 # WARNING: Use '\'' to represent an apostrophe within the trap.
2031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2032 trap 'exit_status=$?
2035 # Save into config.log some information that might help in debugging.
2039 printf "%s\n" "## ---------------- ##
2040 ## Cache variables. ##
2041 ## ---------------- ##"
2043 # The following way of writing the cache mishandles newlines in values,
2045 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046 eval ac_val=\$$ac_var
2050 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2054 _ | IFS | as_nl) ;; #(
2055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056 *) { eval $ac_var=; unset $ac_var;} ;;
2061 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062 *${as_nl}ac_space=\ *)
2064 "s/'\''/'\''\\\\'\'''\''/g;
2065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2075 printf "%s\n" "## ----------------- ##
2076 ## Output variables. ##
2077 ## ----------------- ##"
2079 for ac_var in $ac_subst_vars
2081 eval ac_val=\$$ac_var
2083 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085 printf "%s\n" "$ac_var='\''$ac_val'\''"
2089 if test -n "$ac_subst_files"; then
2090 printf "%s\n" "## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##"
2094 for ac_var in $ac_subst_files
2096 eval ac_val=\$$ac_var
2098 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100 printf "%s\n" "$ac_var='\''$ac_val'\''"
2105 if test -s confdefs.h; then
2106 printf "%s\n" "## ----------- ##
2113 test "$ac_signal" != 0 &&
2114 printf "%s\n" "$as_me: caught signal $ac_signal"
2115 printf "%s\n" "$as_me: exit $exit_status"
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2121 for ac_signal in 1 2 13 15; do
2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2127 rm -f -r conftest* confdefs.h
2129 printf "%s\n" "/* confdefs.h */" > confdefs.h
2131 # Predefined preprocessor variables.
2133 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2135 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2137 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2139 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2141 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2143 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2146 # Let the site file select an alternate cache file if it wants to.
2147 # Prefer an explicitly selected file to automatically selected ones.
2148 if test -n "$CONFIG_SITE"; then
2149 ac_site_files="$CONFIG_SITE"
2150 elif test "x$prefix" != xNONE; then
2151 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2153 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2156 for ac_site_file in $ac_site_files
2158 case $ac_site_file in #(
2162 ac_site_file=./$ac_site_file ;;
2164 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2169 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2171 as_fn_error $? "failed to load site script $ac_site_file
2172 See \`config.log' for more details" "$LINENO" 5; }
2176 if test -r "$cache_file"; then
2177 # Some versions of bash will fail to source /dev/null (special files
2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184 *) . "./$cache_file";;
2188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2193 # Test code for whether the C compiler supports C89 (global declarations)
2194 ac_c_conftest_c89_globals='
2195 /* Does the compiler advertise C89 conformance?
2196 Do not test the value of __STDC__, because some compilers set it to 0
2197 while being otherwise adequately conformant. */
2198 #if !defined __STDC__
2199 # error "Compiler does not advertise C89 conformance"
2205 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2206 struct buf { int x; };
2207 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2208 static char *e (p, i)
2214 static char *f (char * (*g) (char **, int), char **p, ...)
2219 s = g (p, va_arg (v,int));
2224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2225 function prototypes and stuff, but not \xHH hex character constants.
2226 These do not provoke an error unfortunately, instead are silently treated
2227 as an "x". The following induces an error, until -std is added to get
2228 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2229 array size at least. It is necessary to write \x00 == 0 to get something
2230 that is true only with -std. */
2231 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2234 inside strings and character constants. */
2235 #define FOO(x) '\''x'\''
2236 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2238 int test (int i, double x);
2239 struct s1 {int (*f) (int a);};
2240 struct s2 {int (*f) (double a);};
2241 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2244 # Test code for whether the C compiler supports C89 (body of main).
2245 ac_c_conftest_c89_main='
2246 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2249 # Test code for whether the C compiler supports C99 (global declarations)
2250 ac_c_conftest_c99_globals='
2251 // Does the compiler advertise C99 conformance?
2252 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2253 # error "Compiler does not advertise C99 conformance"
2256 #include <stdbool.h>
2257 extern int puts (const char *);
2258 extern int printf (const char *, ...);
2259 extern int dprintf (int, const char *, ...);
2260 extern void *malloc (size_t);
2262 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2263 // dprintf is used instead of fprintf to avoid needing to declare
2265 #define debug(...) dprintf (2, __VA_ARGS__)
2266 #define showlist(...) puts (#__VA_ARGS__)
2267 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2269 test_varargs_macros (void)
2274 debug ("X = %d\n", x);
2275 showlist (The first, second, and third items.);
2276 report (x>y, "x is %d but y is %d", x, y);
2279 // Check long long types.
2280 #define BIG64 18446744073709551615ull
2281 #define BIG32 4294967295ul
2282 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2284 #error "your preprocessor is broken"
2288 #error "your preprocessor is broken"
2290 static long long int bignum = -9223372036854775807LL;
2291 static unsigned long long int ubignum = BIG64;
2293 struct incomplete_array
2301 const wchar_t *name;
2305 typedef const char *ccp;
2308 test_restrict (ccp restrict text)
2310 // See if C++-style comments work.
2311 // Iterate through items via the restricted pointer.
2312 // Also check for declarations in for loops.
2313 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2318 // Check varargs and va_copy.
2320 test_varargs (const char *format, ...)
2323 va_start (args, format);
2325 va_copy (args_copy, args);
2327 const char *str = "";
2335 case '\''s'\'': // string
2336 str = va_arg (args_copy, const char *);
2338 case '\''d'\'': // int
2339 number = va_arg (args_copy, int);
2341 case '\''f'\'': // float
2342 fnumber = va_arg (args_copy, double);
2351 return *str && number && fnumber;
2355 # Test code for whether the C compiler supports C99 (body of main).
2356 ac_c_conftest_c99_main='
2358 _Bool success = false;
2359 success |= (argc != 0);
2362 if (test_restrict ("String literal") == 0)
2364 char *restrict newvar = "Another string";
2367 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2368 test_varargs_macros ();
2370 // Check flexible array members.
2371 struct incomplete_array *ia =
2372 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2374 for (int i = 0; i < ia->datasize; ++i)
2375 ia->data[i] = i * 1.234;
2377 // Check named initializers.
2378 struct named_init ni = {
2380 .name = L"Test wide string",
2381 .average = 543.34343,
2386 int dynamic_array[ni.number];
2387 dynamic_array[0] = argv[0][0];
2388 dynamic_array[ni.number - 1] = 543;
2390 // work around unused variable warnings
2391 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2392 || dynamic_array[ni.number - 1] != 543);
2395 # Test code for whether the C compiler supports C11 (global declarations)
2396 ac_c_conftest_c11_globals='
2397 // Does the compiler advertise C11 conformance?
2398 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2399 # error "Compiler does not advertise C11 conformance"
2403 char _Alignas (double) aligned_as_double;
2404 char _Alignas (0) no_special_alignment;
2405 extern char aligned_as_int;
2406 char _Alignas (0) _Alignas (int) aligned_as_int;
2411 int_alignment = _Alignof (int),
2412 int_array_alignment = _Alignof (int[100]),
2413 char_alignment = _Alignof (char)
2415 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2418 int _Noreturn does_not_return (void) { for (;;) continue; }
2420 // Check _Static_assert.
2421 struct test_static_assert
2424 _Static_assert (sizeof (int) <= sizeof (long int),
2425 "_Static_assert does not work in struct");
2429 // Check UTF-8 literals.
2430 #define u8 syntax error!
2431 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2433 // Check duplicate typedefs.
2434 typedef long *long_ptr;
2435 typedef long int *long_ptr;
2436 typedef long_ptr long_ptr;
2438 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2442 struct { int i; int j; };
2443 struct { int k; long int l; } w;
2449 # Test code for whether the C compiler supports C11 (body of main).
2450 ac_c_conftest_c11_main='
2451 _Static_assert ((offsetof (struct anonymous, i)
2452 == offsetof (struct anonymous, w.k)),
2453 "Anonymous union alignment botch");
2459 # Test code for whether the C compiler supports C11 (complete).
2460 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2461 ${ac_c_conftest_c99_globals}
2462 ${ac_c_conftest_c11_globals}
2465 main (int argc, char **argv)
2468 ${ac_c_conftest_c89_main}
2469 ${ac_c_conftest_c99_main}
2470 ${ac_c_conftest_c11_main}
2475 # Test code for whether the C compiler supports C99 (complete).
2476 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2477 ${ac_c_conftest_c99_globals}
2480 main (int argc, char **argv)
2483 ${ac_c_conftest_c89_main}
2484 ${ac_c_conftest_c99_main}
2489 # Test code for whether the C compiler supports C89 (complete).
2490 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2493 main (int argc, char **argv)
2496 ${ac_c_conftest_c89_main}
2501 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2502 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2503 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2504 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2505 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2506 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2507 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2508 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2509 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2511 # Auxiliary files required by this configure script.
2512 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2514 # Locations in which to look for auxiliary files.
2515 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2517 # Search for a directory containing all of the required auxiliary files,
2518 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2519 # If we don't find one directory that contains all the files we need,
2520 # we report the set of missing files from the *first* directory in
2521 # $ac_aux_dir_candidates and give up.
2522 ac_missing_aux_files=""
2523 ac_first_candidate=:
2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $ac_aux_dir_candidates
2530 case $as_dir in #(((
2533 *) as_dir=$as_dir/ ;;
2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2538 ac_aux_dir_found=yes
2540 for ac_aux in $ac_aux_files
2542 # As a special case, if "install-sh" is required, that requirement
2543 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2544 # and $ac_install_sh is set appropriately for whichever one is found.
2545 if test x"$ac_aux" = x"install-sh"
2547 if test -f "${as_dir}install-sh"; then
2548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2549 ac_install_sh="${as_dir}install-sh -c"
2550 elif test -f "${as_dir}install.sh"; then
2551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2552 ac_install_sh="${as_dir}install.sh -c"
2553 elif test -f "${as_dir}shtool"; then
2554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2555 ac_install_sh="${as_dir}shtool install -c"
2558 if $ac_first_candidate; then
2559 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2565 if test -f "${as_dir}${ac_aux}"; then
2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2569 if $ac_first_candidate; then
2570 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2577 if test "$ac_aux_dir_found" = yes; then
2578 ac_aux_dir="$as_dir"
2581 ac_first_candidate=false
2590 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 if test -f "${ac_aux_dir}config.guess"; then
2599 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2601 if test -f "${ac_aux_dir}config.sub"; then
2602 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2604 if test -f "$ac_aux_dir/configure"; then
2605 ac_configure="$SHELL ${ac_aux_dir}configure"
2608 # Check that the precious variables saved in the cache have kept the same
2610 ac_cache_corrupted=false
2611 for ac_var in $ac_precious_vars; do
2612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2613 eval ac_new_set=\$ac_env_${ac_var}_set
2614 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2615 eval ac_new_val=\$ac_env_${ac_var}_value
2616 case $ac_old_set,$ac_new_set in
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2619 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2623 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2627 if test "x$ac_old_val" != "x$ac_new_val"; then
2628 # differences in whitespace do not lead to failure.
2629 ac_old_val_w=`echo x $ac_old_val`
2630 ac_new_val_w=`echo x $ac_new_val`
2631 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2633 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2634 ac_cache_corrupted=:
2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2637 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2638 eval $ac_var=\$ac_old_val
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2641 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2643 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2646 # Pass precious variables to config.status.
2647 if test "$ac_new_set" = set; then
2649 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2650 *) ac_arg=$ac_var=$ac_new_val ;;
2652 case " $ac_configure_args " in
2653 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2654 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2658 if $ac_cache_corrupted; then
2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2662 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2663 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2664 and start over" "$LINENO" 5
2666 ## -------------------- ##
2667 ## Main body of script. ##
2668 ## -------------------- ##
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 # libpng does not follow GNU file name conventions (hence 'foreign')
2680 # color-tests requires automake 1.11 or later
2681 # silent-rules requires automake 1.11 or later
2682 # dist-xz requires automake 1.11 or later
2683 # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2684 # 1.13 is required for parallel tests
2685 am__api_version='1.16'
2689 # Find a good install program. We prefer a C program (faster),
2690 # so one script is as good as another. But avoid the broken or
2691 # incompatible versions:
2692 # SysV /etc/install, /usr/sbin/install
2693 # SunOS /usr/etc/install
2694 # IRIX /sbin/install
2696 # AmigaOS /C/install, which installs bootblocks on floppy discs
2697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2700 # OS/2's system install, which has a completely different semantic
2701 # ./install, which can be erroneously created by make from ./install.sh.
2702 # Reject install programs that cannot install multiple files.
2703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2704 printf %s "checking for a BSD-compatible install... " >&6; }
2705 if test -z "$INSTALL"; then
2706 if test ${ac_cv_path_install+y}
2708 printf %s "(cached) " >&6
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 case $as_dir in #(((
2717 *) as_dir=$as_dir/ ;;
2719 # Account for fact that we put trailing slashes in our PATH walk.
2722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2723 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2726 # OSF1 and SCO ODT 3.0 have their own names for install.
2727 # Don't use installbsd from OSF since it installs stuff as root
2729 for ac_prog in ginstall scoinst install; do
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2732 if test $ac_prog = install &&
2733 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # AIX install. It has an incompatible calling convention.
2736 elif test $ac_prog = install &&
2737 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738 # program-specific install script used by HP pwplus--don't use.
2741 rm -rf conftest.one conftest.two conftest.dir
2742 echo one > conftest.one
2743 echo two > conftest.two
2745 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2746 test -s conftest.one && test -s conftest.two &&
2747 test -s conftest.dir/conftest.one &&
2748 test -s conftest.dir/conftest.two
2750 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2763 rm -rf conftest.one conftest.two conftest.dir
2766 if test ${ac_cv_path_install+y}; then
2767 INSTALL=$ac_cv_path_install
2769 # As a last resort, use the slow shell script. Don't cache a
2770 # value for INSTALL within a source directory, because that will
2771 # break other packages using the cache if that directory is
2772 # removed, or if the value is a relative name.
2773 INSTALL=$ac_install_sh
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2777 printf "%s\n" "$INSTALL" >&6; }
2779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2780 # It thinks the first close brace ends the variable substitution.
2781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2788 printf %s "checking whether build environment is sane... " >&6; }
2789 # Reject unsafe characters in $srcdir or the absolute working directory
2790 # name. Accept space and tab only in the latter.
2794 *[\\\"\#\$\&\'\`$am_lf]*)
2795 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2798 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2799 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2802 # Do 'set' in a subshell so we don't clobber the current shell's
2803 # arguments. Must try -L first in case configure is actually a
2804 # symlink; some systems play weird games with the mod time of symlinks
2805 # (eg FreeBSD returns the mod time of the symlink's containing
2809 for am_try in 1 2; do
2810 echo "timestamp, slept: $am_has_slept" > conftest.file
2811 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2812 if test "$*" = "X"; then
2814 set X `ls -t "$srcdir/configure" conftest.file`
2816 if test "$*" != "X $srcdir/configure conftest.file" \
2817 && test "$*" != "X conftest.file $srcdir/configure"; then
2819 # If neither matched, then we have a broken ls. This can happen
2820 # if, for instance, CONFIG_SHELL is bash and it inherits a
2821 # broken ls alias from the environment. This has actually
2822 # happened. Such a system could not be considered "sane".
2823 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2824 alias in your environment" "$LINENO" 5
2826 if test "$2" = conftest.file || test $am_try -eq 2; then
2833 test "$2" = conftest.file
2839 as_fn_error $? "newly created file is older than distributed files!
2840 Check your system clock" "$LINENO" 5
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2843 printf "%s\n" "yes" >&6; }
2844 # If we didn't sleep, we still need to ensure time stamps of config.status and
2845 # generated files are strictly newer.
2847 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2854 test "$program_prefix" != NONE &&
2855 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2856 # Use a double $ so make ignores it.
2857 test "$program_suffix" != NONE &&
2858 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2859 # Double any \ or $.
2860 # By default was `s,x,x', remove it if useless.
2861 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2862 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2865 # Expand $ac_aux_dir to an absolute path.
2866 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2869 if test x"${MISSING+set}" != xset; then
2870 MISSING="\${SHELL} '$am_aux_dir/missing'"
2872 # Use eval to expand $SHELL
2873 if eval "$MISSING --is-lightweight"; then
2874 am_missing_run="$MISSING "
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2878 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2881 if test x"${install_sh+set}" != xset; then
2884 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2886 install_sh="\${SHELL} $am_aux_dir/install-sh"
2890 # Installed binaries are usually stripped using 'strip' when the user
2891 # run "make install-strip". However 'strip' might not be the right
2892 # tool to use in cross-compilation environments, therefore Automake
2893 # will honor the 'STRIP' environment variable to overrule this program.
2894 if test "$cross_compiling" != no; then
2895 if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2897 set dummy ${ac_tool_prefix}strip; ac_word=$2
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 printf %s "checking for $ac_word... " >&6; }
2900 if test ${ac_cv_prog_STRIP+y}
2902 printf %s "(cached) " >&6
2904 if test -n "$STRIP"; then
2905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 case $as_dir in #(((
2914 *) as_dir=$as_dir/ ;;
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2928 STRIP=$ac_cv_prog_STRIP
2929 if test -n "$STRIP"; then
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2931 printf "%s\n" "$STRIP" >&6; }
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 printf "%s\n" "no" >&6; }
2939 if test -z "$ac_cv_prog_STRIP"; then
2941 # Extract the first word of "strip", so it can be a program name with args.
2942 set dummy strip; ac_word=$2
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 printf %s "checking for $ac_word... " >&6; }
2945 if test ${ac_cv_prog_ac_ct_STRIP+y}
2947 printf %s "(cached) " >&6
2949 if test -n "$ac_ct_STRIP"; then
2950 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 case $as_dir in #(((
2959 *) as_dir=$as_dir/ ;;
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_ac_ct_STRIP="strip"
2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2974 if test -n "$ac_ct_STRIP"; then
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2976 printf "%s\n" "$ac_ct_STRIP" >&6; }
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 printf "%s\n" "no" >&6; }
2982 if test "x$ac_ct_STRIP" = x; then
2985 case $cross_compiling:$ac_tool_warned in
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989 ac_tool_warned=yes ;;
2994 STRIP="$ac_cv_prog_STRIP"
2998 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3002 printf %s "checking for a race-free mkdir -p... " >&6; }
3003 if test -z "$MKDIR_P"; then
3004 if test ${ac_cv_path_mkdir+y}
3006 printf %s "(cached) " >&6
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3012 case $as_dir in #(((
3015 *) as_dir=$as_dir/ ;;
3017 for ac_prog in mkdir gmkdir; do
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3020 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3021 'mkdir ('*'coreutils) '* | \
3023 'mkdir (fileutils) '4.1*)
3024 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3034 test -d ./--version && rmdir ./--version
3035 if test ${ac_cv_path_mkdir+y}; then
3036 MKDIR_P="$ac_cv_path_mkdir -p"
3038 # As a last resort, use the slow shell script. Don't cache a
3039 # value for MKDIR_P within a source directory, because that will
3040 # break other packages using the cache if that directory is
3041 # removed, or if the value is a relative name.
3042 MKDIR_P="$ac_install_sh -d"
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3046 printf "%s\n" "$MKDIR_P" >&6; }
3048 for ac_prog in gawk mawk nawk awk
3050 # Extract the first word of "$ac_prog", so it can be a program name with args.
3051 set dummy $ac_prog; ac_word=$2
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 printf %s "checking for $ac_word... " >&6; }
3054 if test ${ac_cv_prog_AWK+y}
3056 printf %s "(cached) " >&6
3058 if test -n "$AWK"; then
3059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 case $as_dir in #(((
3068 *) as_dir=$as_dir/ ;;
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_AWK="$ac_prog"
3073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3083 if test -n "$AWK"; then
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3085 printf "%s\n" "$AWK" >&6; }
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 printf "%s\n" "no" >&6; }
3092 test -n "$AWK" && break
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3096 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3098 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3099 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3101 printf %s "(cached) " >&6
3103 cat >conftest.make <<\_ACEOF
3106 @echo '@@@%%%=$(MAKE)=@@@%%%'
3108 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3109 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3111 eval ac_cv_prog_make_${ac_make}_set=yes;;
3113 eval ac_cv_prog_make_${ac_make}_set=no;;
3117 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3119 printf "%s\n" "yes" >&6; }
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 printf "%s\n" "no" >&6; }
3124 SET_MAKE="MAKE=${MAKE-make}"
3127 rm -rf .tst 2>/dev/null
3128 mkdir .tst 2>/dev/null
3129 if test -d .tst; then
3134 rmdir .tst 2>/dev/null
3136 # Check whether --enable-silent-rules was given.
3137 if test ${enable_silent_rules+y}
3139 enableval=$enable_silent_rules;
3142 case $enable_silent_rules in # (((
3143 yes) AM_DEFAULT_VERBOSITY=0;;
3144 no) AM_DEFAULT_VERBOSITY=1;;
3145 *) AM_DEFAULT_VERBOSITY=1;;
3147 am_make=${MAKE-make}
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3149 printf %s "checking whether $am_make supports nested variables... " >&6; }
3150 if test ${am_cv_make_support_nested_variables+y}
3152 printf %s "(cached) " >&6
3154 if printf "%s\n" 'TRUE=$(BAR$(V))
3160 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3161 am_cv_make_support_nested_variables=yes
3163 am_cv_make_support_nested_variables=no
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3167 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3168 if test $am_cv_make_support_nested_variables = yes; then
3170 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3172 AM_V=$AM_DEFAULT_VERBOSITY
3173 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3177 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3178 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3179 # is not polluted with repeated "-I."
3180 am__isrc=' -I$(srcdir)'
3181 # test to see if srcdir already configured
3182 if test -f $srcdir/config.status; then
3183 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3187 # test whether we have cygpath
3188 if test -z "$CYGPATH_W"; then
3189 if (cygpath --version) >/dev/null 2>/dev/null; then
3190 CYGPATH_W='cygpath -w'
3197 # Define the identity of the package.
3202 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3205 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3207 # Some tools Automake needs.
3209 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3212 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3215 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3218 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3221 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3223 # For better backward compatibility. To be removed once Automake 1.9.x
3224 # dies out for good. For more background, see:
3225 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3226 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3227 mkdir_p='$(MKDIR_P)'
3229 # We need awk for the "check" target (and possibly the TAP driver). The
3230 # system "awk" is bad on some platforms.
3231 # Always define AMTAR for backward compatibility. Yes, it's still used
3232 # in the wild :-( We should find a proper way to deprecate it ...
3236 # We'll loop over all known methods to create a tar archive until one works.
3237 _am_tools='gnutar pax cpio none'
3239 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3245 # Variables for tags utilities; see am/tags.am
3246 if test -z "$CTAGS"; then
3250 if test -z "$ETAGS"; then
3254 if test -z "$CSCOPE"; then
3260 # POSIX will say in a future version that running "rm -f" with no argument
3261 # is OK; and we want to be able to make that assumption in our Makefile
3262 # recipes. So use an aggressive probe to check that the usage we want is
3263 # actually supported "in the wild" to an acceptable degree.
3264 # See automake bug#10828.
3265 # To make any issue more visible, cause the running configure to be aborted
3266 # by default if the 'rm' program in use doesn't match our expectations; the
3267 # user can still override this though.
3268 if rm -f && rm -fr && rm -rf; then : OK; else
3272 Your 'rm' program seems unable to run without file operands specified
3273 on the command line, even when the '-f' option is present. This is contrary
3274 to the behaviour of most rm programs out there, and not conforming with
3275 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3277 Please tell bug-automake@gnu.org about your system, including the value
3278 of your $PATH and any error possibly output before this message. This
3279 can help us improve future automake versions.
3282 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3283 echo 'Configuration will proceed anyway, since you have set the' >&2
3284 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3288 Aborting the configuration process, to ensure you take notice of the issue.
3290 You can download and install GNU coreutils to get an 'rm' implementation
3291 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3293 If you want to complete the configuration process using your problematic
3294 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3295 to "yes", and re-run configure.
3298 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3302 # The following line causes --disable-maintainer-mode to be the default to
3303 # configure. This is necessary because libpng distributions cannot rely on the
3304 # time stamps of the autotools generated files being correct
3306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3307 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3308 # Check whether --enable-maintainer-mode was given.
3309 if test ${enable_maintainer_mode+y}
3311 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3313 USE_MAINTAINER_MODE=no
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3317 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3318 if test $USE_MAINTAINER_MODE = yes; then
3319 MAINTAINER_MODE_TRUE=
3320 MAINTAINER_MODE_FALSE='#'
3322 MAINTAINER_MODE_TRUE='#'
3323 MAINTAINER_MODE_FALSE=
3326 MAINT=$MAINTAINER_MODE_TRUE
3331 PNGLIB_VERSION=1.6.39
3338 ac_config_headers="$ac_config_headers config.h"
3341 # Checks for programs.
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 printf %s "checking for $ac_word... " >&6; }
3367 if test ${ac_cv_prog_CC+y}
3369 printf %s "(cached) " >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 case $as_dir in #(((
3381 *) as_dir=$as_dir/ ;;
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3396 if test -n "$CC"; then
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 printf "%s\n" "$CC" >&6; }
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 printf "%s\n" "no" >&6; }
3406 if test -z "$ac_cv_prog_CC"; then
3408 # Extract the first word of "gcc", so it can be a program name with args.
3409 set dummy gcc; ac_word=$2
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 printf %s "checking for $ac_word... " >&6; }
3412 if test ${ac_cv_prog_ac_ct_CC+y}
3414 printf %s "(cached) " >&6
3416 if test -n "$ac_ct_CC"; then
3417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 case $as_dir in #(((
3426 *) as_dir=$as_dir/ ;;
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_ac_ct_CC="gcc"
3431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3441 if test -n "$ac_ct_CC"; then
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3443 printf "%s\n" "$ac_ct_CC" >&6; }
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 printf "%s\n" "no" >&6; }
3449 if test "x$ac_ct_CC" = x; then
3452 case $cross_compiling:$ac_tool_warned in
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3455 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3456 ac_tool_warned=yes ;;
3464 if test -z "$CC"; then
3465 if test -n "$ac_tool_prefix"; then
3466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3467 set dummy ${ac_tool_prefix}cc; ac_word=$2
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 printf %s "checking for $ac_word... " >&6; }
3470 if test ${ac_cv_prog_CC+y}
3472 printf %s "(cached) " >&6
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 case $as_dir in #(((
3484 *) as_dir=$as_dir/ ;;
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_CC="${ac_tool_prefix}cc"
3489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3499 if test -n "$CC"; then
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3501 printf "%s\n" "$CC" >&6; }
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 printf "%s\n" "no" >&6; }
3510 if test -z "$CC"; then
3511 # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc; ac_word=$2
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 printf %s "checking for $ac_word... " >&6; }
3515 if test ${ac_cv_prog_CC+y}
3517 printf %s "(cached) " >&6
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 case $as_dir in #(((
3530 *) as_dir=$as_dir/ ;;
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3534 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3535 ac_prog_rejected=yes
3539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3546 if test $ac_prog_rejected = yes; then
3547 # We found a bogon in the path, so make sure we never use it.
3548 set dummy $ac_cv_prog_CC
3550 if test $# != 0; then
3551 # We chose a different compiler from the bogus one.
3552 # However, it has the same basename, so the bogon will be chosen
3553 # first if we set CC to just the basename; use the full file name.
3555 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3561 if test -n "$CC"; then
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 printf "%s\n" "$CC" >&6; }
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 printf "%s\n" "no" >&6; }
3571 if test -z "$CC"; then
3572 if test -n "$ac_tool_prefix"; then
3573 for ac_prog in cl.exe
3575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 printf %s "checking for $ac_word... " >&6; }
3579 if test ${ac_cv_prog_CC+y}
3581 printf %s "(cached) " >&6
3583 if test -n "$CC"; then
3584 ac_cv_prog_CC="$CC" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 case $as_dir in #(((
3593 *) as_dir=$as_dir/ ;;
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3608 if test -n "$CC"; then
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610 printf "%s\n" "$CC" >&6; }
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 printf "%s\n" "no" >&6; }
3617 test -n "$CC" && break
3620 if test -z "$CC"; then
3622 for ac_prog in cl.exe
3624 # Extract the first word of "$ac_prog", so it can be a program name with args.
3625 set dummy $ac_prog; ac_word=$2
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 printf %s "checking for $ac_word... " >&6; }
3628 if test ${ac_cv_prog_ac_ct_CC+y}
3630 printf %s "(cached) " >&6
3632 if test -n "$ac_ct_CC"; then
3633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 case $as_dir in #(((
3642 *) as_dir=$as_dir/ ;;
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_ac_ct_CC="$ac_prog"
3647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3657 if test -n "$ac_ct_CC"; then
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3659 printf "%s\n" "$ac_ct_CC" >&6; }
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 printf "%s\n" "no" >&6; }
3666 test -n "$ac_ct_CC" && break
3669 if test "x$ac_ct_CC" = x; then
3672 case $cross_compiling:$ac_tool_warned in
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3676 ac_tool_warned=yes ;;
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}clang; ac_word=$2
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 printf %s "checking for $ac_word... " >&6; }
3689 if test ${ac_cv_prog_CC+y}
3691 printf %s "(cached) " >&6
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 case $as_dir in #(((
3703 *) as_dir=$as_dir/ ;;
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="${ac_tool_prefix}clang"
3708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718 if test -n "$CC"; then
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 printf "%s\n" "$CC" >&6; }
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 printf "%s\n" "no" >&6; }
3728 if test -z "$ac_cv_prog_CC"; then
3730 # Extract the first word of "clang", so it can be a program name with args.
3731 set dummy clang; ac_word=$2
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 printf %s "checking for $ac_word... " >&6; }
3734 if test ${ac_cv_prog_ac_ct_CC+y}
3736 printf %s "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 case $as_dir in #(((
3748 *) as_dir=$as_dir/ ;;
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_ac_ct_CC="clang"
3753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763 if test -n "$ac_ct_CC"; then
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765 printf "%s\n" "$ac_ct_CC" >&6; }
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 printf "%s\n" "no" >&6; }
3771 if test "x$ac_ct_CC" = x; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3789 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3791 as_fn_error $? "no acceptable C compiler found in \$PATH
3792 See \`config.log' for more details" "$LINENO" 5; }
3794 # Provide some information about the compiler.
3795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3798 for ac_option in --version -v -V -qversion -version; do
3799 { { ac_try="$ac_compiler $ac_option >&5"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 printf "%s\n" "$ac_try_echo"; } >&5
3806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808 if test -s conftest.err; then
3810 ... rest of stderr output deleted ...
3811 10q' conftest.err >conftest.er1
3812 cat conftest.er1 >&5
3814 rm -f conftest.er1 conftest.err
3815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3830 ac_clean_files_save=$ac_clean_files
3831 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3832 # Try to create an executable without -o first, disregard a.out.
3833 # It will help us diagnose broken compilers, and finding out an intuition
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3836 printf %s "checking whether the C compiler works... " >&6; }
3837 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3839 # The possible output files:
3840 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3843 for ac_file in $ac_files
3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3847 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3852 if { { ac_try="$ac_link_default"
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 printf "%s\n" "$ac_try_echo"; } >&5
3859 (eval "$ac_link_default") 2>&5
3861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }
3864 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3865 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3866 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3867 # so that the user can short-circuit this test for compilers unknown to
3869 for ac_file in $ac_files ''
3871 test -f "$ac_file" || continue
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3876 # We found the default executable, but exeext='' is most
3880 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3882 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884 # We set ac_cv_exeext here because the later test for it is not
3885 # safe: cross compilers may not add the suffix if given an `-o'
3886 # argument, so we may need to know it at that point already.
3887 # Even if this section looks crufty: it has the advantage of
3894 test "$ac_cv_exeext" = no && ac_cv_exeext=
3899 if test -z "$ac_file"
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 printf "%s\n" "no" >&6; }
3903 printf "%s\n" "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3906 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error 77 "C compiler cannot create executables
3909 See \`config.log' for more details" "$LINENO" 5; }
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3912 printf "%s\n" "yes" >&6; }
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3915 printf %s "checking for C compiler default output file name... " >&6; }
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917 printf "%s\n" "$ac_file" >&6; }
3918 ac_exeext=$ac_cv_exeext
3920 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3921 ac_clean_files=$ac_clean_files_save
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3923 printf %s "checking for suffix of executables... " >&6; }
3924 if { { ac_try="$ac_link"
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 printf "%s\n" "$ac_try_echo"; } >&5
3931 (eval "$ac_link") 2>&5
3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }
3936 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3937 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3938 # work properly (i.e., refer to `conftest.exe'), while it won't with
3940 for ac_file in conftest.exe conftest conftest.*; do
3941 test -f "$ac_file" || continue
3943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3944 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3950 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3951 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3952 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3953 See \`config.log' for more details" "$LINENO" 5; }
3955 rm -f conftest conftest$ac_cv_exeext
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3957 printf "%s\n" "$ac_cv_exeext" >&6; }
3959 rm -f conftest.$ac_ext
3960 EXEEXT=$ac_cv_exeext
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3968 FILE *f = fopen ("conftest.out", "w");
3969 return ferror (f) || fclose (f) != 0;
3975 ac_clean_files="$ac_clean_files conftest.out"
3976 # Check that the compiler produces executables we can run. If not, either
3977 # the compiler is broken, or we cross compile.
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3979 printf %s "checking whether we are cross compiling... " >&6; }
3980 if test "$cross_compiling" != yes; then
3981 { { ac_try="$ac_link"
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3987 printf "%s\n" "$ac_try_echo"; } >&5
3988 (eval "$ac_link") 2>&5
3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3991 test $ac_status = 0; }
3992 if { ac_try='./conftest$ac_cv_exeext'
3993 { { case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 printf "%s\n" "$ac_try_echo"; } >&5
3999 (eval "$ac_try") 2>&5
4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; }; then
4005 if test "$cross_compiling" = maybe; then
4008 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error 77 "cannot run C compiled programs.
4011 If you meant to cross compile, use \`--host'.
4012 See \`config.log' for more details" "$LINENO" 5; }
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4017 printf "%s\n" "$cross_compiling" >&6; }
4019 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4020 ac_clean_files=$ac_clean_files_save
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4022 printf %s "checking for suffix of object files... " >&6; }
4023 if test ${ac_cv_objext+y}
4025 printf %s "(cached) " >&6
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 rm -f conftest.o conftest.obj
4039 if { { ac_try="$ac_compile"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4045 printf "%s\n" "$ac_try_echo"; } >&5
4046 (eval "$ac_compile") 2>&5
4048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4049 test $ac_status = 0; }
4051 for ac_file in conftest.o conftest.obj conftest.*; do
4052 test -f "$ac_file" || continue;
4054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4060 printf "%s\n" "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error $? "cannot compute suffix of object files: cannot compile
4066 See \`config.log' for more details" "$LINENO" 5; }
4068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4071 printf "%s\n" "$ac_cv_objext" >&6; }
4072 OBJEXT=$ac_cv_objext
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4075 printf %s "checking whether the compiler supports GNU C... " >&6; }
4076 if test ${ac_cv_c_compiler_gnu+y}
4078 printf %s "(cached) " >&6
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4094 if ac_fn_c_try_compile "$LINENO"
4100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4101 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4105 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 if test $ac_compiler_gnu = yes; then
4113 ac_test_CFLAGS=${CFLAGS+y}
4114 ac_save_CFLAGS=$CFLAGS
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4116 printf %s "checking whether $CC accepts -g... " >&6; }
4117 if test ${ac_cv_prog_cc_g+y}
4119 printf %s "(cached) " >&6
4121 ac_save_c_werror_flag=$ac_c_werror_flag
4122 ac_c_werror_flag=yes
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4136 if ac_fn_c_try_compile "$LINENO"
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4152 if ac_fn_c_try_compile "$LINENO"
4156 ac_c_werror_flag=$ac_save_c_werror_flag
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4169 if ac_fn_c_try_compile "$LINENO"
4173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4182 if test $ac_test_CFLAGS; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4191 if test "$GCC" = yes; then
4198 if test x$ac_prog_cc_stdc = xno
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4201 printf %s "checking for $CC option to enable C11 features... " >&6; }
4202 if test ${ac_cv_prog_cc_c11+y}
4204 printf %s "(cached) " >&6
4206 ac_cv_prog_cc_c11=no
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 $ac_c_conftest_c11_program
4212 for ac_arg in '' -std=gnu11
4214 CC="$ac_save_CC $ac_arg"
4215 if ac_fn_c_try_compile "$LINENO"
4217 ac_cv_prog_cc_c11=$ac_arg
4219 rm -f core conftest.err conftest.$ac_objext conftest.beam
4220 test "x$ac_cv_prog_cc_c11" != "xno" && break
4222 rm -f conftest.$ac_ext
4226 if test "x$ac_cv_prog_cc_c11" = xno
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4229 printf "%s\n" "unsupported" >&6; }
4231 if test "x$ac_cv_prog_cc_c11" = x
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 printf "%s\n" "none needed" >&6; }
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4237 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4238 CC="$CC $ac_cv_prog_cc_c11"
4240 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4244 if test x$ac_prog_cc_stdc = xno
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4247 printf %s "checking for $CC option to enable C99 features... " >&6; }
4248 if test ${ac_cv_prog_cc_c99+y}
4250 printf %s "(cached) " >&6
4252 ac_cv_prog_cc_c99=no
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 $ac_c_conftest_c99_program
4258 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"
4263 ac_cv_prog_cc_c99=$ac_arg
4265 rm -f core conftest.err conftest.$ac_objext conftest.beam
4266 test "x$ac_cv_prog_cc_c99" != "xno" && break
4268 rm -f conftest.$ac_ext
4272 if test "x$ac_cv_prog_cc_c99" = xno
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4275 printf "%s\n" "unsupported" >&6; }
4277 if test "x$ac_cv_prog_cc_c99" = x
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4280 printf "%s\n" "none needed" >&6; }
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4283 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4284 CC="$CC $ac_cv_prog_cc_c99"
4286 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4290 if test x$ac_prog_cc_stdc = xno
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4293 printf %s "checking for $CC option to enable C89 features... " >&6; }
4294 if test ${ac_cv_prog_cc_c89+y}
4296 printf %s "(cached) " >&6
4298 ac_cv_prog_cc_c89=no
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 $ac_c_conftest_c89_program
4304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4306 CC="$ac_save_CC $ac_arg"
4307 if ac_fn_c_try_compile "$LINENO"
4309 ac_cv_prog_cc_c89=$ac_arg
4311 rm -f core conftest.err conftest.$ac_objext conftest.beam
4312 test "x$ac_cv_prog_cc_c89" != "xno" && break
4314 rm -f conftest.$ac_ext
4318 if test "x$ac_cv_prog_cc_c89" = xno
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4321 printf "%s\n" "unsupported" >&6; }
4323 if test "x$ac_cv_prog_cc_c89" = x
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326 printf "%s\n" "none needed" >&6; }
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4329 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4330 CC="$CC $ac_cv_prog_cc_c89"
4332 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4350 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4351 if test ${am_cv_prog_cc_c_o+y}
4353 printf %s "(cached) " >&6
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4366 # Make sure it works both with $CC and with simple cc.
4367 # Following AC_PROG_CC_C_O, we do the test twice because some
4368 # compilers refuse to overwrite an existing .o file with -o,
4369 # though they will create one.
4370 am_cv_prog_cc_c_o=yes
4372 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4373 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } \
4377 && test -f conftest2.$ac_objext; then
4380 am_cv_prog_cc_c_o=no
4384 rm -f core conftest*
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4388 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4389 if test "$am_cv_prog_cc_c_o" != yes; then
4390 # Losing compiler, so override with the script.
4391 # FIXME: It is wrong to rewrite CC.
4392 # But if we don't then we get into trouble of one sort or another.
4393 # A longer-term fix would be to have automake use am__CC in this case,
4394 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4395 CC="$am_aux_dir/compile $CC"
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403 DEPDIR="${am__leading_dot}deps"
4405 ac_config_commands="$ac_config_commands depfiles"
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4408 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4409 cat > confinc.mk << 'END'
4411 @echo this is the am__doit target >confinc.out
4416 # BSD make does it like this.
4417 echo '.include "confinc.mk" # ignored' > confmf.BSD
4418 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4419 echo 'include confinc.mk # ignored' > confmf.GNU
4421 for s in GNU BSD; do
4422 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4423 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }
4427 case $?:`cat confinc.out 2>/dev/null` in #(
4428 '0:this is the am__doit target') :
4431 am__include='.include' am__quote='"' ;; #(
4433 am__include='include' am__quote='' ;;
4438 if test "$am__include" != "#"; then
4439 _am_result="yes ($s style)"
4443 rm -f confinc.* confmf.*
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4445 printf "%s\n" "${_am_result}" >&6; }
4447 # Check whether --enable-dependency-tracking was given.
4448 if test ${enable_dependency_tracking+y}
4450 enableval=$enable_dependency_tracking;
4453 if test "x$enable_dependency_tracking" != xno; then
4454 am_depcomp="$ac_aux_dir/depcomp"
4458 if test "x$enable_dependency_tracking" != xno; then
4468 depcc="$CC" am_compiler_list=
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4471 printf %s "checking dependency style of $depcc... " >&6; }
4472 if test ${am_cv_CC_dependencies_compiler_type+y}
4474 printf %s "(cached) " >&6
4476 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4477 # We make a subdir and do the tests there. Otherwise we can end up
4478 # making bogus files that we don't know about and never remove. For
4479 # instance it was reported that on HP-UX the gcc test will end up
4480 # making a dummy file named 'D' -- because '-MD' means "put the output
4484 # Copy depcomp to subdir because otherwise we won't find it if we're
4485 # using a relative directory.
4486 cp "$am_depcomp" conftest.dir
4488 # We will build objects and dependencies in a subdirectory because
4489 # it helps to detect inapplicable dependency modes. For instance
4490 # both Tru64's cc and ICC support -MD to output dependencies as a
4491 # side effect of compilation, but ICC will put the dependencies in
4492 # the current directory while Tru64 will put them in the object
4496 am_cv_CC_dependencies_compiler_type=none
4497 if test "$am_compiler_list" = ""; then
4498 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4501 case " $depcc " in #(
4502 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4505 for depmode in $am_compiler_list; do
4506 # Setup a source with many dependencies, because some compilers
4507 # like to wrap large dependency lists on column 80 (with \), and
4508 # we should not choose a depcomp mode which is confused by this.
4510 # We need to recreate these files for each test, as the compiler may
4511 # overwrite some of them when testing with obscure command lines.
4512 # This happens at least with the AIX C compiler.
4514 for i in 1 2 3 4 5 6; do
4515 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4516 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4517 # Solaris 10 /bin/sh.
4518 echo '/* dummy */' > sub/conftst$i.h
4520 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4522 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4523 # mode. It turns out that the SunPro C++ compiler does not properly
4524 # handle '-M -o', and we need to detect this. Also, some Intel
4525 # versions had trouble with output in subdirs.
4526 am__obj=sub/conftest.${OBJEXT-o}
4527 am__minus_obj="-o $am__obj"
4530 # This depmode causes a compiler race in universal mode.
4531 test "$am__universal" = false || continue
4534 # After this tag, mechanisms are not by side-effect, so they'll
4535 # only be used when explicitly requested.
4536 if test "x$enable_dependency_tracking" = xyes; then
4542 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4543 # This compiler won't grok '-c -o', but also, the minuso test has
4544 # not run yet. These depmodes are late enough in the game, and
4545 # so weak that their functioning should not be impacted.
4546 am__obj=conftest.${OBJEXT-o}
4551 if depmode=$depmode \
4552 source=sub/conftest.c object=$am__obj \
4553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4554 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4555 >/dev/null 2>conftest.err &&
4556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4558 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4560 # icc doesn't choke on unknown options, it will just issue warnings
4561 # or remarks (even with -Werror). So we grep stderr for any message
4562 # that says an option was ignored or not supported.
4563 # When given -MP, icc 7.0 and 7.1 complain thusly:
4564 # icc: Command line warning: ignoring option '-M'; no argument required
4565 # The diagnosis changed in icc 8.0:
4566 # icc: Command line remark: option '-MP' not supported
4567 if (grep 'ignoring option' conftest.err ||
4568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4569 am_cv_CC_dependencies_compiler_type=$depmode
4578 am_cv_CC_dependencies_compiler_type=none
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4583 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4584 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4587 test "x$enable_dependency_tracking" != xno \
4588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4590 am__fastdepCC_FALSE='#'
4592 am__fastdepCC_TRUE='#'
4593 am__fastdepCC_FALSE=
4597 # By default we simply use the C compiler to build assembly code.
4599 test "${CCAS+set}" = set || CCAS=$CC
4600 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4604 depcc="$CCAS" am_compiler_list=
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4607 printf %s "checking dependency style of $depcc... " >&6; }
4608 if test ${am_cv_CCAS_dependencies_compiler_type+y}
4610 printf %s "(cached) " >&6
4612 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4613 # We make a subdir and do the tests there. Otherwise we can end up
4614 # making bogus files that we don't know about and never remove. For
4615 # instance it was reported that on HP-UX the gcc test will end up
4616 # making a dummy file named 'D' -- because '-MD' means "put the output
4620 # Copy depcomp to subdir because otherwise we won't find it if we're
4621 # using a relative directory.
4622 cp "$am_depcomp" conftest.dir
4624 # We will build objects and dependencies in a subdirectory because
4625 # it helps to detect inapplicable dependency modes. For instance
4626 # both Tru64's cc and ICC support -MD to output dependencies as a
4627 # side effect of compilation, but ICC will put the dependencies in
4628 # the current directory while Tru64 will put them in the object
4632 am_cv_CCAS_dependencies_compiler_type=none
4633 if test "$am_compiler_list" = ""; then
4634 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4639 for depmode in $am_compiler_list; do
4640 # Setup a source with many dependencies, because some compilers
4641 # like to wrap large dependency lists on column 80 (with \), and
4642 # we should not choose a depcomp mode which is confused by this.
4644 # We need to recreate these files for each test, as the compiler may
4645 # overwrite some of them when testing with obscure command lines.
4646 # This happens at least with the AIX C compiler.
4648 for i in 1 2 3 4 5 6; do
4649 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4650 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4651 # Solaris 10 /bin/sh.
4652 echo '/* dummy */' > sub/conftst$i.h
4654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4656 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4657 # mode. It turns out that the SunPro C++ compiler does not properly
4658 # handle '-M -o', and we need to detect this. Also, some Intel
4659 # versions had trouble with output in subdirs.
4660 am__obj=sub/conftest.${OBJEXT-o}
4661 am__minus_obj="-o $am__obj"
4664 # This depmode causes a compiler race in universal mode.
4665 test "$am__universal" = false || continue
4668 # After this tag, mechanisms are not by side-effect, so they'll
4669 # only be used when explicitly requested.
4670 if test "x$enable_dependency_tracking" = xyes; then
4676 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4677 # This compiler won't grok '-c -o', but also, the minuso test has
4678 # not run yet. These depmodes are late enough in the game, and
4679 # so weak that their functioning should not be impacted.
4680 am__obj=conftest.${OBJEXT-o}
4685 if depmode=$depmode \
4686 source=sub/conftest.c object=$am__obj \
4687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4688 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4689 >/dev/null 2>conftest.err &&
4690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4692 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4694 # icc doesn't choke on unknown options, it will just issue warnings
4695 # or remarks (even with -Werror). So we grep stderr for any message
4696 # that says an option was ignored or not supported.
4697 # When given -MP, icc 7.0 and 7.1 complain thusly:
4698 # icc: Command line warning: ignoring option '-M'; no argument required
4699 # The diagnosis changed in icc 8.0:
4700 # icc: Command line remark: option '-MP' not supported
4701 if (grep 'ignoring option' conftest.err ||
4702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4703 am_cv_CCAS_dependencies_compiler_type=$depmode
4712 am_cv_CCAS_dependencies_compiler_type=none
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4717 printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4718 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4721 test "x$enable_dependency_tracking" != xno \
4722 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4723 am__fastdepCCAS_TRUE=
4724 am__fastdepCCAS_FALSE='#'
4726 am__fastdepCCAS_TRUE='#'
4727 am__fastdepCCAS_FALSE=
4733 # Make sure we can run config.sub.
4734 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4735 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4738 printf %s "checking build system type... " >&6; }
4739 if test ${ac_cv_build+y}
4741 printf %s "(cached) " >&6
4743 ac_build_alias=$build_alias
4744 test "x$ac_build_alias" = x &&
4745 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4746 test "x$ac_build_alias" = x &&
4747 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4748 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4749 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4753 printf "%s\n" "$ac_cv_build" >&6; }
4754 case $ac_cv_build in
4756 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4759 ac_save_IFS=$IFS; IFS='-'
4765 # Remember, the first character of IFS is used to create $*,
4766 # except with old shells:
4769 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4773 printf %s "checking host system type... " >&6; }
4774 if test ${ac_cv_host+y}
4776 printf %s "(cached) " >&6
4778 if test "x$host_alias" = x; then
4779 ac_cv_host=$ac_cv_build
4781 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4782 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4787 printf "%s\n" "$ac_cv_host" >&6; }
4790 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4793 ac_save_IFS=$IFS; IFS='-'
4799 # Remember, the first character of IFS is used to create $*,
4800 # except with old shells:
4803 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4807 printf %s "checking for a sed that does not truncate output... " >&6; }
4808 if test ${ac_cv_path_SED+y}
4810 printf %s "(cached) " >&6
4812 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4813 for ac_i in 1 2 3 4 5 6 7; do
4814 ac_script="$ac_script$as_nl$ac_script"
4816 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4817 { ac_script=; unset ac_script;}
4818 if test -z "$SED"; then
4819 ac_path_SED_found=false
4820 # Loop through the user's path and test for each of PROGNAME-LIST
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 case $as_dir in #(((
4828 *) as_dir=$as_dir/ ;;
4830 for ac_prog in sed gsed
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4834 as_fn_executable_p "$ac_path_SED" || continue
4835 # Check for GNU ac_path_SED and select it if it is found.
4836 # Check for GNU $ac_path_SED
4837 case `"$ac_path_SED" --version 2>&1` in
4839 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4842 printf %s 0123456789 >"conftest.in"
4845 cat "conftest.in" "conftest.in" >"conftest.tmp"
4846 mv "conftest.tmp" "conftest.in"
4847 cp "conftest.in" "conftest.nl"
4848 printf "%s\n" '' >> "conftest.nl"
4849 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4851 as_fn_arith $ac_count + 1 && ac_count=$as_val
4852 if test $ac_count -gt ${ac_path_SED_max-0}; then
4853 # Best one so far, save it but keep looking for a better one
4854 ac_cv_path_SED="$ac_path_SED"
4855 ac_path_SED_max=$ac_count
4857 # 10*(2^10) chars as input seems more than enough
4858 test $ac_count -gt 10 && break
4860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4863 $ac_path_SED_found && break 3
4868 if test -z "$ac_cv_path_SED"; then
4869 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4877 printf "%s\n" "$ac_cv_path_SED" >&6; }
4878 SED="$ac_cv_path_SED"
4881 test -z "$SED" && SED=sed
4882 Xsed="$SED -e 1s/^X//"
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4895 printf %s "checking for grep that handles long lines and -e... " >&6; }
4896 if test ${ac_cv_path_GREP+y}
4898 printf %s "(cached) " >&6
4900 if test -z "$GREP"; then
4901 ac_path_GREP_found=false
4902 # Loop through the user's path and test for each of PROGNAME-LIST
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4907 case $as_dir in #(((
4910 *) as_dir=$as_dir/ ;;
4912 for ac_prog in grep ggrep
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4916 as_fn_executable_p "$ac_path_GREP" || continue
4917 # Check for GNU ac_path_GREP and select it if it is found.
4918 # Check for GNU $ac_path_GREP
4919 case `"$ac_path_GREP" --version 2>&1` in
4921 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4924 printf %s 0123456789 >"conftest.in"
4927 cat "conftest.in" "conftest.in" >"conftest.tmp"
4928 mv "conftest.tmp" "conftest.in"
4929 cp "conftest.in" "conftest.nl"
4930 printf "%s\n" 'GREP' >> "conftest.nl"
4931 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4933 as_fn_arith $ac_count + 1 && ac_count=$as_val
4934 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4935 # Best one so far, save it but keep looking for a better one
4936 ac_cv_path_GREP="$ac_path_GREP"
4937 ac_path_GREP_max=$ac_count
4939 # 10*(2^10) chars as input seems more than enough
4940 test $ac_count -gt 10 && break
4942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4945 $ac_path_GREP_found && break 3
4950 if test -z "$ac_cv_path_GREP"; then
4951 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4954 ac_cv_path_GREP=$GREP
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4959 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4960 GREP="$ac_cv_path_GREP"
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4964 printf %s "checking for egrep... " >&6; }
4965 if test ${ac_cv_path_EGREP+y}
4967 printf %s "(cached) " >&6
4969 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4970 then ac_cv_path_EGREP="$GREP -E"
4972 if test -z "$EGREP"; then
4973 ac_path_EGREP_found=false
4974 # Loop through the user's path and test for each of PROGNAME-LIST
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4979 case $as_dir in #(((
4982 *) as_dir=$as_dir/ ;;
4984 for ac_prog in egrep
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4988 as_fn_executable_p "$ac_path_EGREP" || continue
4989 # Check for GNU ac_path_EGREP and select it if it is found.
4990 # Check for GNU $ac_path_EGREP
4991 case `"$ac_path_EGREP" --version 2>&1` in
4993 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4996 printf %s 0123456789 >"conftest.in"
4999 cat "conftest.in" "conftest.in" >"conftest.tmp"
5000 mv "conftest.tmp" "conftest.in"
5001 cp "conftest.in" "conftest.nl"
5002 printf "%s\n" 'EGREP' >> "conftest.nl"
5003 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5005 as_fn_arith $ac_count + 1 && ac_count=$as_val
5006 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5007 # Best one so far, save it but keep looking for a better one
5008 ac_cv_path_EGREP="$ac_path_EGREP"
5009 ac_path_EGREP_max=$ac_count
5011 # 10*(2^10) chars as input seems more than enough
5012 test $ac_count -gt 10 && break
5014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017 $ac_path_EGREP_found && break 3
5022 if test -z "$ac_cv_path_EGREP"; then
5023 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5026 ac_cv_path_EGREP=$EGREP
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5032 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5033 EGREP="$ac_cv_path_EGREP"
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5037 printf %s "checking for fgrep... " >&6; }
5038 if test ${ac_cv_path_FGREP+y}
5040 printf %s "(cached) " >&6
5042 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5043 then ac_cv_path_FGREP="$GREP -F"
5045 if test -z "$FGREP"; then
5046 ac_path_FGREP_found=false
5047 # Loop through the user's path and test for each of PROGNAME-LIST
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5052 case $as_dir in #(((
5055 *) as_dir=$as_dir/ ;;
5057 for ac_prog in fgrep
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5061 as_fn_executable_p "$ac_path_FGREP" || continue
5062 # Check for GNU ac_path_FGREP and select it if it is found.
5063 # Check for GNU $ac_path_FGREP
5064 case `"$ac_path_FGREP" --version 2>&1` in
5066 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5069 printf %s 0123456789 >"conftest.in"
5072 cat "conftest.in" "conftest.in" >"conftest.tmp"
5073 mv "conftest.tmp" "conftest.in"
5074 cp "conftest.in" "conftest.nl"
5075 printf "%s\n" 'FGREP' >> "conftest.nl"
5076 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5078 as_fn_arith $ac_count + 1 && ac_count=$as_val
5079 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5080 # Best one so far, save it but keep looking for a better one
5081 ac_cv_path_FGREP="$ac_path_FGREP"
5082 ac_path_FGREP_max=$ac_count
5084 # 10*(2^10) chars as input seems more than enough
5085 test $ac_count -gt 10 && break
5087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090 $ac_path_FGREP_found && break 3
5095 if test -z "$ac_cv_path_FGREP"; then
5096 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5099 ac_cv_path_FGREP=$FGREP
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5105 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5106 FGREP="$ac_cv_path_FGREP"
5109 test -z "$GREP" && GREP=grep
5127 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5128 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5132 printf %s "checking how to print strings... " >&6; }
5133 # Test print first, because it will be a builtin if present.
5134 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5135 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5137 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5140 # Use this function as a fallback that always works.
5141 func_fallback_echo ()
5143 eval 'cat <<_LTECHO_EOF
5147 ECHO='func_fallback_echo'
5150 # func_echo_all arg...
5151 # Invoke $ECHO with all args, space-separated.
5158 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5159 printf "%s\n" "printf" >&6; } ;;
5160 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5161 printf "%s\n" "print -r" >&6; } ;;
5162 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5163 printf "%s\n" "cat" >&6; } ;;
5181 # Check whether --with-gnu-ld was given.
5182 if test ${with_gnu_ld+y}
5184 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5190 if test yes = "$GCC"; then
5191 # Check if gcc -print-prog-name=ld gives a path.
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5193 printf %s "checking for ld used by $CC... " >&6; }
5196 # gcc leaves a trailing carriage return, which upsets mingw
5197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5202 # Accept absolute paths.
5204 re_direlt='/[^/][^/]*/\.\./'
5205 # Canonicalize the pathname of ld
5206 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5207 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5208 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5210 test -z "$LD" && LD=$ac_prog
5213 # If it fails, then pretend we aren't using GCC.
5217 # If it is relative, then search for the first ld in PATH.
5221 elif test yes = "$with_gnu_ld"; then
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5223 printf %s "checking for GNU ld... " >&6; }
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5226 printf %s "checking for non-GNU ld... " >&6; }
5228 if test ${lt_cv_path_LD+y}
5230 printf %s "(cached) " >&6
5232 if test -z "$LD"; then
5233 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5234 for ac_dir in $PATH; do
5236 test -z "$ac_dir" && ac_dir=.
5237 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5238 lt_cv_path_LD=$ac_dir/$ac_prog
5239 # Check to see if the program is GNU ld. I'd rather use --version,
5240 # but apparently some variants of GNU ld only accept -v.
5241 # Break only if it was the GNU/non-GNU ld that we prefer.
5242 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5243 *GNU* | *'with BFD'*)
5244 test no != "$with_gnu_ld" && break
5247 test yes != "$with_gnu_ld" && break
5254 lt_cv_path_LD=$LD # Let the user override the test with a path.
5259 if test -n "$LD"; then
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5261 printf "%s\n" "$LD" >&6; }
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 printf "%s\n" "no" >&6; }
5266 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5268 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5269 if test ${lt_cv_prog_gnu_ld+y}
5271 printf %s "(cached) " >&6
5273 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5274 case `$LD -v 2>&1 </dev/null` in
5275 *GNU* | *'with BFD'*)
5276 lt_cv_prog_gnu_ld=yes
5279 lt_cv_prog_gnu_ld=no
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5284 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5285 with_gnu_ld=$lt_cv_prog_gnu_ld
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5301 printf %s "checking how to run the C preprocessor... " >&6; }
5302 # On Suns, sometimes $CPP names a directory.
5303 if test -n "$CPP" && test -d "$CPP"; then
5306 if test -z "$CPP"; then
5307 if test ${ac_cv_prog_CPP+y}
5309 printf %s "(cached) " >&6
5311 # Double quotes because $CC needs to be expanded
5312 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5315 for ac_c_preproc_warn_flag in '' yes
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # On the NeXT, cc -E runs the code through the compiler's parser,
5320 # not just through cpp. "Syntax error" is here to catch this case.
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5326 if ac_fn_c_try_cpp "$LINENO"
5330 # Broken: fails on valid input.
5333 rm -f conftest.err conftest.i conftest.$ac_ext
5335 # OK, works on sane cases. Now check whether nonexistent headers
5336 # can be detected and how.
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 #include <ac_nonexistent.h>
5341 if ac_fn_c_try_cpp "$LINENO"
5343 # Broken: success on invalid input.
5346 # Passes both tests.
5350 rm -f conftest.err conftest.i conftest.$ac_ext
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.i conftest.err conftest.$ac_ext
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5369 printf "%s\n" "$CPP" >&6; }
5371 for ac_c_preproc_warn_flag in '' yes
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # On the NeXT, cc -E runs the code through the compiler's parser,
5376 # not just through cpp. "Syntax error" is here to catch this case.
5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5382 if ac_fn_c_try_cpp "$LINENO"
5386 # Broken: fails on valid input.
5389 rm -f conftest.err conftest.i conftest.$ac_ext
5391 # OK, works on sane cases. Now check whether nonexistent headers
5392 # can be detected and how.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <ac_nonexistent.h>
5397 if ac_fn_c_try_cpp "$LINENO"
5399 # Broken: success on invalid input.
5402 # Passes both tests.
5406 rm -f conftest.err conftest.i conftest.$ac_ext
5409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5410 rm -f conftest.i conftest.err conftest.$ac_ext
5415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5416 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5417 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5418 See \`config.log' for more details" "$LINENO" 5; }
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427 for ac_prog in gawk mawk nawk awk
5429 # Extract the first word of "$ac_prog", so it can be a program name with args.
5430 set dummy $ac_prog; ac_word=$2
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 printf %s "checking for $ac_word... " >&6; }
5433 if test ${ac_cv_prog_AWK+y}
5435 printf %s "(cached) " >&6
5437 if test -n "$AWK"; then
5438 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 case $as_dir in #(((
5447 *) as_dir=$as_dir/ ;;
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_AWK="$ac_prog"
5452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5462 if test -n "$AWK"; then
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5464 printf "%s\n" "$AWK" >&6; }
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 printf "%s\n" "no" >&6; }
5471 test -n "$AWK" && break
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5476 printf %s "checking whether ln -s works... " >&6; }
5478 if test "$LN_S" = "ln -s"; then
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480 printf "%s\n" "yes" >&6; }
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5483 printf "%s\n" "no, using $LN_S" >&6; }
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5487 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5489 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5490 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5492 printf %s "(cached) " >&6
5494 cat >conftest.make <<\_ACEOF
5497 @echo '@@@%%%=$(MAKE)=@@@%%%'
5499 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5500 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5502 eval ac_cv_prog_make_${ac_make}_set=yes;;
5504 eval ac_cv_prog_make_${ac_make}_set=no;;
5508 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 printf "%s\n" "yes" >&6; }
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 printf "%s\n" "no" >&6; }
5515 SET_MAKE="MAKE=${MAKE-make}"
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5522 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5527 macro_version='2.4.7'
5528 macro_revision='2.4.7'
5543 ltmain=$ac_aux_dir/ltmain.sh
5545 # Backslashify metacharacters that are still active within
5546 # double-quoted strings.
5547 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5549 # Same as above, but do not quote variable references.
5550 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5552 # Sed substitution to delay expansion of an escaped shell variable in a
5553 # double_quote_subst'ed string.
5554 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5556 # Sed substitution to delay expansion of an escaped single quote.
5557 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5559 # Sed substitution to avoid accidental globbing in evaled expressions
5560 no_glob_subst='s/\*/\\\*/g'
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5563 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5564 if test ${lt_cv_path_NM+y}
5566 printf %s "(cached) " >&6
5568 if test -n "$NM"; then
5569 # Let the user override the test.
5572 lt_nm_to_check=${ac_tool_prefix}nm
5573 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5574 lt_nm_to_check="$lt_nm_to_check nm"
5576 for lt_tmp_nm in $lt_nm_to_check; do
5577 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5578 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5580 test -z "$ac_dir" && ac_dir=.
5581 tmp_nm=$ac_dir/$lt_tmp_nm
5582 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5583 # Check to see if the nm accepts a BSD-compat flag.
5584 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5585 # nm: unknown option "B" ignored
5586 # Tru64's nm complains that /dev/null is an invalid object file
5587 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5589 mingw*) lt_bad_file=conftest.nm/nofile ;;
5590 *) lt_bad_file=/dev/null ;;
5592 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5593 *$lt_bad_file* | *'Invalid file or object type'*)
5594 lt_cv_path_NM="$tmp_nm -B"
5598 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5600 lt_cv_path_NM="$tmp_nm -p"
5604 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5605 continue # so that we can try to find one that supports BSD flags
5614 : ${lt_cv_path_NM=no}
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5618 printf "%s\n" "$lt_cv_path_NM" >&6; }
5619 if test no != "$lt_cv_path_NM"; then
5622 # Didn't find any BSD compatible name lister, look for dumpbin.
5623 if test -n "$DUMPBIN"; then :
5624 # Let the user override the test.
5626 if test -n "$ac_tool_prefix"; then
5627 for ac_prog in dumpbin "link -dump"
5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 printf %s "checking for $ac_word... " >&6; }
5633 if test ${ac_cv_prog_DUMPBIN+y}
5635 printf %s "(cached) " >&6
5637 if test -n "$DUMPBIN"; then
5638 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 case $as_dir in #(((
5647 *) as_dir=$as_dir/ ;;
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5661 DUMPBIN=$ac_cv_prog_DUMPBIN
5662 if test -n "$DUMPBIN"; then
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5664 printf "%s\n" "$DUMPBIN" >&6; }
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 printf "%s\n" "no" >&6; }
5671 test -n "$DUMPBIN" && break
5674 if test -z "$DUMPBIN"; then
5675 ac_ct_DUMPBIN=$DUMPBIN
5676 for ac_prog in dumpbin "link -dump"
5678 # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 printf %s "checking for $ac_word... " >&6; }
5682 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5684 printf %s "(cached) " >&6
5686 if test -n "$ac_ct_DUMPBIN"; then
5687 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 case $as_dir in #(((
5696 *) as_dir=$as_dir/ ;;
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5710 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5711 if test -n "$ac_ct_DUMPBIN"; then
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5713 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 printf "%s\n" "no" >&6; }
5720 test -n "$ac_ct_DUMPBIN" && break
5723 if test "x$ac_ct_DUMPBIN" = x; then
5726 case $cross_compiling:$ac_tool_warned in
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5729 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5730 ac_tool_warned=yes ;;
5732 DUMPBIN=$ac_ct_DUMPBIN
5736 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5738 DUMPBIN="$DUMPBIN -symbols -headers"
5746 if test : != "$DUMPBIN"; then
5750 test -z "$NM" && NM=nm
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5758 printf %s "checking the name lister ($NM) interface... " >&6; }
5759 if test ${lt_cv_nm_interface+y}
5761 printf %s "(cached) " >&6
5763 lt_cv_nm_interface="BSD nm"
5764 echo "int some_variable = 0;" > conftest.$ac_ext
5765 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5766 (eval "$ac_compile" 2>conftest.err)
5767 cat conftest.err >&5
5768 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5769 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5770 cat conftest.err >&5
5771 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5772 cat conftest.out >&5
5773 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5774 lt_cv_nm_interface="MS dumpbin"
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5779 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5781 # find the maximum length of command line arguments
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5783 printf %s "checking the maximum length of command line arguments... " >&6; }
5784 if test ${lt_cv_sys_max_cmd_len+y}
5786 printf %s "(cached) " >&6
5793 # On DJGPP, this test can blow up pretty badly due to problems in libc
5794 # (any single argument exceeding 2000 bytes causes a buffer overrun
5795 # during glob expansion). Even if it were fixed, the result of this
5796 # check would be larger than it should be.
5797 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5801 # Under GNU Hurd, this test is not required because there is
5802 # no limit to the length of command line arguments.
5803 # Libtool will interpret -1 as no limit whatsoever
5804 lt_cv_sys_max_cmd_len=-1;
5807 cygwin* | mingw* | cegcc*)
5808 # On Win9x/ME, this test blows up -- it succeeds, but takes
5809 # about 5 minutes as the teststring grows exponentially.
5810 # Worse, since 9x/ME are not pre-emptively multitasking,
5811 # you end up with a "frozen" computer, even though with patience
5812 # the test eventually succeeds (with a max line length of 256k).
5813 # Instead, let's just punt: use the minimum linelength reported by
5814 # all of the supported platforms: 8192 (on NT/2K/XP).
5815 lt_cv_sys_max_cmd_len=8192;
5819 # On MiNT this can take a long time and run out of memory.
5820 lt_cv_sys_max_cmd_len=8192;
5824 # On AmigaOS with pdksh, this test takes hours, literally.
5825 # So we just punt and use a minimum line length of 8192.
5826 lt_cv_sys_max_cmd_len=8192;
5829 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5830 # This has been around since 386BSD, at least. Likely further.
5831 if test -x /sbin/sysctl; then
5832 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5833 elif test -x /usr/sbin/sysctl; then
5834 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5836 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5838 # And add a safety zone
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5844 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5845 lt_cv_sys_max_cmd_len=196608
5849 # The test takes a long time on OS/2.
5850 lt_cv_sys_max_cmd_len=8192
5854 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5855 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5856 # nice to cause kernel panics so lets avoid the loop below.
5857 # First set a reasonable default.
5858 lt_cv_sys_max_cmd_len=16384
5860 if test -x /sbin/sysconfig; then
5861 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5862 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5867 lt_cv_sys_max_cmd_len=102400
5869 sysv5* | sco5v6* | sysv4.2uw2*)
5870 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5871 if test -n "$kargmax"; then
5872 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5874 lt_cv_sys_max_cmd_len=32768
5878 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5879 if test -n "$lt_cv_sys_max_cmd_len" && \
5880 test undefined != "$lt_cv_sys_max_cmd_len"; then
5881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5884 # Make teststring a little bigger before we do anything with it.
5885 # a 1K string should be a reasonable start.
5886 for i in 1 2 3 4 5 6 7 8; do
5887 teststring=$teststring$teststring
5889 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5890 # If test is not a shell built-in, we'll probably end up computing a
5891 # maximum length that is only half of the actual maximum length, but
5893 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5894 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5895 test 17 != "$i" # 1/2 MB should be enough
5898 teststring=$teststring$teststring
5900 # Only check the string length outside the loop.
5901 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5903 # Add a significant safety factor because C++ compilers can tack on
5904 # massive amounts of additional arguments before passing them to the
5905 # linker. It appears as though 1/2 is a usable value.
5906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5913 if test -n "$lt_cv_sys_max_cmd_len"; then
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5915 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5918 printf "%s\n" "none" >&6; }
5920 max_cmd_len=$lt_cv_sys_max_cmd_len
5931 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5941 # test EBCDIC or ASCII
5942 case `echo X|tr X '\101'` in
5943 A) # ASCII based system
5944 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5945 lt_SP2NL='tr \040 \012'
5946 lt_NL2SP='tr \015\012 \040\040'
5948 *) # EBCDIC based system
5949 lt_SP2NL='tr \100 \n'
5950 lt_NL2SP='tr \r\n \100\100'
5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5963 printf %s "checking how to convert $build file names to $host format... " >&6; }
5964 if test ${lt_cv_to_host_file_cmd+y}
5966 printf %s "(cached) " >&6
5971 *-*-mingw* ) # actually msys
5972 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5975 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5977 * ) # otherwise, assume *nix
5978 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5984 *-*-mingw* ) # actually msys
5985 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5988 lt_cv_to_host_file_cmd=func_convert_file_noop
5990 * ) # otherwise, assume *nix
5991 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5995 * ) # unhandled hosts (and "normal" native builds)
5996 lt_cv_to_host_file_cmd=func_convert_file_noop
6002 to_host_file_cmd=$lt_cv_to_host_file_cmd
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6004 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6011 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6012 if test ${lt_cv_to_tool_file_cmd+y}
6014 printf %s "(cached) " >&6
6016 #assume ordinary cross tools, or native build.
6017 lt_cv_to_tool_file_cmd=func_convert_file_noop
6021 *-*-mingw* ) # actually msys
6022 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6030 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6032 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6039 printf %s "checking for $LD option to reload object files... " >&6; }
6040 if test ${lt_cv_ld_reload_flag+y}
6042 printf %s "(cached) " >&6
6044 lt_cv_ld_reload_flag='-r'
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6047 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6048 reload_flag=$lt_cv_ld_reload_flag
6049 case $reload_flag in
6051 *) reload_flag=" $reload_flag" ;;
6053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6055 cygwin* | mingw* | pw32* | cegcc*)
6056 if test yes != "$GCC"; then
6061 if test yes = "$GCC"; then
6062 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}file; ac_word=$2
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 printf %s "checking for $ac_word... " >&6; }
6082 if test ${ac_cv_prog_FILECMD+y}
6084 printf %s "(cached) " >&6
6086 if test -n "$FILECMD"; then
6087 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 case $as_dir in #(((
6096 *) as_dir=$as_dir/ ;;
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6100 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6110 FILECMD=$ac_cv_prog_FILECMD
6111 if test -n "$FILECMD"; then
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6113 printf "%s\n" "$FILECMD" >&6; }
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 printf "%s\n" "no" >&6; }
6121 if test -z "$ac_cv_prog_FILECMD"; then
6122 ac_ct_FILECMD=$FILECMD
6123 # Extract the first word of "file", so it can be a program name with args.
6124 set dummy file; ac_word=$2
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 printf %s "checking for $ac_word... " >&6; }
6127 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6129 printf %s "(cached) " >&6
6131 if test -n "$ac_ct_FILECMD"; then
6132 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 case $as_dir in #(((
6141 *) as_dir=$as_dir/ ;;
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_FILECMD="file"
6146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6155 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6156 if test -n "$ac_ct_FILECMD"; then
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6158 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 printf "%s\n" "no" >&6; }
6164 if test "x$ac_ct_FILECMD" = x; then
6167 case $cross_compiling:$ac_tool_warned in
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6173 FILECMD=$ac_ct_FILECMD
6176 FILECMD="$ac_cv_prog_FILECMD"
6185 if test -n "$ac_tool_prefix"; then
6186 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 printf %s "checking for $ac_word... " >&6; }
6190 if test ${ac_cv_prog_OBJDUMP+y}
6192 printf %s "(cached) " >&6
6194 if test -n "$OBJDUMP"; then
6195 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 case $as_dir in #(((
6204 *) as_dir=$as_dir/ ;;
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6218 OBJDUMP=$ac_cv_prog_OBJDUMP
6219 if test -n "$OBJDUMP"; then
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6221 printf "%s\n" "$OBJDUMP" >&6; }
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 printf "%s\n" "no" >&6; }
6229 if test -z "$ac_cv_prog_OBJDUMP"; then
6230 ac_ct_OBJDUMP=$OBJDUMP
6231 # Extract the first word of "objdump", so it can be a program name with args.
6232 set dummy objdump; ac_word=$2
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 printf %s "checking for $ac_word... " >&6; }
6235 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6237 printf %s "(cached) " >&6
6239 if test -n "$ac_ct_OBJDUMP"; then
6240 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 case $as_dir in #(((
6249 *) as_dir=$as_dir/ ;;
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6253 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6263 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6264 if test -n "$ac_ct_OBJDUMP"; then
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6266 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 printf "%s\n" "no" >&6; }
6272 if test "x$ac_ct_OBJDUMP" = x; then
6275 case $cross_compiling:$ac_tool_warned in
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6281 OBJDUMP=$ac_ct_OBJDUMP
6284 OBJDUMP="$ac_cv_prog_OBJDUMP"
6287 test -z "$OBJDUMP" && OBJDUMP=objdump
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6295 printf %s "checking how to recognize dependent libraries... " >&6; }
6296 if test ${lt_cv_deplibs_check_method+y}
6298 printf %s "(cached) " >&6
6300 lt_cv_file_magic_cmd='$MAGIC_CMD'
6301 lt_cv_file_magic_test_file=
6302 lt_cv_deplibs_check_method='unknown'
6303 # Need to set the preceding variable on all platforms that support
6304 # interlibrary dependencies.
6305 # 'none' -- dependencies not supported.
6306 # 'unknown' -- same as none, but documents that we really don't know.
6307 # 'pass_all' -- all dependencies passed with no checks.
6308 # 'test_compile' -- check by making test program.
6309 # 'file_magic [[regex]]' -- check by looking for files in library path
6310 # that responds to the $file_magic_cmd with a given extended regex.
6311 # If you have 'file' or equivalent on your system and you're not sure
6312 # whether 'pass_all' will *always* work, you probably want this one.
6316 lt_cv_deplibs_check_method=pass_all
6320 lt_cv_deplibs_check_method=pass_all
6324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6325 lt_cv_file_magic_cmd='$FILECMD -L'
6326 lt_cv_file_magic_test_file=/shlib/libc.so
6330 # func_win32_libid is a shell function defined in ltmain.sh
6331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6332 lt_cv_file_magic_cmd='func_win32_libid'
6336 # Base MSYS/MinGW do not provide the 'file' command needed by
6337 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6338 # unless we find 'file', for example because we are cross-compiling.
6339 if ( file / ) >/dev/null 2>&1; then
6340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6341 lt_cv_file_magic_cmd='func_win32_libid'
6343 # Keep this pattern in sync with the one in func_win32_libid.
6344 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6345 lt_cv_file_magic_cmd='$OBJDUMP -f'
6350 # use the weaker test based on 'objdump'. See mingw*.
6351 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6352 lt_cv_file_magic_cmd='$OBJDUMP -f'
6355 darwin* | rhapsody*)
6356 lt_cv_deplibs_check_method=pass_all
6359 freebsd* | dragonfly* | midnightbsd*)
6360 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6363 # Not sure whether the presence of OpenBSD here was a mistake.
6364 # Let's accept both of them until this is cleared up.
6365 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6366 lt_cv_file_magic_cmd=$FILECMD
6367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6371 lt_cv_deplibs_check_method=pass_all
6376 lt_cv_deplibs_check_method=pass_all
6379 hpux10.20* | hpux11*)
6380 lt_cv_file_magic_cmd=$FILECMD
6383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6384 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6387 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]'
6388 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6392 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6398 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6402 irix5* | irix6* | nonstopux*)
6404 *-32|*"-32 ") libmagic=32-bit;;
6405 *-n32|*"-n32 ") libmagic=N32;;
6406 *-64|*"-64 ") libmagic=64-bit;;
6407 *) libmagic=never-match;;
6409 lt_cv_deplibs_check_method=pass_all
6412 # This must be glibc/ELF.
6413 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6414 lt_cv_deplibs_check_method=pass_all
6418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6427 lt_cv_file_magic_cmd=$FILECMD
6428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6432 lt_cv_deplibs_check_method=pass_all
6436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6443 osf3* | osf4* | osf5*)
6444 lt_cv_deplibs_check_method=pass_all
6448 lt_cv_deplibs_check_method=pass_all
6452 lt_cv_deplibs_check_method=pass_all
6455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6456 lt_cv_deplibs_check_method=pass_all
6460 case $host_vendor in
6462 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]'
6463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6466 lt_cv_deplibs_check_method=pass_all
6469 lt_cv_file_magic_cmd='/bin/file'
6470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6473 lt_cv_file_magic_cmd='/bin/file'
6474 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6475 lt_cv_file_magic_test_file=/lib/libc.so
6478 lt_cv_deplibs_check_method=pass_all
6481 lt_cv_deplibs_check_method=pass_all
6487 lt_cv_deplibs_check_method=pass_all
6490 lt_cv_deplibs_check_method=pass_all
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6496 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6500 if test "$build" = "$host"; then
6503 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6506 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6512 file_magic_cmd=$lt_cv_file_magic_cmd
6513 deplibs_check_method=$lt_cv_deplibs_check_method
6514 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 printf %s "checking for $ac_word... " >&6; }
6542 if test ${ac_cv_prog_DLLTOOL+y}
6544 printf %s "(cached) " >&6
6546 if test -n "$DLLTOOL"; then
6547 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 case $as_dir in #(((
6556 *) as_dir=$as_dir/ ;;
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6570 DLLTOOL=$ac_cv_prog_DLLTOOL
6571 if test -n "$DLLTOOL"; then
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6573 printf "%s\n" "$DLLTOOL" >&6; }
6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 printf "%s\n" "no" >&6; }
6581 if test -z "$ac_cv_prog_DLLTOOL"; then
6582 ac_ct_DLLTOOL=$DLLTOOL
6583 # Extract the first word of "dlltool", so it can be a program name with args.
6584 set dummy dlltool; ac_word=$2
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 printf %s "checking for $ac_word... " >&6; }
6587 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6589 printf %s "(cached) " >&6
6591 if test -n "$ac_ct_DLLTOOL"; then
6592 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 case $as_dir in #(((
6601 *) as_dir=$as_dir/ ;;
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6615 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6616 if test -n "$ac_ct_DLLTOOL"; then
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6618 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 printf "%s\n" "no" >&6; }
6624 if test "x$ac_ct_DLLTOOL" = x; then
6627 case $cross_compiling:$ac_tool_warned in
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6633 DLLTOOL=$ac_ct_DLLTOOL
6636 DLLTOOL="$ac_cv_prog_DLLTOOL"
6639 test -z "$DLLTOOL" && DLLTOOL=dlltool
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6648 printf %s "checking how to associate runtime and link libraries... " >&6; }
6649 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6651 printf %s "(cached) " >&6
6653 lt_cv_sharedlib_from_linklib_cmd='unknown'
6656 cygwin* | mingw* | pw32* | cegcc*)
6657 # two different shell functions defined in ltmain.sh;
6658 # decide which one to use based on capabilities of $DLLTOOL
6659 case `$DLLTOOL --help 2>&1` in
6660 *--identify-strict*)
6661 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6664 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6669 # fallback: assume linklib IS sharedlib
6670 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6676 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6677 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6678 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6687 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 printf %s "checking for $ac_word... " >&6; }
6694 if test ${ac_cv_prog_AR+y}
6696 printf %s "(cached) " >&6
6698 if test -n "$AR"; then
6699 ac_cv_prog_AR="$AR" # Let the user override the test.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 case $as_dir in #(((
6708 *) as_dir=$as_dir/ ;;
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6723 if test -n "$AR"; then
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6725 printf "%s\n" "$AR" >&6; }
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 printf "%s\n" "no" >&6; }
6732 test -n "$AR" && break
6735 if test -z "$AR"; then
6739 # Extract the first word of "$ac_prog", so it can be a program name with args.
6740 set dummy $ac_prog; ac_word=$2
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 printf %s "checking for $ac_word... " >&6; }
6743 if test ${ac_cv_prog_ac_ct_AR+y}
6745 printf %s "(cached) " >&6
6747 if test -n "$ac_ct_AR"; then
6748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 case $as_dir in #(((
6757 *) as_dir=$as_dir/ ;;
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_ac_ct_AR="$ac_prog"
6762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6772 if test -n "$ac_ct_AR"; then
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6774 printf "%s\n" "$ac_ct_AR" >&6; }
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 printf "%s\n" "no" >&6; }
6781 test -n "$ac_ct_AR" && break
6784 if test "x$ac_ct_AR" = x; then
6787 case $cross_compiling:$ac_tool_warned in
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6804 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6805 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6806 # higher priority because thats what people were doing historically (setting
6807 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6808 # variable obsoleted/removed.
6810 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6811 lt_ar_flags=$AR_FLAGS
6818 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6819 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6827 printf %s "checking for archiver @FILE support... " >&6; }
6828 if test ${lt_cv_ar_at_file+y}
6830 printf %s "(cached) " >&6
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6844 if ac_fn_c_try_compile "$LINENO"
6846 echo conftest.$ac_objext > conftest.lst
6847 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6849 (eval $lt_ar_try) 2>&5
6851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }
6853 if test 0 -eq "$ac_status"; then
6854 # Ensure the archiver fails upon bogus file names.
6855 rm -f conftest.$ac_objext libconftest.a
6856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6857 (eval $lt_ar_try) 2>&5
6859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }
6861 if test 0 -ne "$ac_status"; then
6865 rm -f conftest.* libconftest.a
6868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6872 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6874 if test no = "$lt_cv_ar_at_file"; then
6877 archiver_list_spec=$lt_cv_ar_at_file
6886 if test -n "$ac_tool_prefix"; then
6887 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6888 set dummy ${ac_tool_prefix}strip; ac_word=$2
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 printf %s "checking for $ac_word... " >&6; }
6891 if test ${ac_cv_prog_STRIP+y}
6893 printf %s "(cached) " >&6
6895 if test -n "$STRIP"; then
6896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 case $as_dir in #(((
6905 *) as_dir=$as_dir/ ;;
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6919 STRIP=$ac_cv_prog_STRIP
6920 if test -n "$STRIP"; then
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6922 printf "%s\n" "$STRIP" >&6; }
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 printf "%s\n" "no" >&6; }
6930 if test -z "$ac_cv_prog_STRIP"; then
6932 # Extract the first word of "strip", so it can be a program name with args.
6933 set dummy strip; ac_word=$2
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 printf %s "checking for $ac_word... " >&6; }
6936 if test ${ac_cv_prog_ac_ct_STRIP+y}
6938 printf %s "(cached) " >&6
6940 if test -n "$ac_ct_STRIP"; then
6941 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 case $as_dir in #(((
6950 *) as_dir=$as_dir/ ;;
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_STRIP="strip"
6955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6965 if test -n "$ac_ct_STRIP"; then
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6967 printf "%s\n" "$ac_ct_STRIP" >&6; }
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 printf "%s\n" "no" >&6; }
6973 if test "x$ac_ct_STRIP" = x; then
6976 case $cross_compiling:$ac_tool_warned in
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6980 ac_tool_warned=yes ;;
6985 STRIP="$ac_cv_prog_STRIP"
6988 test -z "$STRIP" && STRIP=:
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 printf %s "checking for $ac_word... " >&6; }
7000 if test ${ac_cv_prog_RANLIB+y}
7002 printf %s "(cached) " >&6
7004 if test -n "$RANLIB"; then
7005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 case $as_dir in #(((
7014 *) as_dir=$as_dir/ ;;
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7028 RANLIB=$ac_cv_prog_RANLIB
7029 if test -n "$RANLIB"; then
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7031 printf "%s\n" "$RANLIB" >&6; }
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 printf "%s\n" "no" >&6; }
7039 if test -z "$ac_cv_prog_RANLIB"; then
7040 ac_ct_RANLIB=$RANLIB
7041 # Extract the first word of "ranlib", so it can be a program name with args.
7042 set dummy ranlib; ac_word=$2
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 printf %s "checking for $ac_word... " >&6; }
7045 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7047 printf %s "(cached) " >&6
7049 if test -n "$ac_ct_RANLIB"; then
7050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 case $as_dir in #(((
7059 *) as_dir=$as_dir/ ;;
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_ac_ct_RANLIB="ranlib"
7064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7074 if test -n "$ac_ct_RANLIB"; then
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7076 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 printf "%s\n" "no" >&6; }
7082 if test "x$ac_ct_RANLIB" = x; then
7085 case $cross_compiling:$ac_tool_warned in
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089 ac_tool_warned=yes ;;
7091 RANLIB=$ac_ct_RANLIB
7094 RANLIB="$ac_cv_prog_RANLIB"
7097 test -z "$RANLIB" && RANLIB=:
7104 # Determine commands to create old-style static archives.
7105 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7106 old_postinstall_cmds='chmod 644 $oldlib'
7107 old_postuninstall_cmds=
7109 if test -n "$RANLIB"; then
7112 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7115 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7118 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7123 lock_old_archive_extraction=yes ;;
7125 lock_old_archive_extraction=no ;;
7166 # If no C compiler was specified, use CC.
7169 # If no C compiler flags were specified, use CFLAGS.
7170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7172 # Allow CC to be a program name with arguments.
7176 # Check for command to grab the raw symbol name followed by C symbol from nm.
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7178 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7179 if test ${lt_cv_sys_global_symbol_pipe+y}
7181 printf %s "(cached) " >&6
7184 # These are sane defaults that work on at least a few old systems.
7185 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7187 # Character class describing NM global symbol codes.
7188 symcode='[BCDEGRST]'
7190 # Regexp to match symbols that can be accessed directly from C.
7191 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7193 # Define system-specific variables.
7198 cygwin* | mingw* | pw32* | cegcc*)
7199 symcode='[ABCDGISTW]'
7202 if test ia64 = "$host_cpu"; then
7203 symcode='[ABCDEGRST]'
7207 symcode='[BCDEGRST]'
7210 symcode='[BCDEGQRST]'
7221 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7229 # If we're using GNU nm, then use its standard symbol codes.
7230 case `$NM -V 2>&1` in
7231 *GNU* | *'with BFD'*)
7232 symcode='[ABCDGIRSTW]' ;;
7235 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7236 # Gets list of data symbols to import.
7237 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7238 # Adjust the below global symbol transforms to fixup imported variables.
7239 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7240 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7241 lt_c_name_lib_hook="\
7242 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7243 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7245 # Disable hooks by default.
7246 lt_cv_sys_global_symbol_to_import=
7252 # Transform an extracted symbol line into a proper C declaration.
7253 # Some systems (esp. on ia64) link data and code symbols differently,
7254 # so use this general approach.
7255 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7257 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7258 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7260 # Transform an extracted symbol line into symbol name and symbol address
7261 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7263 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7264 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7266 # Transform an extracted symbol line into symbol name with lib prefix and
7268 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7269 $lt_c_name_lib_hook\
7270 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7271 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7272 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7274 # Handle CRLF in mingw tool chain
7278 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7282 # Try without a prefix underscore, then with it.
7283 for ac_symprfx in "" "_"; do
7285 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7286 symxfrm="\\1 $ac_symprfx\\2 \\2"
7288 # Write the raw and C identifiers.
7289 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7290 # Fake it for dumpbin and say T for any non-static function,
7291 # D for any global variable and I for any imported variable.
7292 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7293 # which start with @ or ?.
7294 lt_cv_sys_global_symbol_pipe="$AWK '"\
7295 " {last_section=section; section=\$ 3};"\
7296 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7297 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7298 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7299 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7300 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7301 " \$ 0!~/External *\|/{next};"\
7302 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7303 " {if(hide[section]) next};"\
7304 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7305 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7306 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7307 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7308 " ' prfx=^$ac_symprfx"
7310 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7312 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7314 # Check to see that the pipe works correctly.
7318 cat > conftest.$ac_ext <<_LT_EOF
7323 void nm_test_func(void);
7324 void nm_test_func(void){}
7328 int main(){nm_test_var='a';nm_test_func();return(0);}
7331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7332 (eval $ac_compile) 2>&5
7334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7335 test $ac_status = 0; }; then
7336 # Now try to grab the symbols.
7338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7339 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342 test $ac_status = 0; } && test -s "$nlist"; then
7343 # Try sorting and uniquifying the output.
7344 if sort "$nlist" | uniq > "$nlist"T; then
7345 mv -f "$nlist"T "$nlist"
7350 # Make sure that we snagged all the symbols we need.
7351 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7352 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7353 cat <<_LT_EOF > conftest.$ac_ext
7354 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7355 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7356 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7357 relocations are performed -- see ld's documentation on pseudo-relocs. */
7358 # define LT_DLSYM_CONST
7359 #elif defined __osf__
7360 /* This system does not cope well with relocations in const data. */
7361 # define LT_DLSYM_CONST
7363 # define LT_DLSYM_CONST const
7371 # Now generate the symbol file.
7372 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7374 cat <<_LT_EOF >> conftest.$ac_ext
7376 /* The mapping between symbol names and symbols. */
7377 LT_DLSYM_CONST struct {
7381 lt__PROGRAM__LTX_preloaded_symbols[] =
7383 { "@PROGRAM@", (void *) 0 },
7385 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7386 cat <<\_LT_EOF >> conftest.$ac_ext
7390 /* This works around a problem in FreeBSD linker */
7391 #ifdef FREEBSD_WORKAROUND
7392 static const void *lt_preloaded_setup() {
7393 return lt__PROGRAM__LTX_preloaded_symbols;
7401 # Now try linking the two files.
7402 mv conftest.$ac_objext conftstm.$ac_objext
7403 lt_globsym_save_LIBS=$LIBS
7404 lt_globsym_save_CFLAGS=$CFLAGS
7405 LIBS=conftstm.$ac_objext
7406 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7408 (eval $ac_link) 2>&5
7410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7414 LIBS=$lt_globsym_save_LIBS
7415 CFLAGS=$lt_globsym_save_CFLAGS
7417 echo "cannot find nm_test_func in $nlist" >&5
7420 echo "cannot find nm_test_var in $nlist" >&5
7423 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7426 echo "$progname: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7429 rm -rf conftest* conftst*
7431 # Do not use the global_symbol_pipe unless it works.
7432 if test yes = "$pipe_works"; then
7435 lt_cv_sys_global_symbol_pipe=
7441 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7442 lt_cv_sys_global_symbol_to_cdecl=
7444 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7446 printf "%s\n" "failed" >&6; }
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7449 printf "%s\n" "ok" >&6; }
7452 # Response file support.
7453 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7454 nm_file_list_spec='@'
7455 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7456 nm_file_list_spec='@'
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7496 printf %s "checking for sysroot... " >&6; }
7498 # Check whether --with-sysroot was given.
7499 if test ${with_sysroot+y}
7501 withval=$with_sysroot;
7508 case $with_sysroot in #(
7510 if test yes = "$GCC"; then
7511 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7515 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7521 printf "%s\n" "$with_sysroot" >&6; }
7522 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7527 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7534 printf %s "checking for a working dd... " >&6; }
7535 if test ${ac_cv_path_lt_DD+y}
7537 printf %s "(cached) " >&6
7539 printf 0123456789abcdef0123456789abcdef >conftest.i
7540 cat conftest.i conftest.i >conftest2.i
7542 if test -z "$lt_DD"; then
7543 ac_path_lt_DD_found=false
7544 # Loop through the user's path and test for each of PROGNAME-LIST
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 case $as_dir in #(((
7552 *) as_dir=$as_dir/ ;;
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7558 as_fn_executable_p "$ac_path_lt_DD" || continue
7559 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7560 cmp -s conftest.i conftest.out \
7561 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7563 $ac_path_lt_DD_found && break 3
7568 if test -z "$ac_cv_path_lt_DD"; then
7572 ac_cv_path_lt_DD=$lt_DD
7575 rm -f conftest.i conftest2.i conftest.out
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7578 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7582 printf %s "checking how to truncate binary pipes... " >&6; }
7583 if test ${lt_cv_truncate_bin+y}
7585 printf %s "(cached) " >&6
7587 printf 0123456789abcdef0123456789abcdef >conftest.i
7588 cat conftest.i conftest.i >conftest2.i
7590 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7591 cmp -s conftest.i conftest.out \
7592 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7594 rm -f conftest.i conftest2.i conftest.out
7595 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7598 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7606 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7609 for cc_temp in $*""; do
7611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7617 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7620 # Check whether --enable-libtool-lock was given.
7621 if test ${enable_libtool_lock+y}
7623 enableval=$enable_libtool_lock;
7626 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7628 # Some flags need to be propagated to the compiler or linker for good
7632 # Find out what ABI is being produced by ac_compile, and set mode
7633 # options accordingly.
7634 echo 'int i;' > conftest.$ac_ext
7635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7636 (eval $ac_compile) 2>&5
7638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }; then
7640 case `$FILECMD conftest.$ac_objext` in
7652 # Find out what ABI is being produced by ac_compile, and set linker
7653 # options accordingly.
7654 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7656 (eval $ac_compile) 2>&5
7658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659 test $ac_status = 0; }; then
7660 if test yes = "$lt_cv_prog_gnu_ld"; then
7661 case `$FILECMD conftest.$ac_objext` in
7663 LD="${LD-ld} -melf32bsmip"
7666 LD="${LD-ld} -melf32bmipn32"
7669 LD="${LD-ld} -melf64bmip"
7673 case `$FILECMD conftest.$ac_objext` in
7690 # Find out what ABI is being produced by ac_compile, and set linker
7691 # options accordingly.
7692 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7694 (eval $ac_compile) 2>&5
7696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697 test $ac_status = 0; }; then
7699 case `$FILECMD conftest.$ac_objext` in
7707 case `$FILECMD conftest.$ac_objext` in
7709 emul="${emul}btsmip"
7712 emul="${emul}ltsmip"
7715 case `$FILECMD conftest.$ac_objext` in
7720 LD="${LD-ld} -m $emul"
7725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7726 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7727 # Find out what ABI is being produced by ac_compile, and set linker
7728 # options accordingly. Note that the listed cases only cover the
7729 # situations where additional linker options are needed (such as when
7730 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7731 # vice versa); the common cases where no linker options are needed do
7732 # not appear in the list.
7733 echo 'int i;' > conftest.$ac_ext
7734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7735 (eval $ac_compile) 2>&5
7737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7738 test $ac_status = 0; }; then
7739 case `$FILECMD conftest.o` in
7742 x86_64-*kfreebsd*-gnu)
7743 LD="${LD-ld} -m elf_i386_fbsd"
7746 case `$FILECMD conftest.o` in
7748 LD="${LD-ld} -m elf32_x86_64"
7751 LD="${LD-ld} -m elf_i386"
7755 powerpc64le-*linux*)
7756 LD="${LD-ld} -m elf32lppclinux"
7759 LD="${LD-ld} -m elf32ppclinux"
7762 LD="${LD-ld} -m elf_s390"
7765 LD="${LD-ld} -m elf32_sparc"
7771 x86_64-*kfreebsd*-gnu)
7772 LD="${LD-ld} -m elf_x86_64_fbsd"
7775 LD="${LD-ld} -m elf_x86_64"
7778 LD="${LD-ld} -m elf64lppc"
7781 LD="${LD-ld} -m elf64ppc"
7783 s390*-*linux*|s390*-*tpf*)
7784 LD="${LD-ld} -m elf64_s390"
7787 LD="${LD-ld} -m elf64_sparc"
7797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7799 CFLAGS="$CFLAGS -belf"
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7801 printf %s "checking whether the C compiler needs -belf... " >&6; }
7802 if test ${lt_cv_cc_needs_belf+y}
7804 printf %s "(cached) " >&6
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7823 if ac_fn_c_try_link "$LINENO"
7825 lt_cv_cc_needs_belf=yes
7827 lt_cv_cc_needs_belf=no
7829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7830 conftest$ac_exeext conftest.$ac_ext
7832 ac_cpp='$CPP $CPPFLAGS'
7833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7839 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7840 if test yes != "$lt_cv_cc_needs_belf"; then
7841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7846 # Find out what ABI is being produced by ac_compile, and set linker
7847 # options accordingly.
7848 echo 'int i;' > conftest.$ac_ext
7849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7850 (eval $ac_compile) 2>&5
7852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; }; then
7854 case `$FILECMD conftest.o` in
7856 case $lt_cv_prog_gnu_ld in
7859 i?86-*-solaris*|x86_64-*-solaris*)
7860 LD="${LD-ld} -m elf_x86_64"
7863 LD="${LD-ld} -m elf64_sparc"
7866 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7867 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7872 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7884 need_locks=$enable_libtool_lock
7886 if test -n "$ac_tool_prefix"; then
7887 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7888 set dummy ${ac_tool_prefix}mt; ac_word=$2
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 printf %s "checking for $ac_word... " >&6; }
7891 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7893 printf %s "(cached) " >&6
7895 if test -n "$MANIFEST_TOOL"; then
7896 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 case $as_dir in #(((
7905 *) as_dir=$as_dir/ ;;
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7919 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7920 if test -n "$MANIFEST_TOOL"; then
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7922 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 printf "%s\n" "no" >&6; }
7930 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7931 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7932 # Extract the first word of "mt", so it can be a program name with args.
7933 set dummy mt; ac_word=$2
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 printf %s "checking for $ac_word... " >&6; }
7936 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7938 printf %s "(cached) " >&6
7940 if test -n "$ac_ct_MANIFEST_TOOL"; then
7941 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 case $as_dir in #(((
7950 *) as_dir=$as_dir/ ;;
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7964 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7965 if test -n "$ac_ct_MANIFEST_TOOL"; then
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7967 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 printf "%s\n" "no" >&6; }
7973 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7976 case $cross_compiling:$ac_tool_warned in
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7982 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7985 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7988 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7990 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7991 if test ${lt_cv_path_mainfest_tool+y}
7993 printf %s "(cached) " >&6
7995 lt_cv_path_mainfest_tool=no
7996 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7997 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7998 cat conftest.err >&5
7999 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8000 lt_cv_path_mainfest_tool=yes
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8005 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8006 if test yes != "$lt_cv_path_mainfest_tool"; then
8016 rhapsody* | darwin*)
8017 if test -n "$ac_tool_prefix"; then
8018 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8019 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 printf %s "checking for $ac_word... " >&6; }
8022 if test ${ac_cv_prog_DSYMUTIL+y}
8024 printf %s "(cached) " >&6
8026 if test -n "$DSYMUTIL"; then
8027 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 case $as_dir in #(((
8036 *) as_dir=$as_dir/ ;;
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8040 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8050 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8051 if test -n "$DSYMUTIL"; then
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8053 printf "%s\n" "$DSYMUTIL" >&6; }
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 printf "%s\n" "no" >&6; }
8061 if test -z "$ac_cv_prog_DSYMUTIL"; then
8062 ac_ct_DSYMUTIL=$DSYMUTIL
8063 # Extract the first word of "dsymutil", so it can be a program name with args.
8064 set dummy dsymutil; ac_word=$2
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 printf %s "checking for $ac_word... " >&6; }
8067 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8069 printf %s "(cached) " >&6
8071 if test -n "$ac_ct_DSYMUTIL"; then
8072 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 case $as_dir in #(((
8081 *) as_dir=$as_dir/ ;;
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8085 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8095 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8096 if test -n "$ac_ct_DSYMUTIL"; then
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8098 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 printf "%s\n" "no" >&6; }
8104 if test "x$ac_ct_DSYMUTIL" = x; then
8107 case $cross_compiling:$ac_tool_warned in
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8110 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8111 ac_tool_warned=yes ;;
8113 DSYMUTIL=$ac_ct_DSYMUTIL
8116 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8119 if test -n "$ac_tool_prefix"; then
8120 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8121 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 printf %s "checking for $ac_word... " >&6; }
8124 if test ${ac_cv_prog_NMEDIT+y}
8126 printf %s "(cached) " >&6
8128 if test -n "$NMEDIT"; then
8129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 case $as_dir in #(((
8138 *) as_dir=$as_dir/ ;;
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8152 NMEDIT=$ac_cv_prog_NMEDIT
8153 if test -n "$NMEDIT"; then
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8155 printf "%s\n" "$NMEDIT" >&6; }
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 printf "%s\n" "no" >&6; }
8163 if test -z "$ac_cv_prog_NMEDIT"; then
8164 ac_ct_NMEDIT=$NMEDIT
8165 # Extract the first word of "nmedit", so it can be a program name with args.
8166 set dummy nmedit; ac_word=$2
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 printf %s "checking for $ac_word... " >&6; }
8169 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8171 printf %s "(cached) " >&6
8173 if test -n "$ac_ct_NMEDIT"; then
8174 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 case $as_dir in #(((
8183 *) as_dir=$as_dir/ ;;
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8197 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8198 if test -n "$ac_ct_NMEDIT"; then
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8200 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 printf "%s\n" "no" >&6; }
8206 if test "x$ac_ct_NMEDIT" = x; then
8209 case $cross_compiling:$ac_tool_warned in
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213 ac_tool_warned=yes ;;
8215 NMEDIT=$ac_ct_NMEDIT
8218 NMEDIT="$ac_cv_prog_NMEDIT"
8221 if test -n "$ac_tool_prefix"; then
8222 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8223 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 printf %s "checking for $ac_word... " >&6; }
8226 if test ${ac_cv_prog_LIPO+y}
8228 printf %s "(cached) " >&6
8230 if test -n "$LIPO"; then
8231 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 case $as_dir in #(((
8240 *) as_dir=$as_dir/ ;;
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8254 LIPO=$ac_cv_prog_LIPO
8255 if test -n "$LIPO"; then
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8257 printf "%s\n" "$LIPO" >&6; }
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 printf "%s\n" "no" >&6; }
8265 if test -z "$ac_cv_prog_LIPO"; then
8267 # Extract the first word of "lipo", so it can be a program name with args.
8268 set dummy lipo; ac_word=$2
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 printf %s "checking for $ac_word... " >&6; }
8271 if test ${ac_cv_prog_ac_ct_LIPO+y}
8273 printf %s "(cached) " >&6
8275 if test -n "$ac_ct_LIPO"; then
8276 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 case $as_dir in #(((
8285 *) as_dir=$as_dir/ ;;
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8289 ac_cv_prog_ac_ct_LIPO="lipo"
8290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8299 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8300 if test -n "$ac_ct_LIPO"; then
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8302 printf "%s\n" "$ac_ct_LIPO" >&6; }
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 printf "%s\n" "no" >&6; }
8308 if test "x$ac_ct_LIPO" = x; then
8311 case $cross_compiling:$ac_tool_warned in
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315 ac_tool_warned=yes ;;
8320 LIPO="$ac_cv_prog_LIPO"
8323 if test -n "$ac_tool_prefix"; then
8324 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8325 set dummy ${ac_tool_prefix}otool; ac_word=$2
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 printf %s "checking for $ac_word... " >&6; }
8328 if test ${ac_cv_prog_OTOOL+y}
8330 printf %s "(cached) " >&6
8332 if test -n "$OTOOL"; then
8333 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 case $as_dir in #(((
8342 *) as_dir=$as_dir/ ;;
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8346 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8356 OTOOL=$ac_cv_prog_OTOOL
8357 if test -n "$OTOOL"; then
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8359 printf "%s\n" "$OTOOL" >&6; }
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 printf "%s\n" "no" >&6; }
8367 if test -z "$ac_cv_prog_OTOOL"; then
8369 # Extract the first word of "otool", so it can be a program name with args.
8370 set dummy otool; ac_word=$2
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 printf %s "checking for $ac_word... " >&6; }
8373 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8375 printf %s "(cached) " >&6
8377 if test -n "$ac_ct_OTOOL"; then
8378 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 case $as_dir in #(((
8387 *) as_dir=$as_dir/ ;;
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_ac_ct_OTOOL="otool"
8392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8401 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8402 if test -n "$ac_ct_OTOOL"; then
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8404 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 printf "%s\n" "no" >&6; }
8410 if test "x$ac_ct_OTOOL" = x; then
8413 case $cross_compiling:$ac_tool_warned in
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8416 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8417 ac_tool_warned=yes ;;
8422 OTOOL="$ac_cv_prog_OTOOL"
8425 if test -n "$ac_tool_prefix"; then
8426 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8427 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 printf %s "checking for $ac_word... " >&6; }
8430 if test ${ac_cv_prog_OTOOL64+y}
8432 printf %s "(cached) " >&6
8434 if test -n "$OTOOL64"; then
8435 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 case $as_dir in #(((
8444 *) as_dir=$as_dir/ ;;
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8458 OTOOL64=$ac_cv_prog_OTOOL64
8459 if test -n "$OTOOL64"; then
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8461 printf "%s\n" "$OTOOL64" >&6; }
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 printf "%s\n" "no" >&6; }
8469 if test -z "$ac_cv_prog_OTOOL64"; then
8470 ac_ct_OTOOL64=$OTOOL64
8471 # Extract the first word of "otool64", so it can be a program name with args.
8472 set dummy otool64; ac_word=$2
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 printf %s "checking for $ac_word... " >&6; }
8475 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8477 printf %s "(cached) " >&6
8479 if test -n "$ac_ct_OTOOL64"; then
8480 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 case $as_dir in #(((
8489 *) as_dir=$as_dir/ ;;
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_ac_ct_OTOOL64="otool64"
8494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8503 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8504 if test -n "$ac_ct_OTOOL64"; then
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8506 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 printf "%s\n" "no" >&6; }
8512 if test "x$ac_ct_OTOOL64" = x; then
8515 case $cross_compiling:$ac_tool_warned in
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8518 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8519 ac_tool_warned=yes ;;
8521 OTOOL64=$ac_ct_OTOOL64
8524 OTOOL64="$ac_cv_prog_OTOOL64"
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8554 printf %s "checking for -single_module linker flag... " >&6; }
8555 if test ${lt_cv_apple_cc_single_mod+y}
8557 printf %s "(cached) " >&6
8559 lt_cv_apple_cc_single_mod=no
8560 if test -z "$LT_MULTI_MODULE"; then
8561 # By default we will add the -single_module flag. You can override
8562 # by either setting the environment variable LT_MULTI_MODULE
8563 # non-empty at configure time, or by adding -multi_module to the
8565 rm -rf libconftest.dylib*
8566 echo "int foo(void){return 1;}" > conftest.c
8567 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8568 -dynamiclib -Wl,-single_module conftest.c" >&5
8569 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8570 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8572 # If there is a non-empty error log, and "single_module"
8573 # appears in it, assume the flag caused a linker warning
8574 if test -s conftest.err && $GREP single_module conftest.err; then
8575 cat conftest.err >&5
8576 # Otherwise, if the output was created with a 0 exit code from
8577 # the compiler, it worked.
8578 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8579 lt_cv_apple_cc_single_mod=yes
8581 cat conftest.err >&5
8583 rm -rf libconftest.dylib*
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8588 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8591 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8592 if test ${lt_cv_ld_exported_symbols_list+y}
8594 printf %s "(cached) " >&6
8596 lt_cv_ld_exported_symbols_list=no
8597 save_LDFLAGS=$LDFLAGS
8598 echo "_main" > conftest.sym
8599 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8611 if ac_fn_c_try_link "$LINENO"
8613 lt_cv_ld_exported_symbols_list=yes
8615 lt_cv_ld_exported_symbols_list=no
8617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8618 conftest$ac_exeext conftest.$ac_ext
8619 LDFLAGS=$save_LDFLAGS
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8623 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8626 printf %s "checking for -force_load linker flag... " >&6; }
8627 if test ${lt_cv_ld_force_load+y}
8629 printf %s "(cached) " >&6
8631 lt_cv_ld_force_load=no
8632 cat > conftest.c << _LT_EOF
8633 int forced_loaded() { return 2;}
8635 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8636 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8637 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8638 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8639 echo "$RANLIB libconftest.a" >&5
8640 $RANLIB libconftest.a 2>&5
8641 cat > conftest.c << _LT_EOF
8642 int main() { return 0;}
8644 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8645 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8647 if test -s conftest.err && $GREP force_load conftest.err; then
8648 cat conftest.err >&5
8649 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8650 lt_cv_ld_force_load=yes
8652 cat conftest.err >&5
8654 rm -f conftest.err libconftest.a conftest conftest.c
8655 rm -rf conftest.dSYM
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8659 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8661 rhapsody* | darwin1.[012])
8662 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8664 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8666 case $MACOSX_DEPLOYMENT_TARGET,$host in
8667 10.[012],*|,*powerpc*-darwin[5-8]*)
8668 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8670 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8674 if test yes = "$lt_cv_apple_cc_single_mod"; then
8675 _lt_dar_single_mod='$single_module'
8677 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8678 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8680 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8682 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8683 _lt_dsymutil='~$DSYMUTIL $lib || :'
8690 # func_munge_path_list VARIABLE PATH
8691 # -----------------------------------
8692 # VARIABLE is name of variable containing _space_ separated list of
8693 # directories to be munged by the contents of PATH, which is string
8696 # string "DIR[ DIR]" will be prepended to VARIABLE
8698 # string "DIR[ DIR]" will be appended to VARIABLE
8699 # "DIRP[:DIRP]::[DIRA:]DIRA"
8700 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8701 # "DIRA[ DIRA]" will be appended to VARIABLE
8703 # VARIABLE will be replaced by "DIR[ DIR]"
8704 func_munge_path_list ()
8710 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8713 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8716 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8717 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8720 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8725 ac_header= ac_cache=
8726 for ac_item in $ac_header_c_list
8728 if test $ac_cache; then
8729 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8730 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8731 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8733 ac_header= ac_cache=
8734 elif test $ac_header; then
8748 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8751 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8754 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8756 if test "x$ac_cv_header_dlfcn_h" = xyes
8758 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8767 enable_win32_dll=yes
8770 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8771 if test -n "$ac_tool_prefix"; then
8772 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8773 set dummy ${ac_tool_prefix}as; ac_word=$2
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 printf %s "checking for $ac_word... " >&6; }
8776 if test ${ac_cv_prog_AS+y}
8778 printf %s "(cached) " >&6
8780 if test -n "$AS"; then
8781 ac_cv_prog_AS="$AS" # Let the user override the test.
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 case $as_dir in #(((
8790 *) as_dir=$as_dir/ ;;
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8794 ac_cv_prog_AS="${ac_tool_prefix}as"
8795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8805 if test -n "$AS"; then
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8807 printf "%s\n" "$AS" >&6; }
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 printf "%s\n" "no" >&6; }
8815 if test -z "$ac_cv_prog_AS"; then
8817 # Extract the first word of "as", so it can be a program name with args.
8818 set dummy as; ac_word=$2
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 printf %s "checking for $ac_word... " >&6; }
8821 if test ${ac_cv_prog_ac_ct_AS+y}
8823 printf %s "(cached) " >&6
8825 if test -n "$ac_ct_AS"; then
8826 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 case $as_dir in #(((
8835 *) as_dir=$as_dir/ ;;
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8839 ac_cv_prog_ac_ct_AS="as"
8840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8849 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8850 if test -n "$ac_ct_AS"; then
8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8852 printf "%s\n" "$ac_ct_AS" >&6; }
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 printf "%s\n" "no" >&6; }
8858 if test "x$ac_ct_AS" = x; then
8861 case $cross_compiling:$ac_tool_warned in
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8864 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8865 ac_tool_warned=yes ;;
8873 if test -n "$ac_tool_prefix"; then
8874 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8875 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 printf %s "checking for $ac_word... " >&6; }
8878 if test ${ac_cv_prog_DLLTOOL+y}
8880 printf %s "(cached) " >&6
8882 if test -n "$DLLTOOL"; then
8883 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 case $as_dir in #(((
8892 *) as_dir=$as_dir/ ;;
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8896 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8906 DLLTOOL=$ac_cv_prog_DLLTOOL
8907 if test -n "$DLLTOOL"; then
8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8909 printf "%s\n" "$DLLTOOL" >&6; }
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 printf "%s\n" "no" >&6; }
8917 if test -z "$ac_cv_prog_DLLTOOL"; then
8918 ac_ct_DLLTOOL=$DLLTOOL
8919 # Extract the first word of "dlltool", so it can be a program name with args.
8920 set dummy dlltool; ac_word=$2
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 printf %s "checking for $ac_word... " >&6; }
8923 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8925 printf %s "(cached) " >&6
8927 if test -n "$ac_ct_DLLTOOL"; then
8928 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 case $as_dir in #(((
8937 *) as_dir=$as_dir/ ;;
8939 for ac_exec_ext in '' $ac_executable_extensions; do
8940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8941 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8951 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8952 if test -n "$ac_ct_DLLTOOL"; then
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8954 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 printf "%s\n" "no" >&6; }
8960 if test "x$ac_ct_DLLTOOL" = x; then
8963 case $cross_compiling:$ac_tool_warned in
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8966 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8967 ac_tool_warned=yes ;;
8969 DLLTOOL=$ac_ct_DLLTOOL
8972 DLLTOOL="$ac_cv_prog_DLLTOOL"
8975 if test -n "$ac_tool_prefix"; then
8976 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8977 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 printf %s "checking for $ac_word... " >&6; }
8980 if test ${ac_cv_prog_OBJDUMP+y}
8982 printf %s "(cached) " >&6
8984 if test -n "$OBJDUMP"; then
8985 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 case $as_dir in #(((
8994 *) as_dir=$as_dir/ ;;
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8998 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9008 OBJDUMP=$ac_cv_prog_OBJDUMP
9009 if test -n "$OBJDUMP"; then
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9011 printf "%s\n" "$OBJDUMP" >&6; }
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 printf "%s\n" "no" >&6; }
9019 if test -z "$ac_cv_prog_OBJDUMP"; then
9020 ac_ct_OBJDUMP=$OBJDUMP
9021 # Extract the first word of "objdump", so it can be a program name with args.
9022 set dummy objdump; ac_word=$2
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024 printf %s "checking for $ac_word... " >&6; }
9025 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9027 printf %s "(cached) " >&6
9029 if test -n "$ac_ct_OBJDUMP"; then
9030 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 case $as_dir in #(((
9039 *) as_dir=$as_dir/ ;;
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9043 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9053 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9054 if test -n "$ac_ct_OBJDUMP"; then
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9056 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 printf "%s\n" "no" >&6; }
9062 if test "x$ac_ct_OBJDUMP" = x; then
9065 case $cross_compiling:$ac_tool_warned in
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9068 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9069 ac_tool_warned=yes ;;
9071 OBJDUMP=$ac_ct_OBJDUMP
9074 OBJDUMP="$ac_cv_prog_OBJDUMP"
9080 test -z "$AS" && AS=as
9086 test -z "$DLLTOOL" && DLLTOOL=dlltool
9092 test -z "$OBJDUMP" && OBJDUMP=objdump
9104 # Check whether --enable-shared was given.
9105 if test ${enable_shared+y}
9107 enableval=$enable_shared; p=${PACKAGE-default}
9109 yes) enable_shared=yes ;;
9110 no) enable_shared=no ;;
9113 # Look at the argument we got. We use all the common list separators.
9114 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9115 for pkg in $enableval; do
9117 if test "X$pkg" = "X$p"; then
9136 # Check whether --enable-static was given.
9137 if test ${enable_static+y}
9139 enableval=$enable_static; p=${PACKAGE-default}
9141 yes) enable_static=yes ;;
9142 no) enable_static=no ;;
9145 # Look at the argument we got. We use all the common list separators.
9146 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9147 for pkg in $enableval; do
9149 if test "X$pkg" = "X$p"; then
9169 # Check whether --with-pic was given.
9170 if test ${with_pic+y}
9172 withval=$with_pic; lt_p=${PACKAGE-default}
9174 yes|no) pic_mode=$withval ;;
9177 # Look at the argument we got. We use all the common list separators.
9178 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9179 for lt_pkg in $withval; do
9181 if test "X$lt_pkg" = "X$lt_p"; then
9199 # Check whether --enable-fast-install was given.
9200 if test ${enable_fast_install+y}
9202 enableval=$enable_fast_install; p=${PACKAGE-default}
9204 yes) enable_fast_install=yes ;;
9205 no) enable_fast_install=no ;;
9207 enable_fast_install=no
9208 # Look at the argument we got. We use all the common list separators.
9209 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9210 for pkg in $enableval; do
9212 if test "X$pkg" = "X$p"; then
9213 enable_fast_install=yes
9220 enable_fast_install=yes
9230 shared_archive_member_spec=
9231 case $host,$enable_shared in
9232 power*-*-aix[5-9]*,yes)
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9234 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9236 # Check whether --with-aix-soname was given.
9237 if test ${with_aix_soname+y}
9239 withval=$with_aix_soname; case $withval in
9243 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9246 lt_cv_with_aix_soname=$with_aix_soname
9248 if test ${lt_cv_with_aix_soname+y}
9250 printf %s "(cached) " >&6
9252 lt_cv_with_aix_soname=aix
9255 with_aix_soname=$lt_cv_with_aix_soname
9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9259 printf "%s\n" "$with_aix_soname" >&6; }
9260 if test aix != "$with_aix_soname"; then
9261 # For the AIX way of multilib, we name the shared archive member
9262 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9263 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9264 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9265 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9266 if test 64 = "${OBJECT_MODE-32}"; then
9267 shared_archive_member_spec=shr_64
9269 shared_archive_member_spec=shr
9287 # This can be used to rebuild libtool when needed
9288 LIBTOOL_DEPS=$ltmain
9290 # Always use our own libtool.
9291 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9322 test -z "$LN_S" && LN_S="ln -s"
9337 if test -n "${ZSH_VERSION+set}"; then
9338 setopt NO_GLOB_SUBST
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9342 printf %s "checking for objdir... " >&6; }
9343 if test ${lt_cv_objdir+y}
9345 printf %s "(cached) " >&6
9347 rm -f .libs 2>/dev/null
9348 mkdir .libs 2>/dev/null
9349 if test -d .libs; then
9352 # MS-DOS does not allow filenames that begin with a dot.
9355 rmdir .libs 2>/dev/null
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9358 printf "%s\n" "$lt_cv_objdir" >&6; }
9359 objdir=$lt_cv_objdir
9365 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9372 # AIX sometimes has problems with the GCC collect2 program. For some
9373 # reason, if we set the COLLECT_NAMES environment variable, the problems
9374 # vanish in a puff of smoke.
9375 if test set != "${COLLECT_NAMES+set}"; then
9377 export COLLECT_NAMES
9384 can_build_shared=yes
9386 # All known linkers require a '.a' archive for static linking (except MSVC and
9387 # ICC, which need '.lib').
9390 with_gnu_ld=$lt_cv_prog_gnu_ld
9395 # Set sane defaults for various variables
9396 test -z "$CC" && CC=cc
9397 test -z "$LTCC" && LTCC=$CC
9398 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9399 test -z "$LD" && LD=ld
9400 test -z "$ac_objext" && ac_objext=o
9402 func_cc_basename $compiler
9403 cc_basename=$func_cc_basename_result
9406 # Only perform the check for file, if the check method requires it
9407 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9408 case $deplibs_check_method in
9410 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9412 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9413 if test ${lt_cv_path_MAGIC_CMD+y}
9415 printf %s "(cached) " >&6
9419 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9422 lt_save_MAGIC_CMD=$MAGIC_CMD
9423 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9424 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9425 for ac_dir in $ac_dummy; do
9427 test -z "$ac_dir" && ac_dir=.
9428 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9429 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9430 if test -n "$file_magic_test_file"; then
9431 case $deplibs_check_method in
9433 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9434 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9436 $EGREP "$file_magic_regex" > /dev/null; then
9441 *** Warning: the command libtool uses to detect shared libraries,
9442 *** $file_magic_cmd, produces output that libtool cannot recognize.
9443 *** The result is that libtool may fail to recognize shared libraries
9444 *** as such. This will affect the creation of libtool libraries that
9445 *** depend on shared libraries, but programs linked with such libtool
9446 *** libraries will work regardless of this problem. Nevertheless, you
9447 *** may want to report the problem to your system manager and/or to
9448 *** bug-libtool@gnu.org
9458 MAGIC_CMD=$lt_save_MAGIC_CMD
9463 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9464 if test -n "$MAGIC_CMD"; then
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9466 printf "%s\n" "$MAGIC_CMD" >&6; }
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 printf "%s\n" "no" >&6; }
9476 if test -z "$lt_cv_path_MAGIC_CMD"; then
9477 if test -n "$ac_tool_prefix"; then
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9479 printf %s "checking for file... " >&6; }
9480 if test ${lt_cv_path_MAGIC_CMD+y}
9482 printf %s "(cached) " >&6
9486 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9489 lt_save_MAGIC_CMD=$MAGIC_CMD
9490 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9491 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9492 for ac_dir in $ac_dummy; do
9494 test -z "$ac_dir" && ac_dir=.
9495 if test -f "$ac_dir/file"; then
9496 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9497 if test -n "$file_magic_test_file"; then
9498 case $deplibs_check_method in
9500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9501 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9503 $EGREP "$file_magic_regex" > /dev/null; then
9508 *** Warning: the command libtool uses to detect shared libraries,
9509 *** $file_magic_cmd, produces output that libtool cannot recognize.
9510 *** The result is that libtool may fail to recognize shared libraries
9511 *** as such. This will affect the creation of libtool libraries that
9512 *** depend on shared libraries, but programs linked with such libtool
9513 *** libraries will work regardless of this problem. Nevertheless, you
9514 *** may want to report the problem to your system manager and/or to
9515 *** bug-libtool@gnu.org
9525 MAGIC_CMD=$lt_save_MAGIC_CMD
9530 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9531 if test -n "$MAGIC_CMD"; then
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9533 printf "%s\n" "$MAGIC_CMD" >&6; }
9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 printf "%s\n" "no" >&6; }
9549 # Use C for the default configuration in the libtool script
9553 ac_cpp='$CPP $CPPFLAGS'
9554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9559 # Source file extension for C test sources.
9562 # Object file extension for compiled C test sources.
9566 # Code to be used in simple compile tests
9567 lt_simple_compile_test_code="int some_variable = 0;"
9569 # Code to be used in simple link tests
9570 lt_simple_link_test_code='int main(){return(0);}'
9578 # If no C compiler was specified, use CC.
9581 # If no C compiler flags were specified, use CFLAGS.
9582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9584 # Allow CC to be a program name with arguments.
9587 # Save the default compiler, since it gets overwritten when the other
9588 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9589 compiler_DEFAULT=$CC
9591 # save warnings/boilerplate of simple test code
9592 ac_outfile=conftest.$ac_objext
9593 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9595 _lt_compiler_boilerplate=`cat conftest.err`
9598 ac_outfile=conftest.$ac_objext
9599 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9601 _lt_linker_boilerplate=`cat conftest.err`
9606 ## There is no encapsulation within the following macros, do not change
9607 ## the running order or otherwise move them around unless you know exactly
9608 ## what you are doing...
9609 if test -n "$compiler"; then
9611 lt_prog_compiler_no_builtin_flag=
9613 if test yes = "$GCC"; then
9614 case $cc_basename in
9616 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9618 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9622 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9623 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9625 printf %s "(cached) " >&6
9627 lt_cv_prog_compiler_rtti_exceptions=no
9628 ac_outfile=conftest.$ac_objext
9629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9630 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9631 # Insert the option either (1) after the last *FLAGS variable, or
9632 # (2) before a word containing "conftest.", or (3) at the end.
9633 # Note that $ac_compile itself does not contain backslashes and begins
9634 # with a dollar sign (not a hyphen), so the echo should work correctly.
9635 # The option is referenced via a variable to avoid confusing sed.
9636 lt_compile=`echo "$ac_compile" | $SED \
9637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9639 -e 's:$: $lt_compiler_flag:'`
9640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9641 (eval "$lt_compile" 2>conftest.err)
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 if (exit $ac_status) && test -s "$ac_outfile"; then
9646 # The compiler can only warn and ignore the option if not recognized
9647 # So say no if there are warnings other than the usual output.
9648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9651 lt_cv_prog_compiler_rtti_exceptions=yes
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9658 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9660 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9673 lt_prog_compiler_wl=
9674 lt_prog_compiler_pic=
9675 lt_prog_compiler_static=
9678 if test yes = "$GCC"; then
9679 lt_prog_compiler_wl='-Wl,'
9680 lt_prog_compiler_static='-static'
9684 # All AIX code is PIC.
9685 if test ia64 = "$host_cpu"; then
9686 # AIX 5 now supports IA64 processor
9687 lt_prog_compiler_static='-Bstatic'
9689 lt_prog_compiler_pic='-fPIC'
9695 # see comment about AmigaOS4 .so support
9696 lt_prog_compiler_pic='-fPIC'
9699 # FIXME: we need at least 68020 code to build shared libraries, but
9700 # adding the '-m68020' flag to GCC prevents building anything better,
9702 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9707 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9708 # PIC is the default for these OSes.
9711 mingw* | cygwin* | pw32* | os2* | cegcc*)
9712 # This hack is so that the source file can tell whether it is being
9713 # built for inclusion in a dll (and should export symbols for example).
9714 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9715 # (--disable-auto-import) libraries
9716 lt_prog_compiler_pic='-DDLL_EXPORT'
9719 lt_prog_compiler_static='$wl-static'
9724 darwin* | rhapsody*)
9725 # PIC is the default on this platform
9726 # Common symbols not allowed in MH_DYLIB files
9727 lt_prog_compiler_pic='-fno-common'
9731 # PIC is the default for Haiku.
9732 # The "-static" flag exists, but is broken.
9733 lt_prog_compiler_static=
9737 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9738 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9739 # sets the default TLS model and affects inlining.
9745 lt_prog_compiler_pic='-fPIC'
9751 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9752 # Instead, we relocate shared libraries at runtime.
9756 # Just because we use GCC doesn't mean we suddenly get shared libraries
9757 # on systems that don't support them.
9758 lt_prog_compiler_can_build_shared=no
9763 # QNX uses GNU C++, but need to define -shared option too, otherwise
9765 lt_prog_compiler_pic='-fPIC -shared'
9769 if test -d /usr/nec; then
9770 lt_prog_compiler_pic=-Kconform_pic
9775 lt_prog_compiler_pic='-fPIC'
9779 case $cc_basename in
9780 nvcc*) # Cuda Compiler Driver 2.2
9781 lt_prog_compiler_wl='-Xlinker '
9782 if test -n "$lt_prog_compiler_pic"; then
9783 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9788 # PORTME Check for flag to pass linker flags through the system compiler.
9791 lt_prog_compiler_wl='-Wl,'
9792 if test ia64 = "$host_cpu"; then
9793 # AIX 5 now supports IA64 processor
9794 lt_prog_compiler_static='-Bstatic'
9796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9800 darwin* | rhapsody*)
9801 # PIC is the default on this platform
9802 # Common symbols not allowed in MH_DYLIB files
9803 lt_prog_compiler_pic='-fno-common'
9804 case $cc_basename in
9806 # NAG Fortran compiler
9807 lt_prog_compiler_wl='-Wl,-Wl,,'
9808 lt_prog_compiler_pic='-PIC'
9809 lt_prog_compiler_static='-Bstatic'
9814 mingw* | cygwin* | pw32* | os2* | cegcc*)
9815 # This hack is so that the source file can tell whether it is being
9816 # built for inclusion in a dll (and should export symbols for example).
9817 lt_prog_compiler_pic='-DDLL_EXPORT'
9820 lt_prog_compiler_static='$wl-static'
9825 hpux9* | hpux10* | hpux11*)
9826 lt_prog_compiler_wl='-Wl,'
9827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9834 lt_prog_compiler_pic='+Z'
9837 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9838 lt_prog_compiler_static='$wl-a ${wl}archive'
9841 irix5* | irix6* | nonstopux*)
9842 lt_prog_compiler_wl='-Wl,'
9843 # PIC (with -KPIC) is the default.
9844 lt_prog_compiler_static='-non_shared'
9847 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9848 case $cc_basename in
9849 # old Intel for x86_64, which still supported -KPIC.
9851 lt_prog_compiler_wl='-Wl,'
9852 lt_prog_compiler_pic='-KPIC'
9853 lt_prog_compiler_static='-static'
9855 # icc used to be incompatible with GCC.
9856 # ICC 10 doesn't accept -KPIC any more.
9858 lt_prog_compiler_wl='-Wl,'
9859 lt_prog_compiler_pic='-fPIC'
9860 lt_prog_compiler_static='-static'
9862 # Lahey Fortran 8.1.
9864 lt_prog_compiler_wl='-Wl,'
9865 lt_prog_compiler_pic='--shared'
9866 lt_prog_compiler_static='--static'
9869 # NAG Fortran compiler
9870 lt_prog_compiler_wl='-Wl,-Wl,,'
9871 lt_prog_compiler_pic='-PIC'
9872 lt_prog_compiler_static='-Bstatic'
9875 # Fabrice Bellard et al's Tiny C Compiler
9876 lt_prog_compiler_wl='-Wl,'
9877 lt_prog_compiler_pic='-fPIC'
9878 lt_prog_compiler_static='-static'
9880 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9881 # Portland Group compilers (*not* the Pentium gcc compiler,
9882 # which looks to be a dead project)
9883 lt_prog_compiler_wl='-Wl,'
9884 lt_prog_compiler_pic='-fpic'
9885 lt_prog_compiler_static='-Bstatic'
9888 lt_prog_compiler_wl='-Wl,'
9889 # All Alpha code is PIC.
9890 lt_prog_compiler_static='-non_shared'
9892 xl* | bgxl* | bgf* | mpixl*)
9893 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9894 lt_prog_compiler_wl='-Wl,'
9895 lt_prog_compiler_pic='-qpic'
9896 lt_prog_compiler_static='-qstaticlink'
9899 case `$CC -V 2>&1 | $SED 5q` in
9900 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9901 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl=''
9906 *Sun\ F* | *Sun*Fortran*)
9907 lt_prog_compiler_pic='-KPIC'
9908 lt_prog_compiler_static='-Bstatic'
9909 lt_prog_compiler_wl='-Qoption ld '
9913 lt_prog_compiler_pic='-KPIC'
9914 lt_prog_compiler_static='-Bstatic'
9915 lt_prog_compiler_wl='-Wl,'
9917 *Intel*\ [CF]*Compiler*)
9918 lt_prog_compiler_wl='-Wl,'
9919 lt_prog_compiler_pic='-fPIC'
9920 lt_prog_compiler_static='-static'
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-fpic'
9925 lt_prog_compiler_static='-Bstatic'
9933 lt_prog_compiler_pic='-KPIC'
9934 lt_prog_compiler_static='-Bstatic'
9938 # QNX uses GNU C++, but need to define -shared option too, otherwise
9940 lt_prog_compiler_pic='-fPIC -shared'
9943 osf3* | osf4* | osf5*)
9944 lt_prog_compiler_wl='-Wl,'
9945 # All OSF/1 code is PIC.
9946 lt_prog_compiler_static='-non_shared'
9950 lt_prog_compiler_static='-non_shared'
9954 lt_prog_compiler_pic='-KPIC'
9955 lt_prog_compiler_static='-Bstatic'
9956 case $cc_basename in
9957 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9958 lt_prog_compiler_wl='-Qoption ld ';;
9960 lt_prog_compiler_wl='-Wl,';;
9965 lt_prog_compiler_wl='-Qoption ld '
9966 lt_prog_compiler_pic='-PIC'
9967 lt_prog_compiler_static='-Bstatic'
9970 sysv4 | sysv4.2uw2* | sysv4.3*)
9971 lt_prog_compiler_wl='-Wl,'
9972 lt_prog_compiler_pic='-KPIC'
9973 lt_prog_compiler_static='-Bstatic'
9977 if test -d /usr/nec; then
9978 lt_prog_compiler_pic='-Kconform_pic'
9979 lt_prog_compiler_static='-Bstatic'
9983 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9984 lt_prog_compiler_wl='-Wl,'
9985 lt_prog_compiler_pic='-KPIC'
9986 lt_prog_compiler_static='-Bstatic'
9990 lt_prog_compiler_wl='-Wl,'
9991 lt_prog_compiler_can_build_shared=no
9995 lt_prog_compiler_pic='-pic'
9996 lt_prog_compiler_static='-Bstatic'
10000 lt_prog_compiler_can_build_shared=no
10006 # For platforms that do not support PIC, -DPIC is meaningless:
10008 lt_prog_compiler_pic=
10011 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10016 printf %s "checking for $compiler option to produce PIC... " >&6; }
10017 if test ${lt_cv_prog_compiler_pic+y}
10019 printf %s "(cached) " >&6
10021 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10024 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10025 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10028 # Check to make sure the PIC flag actually works.
10030 if test -n "$lt_prog_compiler_pic"; then
10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10032 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10033 if test ${lt_cv_prog_compiler_pic_works+y}
10035 printf %s "(cached) " >&6
10037 lt_cv_prog_compiler_pic_works=no
10038 ac_outfile=conftest.$ac_objext
10039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10040 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10041 # Insert the option either (1) after the last *FLAGS variable, or
10042 # (2) before a word containing "conftest.", or (3) at the end.
10043 # Note that $ac_compile itself does not contain backslashes and begins
10044 # with a dollar sign (not a hyphen), so the echo should work correctly.
10045 # The option is referenced via a variable to avoid confusing sed.
10046 lt_compile=`echo "$ac_compile" | $SED \
10047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10049 -e 's:$: $lt_compiler_flag:'`
10050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10051 (eval "$lt_compile" 2>conftest.err)
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 if (exit $ac_status) && test -s "$ac_outfile"; then
10056 # The compiler can only warn and ignore the option if not recognized
10057 # So say no if there are warnings other than the usual output.
10058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10060 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10061 lt_cv_prog_compiler_pic_works=yes
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10068 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10070 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10071 case $lt_prog_compiler_pic in
10073 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10076 lt_prog_compiler_pic=
10077 lt_prog_compiler_can_build_shared=no
10093 # Check to make sure the static flag actually works.
10095 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10097 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10098 if test ${lt_cv_prog_compiler_static_works+y}
10100 printf %s "(cached) " >&6
10102 lt_cv_prog_compiler_static_works=no
10103 save_LDFLAGS=$LDFLAGS
10104 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10105 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10107 # The linker can only warn and ignore the option if not recognized
10108 # So say no if there are warnings
10109 if test -s conftest.err; then
10110 # Append any errors to the config.log.
10111 cat conftest.err 1>&5
10112 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10114 if diff conftest.exp conftest.er2 >/dev/null; then
10115 lt_cv_prog_compiler_static_works=yes
10118 lt_cv_prog_compiler_static_works=yes
10122 LDFLAGS=$save_LDFLAGS
10125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10126 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10128 if test yes = "$lt_cv_prog_compiler_static_works"; then
10131 lt_prog_compiler_static=
10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10141 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10142 if test ${lt_cv_prog_compiler_c_o+y}
10144 printf %s "(cached) " >&6
10146 lt_cv_prog_compiler_c_o=no
10147 $RM -r conftest 2>/dev/null
10151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10153 lt_compiler_flag="-o out/conftest2.$ac_objext"
10154 # Insert the option either (1) after the last *FLAGS variable, or
10155 # (2) before a word containing "conftest.", or (3) at the end.
10156 # Note that $ac_compile itself does not contain backslashes and begins
10157 # with a dollar sign (not a hyphen), so the echo should work correctly.
10158 lt_compile=`echo "$ac_compile" | $SED \
10159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10161 -e 's:$: $lt_compiler_flag:'`
10162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10163 (eval "$lt_compile" 2>out/conftest.err)
10165 cat out/conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10169 # The compiler can only warn and ignore the option if not recognized
10170 # So say no if there are warnings
10171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10174 lt_cv_prog_compiler_c_o=yes
10179 # SGI C++ compiler will create directory out/ii_files/ for
10180 # template instantiation
10181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10182 $RM out/* && rmdir out
10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10189 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10197 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10198 if test ${lt_cv_prog_compiler_c_o+y}
10200 printf %s "(cached) " >&6
10202 lt_cv_prog_compiler_c_o=no
10203 $RM -r conftest 2>/dev/null
10207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10209 lt_compiler_flag="-o out/conftest2.$ac_objext"
10210 # Insert the option either (1) after the last *FLAGS variable, or
10211 # (2) before a word containing "conftest.", or (3) at the end.
10212 # Note that $ac_compile itself does not contain backslashes and begins
10213 # with a dollar sign (not a hyphen), so the echo should work correctly.
10214 lt_compile=`echo "$ac_compile" | $SED \
10215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10217 -e 's:$: $lt_compiler_flag:'`
10218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10219 (eval "$lt_compile" 2>out/conftest.err)
10221 cat out/conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10225 # The compiler can only warn and ignore the option if not recognized
10226 # So say no if there are warnings
10227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10230 lt_cv_prog_compiler_c_o=yes
10235 # SGI C++ compiler will create directory out/ii_files/ for
10236 # template instantiation
10237 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10238 $RM out/* && rmdir out
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10245 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10250 hard_links=nottested
10251 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10252 # do not overwrite the value of need_locks provided by the user
10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10254 printf %s "checking if we can lock with hard links... " >&6; }
10257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10259 ln conftest.a conftest.b 2>&5 || hard_links=no
10260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10262 printf "%s\n" "$hard_links" >&6; }
10263 if test no = "$hard_links"; then
10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10265 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10278 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10281 allow_undefined_flag=
10282 always_export_symbols=no
10284 archive_expsym_cmds=
10285 compiler_needs_object=no
10286 enable_shared_with_static_runtimes=no
10287 export_dynamic_flag_spec=
10288 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10289 hardcode_automatic=no
10291 hardcode_direct_absolute=no
10292 hardcode_libdir_flag_spec=
10293 hardcode_libdir_separator=
10294 hardcode_minus_L=no
10295 hardcode_shlibpath_var=unsupported
10297 link_all_deplibs=unknown
10299 module_expsym_cmds=
10300 old_archive_from_new_cmds=
10301 old_archive_from_expsyms_cmds=
10302 thread_safe_flag_spec=
10303 whole_archive_flag_spec=
10304 # include_expsyms should be a list of space-separated symbols to be *always*
10305 # included in the symbol list
10307 # exclude_expsyms can be an extended regexp of symbols to exclude
10308 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10309 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10310 # as well as any symbol that contains 'd'.
10311 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10312 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10313 # platforms (ab)use it in PIC code, but their linkers get confused if
10314 # the symbol is explicitly referenced. Since portable code cannot
10315 # rely on this symbol name, it's probably fine to never include it in
10316 # preloaded symbol tables.
10317 # Exclude shared library initialization/finalization symbols.
10318 extract_expsyms_cmds=
10321 cygwin* | mingw* | pw32* | cegcc*)
10322 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10323 # When not using gcc, we currently assume that we are using
10324 # Microsoft Visual C++ or Intel C++ Compiler.
10325 if test yes != "$GCC"; then
10330 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10333 openbsd* | bitrig*)
10340 # On some targets, GNU ld is compatible enough with the native linker
10341 # that we're better off using the native interface for both.
10342 lt_use_gnu_ld_interface=no
10343 if test yes = "$with_gnu_ld"; then
10346 # The AIX port of GNU ld has always aspired to compatibility
10347 # with the native linker. However, as the warning in the GNU ld
10348 # block says, versions before 2.19.5* couldn't really create working
10349 # shared libraries, regardless of the interface used.
10350 case `$LD -v 2>&1` in
10351 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10352 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10353 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10355 lt_use_gnu_ld_interface=yes
10360 lt_use_gnu_ld_interface=yes
10365 if test yes = "$lt_use_gnu_ld_interface"; then
10366 # If archive_cmds runs LD, not CC, wlarc should be empty
10369 # Set some defaults for GNU ld with shared library support. These
10370 # are reset later if shared libraries are not supported. Putting them
10371 # here allows them to be overridden if necessary.
10372 runpath_var=LD_RUN_PATH
10373 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10374 export_dynamic_flag_spec='$wl--export-dynamic'
10375 # ancient GNU ld didn't support --whole-archive et. al.
10376 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10377 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10379 whole_archive_flag_spec=
10381 supports_anon_versioning=no
10382 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10383 *GNU\ gold*) supports_anon_versioning=yes ;;
10384 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10385 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10386 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10387 *\ 2.11.*) ;; # other 2.11 versions
10388 *) supports_anon_versioning=yes ;;
10391 # See if GNU ld supports shared libraries.
10394 # On AIX/PPC, the GNU linker is very broken
10395 if test ia64 != "$host_cpu"; then
10399 *** Warning: the GNU linker, at least up to release 2.19, is reported
10400 *** to be unable to reliably create shared libraries on AIX.
10401 *** Therefore, libtool is disabling shared libraries support. If you
10402 *** really care for shared libraries, you may want to install binutils
10403 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10404 *** You will then need to restart the configuration process.
10413 # see comment about AmigaOS4 .so support
10414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10415 archive_expsym_cmds=''
10418 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)'
10419 hardcode_libdir_flag_spec='-L$libdir'
10420 hardcode_minus_L=yes
10426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10427 allow_undefined_flag=unsupported
10428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10429 # support --undefined. This deserves some investigation. FIXME
10430 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10436 cygwin* | mingw* | pw32* | cegcc*)
10437 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10438 # as there is no search path for DLLs.
10439 hardcode_libdir_flag_spec='-L$libdir'
10440 export_dynamic_flag_spec='$wl--export-all-symbols'
10441 allow_undefined_flag=unsupported
10442 always_export_symbols=no
10443 enable_shared_with_static_runtimes=yes
10444 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'
10445 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10447 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10449 # If the export-symbols file already is a .def file, use it as
10450 # is; otherwise, prepend EXPORTS...
10451 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10452 cp $export_symbols $output_objdir/$soname.def;
10454 echo EXPORTS > $output_objdir/$soname.def;
10455 cat $export_symbols >> $output_objdir/$soname.def;
10457 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10465 link_all_deplibs=yes
10469 hardcode_libdir_flag_spec='-L$libdir'
10470 hardcode_minus_L=yes
10471 allow_undefined_flag=unsupported
10473 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10474 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10475 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10476 $ECHO EXPORTS >> $output_objdir/$libname.def~
10477 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10478 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10479 emximp -o $lib $output_objdir/$libname.def'
10480 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10481 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10482 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10483 $ECHO EXPORTS >> $output_objdir/$libname.def~
10484 prefix_cmds="$SED"~
10485 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10486 prefix_cmds="$prefix_cmds -e 1d";
10488 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10489 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10490 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10491 emximp -o $lib $output_objdir/$libname.def'
10492 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10493 enable_shared_with_static_runtimes=yes
10499 hardcode_shlibpath_var=no
10500 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10501 export_dynamic_flag_spec='$wl-E'
10502 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10503 # Instead, shared libraries are loaded at an image base (0x10000000 by
10504 # default) and relocated if they conflict, which is a slow very memory
10505 # consuming and fragmenting process. To avoid this, we pick a random,
10506 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10507 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10508 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10509 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'
10512 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10514 if test linux-dietlibc = "$host_os"; then
10515 case $cc_basename in
10516 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10519 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10520 && test no = "$tmp_diet"
10522 tmp_addflag=' $pic_flag'
10523 tmp_sharedflag='-shared'
10524 case $cc_basename,$host_cpu in
10525 pgcc*) # Portland Group C compiler
10526 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'
10527 tmp_addflag=' $pic_flag'
10529 pgf77* | pgf90* | pgf95* | pgfortran*)
10530 # Portland Group f77 and f90 compilers
10531 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'
10532 tmp_addflag=' $pic_flag -Mnomain' ;;
10533 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10534 tmp_addflag=' -i_dynamic' ;;
10535 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10536 tmp_addflag=' -i_dynamic -nofor_main' ;;
10537 ifc* | ifort*) # Intel Fortran compiler
10538 tmp_addflag=' -nofor_main' ;;
10539 lf95*) # Lahey Fortran 8.1
10540 whole_archive_flag_spec=
10541 tmp_sharedflag='--shared' ;;
10542 nagfor*) # NAGFOR 5.3
10543 tmp_sharedflag='-Wl,-shared' ;;
10544 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10545 tmp_sharedflag='-qmkshrobj'
10547 nvcc*) # Cuda Compiler Driver 2.2
10548 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'
10549 compiler_needs_object=yes
10552 case `$CC -V 2>&1 | $SED 5q` in
10553 *Sun\ C*) # Sun C 5.9
10554 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'
10555 compiler_needs_object=yes
10556 tmp_sharedflag='-G' ;;
10557 *Sun\ F*) # Sun Fortran 8.3
10558 tmp_sharedflag='-G' ;;
10560 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10562 if test yes = "$supports_anon_versioning"; then
10563 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10564 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10565 echo "local: *; };" >> $output_objdir/$libname.ver~
10566 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10569 case $cc_basename in
10571 export_dynamic_flag_spec='-rdynamic'
10573 xlf* | bgf* | bgxlf* | mpixlf*)
10574 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10575 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10576 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10577 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10578 if test yes = "$supports_anon_versioning"; then
10579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10580 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10581 echo "local: *; };" >> $output_objdir/$libname.ver~
10582 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10593 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10596 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10597 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10602 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10607 *** create shared libraries on Solaris systems. Therefore, libtool
10608 *** is disabling shared libraries support. We urge you to upgrade GNU
10609 *** binutils to release 2.9.1 or newer. Another option is to modify
10610 *** your PATH or compiler configuration so that the native linker is
10611 *** used, and then restart.
10614 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10615 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10616 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10623 case `$LD -v 2>&1` in
10624 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10628 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10629 *** reliably create shared libraries on SCO systems. Therefore, libtool
10630 *** is disabling shared libraries support. We urge you to upgrade GNU
10631 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10632 *** your PATH or compiler configuration so that the native linker is
10633 *** used, and then restart.
10638 # For security reasons, it is highly recommended that you always
10639 # use absolute paths for naming shared libraries, and exclude the
10640 # DT_RUNPATH tag from executables and libraries. But doing so
10641 # requires that you compile everything twice, which is a pain.
10642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10654 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10656 hardcode_direct=yes
10657 hardcode_shlibpath_var=no
10661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10663 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10670 if test no = "$ld_shlibs"; then
10672 hardcode_libdir_flag_spec=
10673 export_dynamic_flag_spec=
10674 whole_archive_flag_spec=
10677 # PORTME fill in a description of your system's linker (not GNU ld)
10680 allow_undefined_flag=unsupported
10681 always_export_symbols=yes
10682 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'
10683 # Note: this linker hardcodes the directories in LIBPATH if there
10684 # are no directories specified by -L.
10685 hardcode_minus_L=yes
10686 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10687 # Neither direct hardcoding nor static linking is supported with a
10689 hardcode_direct=unsupported
10694 if test ia64 = "$host_cpu"; then
10695 # On IA64, the linker does run time linking by default, so we don't
10696 # have to do anything special.
10697 aix_use_runtimelinking=no
10698 exp_sym_flag='-Bexport'
10701 # If we're using GNU nm, then we don't want the "-C" option.
10702 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10703 # Without the "-l" option, or with the "-B" option, AIX nm treats
10704 # weak defined symbols like other global defined symbols, whereas
10705 # GNU nm marks them as "W".
10706 # While the 'weak' keyword is ignored in the Export File, we need
10707 # it in the Import File for the 'aix-soname' feature, so we have
10708 # to replace the "-B" option with "-P" for AIX nm.
10709 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10710 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10712 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10714 aix_use_runtimelinking=no
10716 # Test if we are trying to use run time linking or normal
10717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10718 # have runtime linking enabled, and use it for executables.
10719 # For shared libraries, we enable/disable runtime linking
10720 # depending on the kind of the shared library created -
10721 # when "with_aix_soname,aix_use_runtimelinking" is:
10722 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10723 # "aix,yes" lib.so shared, rtl:yes, for executables
10724 # lib.a static archive
10725 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10726 # lib.a(lib.so.V) shared, rtl:no, for executables
10727 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10728 # lib.a(lib.so.V) shared, rtl:no
10729 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10730 # lib.a static archive
10731 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10732 for ld_flag in $LDFLAGS; do
10733 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10734 aix_use_runtimelinking=yes
10738 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10739 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10740 # so we don't have lib.a shared libs to link our executables.
10741 # We have to force runtime linking in this case.
10742 aix_use_runtimelinking=yes
10743 LDFLAGS="$LDFLAGS -Wl,-brtl"
10748 exp_sym_flag='-bexport'
10749 no_entry_flag='-bnoentry'
10752 # When large executables or shared objects are built, AIX ld can
10753 # have problems creating the table of contents. If linking a library
10754 # or program results in "error TOC overflow" add -mminimal-toc to
10755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10759 hardcode_direct=yes
10760 hardcode_direct_absolute=yes
10761 hardcode_libdir_separator=':'
10762 link_all_deplibs=yes
10763 file_list_spec='$wl-f,'
10764 case $with_aix_soname,$aix_use_runtimelinking in
10765 aix,*) ;; # traditional, no import file
10766 svr4,* | *,yes) # use import file
10767 # The Import File defines what to hardcode.
10769 hardcode_direct_absolute=no
10773 if test yes = "$GCC"; then
10774 case $host_os in aix4.[012]|aix4.[012].*)
10775 # We only want to do this on AIX 4.2 and lower, the check
10776 # below for broken collect2 doesn't work under 4.3+
10777 collect2name=`$CC -print-prog-name=collect2`
10778 if test -f "$collect2name" &&
10779 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10781 # We have reworked collect2
10784 # We have old collect2
10785 hardcode_direct=unsupported
10786 # It fails to find uninstalled libraries when the uninstalled
10787 # path is not listed in the libpath. Setting hardcode_minus_L
10788 # to unsupported forces relinking
10789 hardcode_minus_L=yes
10790 hardcode_libdir_flag_spec='-L$libdir'
10791 hardcode_libdir_separator=
10795 shared_flag='-shared'
10796 if test yes = "$aix_use_runtimelinking"; then
10797 shared_flag="$shared_flag "'$wl-G'
10799 # Need to ensure runtime linking is disabled for the traditional
10800 # shared library, or the linker may eventually find shared libraries
10801 # /with/ Import File - we do not want to mix them.
10802 shared_flag_aix='-shared'
10803 shared_flag_svr4='-shared $wl-G'
10806 if test ia64 = "$host_cpu"; then
10807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10808 # chokes on -Wl,-G. The following line is correct:
10811 if test yes = "$aix_use_runtimelinking"; then
10812 shared_flag='$wl-G'
10814 shared_flag='$wl-bM:SRE'
10816 shared_flag_aix='$wl-bM:SRE'
10817 shared_flag_svr4='$wl-G'
10821 export_dynamic_flag_spec='$wl-bexpall'
10822 # It seems that -bexpall does not export symbols beginning with
10823 # underscore (_), so it is better to generate a list of symbols to export.
10824 always_export_symbols=yes
10825 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10826 # Warning - without using the other runtime loading flags (-brtl),
10827 # -berok will link without error, but may produce a broken library.
10828 allow_undefined_flag='-berok'
10829 # Determine the default libpath from the value encoded in an
10830 # empty executable.
10831 if test set = "${lt_cv_aix_libpath+set}"; then
10832 aix_libpath=$lt_cv_aix_libpath
10834 if test ${lt_cv_aix_libpath_+y}
10836 printf %s "(cached) " >&6
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10849 if ac_fn_c_try_link "$LINENO"
10852 lt_aix_libpath_sed='
10853 /Import File Strings/,/^$/ {
10855 s/^0 *\([^ ]*\) *$/\1/
10859 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10860 # Check for a 64-bit object if we didn't find anything.
10861 if test -z "$lt_cv_aix_libpath_"; then
10862 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10866 conftest$ac_exeext conftest.$ac_ext
10867 if test -z "$lt_cv_aix_libpath_"; then
10868 lt_cv_aix_libpath_=/usr/lib:/lib
10873 aix_libpath=$lt_cv_aix_libpath_
10876 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10877 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10879 if test ia64 = "$host_cpu"; then
10880 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10881 allow_undefined_flag="-z nodefs"
10882 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"
10884 # Determine the default libpath from the value encoded in an
10885 # empty executable.
10886 if test set = "${lt_cv_aix_libpath+set}"; then
10887 aix_libpath=$lt_cv_aix_libpath
10889 if test ${lt_cv_aix_libpath_+y}
10891 printf %s "(cached) " >&6
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10904 if ac_fn_c_try_link "$LINENO"
10907 lt_aix_libpath_sed='
10908 /Import File Strings/,/^$/ {
10910 s/^0 *\([^ ]*\) *$/\1/
10914 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10915 # Check for a 64-bit object if we didn't find anything.
10916 if test -z "$lt_cv_aix_libpath_"; then
10917 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10921 conftest$ac_exeext conftest.$ac_ext
10922 if test -z "$lt_cv_aix_libpath_"; then
10923 lt_cv_aix_libpath_=/usr/lib:/lib
10928 aix_libpath=$lt_cv_aix_libpath_
10931 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10932 # Warning - without using the other run time loading flags,
10933 # -berok will link without error, but may produce a broken library.
10934 no_undefined_flag=' $wl-bernotok'
10935 allow_undefined_flag=' $wl-berok'
10936 if test yes = "$with_gnu_ld"; then
10937 # We only use this code for GNU lds that support --whole-archive.
10938 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10940 # Exported symbols can be pulled into shared objects from archives
10941 whole_archive_flag_spec='$convenience'
10943 archive_cmds_need_lc=yes
10944 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10945 # -brtl affects multiple linker settings, -berok does not and is overridden later
10946 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10947 if test svr4 != "$with_aix_soname"; then
10948 # This is similar to how AIX traditionally builds its shared libraries.
10949 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10951 if test aix != "$with_aix_soname"; then
10952 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10954 # used by -dlpreopen to get the symbols
10955 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10957 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10965 # see comment about AmigaOS4 .so support
10966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10967 archive_expsym_cmds=''
10970 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)'
10971 hardcode_libdir_flag_spec='-L$libdir'
10972 hardcode_minus_L=yes
10978 export_dynamic_flag_spec=-rdynamic
10981 cygwin* | mingw* | pw32* | cegcc*)
10982 # When not using gcc, we currently assume that we are using
10983 # Microsoft Visual C++ or Intel C++ Compiler.
10984 # hardcode_libdir_flag_spec is actually meaningless, as there is
10985 # no search path for DLLs.
10986 case $cc_basename in
10988 # Native MSVC or ICC
10989 hardcode_libdir_flag_spec=' '
10990 allow_undefined_flag=unsupported
10991 always_export_symbols=yes
10993 # Tell ltmain to make .lib files, not .a files.
10995 # Tell ltmain to make .dll files, not .so files.
10997 # FIXME: Setting linknames here is a bad hack.
10998 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10999 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11000 cp "$export_symbols" "$output_objdir/$soname.def";
11001 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11003 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11005 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11007 # The linker will not automatically build a static lib if we build a DLL.
11008 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11009 enable_shared_with_static_runtimes=yes
11010 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11013 old_postinstall_cmds='chmod 644 $oldlib'
11014 postlink_cmds='lt_outputfile="@OUTPUT@"~
11015 lt_tool_outputfile="@TOOL_OUTPUT@"~
11016 case $lt_outputfile in
11019 lt_outputfile=$lt_outputfile.exe
11020 lt_tool_outputfile=$lt_tool_outputfile.exe
11023 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11024 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11025 $RM "$lt_outputfile.manifest";
11029 # Assume MSVC and ICC wrapper
11030 hardcode_libdir_flag_spec=' '
11031 allow_undefined_flag=unsupported
11032 # Tell ltmain to make .lib files, not .a files.
11034 # Tell ltmain to make .dll files, not .so files.
11036 # FIXME: Setting linknames here is a bad hack.
11037 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11038 # The linker will automatically build a .lib file if we build a DLL.
11039 old_archive_from_new_cmds='true'
11040 # FIXME: Should let the user specify the lib program.
11041 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11042 enable_shared_with_static_runtimes=yes
11047 darwin* | rhapsody*)
11050 archive_cmds_need_lc=no
11052 hardcode_automatic=yes
11053 hardcode_shlibpath_var=unsupported
11054 if test yes = "$lt_cv_ld_force_load"; then
11055 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\"`'
11058 whole_archive_flag_spec=''
11060 link_all_deplibs=yes
11061 allow_undefined_flag=$_lt_dar_allow_undefined
11062 case $cc_basename in
11063 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11064 *) _lt_dar_can_shared=$GCC ;;
11066 if test yes = "$_lt_dar_can_shared"; then
11067 output_verbose_link_cmd=func_echo_all
11068 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11069 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11070 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"
11071 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"
11080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11081 hardcode_libdir_flag_spec='-L$libdir'
11082 hardcode_shlibpath_var=no
11085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11086 # support. Future versions do this automatically, but an explicit c++rt0.o
11087 # does not break anything, and helps significantly (at the cost of a little
11090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11091 hardcode_libdir_flag_spec='-R$libdir'
11092 hardcode_direct=yes
11093 hardcode_shlibpath_var=no
11096 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11099 hardcode_direct=yes
11100 hardcode_minus_L=yes
11101 hardcode_shlibpath_var=no
11104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11105 freebsd* | dragonfly* | midnightbsd*)
11106 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11107 hardcode_libdir_flag_spec='-R$libdir'
11108 hardcode_direct=yes
11109 hardcode_shlibpath_var=no
11113 if test yes = "$GCC"; then
11114 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11116 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11118 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11119 hardcode_libdir_separator=:
11120 hardcode_direct=yes
11122 # hardcode_minus_L: Not really in the search PATH,
11123 # but as the default location of the library.
11124 hardcode_minus_L=yes
11125 export_dynamic_flag_spec='$wl-E'
11129 if test yes,no = "$GCC,$with_gnu_ld"; then
11130 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11134 if test no = "$with_gnu_ld"; then
11135 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11136 hardcode_libdir_separator=:
11137 hardcode_direct=yes
11138 hardcode_direct_absolute=yes
11139 export_dynamic_flag_spec='$wl-E'
11140 # hardcode_minus_L: Not really in the search PATH,
11141 # but as the default location of the library.
11142 hardcode_minus_L=yes
11147 if test yes,no = "$GCC,$with_gnu_ld"; then
11150 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11153 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11156 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11162 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11165 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11169 # Older versions of the 11.00 compiler do not understand -b yet
11170 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11172 printf %s "checking if $CC understands -b... " >&6; }
11173 if test ${lt_cv_prog_compiler__b+y}
11175 printf %s "(cached) " >&6
11177 lt_cv_prog_compiler__b=no
11178 save_LDFLAGS=$LDFLAGS
11179 LDFLAGS="$LDFLAGS -b"
11180 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11182 # The linker can only warn and ignore the option if not recognized
11183 # So say no if there are warnings
11184 if test -s conftest.err; then
11185 # Append any errors to the config.log.
11186 cat conftest.err 1>&5
11187 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11189 if diff conftest.exp conftest.er2 >/dev/null; then
11190 lt_cv_prog_compiler__b=yes
11193 lt_cv_prog_compiler__b=yes
11197 LDFLAGS=$save_LDFLAGS
11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11201 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11203 if test yes = "$lt_cv_prog_compiler__b"; then
11204 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11206 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11212 if test no = "$with_gnu_ld"; then
11213 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11214 hardcode_libdir_separator=:
11219 hardcode_shlibpath_var=no
11222 hardcode_direct=yes
11223 hardcode_direct_absolute=yes
11224 export_dynamic_flag_spec='$wl-E'
11226 # hardcode_minus_L: Not really in the search PATH,
11227 # but as the default location of the library.
11228 hardcode_minus_L=yes
11234 irix5* | irix6* | nonstopux*)
11235 if test yes = "$GCC"; then
11236 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'
11237 # Try to use the -exported_symbol ld option, if it does not
11238 # work, assume that -exports_file does not work either and
11239 # implicitly export all symbols.
11240 # This should be the same for all languages, so no per-tag cache variable.
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11242 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11243 if test ${lt_cv_irix_exported_symbol+y}
11245 printf %s "(cached) " >&6
11247 save_LDFLAGS=$LDFLAGS
11248 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h. */
11251 int foo (void) { return 0; }
11253 if ac_fn_c_try_link "$LINENO"
11255 lt_cv_irix_exported_symbol=yes
11257 lt_cv_irix_exported_symbol=no
11259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LDFLAGS=$save_LDFLAGS
11263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11264 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11265 if test yes = "$lt_cv_irix_exported_symbol"; then
11266 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'
11269 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'
11270 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'
11272 archive_cmds_need_lc='no'
11273 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11274 hardcode_libdir_separator=:
11276 link_all_deplibs=yes
11280 case $cc_basename in
11282 # Fabrice Bellard et al's Tiny C Compiler
11284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11293 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11295 hardcode_libdir_flag_spec='-R$libdir'
11296 hardcode_direct=yes
11297 hardcode_shlibpath_var=no
11301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11302 hardcode_direct=yes
11303 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11304 hardcode_libdir_separator=:
11305 hardcode_shlibpath_var=no
11311 openbsd* | bitrig*)
11312 if test -f /usr/libexec/ld.so; then
11313 hardcode_direct=yes
11314 hardcode_shlibpath_var=no
11315 hardcode_direct_absolute=yes
11316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11318 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11319 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11320 export_dynamic_flag_spec='$wl-E'
11322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11323 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11331 hardcode_libdir_flag_spec='-L$libdir'
11332 hardcode_minus_L=yes
11333 allow_undefined_flag=unsupported
11335 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11336 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11337 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11338 $ECHO EXPORTS >> $output_objdir/$libname.def~
11339 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11340 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11341 emximp -o $lib $output_objdir/$libname.def'
11342 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11343 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11344 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11345 $ECHO EXPORTS >> $output_objdir/$libname.def~
11346 prefix_cmds="$SED"~
11347 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11348 prefix_cmds="$prefix_cmds -e 1d";
11350 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11351 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11352 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11353 emximp -o $lib $output_objdir/$libname.def'
11354 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11355 enable_shared_with_static_runtimes=yes
11360 if test yes = "$GCC"; then
11361 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11362 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'
11364 allow_undefined_flag=' -expect_unresolved \*'
11365 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'
11367 archive_cmds_need_lc='no'
11368 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11369 hardcode_libdir_separator=:
11372 osf4* | osf5*) # as osf3* with the addition of -msym flag
11373 if test yes = "$GCC"; then
11374 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11375 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'
11376 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11378 allow_undefined_flag=' -expect_unresolved \*'
11379 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'
11380 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~
11381 $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'
11383 # Both c and cxx compiler support -rpath directly
11384 hardcode_libdir_flag_spec='-rpath $libdir'
11386 archive_cmds_need_lc='no'
11387 hardcode_libdir_separator=:
11391 no_undefined_flag=' -z defs'
11392 if test yes = "$GCC"; then
11394 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11396 $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'
11398 case `$CC -V 2>&1` in
11401 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11403 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11407 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11408 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11409 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11413 hardcode_libdir_flag_spec='-R$libdir'
11414 hardcode_shlibpath_var=no
11416 solaris2.[0-5] | solaris2.[0-5].*) ;;
11418 # The compiler driver will combine and reorder linker options,
11419 # but understands '-z linker_flag'. GCC discards it without '$wl',
11420 # but is careful enough not to reorder.
11421 # Supported since Solaris 2.6 (maybe 2.5.1?)
11422 if test yes = "$GCC"; then
11423 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11425 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11429 link_all_deplibs=yes
11433 if test sequent = "$host_vendor"; then
11434 # Use $CC to link under sequent, because it throws in some extra .o
11435 # files that make .init and .fini sections work.
11436 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11438 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11440 hardcode_libdir_flag_spec='-L$libdir'
11441 hardcode_direct=yes
11442 hardcode_minus_L=yes
11443 hardcode_shlibpath_var=no
11447 case $host_vendor in
11449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11450 hardcode_direct=yes # is this really true???
11453 ## LD is ld it makes a PLAMLIB
11454 ## CC just makes a GrossModule.
11455 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11456 reload_cmds='$CC -r -o $output$reload_objs'
11460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11461 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11464 runpath_var='LD_RUN_PATH'
11465 hardcode_shlibpath_var=no
11469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11470 hardcode_shlibpath_var=no
11471 export_dynamic_flag_spec='-Bexport'
11475 if test -d /usr/nec; then
11476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11477 hardcode_shlibpath_var=no
11478 runpath_var=LD_RUN_PATH
11479 hardcode_runpath_var=yes
11484 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11485 no_undefined_flag='$wl-z,text'
11486 archive_cmds_need_lc=no
11487 hardcode_shlibpath_var=no
11488 runpath_var='LD_RUN_PATH'
11490 if test yes = "$GCC"; then
11491 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11492 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11494 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11495 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11499 sysv5* | sco3.2v5* | sco5v6*)
11500 # Note: We CANNOT use -z defs as we might desire, because we do not
11501 # link with -lc, and that would cause any symbols used from libc to
11502 # always be unresolved, which means just about no library would
11503 # ever link correctly. If we're not using GNU ld we use -z text
11504 # though, which does catch some bad symbols but isn't as heavy-handed
11506 no_undefined_flag='$wl-z,text'
11507 allow_undefined_flag='$wl-z,nodefs'
11508 archive_cmds_need_lc=no
11509 hardcode_shlibpath_var=no
11510 hardcode_libdir_flag_spec='$wl-R,$libdir'
11511 hardcode_libdir_separator=':'
11512 link_all_deplibs=yes
11513 export_dynamic_flag_spec='$wl-Bexport'
11514 runpath_var='LD_RUN_PATH'
11516 if test yes = "$GCC"; then
11517 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11518 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11520 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11521 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11527 hardcode_libdir_flag_spec='-L$libdir'
11528 hardcode_shlibpath_var=no
11536 if test sni = "$host_vendor"; then
11538 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11539 export_dynamic_flag_spec='$wl-Blargedynsym'
11545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11546 printf "%s\n" "$ld_shlibs" >&6; }
11547 test no = "$ld_shlibs" && can_build_shared=no
11549 with_gnu_ld=$with_gnu_ld
11566 # Do we need to explicitly link libc?
11568 case "x$archive_cmds_need_lc" in
11570 # Assume -lc should be added
11571 archive_cmds_need_lc=yes
11573 if test yes,yes = "$GCC,$enable_shared"; then
11574 case $archive_cmds in
11576 # FIXME: we may have to deal with multi-command sequences.
11579 # Test whether the compiler implicitly links with -lc since on some
11580 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11581 # to ld, don't add -lc before -lgcc.
11582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11583 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11584 if test ${lt_cv_archive_cmds_need_lc+y}
11586 printf %s "(cached) " >&6
11589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11592 (eval $ac_compile) 2>&5
11594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595 test $ac_status = 0; } 2>conftest.err; then
11598 libobjs=conftest.$ac_objext
11600 wl=$lt_prog_compiler_wl
11601 pic_flag=$lt_prog_compiler_pic
11607 lt_save_allow_undefined_flag=$allow_undefined_flag
11608 allow_undefined_flag=
11609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11610 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11613 test $ac_status = 0; }
11615 lt_cv_archive_cmds_need_lc=no
11617 lt_cv_archive_cmds_need_lc=yes
11619 allow_undefined_flag=$lt_save_allow_undefined_flag
11621 cat conftest.err 1>&5
11626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11627 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11628 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11787 printf %s "checking dynamic linker characteristics... " >&6; }
11789 if test yes = "$GCC"; then
11791 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11792 *) lt_awk_arg='/^libraries:/' ;;
11795 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11796 *) lt_sed_strip_eq='s|=/|/|g' ;;
11798 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11799 case $lt_search_path_spec in
11801 # if the path contains ";" then we assume it to be the separator
11802 # otherwise default to the standard path separator (i.e. ":") - it is
11803 # assumed that no part of a normal pathname contains ";" but that should
11804 # okay in the real world where ";" in dirpaths is itself problematic.
11805 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11808 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11811 # Ok, now we have the path, separated by spaces, we can step through it
11812 # and add multilib dir if necessary...
11813 lt_tmp_lt_search_path_spec=
11814 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11815 # ...but if some path component already ends with the multilib dir we assume
11816 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11817 case "$lt_multi_os_dir; $lt_search_path_spec " in
11818 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11822 for lt_sys_path in $lt_search_path_spec; do
11823 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11825 elif test -n "$lt_multi_os_dir"; then
11826 test -d "$lt_sys_path" && \
11827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11830 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11831 BEGIN {RS = " "; FS = "/|\n";} {
11834 for (lt_i = NF; lt_i > 0; lt_i--) {
11835 if ($lt_i != "" && $lt_i != ".") {
11836 if ($lt_i == "..") {
11839 if (lt_count == 0) {
11840 lt_foo = "/" $lt_i lt_foo;
11847 if (lt_foo != "") { lt_freq[lt_foo]++; }
11848 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11850 # AWK program above erroneously prepends '/' to C:/dos/paths
11853 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11854 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11856 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11858 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11860 library_names_spec=
11861 libname_spec='lib$name'
11865 postuninstall_cmds=
11869 shlibpath_overrides_runpath=unknown
11871 dynamic_linker="$host_os ld.so"
11872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11873 need_lib_prefix=unknown
11874 hardcode_into_libs=no
11876 # when you set need_version to no, make sure it does not cause -set_version
11877 # flags to be left without arguments
11878 need_version=unknown
11884 version_type=linux # correct to gnu/linux during the next big refactor
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11886 shlibpath_var=LIBPATH
11888 # AIX 3 has no versioning support, so we append a major version to the name.
11889 soname_spec='$libname$release$shared_ext$major'
11893 version_type=linux # correct to gnu/linux during the next big refactor
11896 hardcode_into_libs=yes
11897 if test ia64 = "$host_cpu"; then
11898 # AIX 5 supports IA64
11899 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11900 shlibpath_var=LD_LIBRARY_PATH
11902 # With GCC up to 2.95.x, collect2 would create an import file
11903 # for dependence libraries. The import file would start with
11904 # the line '#! .'. This would cause the generated library to
11905 # depend on '.', always an invalid library. This was fixed in
11906 # development snapshots of GCC prior to 3.0.
11908 aix4 | aix4.[01] | aix4.[01].*)
11909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11911 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11914 can_build_shared=no
11918 # Using Import Files as archive members, it is possible to support
11919 # filename-based versioning of shared library archives on AIX. While
11920 # this would work for both with and without runtime linking, it will
11921 # prevent static linking of such archives. So we do filename-based
11922 # shared library versioning with .so extension only, which is used
11923 # when both runtime linking and shared linking is enabled.
11924 # Unfortunately, runtime linking may impact performance, so we do
11925 # not want this to be the default eventually. Also, we use the
11926 # versioned .so libs for executables only if there is the -brtl
11927 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11928 # To allow for filename-based versioning support, we need to create
11929 # libNAME.so.V as an archive file, containing:
11930 # *) an Import File, referring to the versioned filename of the
11931 # archive as well as the shared archive member, telling the
11932 # bitwidth (32 or 64) of that shared object, and providing the
11933 # list of exported symbols of that shared object, eventually
11934 # decorated with the 'weak' keyword
11935 # *) the shared object with the F_LOADONLY flag set, to really avoid
11936 # it being seen by the linker.
11937 # At run time we better use the real file rather than another symlink,
11938 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11940 case $with_aix_soname,$aix_use_runtimelinking in
11941 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11942 # soname into executable. Probably we can add versioning support to
11943 # collect2, so additional links can be useful in future.
11944 aix,yes) # traditional libtool
11945 dynamic_linker='AIX unversionable lib.so'
11946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11947 # instead of lib<name>.a to let people know that these are not
11948 # typical AIX shared libraries.
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11951 aix,no) # traditional AIX only
11952 dynamic_linker='AIX lib.a(lib.so.V)'
11953 # We preserve .a as extension for shared libraries through AIX4.2
11954 # and later when we are not doing run time linking.
11955 library_names_spec='$libname$release.a $libname.a'
11956 soname_spec='$libname$release$shared_ext$major'
11958 svr4,*) # full svr4 only
11959 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11960 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11961 # We do not specify a path in Import Files, so LIBPATH fires.
11962 shlibpath_overrides_runpath=yes
11964 *,yes) # both, prefer svr4
11965 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11966 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11967 # unpreferred sharedlib libNAME.a needs extra handling
11968 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11969 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11970 # We do not specify a path in Import Files, so LIBPATH fires.
11971 shlibpath_overrides_runpath=yes
11973 *,no) # both, prefer aix
11974 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11975 library_names_spec='$libname$release.a $libname.a'
11976 soname_spec='$libname$release$shared_ext$major'
11977 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11978 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11979 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11982 shlibpath_var=LIBPATH
11989 # Since July 2007 AmigaOS4 officially supports .so libraries.
11990 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11994 library_names_spec='$libname.ixlibrary $libname.a'
11995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11996 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12002 library_names_spec='$libname$shared_ext'
12003 dynamic_linker="$host_os ld.so"
12004 shlibpath_var=LIBRARY_PATH
12008 version_type=linux # correct to gnu/linux during the next big refactor
12010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12011 soname_spec='$libname$release$shared_ext$major'
12012 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12013 shlibpath_var=LD_LIBRARY_PATH
12014 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12015 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12016 # the default ld.so.conf also contains /usr/contrib/lib and
12017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12018 # libtool to hard-code these into programs
12021 cygwin* | mingw* | pw32* | cegcc*)
12022 version_type=windows
12027 case $GCC,$cc_basename in
12030 library_names_spec='$libname.dll.a'
12031 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12032 postinstall_cmds='base_file=`basename \$file`~
12033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12034 dldir=$destdir/`dirname \$dlpath`~
12035 test -d \$dldir || mkdir -p \$dldir~
12036 $install_prog $dir/$dlname \$dldir/$dlname~
12037 chmod a+x \$dldir/$dlname~
12038 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12039 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12041 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12042 dlpath=$dir/\$dldll~
12044 shlibpath_overrides_runpath=yes
12048 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12049 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12051 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12054 # MinGW DLLs use traditional 'lib' prefix
12055 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12058 # pw32 DLLs use 'pw' prefix rather than 'lib'
12059 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12062 dynamic_linker='Win32 ld.exe'
12066 # Native MSVC or ICC
12067 libname_spec='$name'
12068 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12069 library_names_spec='$libname.dll.lib'
12073 sys_lib_search_path_spec=
12076 for lt_path in $LIB
12079 # Let DOS variable expansion print the short 8.3 style file name.
12080 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12081 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12084 # Convert to MSYS style.
12085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12088 # Convert to unix form, then to dos form, then back to unix form
12089 # but this time dos style (no spaces!) so that the unix form looks
12090 # like /cygdrive/c/PROGRA~1:/cygdr...
12091 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12092 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12093 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12096 sys_lib_search_path_spec=$LIB
12097 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12098 # It is most probably a Windows format PATH.
12099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12101 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12103 # FIXME: find the short name or the path components, as spaces are
12104 # common. (e.g. "Program Files" -> "PROGRA~1")
12108 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12109 postinstall_cmds='base_file=`basename \$file`~
12110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12111 dldir=$destdir/`dirname \$dlpath`~
12112 test -d \$dldir || mkdir -p \$dldir~
12113 $install_prog $dir/$dlname \$dldir/$dlname'
12114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12115 dlpath=$dir/\$dldll~
12117 shlibpath_overrides_runpath=yes
12118 dynamic_linker='Win32 link.exe'
12122 # Assume MSVC and ICC wrapper
12123 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12124 dynamic_linker='Win32 ld.exe'
12127 # FIXME: first we should search . and the directory the executable is in
12131 darwin* | rhapsody*)
12132 dynamic_linker="$host_os dyld"
12133 version_type=darwin
12136 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12137 soname_spec='$libname$release$major$shared_ext'
12138 shlibpath_overrides_runpath=yes
12139 shlibpath_var=DYLD_LIBRARY_PATH
12140 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12142 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12147 version_type=linux # correct to gnu/linux during the next big refactor
12150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12151 soname_spec='$libname$release$shared_ext$major'
12152 shlibpath_var=LD_LIBRARY_PATH
12155 freebsd* | dragonfly* | midnightbsd*)
12156 # DragonFly does not have aout. When/if they implement a new
12157 # versioning mechanism, adjust this.
12158 if test -x /usr/bin/objformat; then
12159 objformat=`/usr/bin/objformat`
12162 freebsd[23].*) objformat=aout ;;
12163 *) objformat=elf ;;
12166 version_type=freebsd-$objformat
12167 case $version_type in
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12170 soname_spec='$libname$release$shared_ext$major'
12175 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12179 shlibpath_var=LD_LIBRARY_PATH
12182 shlibpath_overrides_runpath=yes
12184 freebsd3.[01]* | freebsdelf3.[01]*)
12185 shlibpath_overrides_runpath=yes
12186 hardcode_into_libs=yes
12188 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12189 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12190 shlibpath_overrides_runpath=no
12191 hardcode_into_libs=yes
12193 *) # from 4.6 on, and DragonFly
12194 shlibpath_overrides_runpath=yes
12195 hardcode_into_libs=yes
12201 version_type=linux # correct to gnu/linux during the next big refactor
12204 dynamic_linker="$host_os runtime_loader"
12205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12206 soname_spec='$libname$release$shared_ext$major'
12207 shlibpath_var=LIBRARY_PATH
12208 shlibpath_overrides_runpath=no
12209 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12210 hardcode_into_libs=yes
12213 hpux9* | hpux10* | hpux11*)
12214 # Give a soname corresponding to the major version so that dld.sl refuses to
12215 # link against other versions.
12222 hardcode_into_libs=yes
12223 dynamic_linker="$host_os dld.so"
12224 shlibpath_var=LD_LIBRARY_PATH
12225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227 soname_spec='$libname$release$shared_ext$major'
12228 if test 32 = "$HPUX_IA64_MODE"; then
12229 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12230 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12232 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12233 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12238 hardcode_into_libs=yes
12239 dynamic_linker="$host_os dld.sl"
12240 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12243 soname_spec='$libname$release$shared_ext$major'
12244 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12249 dynamic_linker="$host_os dld.sl"
12250 shlibpath_var=SHLIB_PATH
12251 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12253 soname_spec='$libname$release$shared_ext$major'
12256 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12257 postinstall_cmds='chmod 555 $lib'
12258 # or fails outright, so override atomically:
12259 install_override_mode=555
12263 version_type=linux # correct to gnu/linux during the next big refactor
12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12267 soname_spec='$libname$release$shared_ext$major'
12268 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 shlibpath_overrides_runpath=no
12271 hardcode_into_libs=yes
12274 irix5* | irix6* | nonstopux*)
12276 nonstopux*) version_type=nonstopux ;;
12278 if test yes = "$lt_cv_prog_gnu_ld"; then
12279 version_type=linux # correct to gnu/linux during the next big refactor
12286 soname_spec='$libname$release$shared_ext$major'
12287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12289 irix5* | nonstopux*)
12290 libsuff= shlibsuff=
12293 case $LD in # libtool.m4 will add one of these switches to LD
12294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12295 libsuff= shlibsuff= libmagic=32-bit;;
12296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12297 libsuff=32 shlibsuff=N32 libmagic=N32;;
12298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12299 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12300 *) libsuff= shlibsuff= libmagic=never-match;;
12304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12305 shlibpath_overrides_runpath=no
12306 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12307 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12308 hardcode_into_libs=yes
12311 # No shared lib support for Linux oldld, aout, or coff.
12312 linux*oldld* | linux*aout* | linux*coff*)
12317 version_type=none # Android doesn't support versioned libraries.
12320 library_names_spec='$libname$release$shared_ext'
12321 soname_spec='$libname$release$shared_ext'
12323 shlibpath_var=LD_LIBRARY_PATH
12324 shlibpath_overrides_runpath=yes
12326 # This implies no fast_install, which is unacceptable.
12327 # Some rework will be needed to allow for fast_install
12328 # before this can be enabled.
12329 hardcode_into_libs=yes
12331 dynamic_linker='Android linker'
12332 # Don't embed -rpath directories since the linker doesn't support them.
12333 hardcode_libdir_flag_spec='-L$libdir'
12336 # This must be glibc/ELF.
12337 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12338 version_type=linux # correct to gnu/linux during the next big refactor
12341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12342 soname_spec='$libname$release$shared_ext$major'
12343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12344 shlibpath_var=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath=no
12347 # Some binutils ld are patched to set DT_RUNPATH
12348 if test ${lt_cv_shlibpath_overrides_runpath+y}
12350 printf %s "(cached) " >&6
12352 lt_cv_shlibpath_overrides_runpath=no
12353 save_LDFLAGS=$LDFLAGS
12354 save_libdir=$libdir
12355 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12356 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12368 if ac_fn_c_try_link "$LINENO"
12370 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12372 lt_cv_shlibpath_overrides_runpath=yes
12375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12376 conftest$ac_exeext conftest.$ac_ext
12377 LDFLAGS=$save_LDFLAGS
12378 libdir=$save_libdir
12382 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12384 # This implies no fast_install, which is unacceptable.
12385 # Some rework will be needed to allow for fast_install
12386 # before this can be enabled.
12387 hardcode_into_libs=yes
12389 # Ideally, we could use ldconfig to report *all* directores which are
12390 # searched for libraries, however this is still not possible. Aside from not
12391 # being certain /sbin/ldconfig is available, command
12392 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12393 # even though it is searched at run-time. Try to do the best guess by
12394 # appending ld.so.conf contents (and includes) to the search path.
12395 if test -f /etc/ld.so.conf; then
12396 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' ' '`
12397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12400 # We used to test for /lib/ld.so.1 and disable shared libraries on
12401 # powerpc, because MkLinux only supported shared libraries with the
12402 # GNU dynamic linker. Since this was broken with cross compilers,
12403 # most powerpc-linux boxes support dynamic linking these days and
12404 # people can always --disable-shared, the test was removed, and we
12405 # assume the GNU/Linux dynamic linker is in use.
12406 dynamic_linker='GNU/Linux ld.so'
12413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12414 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12416 dynamic_linker='NetBSD (a.out) ld.so'
12418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12419 soname_spec='$libname$release$shared_ext$major'
12420 dynamic_linker='NetBSD ld.elf_so'
12422 shlibpath_var=LD_LIBRARY_PATH
12423 shlibpath_overrides_runpath=yes
12424 hardcode_into_libs=yes
12428 version_type=linux # correct to gnu/linux during the next big refactor
12429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12430 shlibpath_var=LD_LIBRARY_PATH
12431 shlibpath_overrides_runpath=yes
12438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12439 soname_spec='$libname$release$shared_ext$major'
12440 shlibpath_var=LD_LIBRARY_PATH
12441 shlibpath_overrides_runpath=no
12442 hardcode_into_libs=yes
12443 dynamic_linker='ldqnx.so'
12446 openbsd* | bitrig*)
12448 sys_lib_dlsearch_path_spec=/usr/lib
12450 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12455 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12457 shlibpath_var=LD_LIBRARY_PATH
12458 shlibpath_overrides_runpath=yes
12462 libname_spec='$name'
12463 version_type=windows
12467 # OS/2 can only load a DLL with a base name of 8 characters or less.
12468 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12469 v=$($ECHO $release$versuffix | tr -d .-);
12470 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12471 $ECHO $n$v`$shared_ext'
12472 library_names_spec='${libname}_dll.$libext'
12473 dynamic_linker='OS/2 ld.exe'
12474 shlibpath_var=BEGINLIBPATH
12475 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12477 postinstall_cmds='base_file=`basename \$file`~
12478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12479 dldir=$destdir/`dirname \$dlpath`~
12480 test -d \$dldir || mkdir -p \$dldir~
12481 $install_prog $dir/$dlname \$dldir/$dlname~
12482 chmod a+x \$dldir/$dlname~
12483 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12484 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12487 dlpath=$dir/\$dldll~
12491 osf3* | osf4* | osf5*)
12495 soname_spec='$libname$release$shared_ext$major'
12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12497 shlibpath_var=LD_LIBRARY_PATH
12498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12507 version_type=linux # correct to gnu/linux during the next big refactor
12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12511 soname_spec='$libname$release$shared_ext$major'
12512 shlibpath_var=LD_LIBRARY_PATH
12513 shlibpath_overrides_runpath=yes
12514 hardcode_into_libs=yes
12515 # ldd complains unless libraries are executable
12516 postinstall_cmds='chmod +x $lib'
12521 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12522 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12523 shlibpath_var=LD_LIBRARY_PATH
12524 shlibpath_overrides_runpath=yes
12525 if test yes = "$with_gnu_ld"; then
12532 version_type=linux # correct to gnu/linux during the next big refactor
12533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12534 soname_spec='$libname$release$shared_ext$major'
12535 shlibpath_var=LD_LIBRARY_PATH
12536 case $host_vendor in
12538 shlibpath_overrides_runpath=no
12540 runpath_var=LD_RUN_PATH
12548 shlibpath_overrides_runpath=no
12549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12555 if test -d /usr/nec; then
12556 version_type=linux # correct to gnu/linux during the next big refactor
12557 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12558 soname_spec='$libname$shared_ext.$major'
12559 shlibpath_var=LD_LIBRARY_PATH
12563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12568 soname_spec='$libname$release$shared_ext$major'
12569 shlibpath_var=LD_LIBRARY_PATH
12570 shlibpath_overrides_runpath=yes
12571 hardcode_into_libs=yes
12572 if test yes = "$with_gnu_ld"; then
12573 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12575 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12578 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12582 sys_lib_dlsearch_path_spec='/usr/lib'
12586 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12587 version_type=linux # correct to gnu/linux during the next big refactor
12590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 shlibpath_overrides_runpath=no
12593 hardcode_into_libs=yes
12597 version_type=linux # correct to gnu/linux during the next big refactor
12598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12599 soname_spec='$libname$release$shared_ext$major'
12600 shlibpath_var=LD_LIBRARY_PATH
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12608 printf "%s\n" "$dynamic_linker" >&6; }
12609 test no = "$dynamic_linker" && can_build_shared=no
12611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12612 if test yes = "$GCC"; then
12613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12616 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12617 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12620 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12621 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12624 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12625 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12627 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12628 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12630 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12631 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12730 printf %s "checking how to hardcode library paths into programs... " >&6; }
12732 if test -n "$hardcode_libdir_flag_spec" ||
12733 test -n "$runpath_var" ||
12734 test yes = "$hardcode_automatic"; then
12736 # We can hardcode non-existent directories.
12737 if test no != "$hardcode_direct" &&
12738 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12739 # have to relink, otherwise we might link with an installed library
12740 # when we should be linking with a yet-to-be-installed one
12741 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12742 test no != "$hardcode_minus_L"; then
12743 # Linking always hardcodes the temporary library directory.
12744 hardcode_action=relink
12746 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12747 hardcode_action=immediate
12750 # We cannot hardcode anything, or else we can only hardcode existing
12752 hardcode_action=unsupported
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12755 printf "%s\n" "$hardcode_action" >&6; }
12757 if test relink = "$hardcode_action" ||
12758 test yes = "$inherit_rpath"; then
12759 # Fast installation is not supported
12760 enable_fast_install=no
12761 elif test yes = "$shlibpath_overrides_runpath" ||
12762 test no = "$enable_shared"; then
12763 # Fast installation is not necessary
12764 enable_fast_install=needless
12772 if test yes != "$enable_dlopen"; then
12773 enable_dlopen=unknown
12774 enable_dlopen_self=unknown
12775 enable_dlopen_self_static=unknown
12782 lt_cv_dlopen=load_add_on
12784 lt_cv_dlopen_self=yes
12787 mingw* | pw32* | cegcc*)
12788 lt_cv_dlopen=LoadLibrary
12793 lt_cv_dlopen=dlopen
12798 # if libdl is installed we need to link against it
12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12800 printf %s "checking for dlopen in -ldl... " >&6; }
12801 if test ${ac_cv_lib_dl_dlopen+y}
12803 printf %s "(cached) " >&6
12805 ac_check_lib_save_LIBS=$LIBS
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12822 if ac_fn_c_try_link "$LINENO"
12824 ac_cv_lib_dl_dlopen=yes
12826 ac_cv_lib_dl_dlopen=no
12828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12829 conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12833 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12834 if test "x$ac_cv_lib_dl_dlopen" = xyes
12836 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12841 lt_cv_dlopen_self=yes
12848 # Don't try to run any link tests for TPF. We know it's impossible
12849 # because TPF is a cross-compiler, and we know how we open DSOs.
12850 lt_cv_dlopen=dlopen
12852 lt_cv_dlopen_self=no
12856 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12857 if test "x$ac_cv_func_shl_load" = xyes
12859 lt_cv_dlopen=shl_load
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12862 printf %s "checking for shl_load in -ldld... " >&6; }
12863 if test ${ac_cv_lib_dld_shl_load+y}
12865 printf %s "(cached) " >&6
12867 ac_check_lib_save_LIBS=$LIBS
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12872 /* Override any GCC internal prototype to avoid an error.
12873 Use char because int might match the return type of a GCC
12874 builtin and then its argument prototype would still apply. */
12879 return shl_load ();
12884 if ac_fn_c_try_link "$LINENO"
12886 ac_cv_lib_dld_shl_load=yes
12888 ac_cv_lib_dld_shl_load=no
12890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12891 conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS
12894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12895 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12896 if test "x$ac_cv_lib_dld_shl_load" = xyes
12898 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12900 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12901 if test "x$ac_cv_func_dlopen" = xyes
12903 lt_cv_dlopen=dlopen
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12906 printf %s "checking for dlopen in -ldl... " >&6; }
12907 if test ${ac_cv_lib_dl_dlopen+y}
12909 printf %s "(cached) " >&6
12911 ac_check_lib_save_LIBS=$LIBS
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12928 if ac_fn_c_try_link "$LINENO"
12930 ac_cv_lib_dl_dlopen=yes
12932 ac_cv_lib_dl_dlopen=no
12934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12935 conftest$ac_exeext conftest.$ac_ext
12936 LIBS=$ac_check_lib_save_LIBS
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12939 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12940 if test "x$ac_cv_lib_dl_dlopen" = xyes
12942 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12945 printf %s "checking for dlopen in -lsvld... " >&6; }
12946 if test ${ac_cv_lib_svld_dlopen+y}
12948 printf %s "(cached) " >&6
12950 ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-lsvld $LIBS"
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12955 /* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
12967 if ac_fn_c_try_link "$LINENO"
12969 ac_cv_lib_svld_dlopen=yes
12971 ac_cv_lib_svld_dlopen=no
12973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12974 conftest$ac_exeext conftest.$ac_ext
12975 LIBS=$ac_check_lib_save_LIBS
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12978 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12979 if test "x$ac_cv_lib_svld_dlopen" = xyes
12981 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12984 printf %s "checking for dld_link in -ldld... " >&6; }
12985 if test ${ac_cv_lib_dld_dld_link+y}
12987 printf %s "(cached) " >&6
12989 ac_check_lib_save_LIBS=$LIBS
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12994 /* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
13001 return dld_link ();
13006 if ac_fn_c_try_link "$LINENO"
13008 ac_cv_lib_dld_dld_link=yes
13010 ac_cv_lib_dld_dld_link=no
13012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13013 conftest$ac_exeext conftest.$ac_ext
13014 LIBS=$ac_check_lib_save_LIBS
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13017 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13018 if test "x$ac_cv_lib_dld_dld_link" = xyes
13020 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13041 if test no = "$lt_cv_dlopen"; then
13047 case $lt_cv_dlopen in
13049 save_CPPFLAGS=$CPPFLAGS
13050 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13052 save_LDFLAGS=$LDFLAGS
13053 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13056 LIBS="$lt_cv_dlopen_libs $LIBS"
13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13059 printf %s "checking whether a program can dlopen itself... " >&6; }
13060 if test ${lt_cv_dlopen_self+y}
13062 printf %s "(cached) " >&6
13064 if test yes = "$cross_compiling"; then :
13065 lt_cv_dlopen_self=cross
13067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13068 lt_status=$lt_dlunknown
13069 cat > conftest.$ac_ext <<_LT_EOF
13070 #line $LINENO "configure"
13071 #include "confdefs.h"
13080 # define LT_DLGLOBAL RTLD_GLOBAL
13083 # define LT_DLGLOBAL DL_GLOBAL
13085 # define LT_DLGLOBAL 0
13089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13090 find out it does not work in some platform. */
13091 #ifndef LT_DLLAZY_OR_NOW
13093 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13096 # define LT_DLLAZY_OR_NOW DL_LAZY
13099 # define LT_DLLAZY_OR_NOW RTLD_NOW
13102 # define LT_DLLAZY_OR_NOW DL_NOW
13104 # define LT_DLLAZY_OR_NOW 0
13111 /* When -fvisibility=hidden is used, assume the code has been annotated
13112 correspondingly for the symbols needed. */
13113 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13114 int fnord () __attribute__((visibility("default")));
13117 int fnord () { return 42; }
13120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13121 int status = $lt_dlunknown;
13125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13128 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13129 else puts (dlerror ());
13131 /* dlclose (self); */
13139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13140 (eval $ac_link) 2>&5
13142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13143 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13144 (./conftest; exit; ) >&5 2>/dev/null
13146 case x$lt_status in
13147 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13148 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13149 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13152 # compilation failed
13153 lt_cv_dlopen_self=no
13160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13161 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13163 if test yes = "$lt_cv_dlopen_self"; then
13164 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13166 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13167 if test ${lt_cv_dlopen_self_static+y}
13169 printf %s "(cached) " >&6
13171 if test yes = "$cross_compiling"; then :
13172 lt_cv_dlopen_self_static=cross
13174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13175 lt_status=$lt_dlunknown
13176 cat > conftest.$ac_ext <<_LT_EOF
13177 #line $LINENO "configure"
13178 #include "confdefs.h"
13187 # define LT_DLGLOBAL RTLD_GLOBAL
13190 # define LT_DLGLOBAL DL_GLOBAL
13192 # define LT_DLGLOBAL 0
13196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13197 find out it does not work in some platform. */
13198 #ifndef LT_DLLAZY_OR_NOW
13200 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13203 # define LT_DLLAZY_OR_NOW DL_LAZY
13206 # define LT_DLLAZY_OR_NOW RTLD_NOW
13209 # define LT_DLLAZY_OR_NOW DL_NOW
13211 # define LT_DLLAZY_OR_NOW 0
13218 /* When -fvisibility=hidden is used, assume the code has been annotated
13219 correspondingly for the symbols needed. */
13220 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13221 int fnord () __attribute__((visibility("default")));
13224 int fnord () { return 42; }
13227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13228 int status = $lt_dlunknown;
13232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13235 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13236 else puts (dlerror ());
13238 /* dlclose (self); */
13246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13247 (eval $ac_link) 2>&5
13249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13251 (./conftest; exit; ) >&5 2>/dev/null
13253 case x$lt_status in
13254 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13255 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13256 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13259 # compilation failed
13260 lt_cv_dlopen_self_static=no
13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13268 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13271 CPPFLAGS=$save_CPPFLAGS
13272 LDFLAGS=$save_LDFLAGS
13277 case $lt_cv_dlopen_self in
13278 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13279 *) enable_dlopen_self=unknown ;;
13282 case $lt_cv_dlopen_self_static in
13283 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13284 *) enable_dlopen_self_static=unknown ;;
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13307 printf %s "checking whether stripping libraries is possible... " >&6; }
13308 if test -z "$STRIP"; then
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 printf "%s\n" "no" >&6; }
13312 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13313 old_striplib="$STRIP --strip-debug"
13314 striplib="$STRIP --strip-unneeded"
13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13316 printf "%s\n" "yes" >&6; }
13320 # FIXME - insert some real tests, host_os isn't really good enough
13321 striplib="$STRIP -x"
13322 old_striplib="$STRIP -S"
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13324 printf "%s\n" "yes" >&6; }
13327 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13328 old_striplib="$STRIP --strip-debug"
13329 striplib="$STRIP --strip-unneeded"
13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13331 printf "%s\n" "yes" >&6; }
13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 printf "%s\n" "no" >&6; }
13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339 printf "%s\n" "no" >&6; }
13356 # Report what library types will actually be built
13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13358 printf %s "checking if libtool supports shared libraries... " >&6; }
13359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13360 printf "%s\n" "$can_build_shared" >&6; }
13362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13363 printf %s "checking whether to build shared libraries... " >&6; }
13364 test no = "$can_build_shared" && enable_shared=no
13366 # On AIX, shared libraries and static libraries use the same namespace, and
13367 # are all built from PIC.
13370 test yes = "$enable_shared" && enable_static=no
13371 if test -n "$RANLIB"; then
13372 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13373 postinstall_cmds='$RANLIB $lib'
13378 if test ia64 != "$host_cpu"; then
13379 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13380 yes,aix,yes) ;; # shared object as lib.so file only
13381 yes,svr4,*) ;; # shared object as lib.so archive member only
13382 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13388 printf "%s\n" "$enable_shared" >&6; }
13390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13391 printf %s "checking whether to build static libraries... " >&6; }
13392 # Make sure either enable_shared or enable_static is yes.
13393 test yes = "$enable_shared" || enable_static=yes
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13395 printf "%s\n" "$enable_static" >&6; }
13402 ac_cpp='$CPP $CPPFLAGS'
13403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13423 ac_config_commands="$ac_config_commands libtool"
13428 # Only expand once:
13433 # Some awks crash when confronted with pnglibconf.dfa, do a test run now
13434 # to make sure this doesn't happen
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
13436 printf %s "checking that AWK works... " >&6; }
13437 if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
13438 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
13439 ${srcdir}/pngusr.dfa 1>&2
13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13442 printf "%s\n" "ok" >&6; }
13444 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13445 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13446 as_fn_error 1 "failed
13447 See \`config.log' for more details" "$LINENO" 5; }
13450 # This is a remnant of the old cc -E validation, where it may have been
13451 # necessary to use a different preprocessor for .dfn files
13455 # -Werror cannot be passed to GCC in CFLAGS because configure will fail
13456 # (it checks the compiler with a program that generates a warning).
13457 # Add the following option to deal with this:
13459 # Check whether --enable-werror was given.
13460 if test ${enable_werror+y}
13462 enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
13463 if test "$enable_werror" != "no"; then
13464 sav_CFLAGS="$CFLAGS"
13465 CFLAGS="$enable_werror $CFLAGS"
13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
13467 printf %s "checking if the compiler allows $enable_werror... " >&6; }
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13471 int main(int argc, char **argv){
13472 return argv[argc-1][0];
13475 if ac_fn_c_try_compile "$LINENO"
13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13478 printf "%s\n" "yes" >&6; }
13479 PNG_COPTS="$PNG_COPTS $enable_werror"
13481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 printf "%s\n" "no" >&6; }
13484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13485 CFLAGS="$sav_CFLAGS"
13490 # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89.
13491 # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining
13492 # _POSIX_SOURCE to 1. This is incompatible with the new default mode, so
13493 # we test for that and force the "-std=c89" compiler option:
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
13495 printf %s "checking if we need to force back C standard to C89... " >&6; }
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 #define _POSIX_SOURCE 1
13510 if ac_fn_c_try_compile "$LINENO"
13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 printf "%s\n" "no" >&6; }
13516 if test "x$GCC" != "xyes"; then
13517 as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13520 printf "%s\n" "yes" >&6; }
13521 CFLAGS="$CFLAGS -std=c89"
13524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13526 # Checks for structures and compiler characteristics.
13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13528 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13529 if test ${ac_cv_struct_tm+y}
13531 printf %s "(cached) " >&6
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13535 #include <sys/types.h>
13542 int *p = &tm.tm_sec;
13548 if ac_fn_c_try_compile "$LINENO"
13550 ac_cv_struct_tm=time.h
13552 ac_cv_struct_tm=sys/time.h
13554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13557 printf "%s\n" "$ac_cv_struct_tm" >&6; }
13558 if test $ac_cv_struct_tm = sys/time.h; then
13560 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13565 printf %s "checking for C/C++ restrict keyword... " >&6; }
13566 if test ${ac_cv_c_restrict+y}
13568 printf %s "(cached) " >&6
13570 ac_cv_c_restrict=no
13571 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
13572 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
13573 # Put 'restrict' last, because C++ lacks it.
13574 for ac_kw in __restrict__ __restrict _Restrict restrict; do
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577 typedef int *int_ptr;
13578 int foo (int_ptr $ac_kw ip) { return ip[0]; }
13579 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
13580 int bar (int ip[$ac_kw]) { return ip[0]; }
13588 return foo (t) + bar (t);
13594 if ac_fn_c_try_compile "$LINENO"
13596 ac_cv_c_restrict=$ac_kw
13598 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13599 test "$ac_cv_c_restrict" != no && break
13603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13604 printf "%s\n" "$ac_cv_c_restrict" >&6; }
13606 case $ac_cv_c_restrict in
13608 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
13610 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
13615 # Checks for library functions.
13619 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13620 if test "x$ac_cv_func_pow" = xyes
13622 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13626 printf %s "checking for pow in -lm... " >&6; }
13627 if test ${ac_cv_lib_m_pow+y}
13629 printf %s "(cached) " >&6
13631 ac_check_lib_save_LIBS=$LIBS
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13636 /* Override any GCC internal prototype to avoid an error.
13637 Use char because int might match the return type of a GCC
13638 builtin and then its argument prototype would still apply. */
13648 if ac_fn_c_try_link "$LINENO"
13650 ac_cv_lib_m_pow=yes
13654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13655 conftest$ac_exeext conftest.$ac_ext
13656 LIBS=$ac_check_lib_save_LIBS
13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13659 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
13660 if test "x$ac_cv_lib_m_pow" = xyes
13662 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
13667 as_fn_error $? "cannot find pow" "$LINENO" 5
13674 # Some later POSIX 1003.1 functions are required for test programs, failure
13675 # here is soft (the corresponding test program is not built).
13676 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13677 if test "x$ac_cv_func_clock_gettime" = xyes
13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5
13682 printf "%s\n" "$as_me: WARNING: not building timepng" >&2;}
13685 if test "$ac_cv_func_clock_gettime" = "yes"; then
13686 HAVE_CLOCK_GETTIME_TRUE=
13687 HAVE_CLOCK_GETTIME_FALSE='#'
13689 HAVE_CLOCK_GETTIME_TRUE='#'
13690 HAVE_CLOCK_GETTIME_FALSE=
13695 # Check whether --with-zlib-prefix was given.
13696 if test ${with_zlib_prefix+y}
13698 withval=$with_zlib_prefix; ZPREFIX=${withval}
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13704 printf %s "checking for zlibVersion in -lz... " >&6; }
13705 if test ${ac_cv_lib_z_zlibVersion+y}
13707 printf %s "(cached) " >&6
13709 ac_check_lib_save_LIBS=$LIBS
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13714 /* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13717 char zlibVersion ();
13721 return zlibVersion ();
13726 if ac_fn_c_try_link "$LINENO"
13728 ac_cv_lib_z_zlibVersion=yes
13730 ac_cv_lib_z_zlibVersion=no
13732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13733 conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13737 printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
13738 if test "x$ac_cv_lib_z_zlibVersion" = xyes
13740 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
13745 as_ac_Lib=`printf "%s\n" "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
13747 printf %s "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
13748 if eval test \${$as_ac_Lib+y}
13750 printf %s "(cached) " >&6
13752 ac_check_lib_save_LIBS=$LIBS
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13757 /* Override any GCC internal prototype to avoid an error.
13758 Use char because int might match the return type of a GCC
13759 builtin and then its argument prototype would still apply. */
13760 char ${ZPREFIX}zlibVersion ();
13764 return ${ZPREFIX}zlibVersion ();
13769 if ac_fn_c_try_link "$LINENO"
13771 eval "$as_ac_Lib=yes"
13773 eval "$as_ac_Lib=no"
13775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13776 conftest$ac_exeext conftest.$ac_ext
13777 LIBS=$ac_check_lib_save_LIBS
13779 eval ac_res=\$$as_ac_Lib
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13781 printf "%s\n" "$ac_res" >&6; }
13782 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
13784 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
13789 as_fn_error $? "zlib not installed" "$LINENO" 5
13795 # The following is for pngvalid, to ensure it catches FP errors even on
13796 # platforms that don't enable FP exceptions, the function appears in the math
13797 # library (typically), it's not an error if it is not found.
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
13799 printf %s "checking for feenableexcept in -lm... " >&6; }
13800 if test ${ac_cv_lib_m_feenableexcept+y}
13802 printf %s "(cached) " >&6
13804 ac_check_lib_save_LIBS=$LIBS
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13809 /* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13812 char feenableexcept ();
13816 return feenableexcept ();
13821 if ac_fn_c_try_link "$LINENO"
13823 ac_cv_lib_m_feenableexcept=yes
13825 ac_cv_lib_m_feenableexcept=no
13827 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13828 conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
13832 printf "%s\n" "$ac_cv_lib_m_feenableexcept" >&6; }
13833 if test "x$ac_cv_lib_m_feenableexcept" = xyes
13835 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
13841 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
13842 if test "x$ac_cv_func_feenableexcept" = xyes
13844 printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
13850 printf %s "checking if using Solaris linker... " >&6; }
13851 SLD=`$LD --version 2>&1 | grep Solaris`
13852 if test "$SLD"; then
13853 have_solaris_ld=yes
13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855 printf "%s\n" "yes" >&6; }
13858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 printf "%s\n" "no" >&6; }
13861 if test "$have_solaris_ld" = "yes"; then
13862 HAVE_SOLARIS_LD_TRUE=
13863 HAVE_SOLARIS_LD_FALSE='#'
13865 HAVE_SOLARIS_LD_TRUE='#'
13866 HAVE_SOLARIS_LD_FALSE=
13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
13871 printf %s "checking if libraries can be versioned... " >&6; }
13872 # Special case for PE/COFF platforms: ld reports
13873 # support for version-script, but doesn't actually
13874 # DO anything with it.
13876 *cygwin* | *mingw32* | *interix* )
13877 have_ld_version_script=no
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879 printf "%s\n" "no" >&6; }
13883 if test "$have_solaris_ld" = "yes"; then
13884 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
13886 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
13889 if test "$GLD"; then
13890 have_ld_version_script=yes
13891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13892 printf "%s\n" "yes" >&6; }
13894 have_ld_version_script=no
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 printf "%s\n" "no" >&6; }
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
13898 printf "%s\n" "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
13903 if test "$have_ld_version_script" = "yes"; then
13904 HAVE_LD_VERSION_SCRIPT_TRUE=
13905 HAVE_LD_VERSION_SCRIPT_FALSE='#'
13907 HAVE_LD_VERSION_SCRIPT_TRUE='#'
13908 HAVE_LD_VERSION_SCRIPT_FALSE=
13912 if test "$have_ld_version_script" = "yes"; then
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
13914 printf %s "checking for symbol prefix... " >&6; }
13915 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
13916 | ${CPP-${CC-gcc} -E} - 2>&1 \
13917 | ${EGREP-grep} "^PREFIX=" \
13918 | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
13921 printf "%s\n" "$SYMBOL_PREFIX" >&6; }
13924 # Substitutions for .in files
13930 # Additional arguments (and substitutions)
13931 # Allow the pkg-config directory to be set
13933 # Check whether --with-pkgconfigdir was given.
13934 if test ${with_pkgconfigdir+y}
13936 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
13938 pkgconfigdir='${libdir}/pkgconfig'
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
13944 printf "%s\n" "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
13946 # Make the *-config binary config scripts optional
13948 # Check whether --with-binconfigs was given.
13949 if test ${with_binconfigs+y}
13951 withval=$with_binconfigs; if test "${withval}" = no; then
13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
13954 printf "%s\n" "$as_me: libpng-config scripts will not be built" >&6;}
13956 binconfigs='${binconfigs}'
13959 binconfigs='${binconfigs}'
13964 # Support for prefixes to the API function names; this will generate defines
13965 # at the start of the build to rename exported library functions
13967 # Check whether --with-libpng-prefix was given.
13968 if test ${with_libpng_prefix+y}
13970 withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
13971 PNG_PREFIX=${withval}
13976 if test "${with_libpng_prefix:-no}" != "no"; then
13977 DO_PNG_PREFIX_TRUE=
13978 DO_PNG_PREFIX_FALSE='#'
13980 DO_PNG_PREFIX_TRUE='#'
13981 DO_PNG_PREFIX_FALSE=
13985 # Control over what links are made for installed files. Versioned files are
13986 # always installed, when the following options are turned on corresponding
13987 # unversioned links are also created (normally as symbolic links):
13988 # Check whether --enable-unversioned-links was given.
13989 if test ${enable_unversioned_links+y}
13991 enableval=$enable_unversioned_links;
13995 # The AM_CONDITIONAL test is written so that the default is enabled;
13996 # --disable-unversioned-links must be given to turn the option off.
13997 if test "$enable_unversioned_links" != "no"; then
13998 DO_INSTALL_LINKS_TRUE=
13999 DO_INSTALL_LINKS_FALSE='#'
14001 DO_INSTALL_LINKS_TRUE='#'
14002 DO_INSTALL_LINKS_FALSE=
14006 # Check whether --enable-unversioned-libpng-pc was given.
14007 if test ${enable_unversioned_libpng_pc+y}
14009 enableval=$enable_unversioned_libpng_pc;
14012 if test "$enable_unversioned_libpng_pc" != "no"; then
14013 DO_INSTALL_LIBPNG_PC_TRUE=
14014 DO_INSTALL_LIBPNG_PC_FALSE='#'
14016 DO_INSTALL_LIBPNG_PC_TRUE='#'
14017 DO_INSTALL_LIBPNG_PC_FALSE=
14021 # Check whether --enable-unversioned-libpng-config was given.
14022 if test ${enable_unversioned_libpng_config+y}
14024 enableval=$enable_unversioned_libpng_config;
14027 if test "$enable_unversioned_libpng_config" != "no"; then
14028 DO_INSTALL_LIBPNG_CONFIG_TRUE=
14029 DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
14031 DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
14032 DO_INSTALL_LIBPNG_CONFIG_FALSE=
14036 # HOST-SPECIFIC OPTIONS
14037 # =====================
14042 # Check whether --enable-hardware-optimizations was given.
14043 if test ${enable_hardware_optimizations+y}
14045 enableval=$enable_hardware_optimizations; case "$enableval" in
14047 # disable hardware optimization on all systems:
14050 printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
14054 printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
14056 enable_powerpc_vsx=no
14058 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
14060 enable_intel_sse=no
14062 printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
14066 # allow enabling hardware optimization on any system:
14067 case "$host_cpu" in
14069 enable_arm_neon=yes
14071 printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
14075 enable_mips_msa=yes
14077 printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
14081 enable_intel_sse=yes
14083 printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
14087 enable_powerpc_vsx=yes
14089 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
14101 # ARM NEON (SIMD) support.
14103 # Check whether --enable-arm-neon was given.
14104 if test ${enable_arm_neon+y}
14106 enableval=$enable_arm_neon; case "$enableval" in
14108 # disable the default enabling on __ARM_NEON__ systems:
14110 printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
14112 # Prevent inclusion of the assembler files below:
14113 enable_arm_neon=no ;;
14116 printf "%s\n" "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
14120 printf "%s\n" "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
14124 printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
14126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
14127 you want the optimizations unconditionally pass -mfpu=neon
14128 to the compiler." >&5
14129 printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
14130 you want the optimizations unconditionally pass -mfpu=neon
14131 to the compiler." >&2;};;
14133 as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
14138 # Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or
14139 # where ARM optimizations were explicitly requested (this allows a fallback
14140 # if a future host CPU does not match 'arm*')
14142 if test "$enable_arm_neon" != 'no' &&
14143 case "$host_cpu" in
14144 arm*|aarch64*) : ;;
14145 *) test "$enable_arm_neon" != '' ;;
14148 PNG_ARM_NEON_FALSE='#'
14150 PNG_ARM_NEON_TRUE='#'
14151 PNG_ARM_NEON_FALSE=
14158 # MIPS MSA (SIMD) support.
14160 # Check whether --enable-mips-msa was given.
14161 if test ${enable_mips_msa+y}
14163 enableval=$enable_mips_msa; case "$enableval" in
14165 # disable the default enabling on __mips_msa systems:
14167 printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
14169 # Prevent inclusion of the assembler files below:
14170 enable_mips_msa=no ;;
14173 printf "%s\n" "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h
14177 printf "%s\n" "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h
14181 printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
14183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
14184 you want the optimizations unconditionally pass '-mmsa -mfp64'
14185 to the compiler." >&5
14186 printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
14187 you want the optimizations unconditionally pass '-mmsa -mfp64'
14188 to the compiler." >&2;};;
14190 as_fn_error $? "--enable-mips-msa=${enable_mips_msa}: invalid value" "$LINENO" 5
14195 # Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or
14196 # where MIPS optimizations were explicitly requested (this allows a fallback
14197 # if a future host CPU does not match 'mips*')
14199 if test "$enable_mips_msa" != 'no' &&
14200 case "$host_cpu" in
14201 mipsel*|mips64el*) : ;;
14204 PNG_MIPS_MSA_FALSE='#'
14206 PNG_MIPS_MSA_TRUE='#'
14207 PNG_MIPS_MSA_FALSE=
14214 # INTEL SSE (SIMD) support.
14216 # Check whether --enable-intel-sse was given.
14217 if test ${enable_intel_sse+y}
14219 enableval=$enable_intel_sse; case "$enableval" in
14221 # disable the default enabling:
14223 printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
14225 # Prevent inclusion of the assembler files below:
14226 enable_intel_sse=no ;;
14229 printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
14232 as_fn_error $? "--enable-intel-sse=${enable_intel_sse}: invalid value" "$LINENO" 5
14237 # Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or
14238 # where Intel optimizations were explicitly requested (this allows a fallback
14239 # if a future host CPU does not match 'x86*')
14240 if test "$enable_intel_sse" != 'no' &&
14241 case "$host_cpu" in
14243 *) test "$enable_intel_sse" != '' ;;
14245 PNG_INTEL_SSE_TRUE=
14246 PNG_INTEL_SSE_FALSE='#'
14248 PNG_INTEL_SSE_TRUE='#'
14249 PNG_INTEL_SSE_FALSE=
14256 # PowerPC VSX (SIMD) support.
14258 # Check whether --enable-powerpc-vsx was given.
14259 if test ${enable_powerpc_vsx+y}
14261 enableval=$enable_powerpc_vsx; case "$enableval" in
14263 # disable the default enabling on __ppc64__ systems:
14265 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
14267 # Prevent inclusion of the platform-specific files below:
14268 enable_powerpc_vsx=no ;;
14271 printf "%s\n" "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h
14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
14274 for the list of supported OSes." >&5
14275 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
14276 for the list of supported OSes." >&2;};;
14279 printf "%s\n" "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
14283 printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
14286 you want the optimizations unconditionally pass '-maltivec -mvsx'
14287 or '-mcpu=power8' to the compiler." >&5
14288 printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
14289 you want the optimizations unconditionally pass '-maltivec -mvsx'
14290 or '-mcpu=power8' to the compiler." >&2;};;
14292 as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value" "$LINENO" 5
14297 # Add PowerPC-specific files to all builds where $host_cpu is powerpc('powerpc*')
14298 # or where PowerPC optimizations were explicitly requested (this allows a fallback
14299 # if a future host CPU does not match 'powerpc*')
14301 if test "$enable_powerpc_vsx" != 'no' &&
14302 case "$host_cpu" in
14303 powerpc*|ppc64*) : ;;
14305 PNG_POWERPC_VSX_TRUE=
14306 PNG_POWERPC_VSX_FALSE='#'
14308 PNG_POWERPC_VSX_TRUE='#'
14309 PNG_POWERPC_VSX_FALSE=
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
14314 printf "%s\n" "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
14316 # Config files, substituting as above
14317 ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
14319 ac_config_files="$ac_config_files libpng-config:libpng-config.in"
14322 cat >confcache <<\_ACEOF
14323 # This file is a shell script that caches the results of configure
14324 # tests run on this system so they can be shared between configure
14325 # scripts and configure runs, see configure's option --config-cache.
14326 # It is not useful on other systems. If it contains results you don't
14327 # want to keep, you may remove or edit it.
14329 # config.status only pays attention to the cache file if you give it
14330 # the --recheck option to rerun configure.
14332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14334 # following values.
14338 # The following way of writing the cache mishandles newlines in values,
14339 # but we know of no workaround that is simple, portable, and efficient.
14340 # So, we kill variables containing newlines.
14341 # Ultrix sh set writes to stderr and can't be redirected directly,
14342 # and sets the high bit in the cache file unless we assign to the vars.
14344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14345 eval ac_val=\$$ac_var
14349 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14350 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14353 _ | IFS | as_nl) ;; #(
14354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14355 *) { eval $ac_var=; unset $ac_var;} ;;
14361 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14362 *${as_nl}ac_space=\ *)
14363 # `set' does not quote correctly, so add quotes: double-quote
14364 # substitution turns \\\\ into \\, and sed turns \\ into \.
14367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14370 # `set' quotes correctly as required by POSIX, so do not add quotes.
14371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14380 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14384 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14385 if test -w "$cache_file"; then
14386 if test "x$cache_file" != "x/dev/null"; then
14387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14388 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14389 if test ! -f "$cache_file" || test -h "$cache_file"; then
14390 cat confcache >"$cache_file"
14392 case $cache_file in #(
14394 mv -f confcache "$cache_file"$$ &&
14395 mv -f "$cache_file"$$ "$cache_file" ;; #(
14397 mv -f confcache "$cache_file" ;;
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14403 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14409 # Let make expand exec_prefix.
14410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14412 DEFS=-DHAVE_CONFIG_H
14417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14418 # 1. Remove the extension, and $U if already installed.
14419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14420 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14422 # will be set to the directory where LIBOBJS objects are built.
14423 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14424 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14426 LIBOBJS=$ac_libobjs
14428 LTLIBOBJS=$ac_ltlibobjs
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14432 printf %s "checking that generated files are newer than configure... " >&6; }
14433 if test -n "$am_sleep_pid"; then
14434 # Hide warnings about reused PIDs.
14435 wait $am_sleep_pid 2>/dev/null
14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14438 printf "%s\n" "done" >&6; }
14439 if test -n "$EXEEXT"; then
14441 am__EXEEXT_FALSE='#'
14443 am__EXEEXT_TRUE='#'
14447 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14448 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14451 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14452 as_fn_error $? "conditional \"AMDEP\" was never defined.
14453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14455 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14456 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14459 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14460 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14463 if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
14464 as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
14465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14467 if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
14468 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
14469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14471 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
14472 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
14473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14475 if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
14476 as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
14477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14479 if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
14480 as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
14481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14483 if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
14484 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
14485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14487 if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
14488 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
14489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14491 if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
14492 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
14493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14495 if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then
14496 as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined.
14497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14499 if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then
14500 as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined.
14501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14503 if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
14504 as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
14505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14508 : "${CONFIG_STATUS=./config.status}"
14510 ac_clean_files_save=$ac_clean_files
14511 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14513 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14515 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14517 # Generated by $as_me.
14518 # Run this file to recreate the current configuration.
14519 # Compiler output produced by configure, useful for debugging
14520 # configure, is in config.log if it exists.
14523 ac_cs_recheck=false
14526 SHELL=\${CONFIG_SHELL-$SHELL}
14529 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14530 ## -------------------- ##
14531 ## M4sh Initialization. ##
14532 ## -------------------- ##
14534 # Be more Bourne compatible
14535 DUALCASE=1; export DUALCASE # for MKS sh
14537 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14541 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14542 # is contrary to our usage. Disable this feature.
14543 alias -g '${1+"$@"}'='"$@"'
14544 setopt NO_GLOB_SUBST
14546 case `(set -o) 2>/dev/null` in #(
14556 # Reset variables that may have inherited troublesome values from
14559 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14560 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14561 # side effect of setting IFS to empty, thus disabling word splitting.)
14562 # Quoting is to prevent editors from complaining about space-tab.
14572 # Ensure predictable behavior from utilities with locale-dependent output.
14578 # We cannot yet rely on "unset" to work, but we need these variables
14579 # to be unset--not just set to an empty or harmless value--now, to
14580 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14581 # also avoids known problems related to "unset" and subshell syntax
14582 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14583 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14584 do eval test \${$as_var+y} \
14585 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14588 # Ensure that fds 0, 1, and 2 are open.
14589 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14590 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14591 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14593 # The user is always right.
14594 if ${PATH_SEPARATOR+false} :; then
14596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14597 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14603 # Find who we are. Look in the path if we contain no directory separator.
14606 *[\\/]* ) as_myself=$0 ;;
14607 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14611 case $as_dir in #(((
14614 *) as_dir=$as_dir/ ;;
14616 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14622 # We did not find ourselves, most probably we were run as `sh COMMAND'
14623 # in which case we are not to be found in the path.
14624 if test "x$as_myself" = x; then
14627 if test ! -f "$as_myself"; then
14628 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14634 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14635 # ----------------------------------------
14636 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14637 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14638 # script with STATUS, using 1 if that was 0.
14641 as_status=$1; test $as_status -eq 0 && as_status=1
14643 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14646 printf "%s\n" "$as_me: error: $2" >&2
14647 as_fn_exit $as_status
14652 # as_fn_set_status STATUS
14653 # -----------------------
14654 # Set $? to STATUS, without forking.
14655 as_fn_set_status ()
14658 } # as_fn_set_status
14660 # as_fn_exit STATUS
14661 # -----------------
14662 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14666 as_fn_set_status $1
14672 # Portably unset VAR.
14675 { eval $1=; unset $1;}
14677 as_unset=as_fn_unset
14679 # as_fn_append VAR VALUE
14680 # ----------------------
14681 # Append the text in VALUE to the end of the definition contained in VAR. Take
14682 # advantage of any shell optimizations that allow amortized linear growth over
14683 # repeated appends, instead of the typical quadratic growth present in naive
14685 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14687 eval 'as_fn_append ()
14698 # as_fn_arith ARG...
14699 # ------------------
14700 # Perform arithmetic evaluation on the ARGs, and store the result in the
14701 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14702 # must be portable across $(()) and expr.
14703 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14705 eval 'as_fn_arith ()
14712 as_val=`expr "$@" || test $? -eq 1`
14717 if expr a : '\(a\)' >/dev/null 2>&1 &&
14718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14724 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14725 as_basename=basename
14730 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14736 as_me=`$as_basename -- "$0" ||
14737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14738 X"$0" : 'X\(//\)$' \| \
14739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14740 printf "%s\n" X/"$0" |
14741 sed '/^.*\/\([^/][^/]*\)\/*$/{
14755 # Avoid depending upon Character Ranges.
14756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14759 as_cr_digits='0123456789'
14760 as_cr_alnum=$as_cr_Letters$as_cr_digits
14763 # Determine whether it's possible to make 'echo' print without a newline.
14764 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14765 # for compatibility with existing Makefiles.
14766 ECHO_C= ECHO_N= ECHO_T=
14767 case `echo -n x` in #(((((
14769 case `echo 'xy\c'` in
14770 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14772 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14779 # For backward compatibility with old third-party macros, we provide
14780 # the shell variables $as_echo and $as_echo_n. New code should use
14781 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14782 as_echo='printf %s\n'
14783 as_echo_n='printf %s'
14785 rm -f conf$$ conf$$.exe conf$$.file
14786 if test -d conf$$.dir; then
14787 rm -f conf$$.dir/conf$$.file
14790 mkdir conf$$.dir 2>/dev/null
14792 if (echo >conf$$.file) 2>/dev/null; then
14793 if ln -s conf$$.file conf$$ 2>/dev/null; then
14795 # ... but there are two gotchas:
14796 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14797 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14798 # In both cases, we have to default to `cp -pR'.
14799 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14801 elif ln conf$$.file conf$$ 2>/dev/null; then
14809 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14810 rmdir conf$$.dir 2>/dev/null
14815 # Create "$as_dir" as a directory, including parents if necessary.
14820 -*) as_dir=./$as_dir;;
14822 test -d "$as_dir" || eval $as_mkdir_p || {
14826 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14827 *) as_qdir=$as_dir;;
14829 as_dirs="'$as_qdir' $as_dirs"
14830 as_dir=`$as_dirname -- "$as_dir" ||
14831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14832 X"$as_dir" : 'X\(//\)[^/]' \| \
14833 X"$as_dir" : 'X\(//\)$' \| \
14834 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14835 printf "%s\n" X"$as_dir" |
14836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14840 /^X\(\/\/\)[^/].*/{
14853 test -d "$as_dir" && break
14855 test -z "$as_dirs" || eval "mkdir $as_dirs"
14856 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14860 if mkdir -p . 2>/dev/null; then
14861 as_mkdir_p='mkdir -p "$as_dir"'
14863 test -d ./-p && rmdir ./-p
14868 # as_fn_executable_p FILE
14869 # -----------------------
14870 # Test if FILE is an executable regular file.
14871 as_fn_executable_p ()
14873 test -f "$1" && test -x "$1"
14874 } # as_fn_executable_p
14875 as_test_x='test -x'
14876 as_executable_p=as_fn_executable_p
14878 # Sed expression to map a string onto a valid CPP name.
14879 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14881 # Sed expression to map a string onto a valid variable name.
14882 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14886 ## ----------------------------------- ##
14887 ## Main body of $CONFIG_STATUS script. ##
14888 ## ----------------------------------- ##
14890 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14893 # Save the log message, to keep $0 and so on meaningful, and to
14894 # report actual input values of CONFIG_FILES etc. instead of their
14895 # values after options handling.
14897 This file was extended by libpng $as_me 1.6.39, which was
14898 generated by GNU Autoconf 2.71. Invocation command line was
14900 CONFIG_FILES = $CONFIG_FILES
14901 CONFIG_HEADERS = $CONFIG_HEADERS
14902 CONFIG_LINKS = $CONFIG_LINKS
14903 CONFIG_COMMANDS = $CONFIG_COMMANDS
14906 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14911 case $ac_config_files in *"
14912 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14915 case $ac_config_headers in *"
14916 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14921 # Files that config.status was made for.
14922 config_files="$ac_config_files"
14923 config_headers="$ac_config_headers"
14924 config_commands="$ac_config_commands"
14928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14930 \`$as_me' instantiates files and other configuration actions
14931 from templates according to the current configuration. Unless the files
14932 and actions are specified as TAGs, all are instantiated by default.
14934 Usage: $0 [OPTION]... [TAG]...
14936 -h, --help print this help, then exit
14937 -V, --version print version number and configuration settings, then exit
14938 --config print configuration, then exit
14939 -q, --quiet, --silent
14940 do not print progress messages
14941 -d, --debug don't remove temporary files
14942 --recheck update $as_me by reconfiguring in the same conditions
14943 --file=FILE[:TEMPLATE]
14944 instantiate the configuration file FILE
14945 --header=FILE[:TEMPLATE]
14946 instantiate the configuration header FILE
14948 Configuration files:
14951 Configuration headers:
14954 Configuration commands:
14957 Report bugs to <png-mng-implement@lists.sourceforge.net>."
14960 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14961 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14963 ac_cs_config='$ac_cs_config_escaped'
14965 libpng config.status 1.6.39
14966 configured by $0, generated by GNU Autoconf 2.71,
14967 with options \\"\$ac_cs_config\\"
14969 Copyright (C) 2021 Free Software Foundation, Inc.
14970 This config.status script is free software; the Free Software Foundation
14971 gives unlimited permission to copy, distribute and modify it."
14978 test -n "\$AWK" || AWK=awk
14981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14982 # The default lists apply if the user does not specify any file.
14988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14989 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15005 # Handling of the options.
15006 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15008 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15009 printf "%s\n" "$ac_cs_version"; exit ;;
15010 --config | --confi | --conf | --con | --co | --c )
15011 printf "%s\n" "$ac_cs_config"; exit ;;
15012 --debug | --debu | --deb | --de | --d | -d )
15014 --file | --fil | --fi | --f )
15017 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15018 '') as_fn_error $? "missing file argument" ;;
15020 as_fn_append CONFIG_FILES " '$ac_optarg'"
15021 ac_need_defaults=false;;
15022 --header | --heade | --head | --hea )
15025 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15027 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15028 ac_need_defaults=false;;
15030 # Conflict between --help and --header
15031 as_fn_error $? "ambiguous option: \`$1'
15032 Try \`$0 --help' for more information.";;
15033 --help | --hel | -h )
15034 printf "%s\n" "$ac_cs_usage"; exit ;;
15035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15039 # This is an error.
15040 -*) as_fn_error $? "unrecognized option: \`$1'
15041 Try \`$0 --help' for more information." ;;
15043 *) as_fn_append ac_config_targets " $1"
15044 ac_need_defaults=false ;;
15050 ac_configure_extra_args=
15052 if $ac_cs_silent; then
15054 ac_configure_extra_args="$ac_configure_extra_args --silent"
15058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15059 if \$ac_cs_recheck; then
15060 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15062 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15063 CONFIG_SHELL='$SHELL'
15064 export CONFIG_SHELL
15069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15074 ## Running $as_me. ##
15076 printf "%s\n" "$ac_log"
15080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15084 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15087 # The HP-UX ksh and POSIX shell print the target directory to stdout
15088 # if CDPATH is set.
15089 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15091 sed_quote_subst='$sed_quote_subst'
15092 double_quote_subst='$double_quote_subst'
15093 delay_variable_subst='$delay_variable_subst'
15094 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15095 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15096 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15097 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15098 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15099 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15100 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15101 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15102 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15103 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15104 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15105 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15106 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15107 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15108 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15109 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15110 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15111 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15112 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15113 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15114 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15115 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15116 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15117 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15118 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15119 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15120 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15121 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15122 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15123 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15124 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15125 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15126 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15127 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15128 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15129 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15130 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15131 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15132 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15133 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15134 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15135 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15136 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15137 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15138 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15139 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15140 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15141 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15142 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15143 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15144 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15145 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15146 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15147 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15148 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15149 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15150 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15151 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15152 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15153 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15154 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15155 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"`'
15156 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15157 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15158 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15159 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15160 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15161 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15162 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15163 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15164 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15165 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15166 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15167 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15168 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15169 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15170 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15171 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15172 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15173 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15174 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15175 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15176 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15177 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15178 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15179 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15180 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15181 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15182 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15183 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15184 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15185 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15186 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15187 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15188 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15189 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15190 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15191 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15192 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15193 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15194 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15195 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15196 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15197 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15198 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15199 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15200 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15201 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15202 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15203 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15204 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15205 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15206 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15207 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15208 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15209 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15210 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15211 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15212 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15213 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15214 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15215 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15216 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15217 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15218 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15219 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15220 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15221 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15222 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15223 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15224 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15225 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15226 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15227 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15228 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15229 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15230 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15231 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15234 LTCFLAGS='$LTCFLAGS'
15235 compiler='$compiler_DEFAULT'
15237 # A function that is used when there is no print builtin or printf.
15238 func_fallback_echo ()
15240 eval 'cat <<_LTECHO_EOF
15245 # Quote evaled strings.
15263 deplibs_check_method \
15267 sharedlib_from_linklib_cmd \
15269 archiver_list_spec \
15275 lt_cv_sys_global_symbol_pipe \
15276 lt_cv_sys_global_symbol_to_cdecl \
15277 lt_cv_sys_global_symbol_to_import \
15278 lt_cv_sys_global_symbol_to_c_name_address \
15279 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15280 lt_cv_nm_interface \
15281 nm_file_list_spec \
15282 lt_cv_truncate_bin \
15283 lt_prog_compiler_no_builtin_flag \
15284 lt_prog_compiler_pic \
15285 lt_prog_compiler_wl \
15286 lt_prog_compiler_static \
15287 lt_cv_prog_compiler_c_o \
15296 export_dynamic_flag_spec \
15297 whole_archive_flag_spec \
15298 compiler_needs_object \
15300 allow_undefined_flag \
15301 no_undefined_flag \
15302 hardcode_libdir_flag_spec \
15303 hardcode_libdir_separator \
15307 variables_saved_for_relink \
15309 library_names_spec \
15311 install_override_mode \
15315 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15316 *[\\\\\\\`\\"\\\$]*)
15317 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15320 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15325 # Double-quote double-evaled strings.
15326 for var in reload_cmds \
15327 old_postinstall_cmds \
15328 old_postuninstall_cmds \
15330 extract_expsyms_cmds \
15331 old_archive_from_new_cmds \
15332 old_archive_from_expsyms_cmds \
15334 archive_expsym_cmds \
15336 module_expsym_cmds \
15337 export_symbols_cmds \
15341 postuninstall_cmds \
15343 sys_lib_search_path_spec \
15344 configure_time_dlsearch_path \
15345 configure_time_lt_sys_library_path; do
15346 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15347 *[\\\\\\\`\\"\\\$]*)
15348 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15351 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15356 ac_aux_dir='$ac_aux_dir'
15358 # See if we are running on zsh, and set the options that allow our
15359 # commands through without removal of \ escapes INIT.
15360 if test -n "\${ZSH_VERSION+set}"; then
15361 setopt NO_GLOB_SUBST
15375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15377 # Handling of arguments.
15378 for ac_config_target in $ac_config_targets
15380 case $ac_config_target in
15381 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15382 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15383 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15384 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15385 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
15386 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
15388 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15393 # If the user did not use the arguments to specify the items to instantiate,
15394 # then the envvar interface is used. Set only those that are not.
15395 # We use the long form for the default assignment because of an extremely
15396 # bizarre bug on SunOS 4.1.3.
15397 if $ac_need_defaults; then
15398 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15399 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15400 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15403 # Have a temporary directory for convenience. Make it in the build tree
15404 # simply because there is no reason against having it here, and in addition,
15405 # creating and moving files from /tmp can sometimes cause problems.
15406 # Hook for its removal unless debugging.
15407 # Note that there is a small window in which the directory will not be cleaned:
15408 # after its creation but before its name has been assigned to `$tmp'.
15412 trap 'exit_status=$?
15413 : "${ac_tmp:=$tmp}"
15414 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15416 trap 'as_fn_exit 1' 1 2 13 15
15418 # Create a (secure) tmp directory for tmp files.
15421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15425 tmp=./conf$$-$RANDOM
15426 (umask 077 && mkdir "$tmp")
15427 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15430 # Set up the scripts for CONFIG_FILES section.
15431 # No need to generate them if there are no CONFIG_FILES.
15432 # This happens for instance with `./config.status config.h'.
15433 if test -n "$CONFIG_FILES"; then
15436 ac_cr=`echo X | tr X '\015'`
15437 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15438 # But we know of no other shell where ac_cr would be empty at this
15439 # point, so we can use a bashism as a fallback.
15440 if test "x$ac_cr" = x; then
15441 eval ac_cr=\$\'\\r\'
15443 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15444 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15447 ac_cs_awk_cr=$ac_cr
15450 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15455 echo "cat >conf$$subs.awk <<_ACEOF" &&
15456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15458 } >conf$$subs.sh ||
15459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15460 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15462 for ac_last_try in false false false false false :; do
15463 . ./conf$$subs.sh ||
15464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15466 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15467 if test $ac_delim_n = $ac_delim_num; then
15469 elif $ac_last_try; then
15470 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15475 rm -f conf$$subs.sh
15477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15478 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15482 s/^/S["/; s/!.*/"]=/
15492 s/\(.\{148\}\)..*/\1/
15494 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15499 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15506 s/\(.\{148\}\)..*/\1/
15508 s/["\\]/\\&/g; s/^/"/; s/$/"/
15512 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15517 ' <conf$$subs.awk | sed '
15522 ' >>$CONFIG_STATUS || ac_write_fail=1
15523 rm -f conf$$subs.awk
15524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15526 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15527 for (key in S) S_is_set[key] = 1
15533 nfields = split(line, field, "@")
15535 len = length(field[1])
15536 for (i = 2; i < nfields; i++) {
15538 keylen = length(key)
15539 if (S_is_set[key]) {
15541 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15542 len += length(value) + length(field[++i])
15553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15555 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15558 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15559 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15562 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15563 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15564 # trailing colons and then remove the whole line if VPATH becomes empty
15565 # (actually we leave an empty line to preserve line numbers).
15566 if test "x$srcdir" = x.; then
15567 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15586 fi # test -n "$CONFIG_FILES"
15588 # Set up the scripts for CONFIG_HEADERS section.
15589 # No need to generate them if there are no CONFIG_HEADERS.
15590 # This happens for instance with `./config.status Makefile'.
15591 if test -n "$CONFIG_HEADERS"; then
15592 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15596 # Transform confdefs.h into an awk script `defines.awk', embedded as
15597 # here-document in config.status, that substitutes the proper values into
15598 # config.h.in to produce config.h.
15600 # Create a delimiter string that does not exist in confdefs.h, to ease
15601 # handling of long lines.
15603 for ac_last_try in false false :; do
15604 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15605 if test -z "$ac_tt"; then
15607 elif $ac_last_try; then
15608 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15614 # For the awk script, D is an array of macro values keyed by name,
15615 # likewise P contains macro parameters if any. Preserve backslash
15616 # newline sequences.
15618 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15620 s/.\{148\}/&'"$ac_delim"'/g
15623 s/^[ ]*#[ ]*define[ ][ ]*/ /
15630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15632 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15637 D["\1"]=" \3\\\\\\n"\\/p
15639 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15644 s/.\{148\}/&'"$ac_delim"'/g
15649 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15652 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15654 ' <confdefs.h | sed '
15655 s/'"$ac_delim"'/"\\\
15656 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659 for (key in D) D_is_set[key] = 1
15662 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15664 split(line, arg, " ")
15665 if (arg[1] == "#") {
15669 defundef = substr(arg[1], 2)
15672 split(mac1, mac2, "(") #)
15674 prefix = substr(line, 1, index(line, defundef) - 1)
15675 if (D_is_set[macro]) {
15676 # Preserve the white space surrounding the "#".
15677 print prefix "define", macro P[macro] D[macro]
15680 # Replace #undef with comments. This is necessary, for example,
15681 # in the case of _POSIX_SOURCE, which is predefined and required
15682 # on some systems where configure will not decide to define it.
15683 if (defundef == "undef") {
15684 print "/*", prefix defundef, macro, "*/"
15692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15693 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15694 fi # test -n "$CONFIG_HEADERS"
15697 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15702 :[FHLC]) ac_mode=$ac_tag; continue;;
15704 case $ac_mode$ac_tag in
15706 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15707 :[FH]-) ac_tag=-:-;;
15708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15725 -) ac_f="$ac_tmp/stdin";;
15726 *) # Look for the file first in the build tree, then in the source tree
15727 # (if the path is not absolute). The absolute path cannot be DOS-style,
15728 # because $ac_f cannot contain `:'.
15732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15734 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15736 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15737 as_fn_append ac_file_inputs " '$ac_f'"
15740 # Let's still pretend it is `configure' which instantiates (i.e., don't
15741 # use $as_me), people would be surprised to read:
15742 # /* config.h. Generated by config.status. */
15743 configure_input='Generated from '`
15744 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15746 if test x"$ac_file" != x-; then
15747 configure_input="$ac_file. $configure_input"
15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15749 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15751 # Neutralize special characters interpreted by sed in replacement strings.
15752 case $configure_input in #(
15753 *\&* | *\|* | *\\* )
15754 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15756 *) ac_sed_conf_input=$configure_input;;
15760 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15761 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15766 ac_dir=`$as_dirname -- "$ac_file" ||
15767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15768 X"$ac_file" : 'X\(//\)[^/]' \| \
15769 X"$ac_file" : 'X\(//\)$' \| \
15770 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15771 printf "%s\n" X"$ac_file" |
15772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15776 /^X\(\/\/\)[^/].*/{
15789 as_dir="$ac_dir"; as_fn_mkdir_p
15793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15795 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15796 # A ".." for each directory in $ac_dir_suffix.
15797 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15798 case $ac_top_builddir_sub in
15799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15803 ac_abs_top_builddir=$ac_pwd
15804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15805 # for backward compatibility:
15806 ac_top_builddir=$ac_top_build_prefix
15809 .) # We are building in place.
15811 ac_top_srcdir=$ac_top_builddir_sub
15812 ac_abs_top_srcdir=$ac_pwd ;;
15813 [\\/]* | ?:[\\/]* ) # Absolute name.
15814 ac_srcdir=$srcdir$ac_dir_suffix;
15815 ac_top_srcdir=$srcdir
15816 ac_abs_top_srcdir=$srcdir ;;
15817 *) # Relative name.
15818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15819 ac_top_srcdir=$ac_top_build_prefix$srcdir
15820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15833 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15835 ac_MKDIR_P=$MKDIR_P
15837 [\\/$]* | ?:[\\/]* ) ;;
15838 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15843 # If the template does not know about datarootdir, expand it.
15844 # FIXME: This hack should be removed a few years after 2.60.
15845 ac_datarootdir_hack=; ac_datarootdir_seen=
15856 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15857 *datarootdir*) ac_datarootdir_seen=yes;;
15858 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15860 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15863 ac_datarootdir_hack='
15864 s&@datadir@&$datadir&g
15865 s&@docdir@&$docdir&g
15866 s&@infodir@&$infodir&g
15867 s&@localedir@&$localedir&g
15868 s&@mandir@&$mandir&g
15869 s&\\\${datarootdir}&$datarootdir&g' ;;
15873 # Neutralize VPATH when `$srcdir' = `.'.
15874 # Shell code in configure.ac might set extrasub.
15875 # FIXME: do we really want to maintain this feature?
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 ac_sed_extra="$ac_vpsub
15880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15883 s|@configure_input@|$ac_sed_conf_input|;t t
15884 s&@top_builddir@&$ac_top_builddir_sub&;t t
15885 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15886 s&@srcdir@&$ac_srcdir&;t t
15887 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15888 s&@top_srcdir@&$ac_top_srcdir&;t t
15889 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15890 s&@builddir@&$ac_builddir&;t t
15891 s&@abs_builddir@&$ac_abs_builddir&;t t
15892 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15893 s&@INSTALL@&$ac_INSTALL&;t t
15894 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15895 $ac_datarootdir_hack
15897 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15898 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15900 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15901 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15902 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15903 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15905 which seems to be undefined. Please make sure it is defined" >&5
15906 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15907 which seems to be undefined. Please make sure it is defined" >&2;}
15909 rm -f "$ac_tmp/stdin"
15911 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15912 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15920 if test x"$ac_file" != x-; then
15922 printf "%s\n" "/* $configure_input */" >&1 \
15923 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15924 } >"$ac_tmp/config.h" \
15925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15926 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15928 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15931 mv "$ac_tmp/config.h" "$ac_file" \
15932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15935 printf "%s\n" "/* $configure_input */" >&1 \
15936 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15937 || as_fn_error $? "could not create -" "$LINENO" 5
15939 # Compute "$ac_file"'s index in $config_headers.
15942 for _am_header in $config_headers :; do
15943 case $_am_header in
15944 $_am_arg | $_am_arg:* )
15947 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15950 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15951 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15952 X"$_am_arg" : 'X\(//\)[^/]' \| \
15953 X"$_am_arg" : 'X\(//\)$' \| \
15954 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15955 printf "%s\n" X"$_am_arg" |
15956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15960 /^X\(\/\/\)[^/].*/{
15972 s/.*/./; q'`/stamp-h$_am_stamp_count
15975 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15976 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15981 case $ac_file$ac_mode in
15982 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15983 # Older Autoconf quotes --file arguments for eval, but not when files
15984 # are listed without --file. Let's play safe and only enable the eval
15985 # if we detect the quoting.
15986 # TODO: see whether this extra hack can be removed once we start
15987 # requiring Autoconf 2.70 or later.
15988 case $CONFIG_FILES in #(
15990 eval set x "$CONFIG_FILES" ;; #(
15992 set x $CONFIG_FILES ;; #(
15997 # Used to flag and report bootstrapping failures.
16001 # Strip MF so we end up with the name of the file.
16002 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16003 # Check whether this is an Automake generated Makefile which includes
16004 # dependency-tracking related rules and includes.
16005 # Grep'ing the whole file directly is not great: AIX grep has a line
16006 # limit of 2048, but all sed's we know have understand at least 4000.
16007 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16009 am_dirpart=`$as_dirname -- "$am_mf" ||
16010 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16011 X"$am_mf" : 'X\(//\)[^/]' \| \
16012 X"$am_mf" : 'X\(//\)$' \| \
16013 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16014 printf "%s\n" X"$am_mf" |
16015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16019 /^X\(\/\/\)[^/].*/{
16032 am_filepart=`$as_basename -- "$am_mf" ||
16033 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16034 X"$am_mf" : 'X\(//\)$' \| \
16035 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16036 printf "%s\n" X/"$am_mf" |
16037 sed '/^.*\/\([^/][^/]*\)\/*$/{
16050 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16051 && sed -e '/# am--include-marker/d' "$am_filepart" \
16052 | $MAKE -f - am--depfiles" >&5
16053 (cd "$am_dirpart" \
16054 && sed -e '/# am--include-marker/d' "$am_filepart" \
16055 | $MAKE -f - am--depfiles) >&5 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } || am_rc=$?
16060 if test $am_rc -ne 0; then
16061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16062 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16063 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16064 for automatic dependency tracking. If GNU make was not used, consider
16065 re-running the configure script with MAKE=\"gmake\" (or whatever is
16066 necessary). You can also try re-running configure with the
16067 '--disable-dependency-tracking' option to at least be able to build
16068 the package (albeit without support for automatic dependency tracking).
16069 See \`config.log' for more details" "$LINENO" 5; }
16071 { am_dirpart=; unset am_dirpart;}
16072 { am_filepart=; unset am_filepart;}
16073 { am_mf=; unset am_mf;}
16074 { am_rc=; unset am_rc;}
16075 rm -f conftest-deps.mk
16080 # See if we are running on zsh, and set the options that allow our
16081 # commands through without removal of \ escapes.
16082 if test -n "${ZSH_VERSION+set}"; then
16083 setopt NO_GLOB_SUBST
16087 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16090 cat <<_LT_EOF >> "$cfgfile"
16092 # Generated automatically by $as_me ($PACKAGE) $VERSION
16093 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16094 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16096 # Provide generalized library-building support services.
16097 # Written by Gordon Matzigkeit, 1996
16099 # Copyright (C) 2014 Free Software Foundation, Inc.
16100 # This is free software; see the source for copying conditions. There is NO
16101 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16103 # GNU Libtool is free software; you can redistribute it and/or modify
16104 # it under the terms of the GNU General Public License as published by
16105 # the Free Software Foundation; either version 2 of of the License, or
16106 # (at your option) any later version.
16108 # As a special exception to the GNU General Public License, if you
16109 # distribute this file as part of a program or library that is built
16110 # using GNU Libtool, you may include this file under the same
16111 # distribution terms that you use for the rest of that program.
16113 # GNU Libtool is distributed in the hope that it will be useful, but
16114 # WITHOUT ANY WARRANTY; without even the implied warranty of
16115 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16116 # GNU General Public License for more details.
16118 # You should have received a copy of the GNU General Public License
16119 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16122 # The names of the tagged configurations supported by this script.
16125 # Configured defaults for sys_lib_dlsearch_path munging.
16126 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16128 # ### BEGIN LIBTOOL CONFIG
16130 # A sed program that does not truncate output.
16133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16134 Xsed="\$SED -e 1s/^X//"
16136 # A grep program that handles long lines.
16142 # A literal string matcher.
16145 # Shell to use when invoking shell scripts.
16148 # An echo program that protects backslashes.
16151 # Which release of libtool.m4 was used?
16152 macro_version=$macro_version
16153 macro_revision=$macro_revision
16155 # Assembler program.
16158 # DLL creation program.
16159 DLLTOOL=$lt_DLLTOOL
16161 # Object dumper program.
16162 OBJDUMP=$lt_OBJDUMP
16164 # Whether or not to build shared libraries.
16165 build_libtool_libs=$enable_shared
16167 # Whether or not to build static libraries.
16168 build_old_libs=$enable_static
16170 # What type of objects to build.
16173 # Whether or not to optimize for fast installation.
16174 fast_install=$enable_fast_install
16176 # Shared archive member basename,for filename based shared library versioning on AIX.
16177 shared_archive_member_spec=$shared_archive_member_spec
16179 # The PATH separator for the build system.
16180 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16183 host_alias=$host_alias
16187 # The build system.
16188 build_alias=$build_alias
16192 # A BSD- or MS-compatible name lister.
16195 # Whether we need soft or hard links.
16198 # What is the maximum length of a command?
16199 max_cmd_len=$max_cmd_len
16201 # Object file suffix (normally "o").
16204 # Executable file suffix (normally "").
16207 # whether the shell understands "unset".
16210 # turn spaces into newlines.
16213 # turn newlines into spaces.
16216 # convert \$build file names to \$host format.
16217 to_host_file_cmd=$lt_cv_to_host_file_cmd
16219 # convert \$build files to toolchain format.
16220 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16222 # A file(cmd) program that detects file types.
16223 FILECMD=$lt_FILECMD
16225 # Method to check whether dependent libraries are shared objects.
16226 deplibs_check_method=$lt_deplibs_check_method
16228 # Command to use when deplibs_check_method = "file_magic".
16229 file_magic_cmd=$lt_file_magic_cmd
16231 # How to find potential files when deplibs_check_method = "file_magic".
16232 file_magic_glob=$lt_file_magic_glob
16234 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16235 want_nocaseglob=$lt_want_nocaseglob
16237 # Command to associate shared and link libraries.
16238 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16243 # Flags to create an archive (by configure).
16244 lt_ar_flags=$lt_ar_flags
16246 # Flags to create an archive.
16247 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16249 # How to feed a file listing to the archiver.
16250 archiver_list_spec=$lt_archiver_list_spec
16252 # A symbol stripping program.
16255 # Commands used to install an old-style archive.
16257 old_postinstall_cmds=$lt_old_postinstall_cmds
16258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16260 # Whether to use a lock for old archive extraction.
16261 lock_old_archive_extraction=$lock_old_archive_extraction
16266 # LTCC compiler flags.
16267 LTCFLAGS=$lt_CFLAGS
16269 # Take the output of nm and produce a listing of raw symbols and C names.
16270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16272 # Transform the output of nm in a proper C declaration.
16273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16275 # Transform the output of nm into a list of symbols to manually relocate.
16276 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16278 # Transform the output of nm in a C name address pair.
16279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16281 # Transform the output of nm in a C name address pair when lib prefix is needed.
16282 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16284 # The name lister interface.
16285 nm_interface=$lt_lt_cv_nm_interface
16287 # Specify filename containing input files for \$NM.
16288 nm_file_list_spec=$lt_nm_file_list_spec
16290 # The root where to search for dependent libraries,and where our libraries should be installed.
16291 lt_sysroot=$lt_sysroot
16293 # Command to truncate a binary pipe.
16294 lt_truncate_bin=$lt_lt_cv_truncate_bin
16296 # The name of the directory that contains temporary libtool files.
16299 # Used to examine libraries when file_magic_cmd begins with "file".
16300 MAGIC_CMD=$MAGIC_CMD
16302 # Must we lock files when doing compilation?
16303 need_locks=$lt_need_locks
16306 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16308 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16309 DSYMUTIL=$lt_DSYMUTIL
16311 # Tool to change global to local symbols on Mac OS X.
16314 # Tool to manipulate fat objects and archives on Mac OS X.
16317 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16320 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16321 OTOOL64=$lt_OTOOL64
16323 # Old archive suffix (normally "a").
16326 # Shared library suffix (normally ".so").
16327 shrext_cmds=$lt_shrext_cmds
16329 # The commands to extract the exported symbol list from a shared archive.
16330 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16332 # Variables whose values should be saved in libtool wrapper scripts and
16333 # restored at link time.
16334 variables_saved_for_relink=$lt_variables_saved_for_relink
16336 # Do we need the "lib" prefix for modules?
16337 need_lib_prefix=$need_lib_prefix
16339 # Do we need a version for libraries?
16340 need_version=$need_version
16342 # Library versioning type.
16343 version_type=$version_type
16345 # Shared library runtime path variable.
16346 runpath_var=$runpath_var
16348 # Shared library path variable.
16349 shlibpath_var=$shlibpath_var
16351 # Is shlibpath searched before the hard-coded library search path?
16352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16354 # Format of library name prefix.
16355 libname_spec=$lt_libname_spec
16357 # List of archive names. First name is the real one, the rest are links.
16358 # The last name is the one that the linker finds with -lNAME
16359 library_names_spec=$lt_library_names_spec
16361 # The coded name of the library, if different from the real name.
16362 soname_spec=$lt_soname_spec
16364 # Permission mode override for installation of shared libraries.
16365 install_override_mode=$lt_install_override_mode
16367 # Command to use after installation of a shared archive.
16368 postinstall_cmds=$lt_postinstall_cmds
16370 # Command to use after uninstallation of a shared archive.
16371 postuninstall_cmds=$lt_postuninstall_cmds
16373 # Commands used to finish a libtool library installation in a directory.
16374 finish_cmds=$lt_finish_cmds
16376 # As "finish_cmds", except a single script fragment to be evaled but
16378 finish_eval=$lt_finish_eval
16380 # Whether we should hardcode library paths into libraries.
16381 hardcode_into_libs=$hardcode_into_libs
16383 # Compile-time system search path for libraries.
16384 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16386 # Detected run-time system search path for libraries.
16387 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16389 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16390 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16392 # Whether dlopen is supported.
16393 dlopen_support=$enable_dlopen
16395 # Whether dlopen of programs is supported.
16396 dlopen_self=$enable_dlopen_self
16398 # Whether dlopen of statically linked programs is supported.
16399 dlopen_self_static=$enable_dlopen_self_static
16401 # Commands to strip libraries.
16402 old_striplib=$lt_old_striplib
16403 striplib=$lt_striplib
16406 # The linker used to build libraries.
16409 # How to create reloadable object files.
16410 reload_flag=$lt_reload_flag
16411 reload_cmds=$lt_reload_cmds
16413 # Commands used to build an old-style archive.
16414 old_archive_cmds=$lt_old_archive_cmds
16416 # A language specific compiler.
16419 # Is the compiler the GNU compiler?
16422 # Compiler flag to turn off builtin functions.
16423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16425 # Additional compiler flags for building library objects.
16426 pic_flag=$lt_lt_prog_compiler_pic
16428 # How to pass a linker flag through the compiler.
16429 wl=$lt_lt_prog_compiler_wl
16431 # Compiler flag to prevent dynamic linking.
16432 link_static_flag=$lt_lt_prog_compiler_static
16434 # Does compiler simultaneously support -c and -o options?
16435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16437 # Whether or not to add -lc for building shared libraries.
16438 build_libtool_need_lc=$archive_cmds_need_lc
16440 # Whether or not to disallow shared libs when runtime libs are static.
16441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16443 # Compiler flag to allow reflexive dlopens.
16444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16446 # Compiler flag to generate shared objects directly from archives.
16447 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16449 # Whether the compiler copes with passing no objects directly.
16450 compiler_needs_object=$lt_compiler_needs_object
16452 # Create an old-style archive from a shared archive.
16453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16455 # Create a temporary old-style archive to link instead of a shared archive.
16456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16458 # Commands used to build a shared archive.
16459 archive_cmds=$lt_archive_cmds
16460 archive_expsym_cmds=$lt_archive_expsym_cmds
16462 # Commands used to build a loadable module if different from building
16463 # a shared archive.
16464 module_cmds=$lt_module_cmds
16465 module_expsym_cmds=$lt_module_expsym_cmds
16467 # Whether we are building with GNU ld or not.
16468 with_gnu_ld=$lt_with_gnu_ld
16470 # Flag that allows shared libraries with undefined symbols to be built.
16471 allow_undefined_flag=$lt_allow_undefined_flag
16473 # Flag that enforces no undefined symbols.
16474 no_undefined_flag=$lt_no_undefined_flag
16476 # Flag to hardcode \$libdir into a binary during linking.
16477 # This must work even if \$libdir does not exist
16478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16480 # Whether we need a single "-rpath" flag with a separated argument.
16481 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16483 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16484 # DIR into the resulting binary.
16485 hardcode_direct=$hardcode_direct
16487 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16488 # DIR into the resulting binary and the resulting library dependency is
16489 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16490 # library is relocated.
16491 hardcode_direct_absolute=$hardcode_direct_absolute
16493 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16494 # into the resulting binary.
16495 hardcode_minus_L=$hardcode_minus_L
16497 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16498 # into the resulting binary.
16499 hardcode_shlibpath_var=$hardcode_shlibpath_var
16501 # Set to "yes" if building a shared library automatically hardcodes DIR
16502 # into the library and all subsequent libraries and executables linked
16504 hardcode_automatic=$hardcode_automatic
16506 # Set to yes if linker adds runtime paths of dependent libraries
16507 # to runtime path list.
16508 inherit_rpath=$inherit_rpath
16510 # Whether libtool must link a program against all its dependency libraries.
16511 link_all_deplibs=$link_all_deplibs
16513 # Set to "yes" if exported symbols are required.
16514 always_export_symbols=$always_export_symbols
16516 # The commands to list exported symbols.
16517 export_symbols_cmds=$lt_export_symbols_cmds
16519 # Symbols that should not be listed in the preloaded symbols.
16520 exclude_expsyms=$lt_exclude_expsyms
16522 # Symbols that must always be exported.
16523 include_expsyms=$lt_include_expsyms
16525 # Commands necessary for linking programs (against libraries) with templates.
16526 prelink_cmds=$lt_prelink_cmds
16528 # Commands necessary for finishing linking programs.
16529 postlink_cmds=$lt_postlink_cmds
16531 # Specify filename containing input files.
16532 file_list_spec=$lt_file_list_spec
16534 # How to hardcode a shared library path into an executable.
16535 hardcode_action=$hardcode_action
16537 # ### END LIBTOOL CONFIG
16541 cat <<'_LT_EOF' >> "$cfgfile"
16543 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16545 # func_munge_path_list VARIABLE PATH
16546 # -----------------------------------
16547 # VARIABLE is name of variable containing _space_ separated list of
16548 # directories to be munged by the contents of PATH, which is string
16551 # string "DIR[ DIR]" will be prepended to VARIABLE
16553 # string "DIR[ DIR]" will be appended to VARIABLE
16554 # "DIRP[:DIRP]::[DIRA:]DIRA"
16555 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16556 # "DIRA[ DIRA]" will be appended to VARIABLE
16558 # VARIABLE will be replaced by "DIR[ DIR]"
16559 func_munge_path_list ()
16565 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16568 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16571 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16572 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16575 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16581 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16582 func_cc_basename ()
16584 for cc_temp in $*""; do
16586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16592 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16596 # ### END FUNCTIONS SHARED WITH CONFIGURE
16602 cat <<\_LT_EOF >> "$cfgfile"
16603 # AIX sometimes has problems with the GCC collect2 program. For some
16604 # reason, if we set the COLLECT_NAMES environment variable, the problems
16605 # vanish in a puff of smoke.
16606 if test set != "${COLLECT_NAMES+set}"; then
16608 export COLLECT_NAMES
16616 ltmain=$ac_aux_dir/ltmain.sh
16619 # We use sed instead of cat because bash on DJGPP gets confused if
16620 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16621 # text mode, it properly converts lines to CR/LF. This bash problem
16622 # is reportedly fixed, but why not run on old versions too?
16623 $SED '$q' "$ltmain" >> "$cfgfile" \
16624 || (rm -f "$cfgfile"; exit 1)
16626 mv -f "$cfgfile" "$ofile" ||
16627 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16631 "libpng-config":F) chmod +x libpng-config ;;
16639 ac_clean_files=$ac_clean_files_save
16641 test $ac_write_fail = 0 ||
16642 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16645 # configure is writing to config.log, and then calls config.status.
16646 # config.status does its own redirection, appending to config.log.
16647 # Unfortunately, on DOS this fails, as config.log is still kept open
16648 # by configure, so config.status won't be able to write to it; its
16649 # output is simply discarded. So we exec the FD to /dev/null,
16650 # effectively closing config.log, so it can be properly (re)opened and
16651 # appended to by config.status. When coming back to configure, we
16652 # need to make the FD available again.
16653 if test "$no_create" != yes; then
16655 ac_config_status_args=
16656 test "$silent" = yes &&
16657 ac_config_status_args="$ac_config_status_args --quiet"
16659 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16661 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16662 # would make configure fail if this is the last instruction.
16663 $ac_cs_success || as_fn_exit 1
16665 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16667 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}