2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for lcms2 2.16.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
54 # Ensure predictable behavior from utilities with locale-dependent output.
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 *v*x* | *x*v* ) as_opts=-vx ;;
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 *) as_dir=$as_dir/ ;;
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
240 CONFIG_SHELL=$SHELL as_have_required=yes
245 if test "x$CONFIG_SHELL" != x
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
285 SHELL=${CONFIG_SHELL-/bin/sh}
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
296 # Portably unset VAR.
299 { eval $1=; unset $1;}
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 # Do nothing but, unlike ":", preserve the value of $?.
332 # Create "$as_dir" as a directory, including parents if necessary.
337 -*) as_dir=./$as_dir;;
339 test -d "$as_dir" || eval $as_mkdir_p || {
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
370 test -d "$as_dir" && break
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
393 eval 'as_fn_append ()
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
418 as_val=`expr "$@" || test $? -eq 1`
424 # Do nothing but, unlike ":", preserve the value of $?.
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
438 as_status=$1; test $as_status -eq 0 && as_status=1
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
524 # Exit status is that of the last command.
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
557 mkdir conf$$.dir 2>/dev/null
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
568 elif ln conf$$.file conf$$ 2>/dev/null; then
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
582 test -d ./-p && rmdir ./-p
587 as_executable_p=as_fn_executable_p
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
595 SHELL=${CONFIG_SHELL-/bin/sh}
598 test -n "$DJDIR" || exec 7<&0 </dev/null
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609 ac_default_prefix=/usr/local
611 ac_config_libobj_dir=.
618 # Identity of this package.
620 PACKAGE_TARNAME='lcms2'
621 PACKAGE_VERSION='2.16'
622 PACKAGE_STRING='lcms2 2.16'
626 # Factoring default headers for most tests.
627 ac_includes_default="\
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
658 ac_subst_vars='am__EXEEXT_FALSE
688 MAINTAINER_MODE_FALSE
754 INSTALL_STRIP_PROGRAM
808 program_transform_name
822 enable_option_checking
824 enable_dependency_tracking
833 enable_maintainer_mode
841 ac_precious_vars='build_alias
857 # Initialize some variables set by options.
859 ac_init_version=false
860 ac_unrecognized_opts=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name=s,x,x,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 runstatedir='${localstatedir}/run'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: \`$ac_useropt'"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: \`$ac_useropt'"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
999 eval enable_$ac_useropt=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1144 -runstatedir | --runstatedir | --runstatedi | --runstated \
1145 | --runstate | --runstat | --runsta | --runst | --runs \
1146 | --run | --ru | --r)
1147 ac_prev=runstatedir ;;
1148 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1149 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1150 | --run=* | --ru=* | --r=*)
1151 runstatedir=$ac_optarg ;;
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 sbindir=$ac_optarg ;;
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 sharedstatedir=$ac_optarg ;;
1170 -site | --site | --sit)
1172 -site=* | --site=* | --sit=*)
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: \`$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: \`$ac_useropt'"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1228 eval with_$ac_useropt=no ;;
1231 # Obsolete; use --with-x.
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir runstatedir
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1299 # Be sure to have absolute directory names.
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1312 target=$target_alias
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 elif test "x$build_alias" != "x$host_alias"; then
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326 test "$silent" = yes && exec 6>/dev/null
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 printf "%s\n" X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1369 ac_srcdir_defaulted=no
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 # Report the --help message.
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1403 \`configure' configures lcms2 2.16 to adapt to many kinds of systems.
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1410 Defaults for the options are specified in brackets.
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1434 For better control, use the options below.
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/lcms2]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of lcms2 2.16:";;
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-dependency-tracking
1485 do not reject slow dependency extractors
1486 --disable-dependency-tracking
1487 speeds up one-time build
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-maintainer-mode
1494 enable make rules and dependencies not useful (and
1495 sometimes confusing) to the casual installer
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1502 --with-aix-soname=aix|svr4|both
1503 shared library versioning (aka "SONAME") variant to
1504 provide on AIX, [default=aix].
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1507 compiler's sysroot if not specified).
1508 --with-jpeg=DIR use jpeg installed in DIR
1509 --with-tiff=DIR use tiff installed in DIR
1510 --without-zlib disable ZLIB support
1511 --with-fastfloat build and install fast_float plugin, use only if GPL
1513 --with-threaded build and install multi threaded plugin, use only if
1514 GPL 3.0 is acceptable
1515 --without-pthreads disable POSIX pthreads API support
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1526 CXX C++ compiler command
1527 CXXFLAGS C++ compiler flags
1529 User-defined run-time library search path.
1530 CXXCPP C++ preprocessor
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1535 Report bugs to the package provider.
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1565 .) # We are building in place.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for configure.gnu first; this name is used for a wrapper for
1582 # Metaconfig's "Configure" on case-insensitive file systems.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1590 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1599 lcms2 configure 2.16
1600 generated by GNU Autoconf 2.71
1602 Copyright (C) 2021 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest.beam
1620 if { { ac_try="$ac_compile"
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 printf "%s\n" "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext
1642 printf "%s\n" "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1680 printf "%s\n" "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1690 # ac_fn_cxx_try_compile LINENO
1691 # ----------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_cxx_try_compile ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest.beam
1697 if { { ac_try="$ac_compile"
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704 (eval "$ac_compile") 2>conftest.err
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_cxx_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest.$ac_objext
1719 printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1727 } # ac_fn_cxx_try_compile
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 printf "%s\n" "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 test -x conftest$ac_exeext
1761 printf "%s\n" "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768 # interfere with the next link command; also delete a directory that is
1769 # left behind by Apple's compiler. We do this before executing the actions.
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1774 } # ac_fn_c_try_link
1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 printf %s "checking for $2... " >&6; }
1785 if eval test \${$3+y}
1787 printf %s "(cached) " >&6
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"
1800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 printf "%s\n" "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 } # ac_fn_c_check_header_compile
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 printf %s "checking for $2... " >&6; }
1817 if eval test \${$3+y}
1819 printf %s "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below. */
1833 /* Override any GCC internal prototype to avoid an error.
1834 Use char because int might match the return type of a GCC
1835 builtin and then its argument prototype would still apply. */
1840 /* The GNU C library defines this for functions which it implements
1841 to always fail with ENOSYS. Some functions are actually named
1842 something starting with __ and the normal name is an alias. */
1843 #if defined __stub_$2 || defined __stub___$2
1855 if ac_fn_c_try_link "$LINENO"
1861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1862 conftest$ac_exeext conftest.$ac_ext
1865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 printf "%s\n" "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_func
1871 # ac_fn_cxx_try_cpp LINENO
1872 # ------------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_cxx_try_cpp ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 printf "%s\n" "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } > conftest.i && {
1893 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1899 printf "%s\n" "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_cxx_try_cpp
1909 # ac_fn_cxx_try_link LINENO
1910 # -------------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_cxx_try_link ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 printf "%s\n" "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_cxx_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest$ac_exeext
1941 printf "%s\n" "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948 # interfere with the next link command; also delete a directory that is
1949 # left behind by Apple's compiler. We do this before executing the actions.
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1954 } # ac_fn_cxx_try_link
1956 # ac_fn_c_try_run LINENO
1957 # ----------------------
1958 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1959 # executables *can* be run.
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if { { ac_try="$ac_link"
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 printf "%s\n" "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>&5
1972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1974 { { case "(($ac_try" in
1975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 printf "%s\n" "$ac_try_echo"; } >&5
1980 (eval "$ac_try") 2>&5
1982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; }; }
1987 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1988 printf "%s\n" "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=$ac_status
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1998 ac_configure_args_raw=
2003 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2005 as_fn_append ac_configure_args_raw " '$ac_arg'"
2008 case $ac_configure_args_raw in
2012 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2013 ac_unsafe_a="$ac_unsafe_z#~"
2014 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2015 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2018 cat >config.log <<_ACEOF
2019 This file contains any messages produced by compilers while
2020 running configure, to aid debugging if configure makes a mistake.
2022 It was created by lcms2 $as_me 2.16, which was
2023 generated by GNU Autoconf 2.71. Invocation command line was
2025 $ $0$ac_configure_args_raw
2035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2042 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2044 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2045 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2047 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2048 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2049 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2050 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 case $as_dir in #(((
2061 *) as_dir=$as_dir/ ;;
2063 printf "%s\n" "PATH: $as_dir"
2079 # Keep a trace of the command line.
2080 # Strip out --no-create and --no-recursion so they do not pile up.
2081 # Strip out --silent because we don't want to record it for future runs.
2082 # Also quote any args containing shell meta-characters.
2083 # Make two passes to allow for proper duplicate-argument suppression.
2087 ac_must_keep_next=false
2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095 | -silent | --silent | --silen | --sile | --sil)
2098 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2103 as_fn_append ac_configure_args1 " '$ac_arg'"
2104 if test $ac_must_keep_next = true; then
2105 ac_must_keep_next=false # Got value, back to normal.
2108 *=* | --config-cache | -C | -disable-* | --disable-* \
2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111 | -with-* | --with-* | -without-* | --without-* | --x)
2112 case "$ac_configure_args0 " in
2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2116 -* ) ac_must_keep_next=true ;;
2119 as_fn_append ac_configure_args " '$ac_arg'"
2124 { ac_configure_args0=; unset ac_configure_args0;}
2125 { ac_configure_args1=; unset ac_configure_args1;}
2127 # When interrupted or exit'd, cleanup temporary files, and complete
2128 # config.log. We remove comments because anyway the quotes in there
2129 # would cause problems or look ugly.
2130 # WARNING: Use '\'' to represent an apostrophe within the trap.
2131 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132 trap 'exit_status=$?
2135 # Save into config.log some information that might help in debugging.
2139 printf "%s\n" "## ---------------- ##
2140 ## Cache variables. ##
2141 ## ---------------- ##"
2143 # The following way of writing the cache mishandles newlines in values,
2145 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2146 eval ac_val=\$$ac_var
2150 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2151 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2154 _ | IFS | as_nl) ;; #(
2155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2156 *) { eval $ac_var=; unset $ac_var;} ;;
2161 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2162 *${as_nl}ac_space=\ *)
2164 "s/'\''/'\''\\\\'\'''\''/g;
2165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175 printf "%s\n" "## ----------------- ##
2176 ## Output variables. ##
2177 ## ----------------- ##"
2179 for ac_var in $ac_subst_vars
2181 eval ac_val=\$$ac_var
2183 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185 printf "%s\n" "$ac_var='\''$ac_val'\''"
2189 if test -n "$ac_subst_files"; then
2190 printf "%s\n" "## ------------------- ##
2191 ## File substitutions. ##
2192 ## ------------------- ##"
2194 for ac_var in $ac_subst_files
2196 eval ac_val=\$$ac_var
2198 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200 printf "%s\n" "$ac_var='\''$ac_val'\''"
2205 if test -s confdefs.h; then
2206 printf "%s\n" "## ----------- ##
2213 test "$ac_signal" != 0 &&
2214 printf "%s\n" "$as_me: caught signal $ac_signal"
2215 printf "%s\n" "$as_me: exit $exit_status"
2217 rm -f core *.core core.conftest.* &&
2218 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2221 for ac_signal in 1 2 13 15; do
2222 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2226 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2227 rm -f -r conftest* confdefs.h
2229 printf "%s\n" "/* confdefs.h */" > confdefs.h
2231 # Predefined preprocessor variables.
2233 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2235 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2237 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2239 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2241 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2243 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2246 # Let the site file select an alternate cache file if it wants to.
2247 # Prefer an explicitly selected file to automatically selected ones.
2248 if test -n "$CONFIG_SITE"; then
2249 ac_site_files="$CONFIG_SITE"
2250 elif test "x$prefix" != xNONE; then
2251 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2253 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2256 for ac_site_file in $ac_site_files
2258 case $ac_site_file in #(
2262 ac_site_file=./$ac_site_file ;;
2264 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2266 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2267 sed 's/^/| /' "$ac_site_file" >&5
2269 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2271 as_fn_error $? "failed to load site script $ac_site_file
2272 See \`config.log' for more details" "$LINENO" 5; }
2276 if test -r "$cache_file"; then
2277 # Some versions of bash will fail to source /dev/null (special files
2278 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2279 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2281 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2283 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2284 *) . "./$cache_file";;
2288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2289 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2293 # Test code for whether the C compiler supports C89 (global declarations)
2294 ac_c_conftest_c89_globals='
2295 /* Does the compiler advertise C89 conformance?
2296 Do not test the value of __STDC__, because some compilers set it to 0
2297 while being otherwise adequately conformant. */
2298 #if !defined __STDC__
2299 # error "Compiler does not advertise C89 conformance"
2305 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2306 struct buf { int x; };
2307 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2308 static char *e (p, i)
2314 static char *f (char * (*g) (char **, int), char **p, ...)
2319 s = g (p, va_arg (v,int));
2324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2325 function prototypes and stuff, but not \xHH hex character constants.
2326 These do not provoke an error unfortunately, instead are silently treated
2327 as an "x". The following induces an error, until -std is added to get
2328 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2329 array size at least. It is necessary to write \x00 == 0 to get something
2330 that is true only with -std. */
2331 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2334 inside strings and character constants. */
2335 #define FOO(x) '\''x'\''
2336 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2338 int test (int i, double x);
2339 struct s1 {int (*f) (int a);};
2340 struct s2 {int (*f) (double a);};
2341 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2344 # Test code for whether the C compiler supports C89 (body of main).
2345 ac_c_conftest_c89_main='
2346 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2349 # Test code for whether the C compiler supports C99 (global declarations)
2350 ac_c_conftest_c99_globals='
2351 // Does the compiler advertise C99 conformance?
2352 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2353 # error "Compiler does not advertise C99 conformance"
2356 #include <stdbool.h>
2357 extern int puts (const char *);
2358 extern int printf (const char *, ...);
2359 extern int dprintf (int, const char *, ...);
2360 extern void *malloc (size_t);
2362 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2363 // dprintf is used instead of fprintf to avoid needing to declare
2365 #define debug(...) dprintf (2, __VA_ARGS__)
2366 #define showlist(...) puts (#__VA_ARGS__)
2367 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2369 test_varargs_macros (void)
2374 debug ("X = %d\n", x);
2375 showlist (The first, second, and third items.);
2376 report (x>y, "x is %d but y is %d", x, y);
2379 // Check long long types.
2380 #define BIG64 18446744073709551615ull
2381 #define BIG32 4294967295ul
2382 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2384 #error "your preprocessor is broken"
2388 #error "your preprocessor is broken"
2390 static long long int bignum = -9223372036854775807LL;
2391 static unsigned long long int ubignum = BIG64;
2393 struct incomplete_array
2401 const wchar_t *name;
2405 typedef const char *ccp;
2408 test_restrict (ccp restrict text)
2410 // See if C++-style comments work.
2411 // Iterate through items via the restricted pointer.
2412 // Also check for declarations in for loops.
2413 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2418 // Check varargs and va_copy.
2420 test_varargs (const char *format, ...)
2423 va_start (args, format);
2425 va_copy (args_copy, args);
2427 const char *str = "";
2435 case '\''s'\'': // string
2436 str = va_arg (args_copy, const char *);
2438 case '\''d'\'': // int
2439 number = va_arg (args_copy, int);
2441 case '\''f'\'': // float
2442 fnumber = va_arg (args_copy, double);
2451 return *str && number && fnumber;
2455 # Test code for whether the C compiler supports C99 (body of main).
2456 ac_c_conftest_c99_main='
2458 _Bool success = false;
2459 success |= (argc != 0);
2462 if (test_restrict ("String literal") == 0)
2464 char *restrict newvar = "Another string";
2467 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2468 test_varargs_macros ();
2470 // Check flexible array members.
2471 struct incomplete_array *ia =
2472 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2474 for (int i = 0; i < ia->datasize; ++i)
2475 ia->data[i] = i * 1.234;
2477 // Check named initializers.
2478 struct named_init ni = {
2480 .name = L"Test wide string",
2481 .average = 543.34343,
2486 int dynamic_array[ni.number];
2487 dynamic_array[0] = argv[0][0];
2488 dynamic_array[ni.number - 1] = 543;
2490 // work around unused variable warnings
2491 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2492 || dynamic_array[ni.number - 1] != 543);
2495 # Test code for whether the C compiler supports C11 (global declarations)
2496 ac_c_conftest_c11_globals='
2497 // Does the compiler advertise C11 conformance?
2498 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2499 # error "Compiler does not advertise C11 conformance"
2503 char _Alignas (double) aligned_as_double;
2504 char _Alignas (0) no_special_alignment;
2505 extern char aligned_as_int;
2506 char _Alignas (0) _Alignas (int) aligned_as_int;
2511 int_alignment = _Alignof (int),
2512 int_array_alignment = _Alignof (int[100]),
2513 char_alignment = _Alignof (char)
2515 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2518 int _Noreturn does_not_return (void) { for (;;) continue; }
2520 // Check _Static_assert.
2521 struct test_static_assert
2524 _Static_assert (sizeof (int) <= sizeof (long int),
2525 "_Static_assert does not work in struct");
2529 // Check UTF-8 literals.
2530 #define u8 syntax error!
2531 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2533 // Check duplicate typedefs.
2534 typedef long *long_ptr;
2535 typedef long int *long_ptr;
2536 typedef long_ptr long_ptr;
2538 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2542 struct { int i; int j; };
2543 struct { int k; long int l; } w;
2549 # Test code for whether the C compiler supports C11 (body of main).
2550 ac_c_conftest_c11_main='
2551 _Static_assert ((offsetof (struct anonymous, i)
2552 == offsetof (struct anonymous, w.k)),
2553 "Anonymous union alignment botch");
2559 # Test code for whether the C compiler supports C11 (complete).
2560 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2561 ${ac_c_conftest_c99_globals}
2562 ${ac_c_conftest_c11_globals}
2565 main (int argc, char **argv)
2568 ${ac_c_conftest_c89_main}
2569 ${ac_c_conftest_c99_main}
2570 ${ac_c_conftest_c11_main}
2575 # Test code for whether the C compiler supports C99 (complete).
2576 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2577 ${ac_c_conftest_c99_globals}
2580 main (int argc, char **argv)
2583 ${ac_c_conftest_c89_main}
2584 ${ac_c_conftest_c99_main}
2589 # Test code for whether the C compiler supports C89 (complete).
2590 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2593 main (int argc, char **argv)
2596 ${ac_c_conftest_c89_main}
2601 # Test code for whether the C++ compiler supports C++98 (global declarations)
2602 ac_cxx_conftest_cxx98_globals='
2603 // Does the compiler advertise C++98 conformance?
2604 #if !defined __cplusplus || __cplusplus < 199711L
2605 # error "Compiler does not advertise C++98 conformance"
2608 // These inclusions are to reject old compilers that
2609 // lack the unsuffixed header files.
2611 #include <exception>
2613 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2614 extern void assert (int);
2616 extern int strcmp (const char *, const char *);
2619 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2620 using std::exception;
2625 void test_exception_syntax()
2629 } catch (const char *s) {
2630 // Extra parentheses suppress a warning when building autoconf itself,
2631 // due to lint rules shared with more typical C programs.
2632 assert (!(strcmp) (s, "test"));
2636 template <typename T> struct test_template
2639 explicit test_template(T t) : val(t) {}
2640 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2643 } // anonymous namespace
2646 # Test code for whether the C++ compiler supports C++98 (body of main)
2647 ac_cxx_conftest_cxx98_main='
2651 test_exception_syntax ();
2652 test_template<double> tt (2.0);
2653 assert (tt.add (4) == 6.0);
2654 assert (true && !false);
2658 # Test code for whether the C++ compiler supports C++11 (global declarations)
2659 ac_cxx_conftest_cxx11_globals='
2660 // Does the compiler advertise C++ 2011 conformance?
2661 #if !defined __cplusplus || __cplusplus < 201103L
2662 # error "Compiler does not advertise C++11 conformance"
2667 constexpr int get_val() { return 20; }
2678 delegate(int n) : n(n) {}
2679 delegate(): delegate(2354) {}
2681 virtual int getval() { return this->n; };
2686 class overridden : public delegate
2689 overridden(int n): delegate(n) {}
2690 virtual int getval() override final { return this->n * 2; }
2696 nocopy(int i): i(i) {}
2698 nocopy(const nocopy&) = delete;
2699 nocopy & operator=(const nocopy&) = delete;
2704 // for testing lambda expressions
2705 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2710 // for testing variadic templates and trailing return types
2711 template <typename V> auto sum(V first) -> V
2715 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2717 return first + sum(rest...);
2722 # Test code for whether the C++ compiler supports C++11 (body of main)
2723 ac_cxx_conftest_cxx11_main='
2725 // Test auto and decltype
2727 auto a2 = 48573953.4;
2728 auto a3 = "String literal";
2731 for (auto i = a3; *i; ++i) { total += *i; }
2733 decltype(a2) a4 = 34895.034;
2737 short sa[cxx11test::get_val()] = { 0 };
2740 // Test initializer lists
2741 cxx11test::testinit il = { 4323, 435234.23544 };
2744 // Test range-based for
2745 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2746 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2747 for (auto &x : array) { x += 23; }
2750 // Test lambda expressions
2751 using cxx11test::eval;
2752 assert (eval ([](int x) { return x*2; }, 21) == 42);
2754 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2756 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2760 // Test use of variadic templates
2761 using cxx11test::sum;
2764 auto c = sum(1.0, 2.0, 3.0);
2767 // Test constructor delegation
2768 cxx11test::delegate d1;
2769 cxx11test::delegate d2();
2770 cxx11test::delegate d3(45);
2773 // Test override and final
2774 cxx11test::overridden o1(55464);
2781 // Test template brackets
2782 test_template<::test_template<int>> v(test_template<int>(12));
2786 char const *utf8 = u8"UTF-8 string \u2500";
2787 char16_t const *utf16 = u"UTF-8 string \u2500";
2788 char32_t const *utf32 = U"UTF-32 string \u2500";
2792 # Test code for whether the C compiler supports C++11 (complete).
2793 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2794 ${ac_cxx_conftest_cxx11_globals}
2797 main (int argc, char **argv)
2800 ${ac_cxx_conftest_cxx98_main}
2801 ${ac_cxx_conftest_cxx11_main}
2806 # Test code for whether the C compiler supports C++98 (complete).
2807 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2809 main (int argc, char **argv)
2812 ${ac_cxx_conftest_cxx98_main}
2817 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2818 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2819 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2820 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2821 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2822 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2823 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2824 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2825 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2827 # Auxiliary files required by this configure script.
2828 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
2830 # Locations in which to look for auxiliary files.
2831 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2833 # Search for a directory containing all of the required auxiliary files,
2834 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2835 # If we don't find one directory that contains all the files we need,
2836 # we report the set of missing files from the *first* directory in
2837 # $ac_aux_dir_candidates and give up.
2838 ac_missing_aux_files=""
2839 ac_first_candidate=:
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $ac_aux_dir_candidates
2846 case $as_dir in #(((
2849 *) as_dir=$as_dir/ ;;
2853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2854 ac_aux_dir_found=yes
2856 for ac_aux in $ac_aux_files
2858 # As a special case, if "install-sh" is required, that requirement
2859 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2860 # and $ac_install_sh is set appropriately for whichever one is found.
2861 if test x"$ac_aux" = x"install-sh"
2863 if test -f "${as_dir}install-sh"; then
2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2865 ac_install_sh="${as_dir}install-sh -c"
2866 elif test -f "${as_dir}install.sh"; then
2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2868 ac_install_sh="${as_dir}install.sh -c"
2869 elif test -f "${as_dir}shtool"; then
2870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2871 ac_install_sh="${as_dir}shtool install -c"
2874 if $ac_first_candidate; then
2875 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2881 if test -f "${as_dir}${ac_aux}"; then
2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2885 if $ac_first_candidate; then
2886 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2893 if test "$ac_aux_dir_found" = yes; then
2894 ac_aux_dir="$as_dir"
2897 ac_first_candidate=false
2906 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2910 # These three variables are undocumented and unsupported,
2911 # and are intended to be withdrawn in a future Autoconf release.
2912 # They can cause serious problems if a builder's source tree is in a directory
2913 # whose full name contains unusual characters.
2914 if test -f "${ac_aux_dir}config.guess"; then
2915 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2917 if test -f "${ac_aux_dir}config.sub"; then
2918 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2920 if test -f "$ac_aux_dir/configure"; then
2921 ac_configure="$SHELL ${ac_aux_dir}configure"
2924 # Check that the precious variables saved in the cache have kept the same
2926 ac_cache_corrupted=false
2927 for ac_var in $ac_precious_vars; do
2928 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2929 eval ac_new_set=\$ac_env_${ac_var}_set
2930 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2931 eval ac_new_val=\$ac_env_${ac_var}_value
2932 case $ac_old_set,$ac_new_set in
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2935 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2936 ac_cache_corrupted=: ;;
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2939 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2940 ac_cache_corrupted=: ;;
2943 if test "x$ac_old_val" != "x$ac_new_val"; then
2944 # differences in whitespace do not lead to failure.
2945 ac_old_val_w=`echo x $ac_old_val`
2946 ac_new_val_w=`echo x $ac_new_val`
2947 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2949 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2950 ac_cache_corrupted=:
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2953 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2954 eval $ac_var=\$ac_old_val
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2957 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2959 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2962 # Pass precious variables to config.status.
2963 if test "$ac_new_set" = set; then
2965 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2966 *) ac_arg=$ac_var=$ac_new_val ;;
2968 case " $ac_configure_args " in
2969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2970 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2974 if $ac_cache_corrupted; then
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2978 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2979 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2980 and start over" "$LINENO" 5
2982 ## -------------------- ##
2983 ## Main body of script. ##
2984 ## -------------------- ##
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 # Specify directory where m4 macros may be found.
2998 # Libtool library revision control info
3005 # Obtain system type by running config.guess
3009 # Make sure we can run config.sub.
3010 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3011 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3014 printf %s "checking build system type... " >&6; }
3015 if test ${ac_cv_build+y}
3017 printf %s "(cached) " >&6
3019 ac_build_alias=$build_alias
3020 test "x$ac_build_alias" = x &&
3021 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3022 test "x$ac_build_alias" = x &&
3023 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3024 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3025 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3029 printf "%s\n" "$ac_cv_build" >&6; }
3030 case $ac_cv_build in
3032 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3035 ac_save_IFS=$IFS; IFS='-'
3041 # Remember, the first character of IFS is used to create $*,
3042 # except with old shells:
3045 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3049 printf %s "checking host system type... " >&6; }
3050 if test ${ac_cv_host+y}
3052 printf %s "(cached) " >&6
3054 if test "x$host_alias" = x; then
3055 ac_cv_host=$ac_cv_build
3057 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3058 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3063 printf "%s\n" "$ac_cv_host" >&6; }
3066 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3069 ac_save_IFS=$IFS; IFS='-'
3075 # Remember, the first character of IFS is used to create $*,
3076 # except with old shells:
3079 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3083 am__api_version='1.16'
3086 # Find a good install program. We prefer a C program (faster),
3087 # so one script is as good as another. But avoid the broken or
3088 # incompatible versions:
3089 # SysV /etc/install, /usr/sbin/install
3090 # SunOS /usr/etc/install
3091 # IRIX /sbin/install
3093 # AmigaOS /C/install, which installs bootblocks on floppy discs
3094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3097 # OS/2's system install, which has a completely different semantic
3098 # ./install, which can be erroneously created by make from ./install.sh.
3099 # Reject install programs that cannot install multiple files.
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3101 printf %s "checking for a BSD-compatible install... " >&6; }
3102 if test -z "$INSTALL"; then
3103 if test ${ac_cv_path_install+y}
3105 printf %s "(cached) " >&6
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 case $as_dir in #(((
3114 *) as_dir=$as_dir/ ;;
3116 # Account for fact that we put trailing slashes in our PATH walk.
3119 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3120 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3123 # OSF1 and SCO ODT 3.0 have their own names for install.
3124 # Don't use installbsd from OSF since it installs stuff as root
3126 for ac_prog in ginstall scoinst install; do
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3129 if test $ac_prog = install &&
3130 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3131 # AIX install. It has an incompatible calling convention.
3133 elif test $ac_prog = install &&
3134 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3135 # program-specific install script used by HP pwplus--don't use.
3138 rm -rf conftest.one conftest.two conftest.dir
3139 echo one > conftest.one
3140 echo two > conftest.two
3142 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3143 test -s conftest.one && test -s conftest.two &&
3144 test -s conftest.dir/conftest.one &&
3145 test -s conftest.dir/conftest.two
3147 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3160 rm -rf conftest.one conftest.two conftest.dir
3163 if test ${ac_cv_path_install+y}; then
3164 INSTALL=$ac_cv_path_install
3166 # As a last resort, use the slow shell script. Don't cache a
3167 # value for INSTALL within a source directory, because that will
3168 # break other packages using the cache if that directory is
3169 # removed, or if the value is a relative name.
3170 INSTALL=$ac_install_sh
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3174 printf "%s\n" "$INSTALL" >&6; }
3176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3177 # It thinks the first close brace ends the variable substitution.
3178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3185 printf %s "checking whether build environment is sane... " >&6; }
3186 # Reject unsafe characters in $srcdir or the absolute working directory
3187 # name. Accept space and tab only in the latter.
3191 *[\\\"\#\$\&\'\`$am_lf]*)
3192 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3195 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3196 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3199 # Do 'set' in a subshell so we don't clobber the current shell's
3200 # arguments. Must try -L first in case configure is actually a
3201 # symlink; some systems play weird games with the mod time of symlinks
3202 # (eg FreeBSD returns the mod time of the symlink's containing
3206 for am_try in 1 2; do
3207 echo "timestamp, slept: $am_has_slept" > conftest.file
3208 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3209 if test "$*" = "X"; then
3211 set X `ls -t "$srcdir/configure" conftest.file`
3213 if test "$*" != "X $srcdir/configure conftest.file" \
3214 && test "$*" != "X conftest.file $srcdir/configure"; then
3216 # If neither matched, then we have a broken ls. This can happen
3217 # if, for instance, CONFIG_SHELL is bash and it inherits a
3218 # broken ls alias from the environment. This has actually
3219 # happened. Such a system could not be considered "sane".
3220 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3221 alias in your environment" "$LINENO" 5
3223 if test "$2" = conftest.file || test $am_try -eq 2; then
3230 test "$2" = conftest.file
3236 as_fn_error $? "newly created file is older than distributed files!
3237 Check your system clock" "$LINENO" 5
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 printf "%s\n" "yes" >&6; }
3241 # If we didn't sleep, we still need to ensure time stamps of config.status and
3242 # generated files are strictly newer.
3244 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3251 test "$program_prefix" != NONE &&
3252 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3253 # Use a double $ so make ignores it.
3254 test "$program_suffix" != NONE &&
3255 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3256 # Double any \ or $.
3257 # By default was `s,x,x', remove it if useless.
3258 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3259 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3262 # Expand $ac_aux_dir to an absolute path.
3263 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3266 if test x"${MISSING+set}" != xset; then
3267 MISSING="\${SHELL} '$am_aux_dir/missing'"
3269 # Use eval to expand $SHELL
3270 if eval "$MISSING --is-lightweight"; then
3271 am_missing_run="$MISSING "
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3275 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3278 if test x"${install_sh+set}" != xset; then
3281 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3283 install_sh="\${SHELL} $am_aux_dir/install-sh"
3287 # Installed binaries are usually stripped using 'strip' when the user
3288 # run "make install-strip". However 'strip' might not be the right
3289 # tool to use in cross-compilation environments, therefore Automake
3290 # will honor the 'STRIP' environment variable to overrule this program.
3291 if test "$cross_compiling" != no; then
3292 if test -n "$ac_tool_prefix"; then
3293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3294 set dummy ${ac_tool_prefix}strip; ac_word=$2
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 printf %s "checking for $ac_word... " >&6; }
3297 if test ${ac_cv_prog_STRIP+y}
3299 printf %s "(cached) " >&6
3301 if test -n "$STRIP"; then
3302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 case $as_dir in #(((
3311 *) as_dir=$as_dir/ ;;
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3325 STRIP=$ac_cv_prog_STRIP
3326 if test -n "$STRIP"; then
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3328 printf "%s\n" "$STRIP" >&6; }
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 printf "%s\n" "no" >&6; }
3336 if test -z "$ac_cv_prog_STRIP"; then
3338 # Extract the first word of "strip", so it can be a program name with args.
3339 set dummy strip; ac_word=$2
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 printf %s "checking for $ac_word... " >&6; }
3342 if test ${ac_cv_prog_ac_ct_STRIP+y}
3344 printf %s "(cached) " >&6
3346 if test -n "$ac_ct_STRIP"; then
3347 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 case $as_dir in #(((
3356 *) as_dir=$as_dir/ ;;
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_ac_ct_STRIP="strip"
3361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3371 if test -n "$ac_ct_STRIP"; then
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3373 printf "%s\n" "$ac_ct_STRIP" >&6; }
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 printf "%s\n" "no" >&6; }
3379 if test "x$ac_ct_STRIP" = x; then
3382 case $cross_compiling:$ac_tool_warned in
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3391 STRIP="$ac_cv_prog_STRIP"
3395 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3399 printf %s "checking for a race-free mkdir -p... " >&6; }
3400 if test -z "$MKDIR_P"; then
3401 if test ${ac_cv_path_mkdir+y}
3403 printf %s "(cached) " >&6
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3409 case $as_dir in #(((
3412 *) as_dir=$as_dir/ ;;
3414 for ac_prog in mkdir gmkdir; do
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3417 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3418 'mkdir ('*'coreutils) '* | \
3420 'mkdir (fileutils) '4.1*)
3421 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3431 test -d ./--version && rmdir ./--version
3432 if test ${ac_cv_path_mkdir+y}; then
3433 MKDIR_P="$ac_cv_path_mkdir -p"
3435 # As a last resort, use the slow shell script. Don't cache a
3436 # value for MKDIR_P within a source directory, because that will
3437 # break other packages using the cache if that directory is
3438 # removed, or if the value is a relative name.
3439 MKDIR_P="$ac_install_sh -d"
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3443 printf "%s\n" "$MKDIR_P" >&6; }
3445 for ac_prog in gawk mawk nawk awk
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 printf %s "checking for $ac_word... " >&6; }
3451 if test ${ac_cv_prog_AWK+y}
3453 printf %s "(cached) " >&6
3455 if test -n "$AWK"; then
3456 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 case $as_dir in #(((
3465 *) as_dir=$as_dir/ ;;
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_AWK="$ac_prog"
3470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3480 if test -n "$AWK"; then
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3482 printf "%s\n" "$AWK" >&6; }
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 printf "%s\n" "no" >&6; }
3489 test -n "$AWK" && break
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3493 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3495 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3496 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3498 printf %s "(cached) " >&6
3500 cat >conftest.make <<\_ACEOF
3503 @echo '@@@%%%=$(MAKE)=@@@%%%'
3505 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3506 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3508 eval ac_cv_prog_make_${ac_make}_set=yes;;
3510 eval ac_cv_prog_make_${ac_make}_set=no;;
3514 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516 printf "%s\n" "yes" >&6; }
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 printf "%s\n" "no" >&6; }
3521 SET_MAKE="MAKE=${MAKE-make}"
3524 rm -rf .tst 2>/dev/null
3525 mkdir .tst 2>/dev/null
3526 if test -d .tst; then
3531 rmdir .tst 2>/dev/null
3533 # Check whether --enable-silent-rules was given.
3534 if test ${enable_silent_rules+y}
3536 enableval=$enable_silent_rules;
3539 case $enable_silent_rules in # (((
3540 yes) AM_DEFAULT_VERBOSITY=0;;
3541 no) AM_DEFAULT_VERBOSITY=1;;
3542 *) AM_DEFAULT_VERBOSITY=1;;
3544 am_make=${MAKE-make}
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3546 printf %s "checking whether $am_make supports nested variables... " >&6; }
3547 if test ${am_cv_make_support_nested_variables+y}
3549 printf %s "(cached) " >&6
3551 if printf "%s\n" 'TRUE=$(BAR$(V))
3557 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3558 am_cv_make_support_nested_variables=yes
3560 am_cv_make_support_nested_variables=no
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3564 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3565 if test $am_cv_make_support_nested_variables = yes; then
3567 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3569 AM_V=$AM_DEFAULT_VERBOSITY
3570 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3574 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3575 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3576 # is not polluted with repeated "-I."
3577 am__isrc=' -I$(srcdir)'
3578 # test to see if srcdir already configured
3579 if test -f $srcdir/config.status; then
3580 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3584 # test whether we have cygpath
3585 if test -z "$CYGPATH_W"; then
3586 if (cygpath --version) >/dev/null 2>/dev/null; then
3587 CYGPATH_W='cygpath -w'
3594 # Define the identity of the package.
3599 # Some tools Automake needs.
3601 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3604 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3607 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3610 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3613 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3615 # For better backward compatibility. To be removed once Automake 1.9.x
3616 # dies out for good. For more background, see:
3617 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3618 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3619 mkdir_p='$(MKDIR_P)'
3621 # We need awk for the "check" target (and possibly the TAP driver). The
3622 # system "awk" is bad on some platforms.
3623 # Always define AMTAR for backward compatibility. Yes, it's still used
3624 # in the wild :-( We should find a proper way to deprecate it ...
3628 # We'll loop over all known methods to create a tar archive until one works.
3629 _am_tools='gnutar plaintar pax cpio none'
3631 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3632 # There is notably a 21 bits limit for the UID and the GID. In fact,
3633 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3635 am_max_uid=2097151 # 2^21 - 1
3636 am_max_gid=$am_max_uid
3637 # The $UID and $GID variables are not portable, so we need to resort
3638 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3639 # below are definitely unexpected, so allow the users to see them
3640 # (that is, avoid stderr redirection).
3641 am_uid=`id -u || echo unknown`
3642 am_gid=`id -g || echo unknown`
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3644 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3645 if test $am_uid -le $am_max_uid; then
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 printf "%s\n" "yes" >&6; }
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 printf "%s\n" "no" >&6; }
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3654 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3655 if test $am_gid -le $am_max_gid; then
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3657 printf "%s\n" "yes" >&6; }
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 printf "%s\n" "no" >&6; }
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3665 printf %s "checking how to create a ustar tar archive... " >&6; }
3667 # Go ahead even if we have the value already cached. We do so because we
3668 # need to set the values for the 'am__tar' and 'am__untar' variables.
3669 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3671 for _am_tool in $_am_tools; do
3674 for _am_tar in tar gnutar gtar; do
3675 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3676 ($_am_tar --version) >&5 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } && break
3681 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3682 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3683 am__untar="$_am_tar -xf -"
3686 # Must skip GNU tar: if it does not support --format= it doesn't create
3687 # ustar tarball either.
3688 (tar --version) >/dev/null 2>&1 && continue
3689 am__tar='tar chf - "$$tardir"'
3690 am__tar_='tar chf - "$tardir"'
3691 am__untar='tar xf -'
3694 am__tar='pax -L -x ustar -w "$$tardir"'
3695 am__tar_='pax -L -x ustar -w "$tardir"'
3699 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3700 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3701 am__untar='cpio -i -H ustar -d'
3710 # If the value was cached, stop now. We just wanted to have am__tar
3711 # and am__untar set.
3712 test -n "${am_cv_prog_tar_ustar}" && break
3714 # tar/untar a dummy directory, and stop if the command works.
3717 echo GrepMe > conftest.dir/file
3718 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3719 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }
3724 if test -s conftest.tar; then
3725 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3726 ($am__untar <conftest.tar) >&5 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }
3730 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3731 (cat conftest.dir/file) >&5 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }
3735 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3740 if test ${am_cv_prog_tar_ustar+y}
3742 printf %s "(cached) " >&6
3744 am_cv_prog_tar_ustar=$_am_tool
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3748 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3754 # Variables for tags utilities; see am/tags.am
3755 if test -z "$CTAGS"; then
3759 if test -z "$ETAGS"; then
3763 if test -z "$CSCOPE"; then
3769 # POSIX will say in a future version that running "rm -f" with no argument
3770 # is OK; and we want to be able to make that assumption in our Makefile
3771 # recipes. So use an aggressive probe to check that the usage we want is
3772 # actually supported "in the wild" to an acceptable degree.
3773 # See automake bug#10828.
3774 # To make any issue more visible, cause the running configure to be aborted
3775 # by default if the 'rm' program in use doesn't match our expectations; the
3776 # user can still override this though.
3777 if rm -f && rm -fr && rm -rf; then : OK; else
3781 Your 'rm' program seems unable to run without file operands specified
3782 on the command line, even when the '-f' option is present. This is contrary
3783 to the behaviour of most rm programs out there, and not conforming with
3784 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3786 Please tell bug-automake@gnu.org about your system, including the value
3787 of your $PATH and any error possibly output before this message. This
3788 can help us improve future automake versions.
3791 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3792 echo 'Configuration will proceed anyway, since you have set the' >&2
3793 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3797 Aborting the configuration process, to ensure you take notice of the issue.
3799 You can download and install GNU coreutils to get an 'rm' implementation
3800 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3802 If you want to complete the configuration process using your problematic
3803 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3804 to "yes", and re-run configure.
3807 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3813 # Check for programs
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 if test -n "$ac_tool_prefix"; then
3829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 printf %s "checking for $ac_word... " >&6; }
3833 if test ${ac_cv_prog_CC+y}
3835 printf %s "(cached) " >&6
3837 if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 case $as_dir in #(((
3847 *) as_dir=$as_dir/ ;;
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3862 if test -n "$CC"; then
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 printf "%s\n" "$CC" >&6; }
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 printf "%s\n" "no" >&6; }
3872 if test -z "$ac_cv_prog_CC"; then
3874 # Extract the first word of "gcc", so it can be a program name with args.
3875 set dummy gcc; ac_word=$2
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 printf %s "checking for $ac_word... " >&6; }
3878 if test ${ac_cv_prog_ac_ct_CC+y}
3880 printf %s "(cached) " >&6
3882 if test -n "$ac_ct_CC"; then
3883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 case $as_dir in #(((
3892 *) as_dir=$as_dir/ ;;
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_CC="gcc"
3897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3907 if test -n "$ac_ct_CC"; then
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3909 printf "%s\n" "$ac_ct_CC" >&6; }
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 printf "%s\n" "no" >&6; }
3915 if test "x$ac_ct_CC" = x; then
3918 case $cross_compiling:$ac_tool_warned in
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3930 if test -z "$CC"; then
3931 if test -n "$ac_tool_prefix"; then
3932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3933 set dummy ${ac_tool_prefix}cc; ac_word=$2
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 printf %s "checking for $ac_word... " >&6; }
3936 if test ${ac_cv_prog_CC+y}
3938 printf %s "(cached) " >&6
3940 if test -n "$CC"; then
3941 ac_cv_prog_CC="$CC" # Let the user override the test.
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 case $as_dir in #(((
3950 *) as_dir=$as_dir/ ;;
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_CC="${ac_tool_prefix}cc"
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3965 if test -n "$CC"; then
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 printf "%s\n" "$CC" >&6; }
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 printf "%s\n" "no" >&6; }
3976 if test -z "$CC"; then
3977 # Extract the first word of "cc", so it can be a program name with args.
3978 set dummy cc; ac_word=$2
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 printf %s "checking for $ac_word... " >&6; }
3981 if test ${ac_cv_prog_CC+y}
3983 printf %s "(cached) " >&6
3985 if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 case $as_dir in #(((
3996 *) as_dir=$as_dir/ ;;
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4000 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4001 ac_prog_rejected=yes
4005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4012 if test $ac_prog_rejected = yes; then
4013 # We found a bogon in the path, so make sure we never use it.
4014 set dummy $ac_cv_prog_CC
4016 if test $# != 0; then
4017 # We chose a different compiler from the bogus one.
4018 # However, it has the same basename, so the bogon will be chosen
4019 # first if we set CC to just the basename; use the full file name.
4021 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4027 if test -n "$CC"; then
4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029 printf "%s\n" "$CC" >&6; }
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 printf "%s\n" "no" >&6; }
4037 if test -z "$CC"; then
4038 if test -n "$ac_tool_prefix"; then
4039 for ac_prog in cl.exe
4041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 printf %s "checking for $ac_word... " >&6; }
4045 if test ${ac_cv_prog_CC+y}
4047 printf %s "(cached) " >&6
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 case $as_dir in #(((
4059 *) as_dir=$as_dir/ ;;
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4074 if test -n "$CC"; then
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 printf "%s\n" "$CC" >&6; }
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 printf "%s\n" "no" >&6; }
4083 test -n "$CC" && break
4086 if test -z "$CC"; then
4088 for ac_prog in cl.exe
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 printf %s "checking for $ac_word... " >&6; }
4094 if test ${ac_cv_prog_ac_ct_CC+y}
4096 printf %s "(cached) " >&6
4098 if test -n "$ac_ct_CC"; then
4099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 case $as_dir in #(((
4108 *) as_dir=$as_dir/ ;;
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_ac_ct_CC="$ac_prog"
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4123 if test -n "$ac_ct_CC"; then
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4125 printf "%s\n" "$ac_ct_CC" >&6; }
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 printf "%s\n" "no" >&6; }
4132 test -n "$ac_ct_CC" && break
4135 if test "x$ac_ct_CC" = x; then
4138 case $cross_compiling:$ac_tool_warned in
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4141 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4142 ac_tool_warned=yes ;;
4149 if test -z "$CC"; then
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}clang; ac_word=$2
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 printf %s "checking for $ac_word... " >&6; }
4155 if test ${ac_cv_prog_CC+y}
4157 printf %s "(cached) " >&6
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 case $as_dir in #(((
4169 *) as_dir=$as_dir/ ;;
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_CC="${ac_tool_prefix}clang"
4174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4184 if test -n "$CC"; then
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 printf "%s\n" "$CC" >&6; }
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 printf "%s\n" "no" >&6; }
4194 if test -z "$ac_cv_prog_CC"; then
4196 # Extract the first word of "clang", so it can be a program name with args.
4197 set dummy clang; ac_word=$2
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 printf %s "checking for $ac_word... " >&6; }
4200 if test ${ac_cv_prog_ac_ct_CC+y}
4202 printf %s "(cached) " >&6
4204 if test -n "$ac_ct_CC"; then
4205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 case $as_dir in #(((
4214 *) as_dir=$as_dir/ ;;
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_ac_ct_CC="clang"
4219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229 if test -n "$ac_ct_CC"; then
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231 printf "%s\n" "$ac_ct_CC" >&6; }
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 printf "%s\n" "no" >&6; }
4237 if test "x$ac_ct_CC" = x; then
4240 case $cross_compiling:$ac_tool_warned in
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244 ac_tool_warned=yes ;;
4255 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4257 as_fn_error $? "no acceptable C compiler found in \$PATH
4258 See \`config.log' for more details" "$LINENO" 5; }
4260 # Provide some information about the compiler.
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4264 for ac_option in --version -v -V -qversion -version; do
4265 { { ac_try="$ac_compiler $ac_option >&5"
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 printf "%s\n" "$ac_try_echo"; } >&5
4272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4274 if test -s conftest.err; then
4276 ... rest of stderr output deleted ...
4277 10q' conftest.err >conftest.er1
4278 cat conftest.er1 >&5
4280 rm -f conftest.er1 conftest.err
4281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282 test $ac_status = 0; }
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4296 ac_clean_files_save=$ac_clean_files
4297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4298 # Try to create an executable without -o first, disregard a.out.
4299 # It will help us diagnose broken compilers, and finding out an intuition
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4302 printf %s "checking whether the C compiler works... " >&6; }
4303 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4305 # The possible output files:
4306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4309 for ac_file in $ac_files
4312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4318 if { { ac_try="$ac_link_default"
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 printf "%s\n" "$ac_try_echo"; } >&5
4325 (eval "$ac_link_default") 2>&5
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }
4330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4333 # so that the user can short-circuit this test for compilers unknown to
4335 for ac_file in $ac_files ''
4337 test -f "$ac_file" || continue
4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4342 # We found the default executable, but exeext='' is most
4346 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4350 # We set ac_cv_exeext here because the later test for it is not
4351 # safe: cross compilers may not add the suffix if given an `-o'
4352 # argument, so we may need to know it at that point already.
4353 # Even if this section looks crufty: it has the advantage of
4360 test "$ac_cv_exeext" = no && ac_cv_exeext=
4365 if test -z "$ac_file"
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 printf "%s\n" "no" >&6; }
4369 printf "%s\n" "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4374 as_fn_error 77 "C compiler cannot create executables
4375 See \`config.log' for more details" "$LINENO" 5; }
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 printf "%s\n" "yes" >&6; }
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4381 printf %s "checking for C compiler default output file name... " >&6; }
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4383 printf "%s\n" "$ac_file" >&6; }
4384 ac_exeext=$ac_cv_exeext
4386 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4387 ac_clean_files=$ac_clean_files_save
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4389 printf %s "checking for suffix of executables... " >&6; }
4390 if { { ac_try="$ac_link"
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 printf "%s\n" "$ac_try_echo"; } >&5
4397 (eval "$ac_link") 2>&5
4399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }
4402 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4403 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4404 # work properly (i.e., refer to `conftest.exe'), while it won't with
4406 for ac_file in conftest.exe conftest conftest.*; do
4407 test -f "$ac_file" || continue
4409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4416 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4417 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4418 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4419 See \`config.log' for more details" "$LINENO" 5; }
4421 rm -f conftest conftest$ac_cv_exeext
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4423 printf "%s\n" "$ac_cv_exeext" >&6; }
4425 rm -f conftest.$ac_ext
4426 EXEEXT=$ac_cv_exeext
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4434 FILE *f = fopen ("conftest.out", "w");
4435 return ferror (f) || fclose (f) != 0;
4441 ac_clean_files="$ac_clean_files conftest.out"
4442 # Check that the compiler produces executables we can run. If not, either
4443 # the compiler is broken, or we cross compile.
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4445 printf %s "checking whether we are cross compiling... " >&6; }
4446 if test "$cross_compiling" != yes; then
4447 { { ac_try="$ac_link"
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 printf "%s\n" "$ac_try_echo"; } >&5
4454 (eval "$ac_link") 2>&5
4456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }
4458 if { ac_try='./conftest$ac_cv_exeext'
4459 { { case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 printf "%s\n" "$ac_try_echo"; } >&5
4465 (eval "$ac_try") 2>&5
4467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }; }; then
4471 if test "$cross_compiling" = maybe; then
4474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error 77 "cannot run C compiled programs.
4477 If you meant to cross compile, use \`--host'.
4478 See \`config.log' for more details" "$LINENO" 5; }
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4483 printf "%s\n" "$cross_compiling" >&6; }
4485 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4486 ac_clean_files=$ac_clean_files_save
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4488 printf %s "checking for suffix of object files... " >&6; }
4489 if test ${ac_cv_objext+y}
4491 printf %s "(cached) " >&6
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4504 rm -f conftest.o conftest.obj
4505 if { { ac_try="$ac_compile"
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 printf "%s\n" "$ac_try_echo"; } >&5
4512 (eval "$ac_compile") 2>&5
4514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4517 for ac_file in conftest.o conftest.obj conftest.*; do
4518 test -f "$ac_file" || continue;
4520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4521 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4526 printf "%s\n" "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $? "cannot compute suffix of object files: cannot compile
4532 See \`config.log' for more details" "$LINENO" 5; }
4534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4537 printf "%s\n" "$ac_cv_objext" >&6; }
4538 OBJEXT=$ac_cv_objext
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4541 printf %s "checking whether the compiler supports GNU C... " >&6; }
4542 if test ${ac_cv_c_compiler_gnu+y}
4544 printf %s "(cached) " >&6
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4560 if ac_fn_c_try_compile "$LINENO"
4566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4571 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 if test $ac_compiler_gnu = yes; then
4579 ac_test_CFLAGS=${CFLAGS+y}
4580 ac_save_CFLAGS=$CFLAGS
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4582 printf %s "checking whether $CC accepts -g... " >&6; }
4583 if test ${ac_cv_prog_cc_g+y}
4585 printf %s "(cached) " >&6
4587 ac_save_c_werror_flag=$ac_c_werror_flag
4588 ac_c_werror_flag=yes
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4602 if ac_fn_c_try_compile "$LINENO"
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4618 if ac_fn_c_try_compile "$LINENO"
4622 ac_c_werror_flag=$ac_save_c_werror_flag
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4635 if ac_fn_c_try_compile "$LINENO"
4639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4644 ac_c_werror_flag=$ac_save_c_werror_flag
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4647 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4648 if test $ac_test_CFLAGS; then
4649 CFLAGS=$ac_save_CFLAGS
4650 elif test $ac_cv_prog_cc_g = yes; then
4651 if test "$GCC" = yes; then
4657 if test "$GCC" = yes; then
4664 if test x$ac_prog_cc_stdc = xno
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4667 printf %s "checking for $CC option to enable C11 features... " >&6; }
4668 if test ${ac_cv_prog_cc_c11+y}
4670 printf %s "(cached) " >&6
4672 ac_cv_prog_cc_c11=no
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 $ac_c_conftest_c11_program
4678 for ac_arg in '' -std=gnu11
4680 CC="$ac_save_CC $ac_arg"
4681 if ac_fn_c_try_compile "$LINENO"
4683 ac_cv_prog_cc_c11=$ac_arg
4685 rm -f core conftest.err conftest.$ac_objext conftest.beam
4686 test "x$ac_cv_prog_cc_c11" != "xno" && break
4688 rm -f conftest.$ac_ext
4692 if test "x$ac_cv_prog_cc_c11" = xno
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4695 printf "%s\n" "unsupported" >&6; }
4697 if test "x$ac_cv_prog_cc_c11" = x
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4700 printf "%s\n" "none needed" >&6; }
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4703 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4704 CC="$CC $ac_cv_prog_cc_c11"
4706 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4710 if test x$ac_prog_cc_stdc = xno
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4713 printf %s "checking for $CC option to enable C99 features... " >&6; }
4714 if test ${ac_cv_prog_cc_c99+y}
4716 printf %s "(cached) " >&6
4718 ac_cv_prog_cc_c99=no
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 $ac_c_conftest_c99_program
4724 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4726 CC="$ac_save_CC $ac_arg"
4727 if ac_fn_c_try_compile "$LINENO"
4729 ac_cv_prog_cc_c99=$ac_arg
4731 rm -f core conftest.err conftest.$ac_objext conftest.beam
4732 test "x$ac_cv_prog_cc_c99" != "xno" && break
4734 rm -f conftest.$ac_ext
4738 if test "x$ac_cv_prog_cc_c99" = xno
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 printf "%s\n" "unsupported" >&6; }
4743 if test "x$ac_cv_prog_cc_c99" = x
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4746 printf "%s\n" "none needed" >&6; }
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4749 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4750 CC="$CC $ac_cv_prog_cc_c99"
4752 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4756 if test x$ac_prog_cc_stdc = xno
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4759 printf %s "checking for $CC option to enable C89 features... " >&6; }
4760 if test ${ac_cv_prog_cc_c89+y}
4762 printf %s "(cached) " >&6
4764 ac_cv_prog_cc_c89=no
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 $ac_c_conftest_c89_program
4770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4772 CC="$ac_save_CC $ac_arg"
4773 if ac_fn_c_try_compile "$LINENO"
4775 ac_cv_prog_cc_c89=$ac_arg
4777 rm -f core conftest.err conftest.$ac_objext conftest.beam
4778 test "x$ac_cv_prog_cc_c89" != "xno" && break
4780 rm -f conftest.$ac_ext
4784 if test "x$ac_cv_prog_cc_c89" = xno
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787 printf "%s\n" "unsupported" >&6; }
4789 if test "x$ac_cv_prog_cc_c89" = x
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4792 printf "%s\n" "none needed" >&6; }
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4795 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4796 CC="$CC $ac_cv_prog_cc_c89"
4798 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4816 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4817 if test ${am_cv_prog_cc_c_o+y}
4819 printf %s "(cached) " >&6
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4832 # Make sure it works both with $CC and with simple cc.
4833 # Following AC_PROG_CC_C_O, we do the test twice because some
4834 # compilers refuse to overwrite an existing .o file with -o,
4835 # though they will create one.
4836 am_cv_prog_cc_c_o=yes
4838 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4839 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } \
4843 && test -f conftest2.$ac_objext; then
4846 am_cv_prog_cc_c_o=no
4850 rm -f core conftest*
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4854 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4855 if test "$am_cv_prog_cc_c_o" != yes; then
4856 # Losing compiler, so override with the script.
4857 # FIXME: It is wrong to rewrite CC.
4858 # But if we don't then we get into trouble of one sort or another.
4859 # A longer-term fix would be to have automake use am__CC in this case,
4860 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4861 CC="$am_aux_dir/compile $CC"
4864 ac_cpp='$CPP $CPPFLAGS'
4865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869 DEPDIR="${am__leading_dot}deps"
4871 ac_config_commands="$ac_config_commands depfiles"
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4874 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4875 cat > confinc.mk << 'END'
4877 @echo this is the am__doit target >confinc.out
4882 # BSD make does it like this.
4883 echo '.include "confinc.mk" # ignored' > confmf.BSD
4884 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4885 echo 'include confinc.mk # ignored' > confmf.GNU
4887 for s in GNU BSD; do
4888 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4889 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893 case $?:`cat confinc.out 2>/dev/null` in #(
4894 '0:this is the am__doit target') :
4897 am__include='.include' am__quote='"' ;; #(
4899 am__include='include' am__quote='' ;;
4904 if test "$am__include" != "#"; then
4905 _am_result="yes ($s style)"
4909 rm -f confinc.* confmf.*
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4911 printf "%s\n" "${_am_result}" >&6; }
4913 # Check whether --enable-dependency-tracking was given.
4914 if test ${enable_dependency_tracking+y}
4916 enableval=$enable_dependency_tracking;
4919 if test "x$enable_dependency_tracking" != xno; then
4920 am_depcomp="$ac_aux_dir/depcomp"
4924 if test "x$enable_dependency_tracking" != xno; then
4934 depcc="$CC" am_compiler_list=
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4937 printf %s "checking dependency style of $depcc... " >&6; }
4938 if test ${am_cv_CC_dependencies_compiler_type+y}
4940 printf %s "(cached) " >&6
4942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4943 # We make a subdir and do the tests there. Otherwise we can end up
4944 # making bogus files that we don't know about and never remove. For
4945 # instance it was reported that on HP-UX the gcc test will end up
4946 # making a dummy file named 'D' -- because '-MD' means "put the output
4950 # Copy depcomp to subdir because otherwise we won't find it if we're
4951 # using a relative directory.
4952 cp "$am_depcomp" conftest.dir
4954 # We will build objects and dependencies in a subdirectory because
4955 # it helps to detect inapplicable dependency modes. For instance
4956 # both Tru64's cc and ICC support -MD to output dependencies as a
4957 # side effect of compilation, but ICC will put the dependencies in
4958 # the current directory while Tru64 will put them in the object
4962 am_cv_CC_dependencies_compiler_type=none
4963 if test "$am_compiler_list" = ""; then
4964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4967 case " $depcc " in #(
4968 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4971 for depmode in $am_compiler_list; do
4972 # Setup a source with many dependencies, because some compilers
4973 # like to wrap large dependency lists on column 80 (with \), and
4974 # we should not choose a depcomp mode which is confused by this.
4976 # We need to recreate these files for each test, as the compiler may
4977 # overwrite some of them when testing with obscure command lines.
4978 # This happens at least with the AIX C compiler.
4980 for i in 1 2 3 4 5 6; do
4981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4982 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4983 # Solaris 10 /bin/sh.
4984 echo '/* dummy */' > sub/conftst$i.h
4986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4988 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4989 # mode. It turns out that the SunPro C++ compiler does not properly
4990 # handle '-M -o', and we need to detect this. Also, some Intel
4991 # versions had trouble with output in subdirs.
4992 am__obj=sub/conftest.${OBJEXT-o}
4993 am__minus_obj="-o $am__obj"
4996 # This depmode causes a compiler race in universal mode.
4997 test "$am__universal" = false || continue
5000 # After this tag, mechanisms are not by side-effect, so they'll
5001 # only be used when explicitly requested.
5002 if test "x$enable_dependency_tracking" = xyes; then
5008 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5009 # This compiler won't grok '-c -o', but also, the minuso test has
5010 # not run yet. These depmodes are late enough in the game, and
5011 # so weak that their functioning should not be impacted.
5012 am__obj=conftest.${OBJEXT-o}
5017 if depmode=$depmode \
5018 source=sub/conftest.c object=$am__obj \
5019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5021 >/dev/null 2>conftest.err &&
5022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5026 # icc doesn't choke on unknown options, it will just issue warnings
5027 # or remarks (even with -Werror). So we grep stderr for any message
5028 # that says an option was ignored or not supported.
5029 # When given -MP, icc 7.0 and 7.1 complain thusly:
5030 # icc: Command line warning: ignoring option '-M'; no argument required
5031 # The diagnosis changed in icc 8.0:
5032 # icc: Command line remark: option '-MP' not supported
5033 if (grep 'ignoring option' conftest.err ||
5034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5035 am_cv_CC_dependencies_compiler_type=$depmode
5044 am_cv_CC_dependencies_compiler_type=none
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5049 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5053 test "x$enable_dependency_tracking" != xno \
5054 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5056 am__fastdepCC_FALSE='#'
5058 am__fastdepCC_TRUE='#'
5059 am__fastdepCC_FALSE=
5064 ac_cpp='$CPP $CPPFLAGS'
5065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5069 printf %s "checking how to run the C preprocessor... " >&6; }
5070 # On Suns, sometimes $CPP names a directory.
5071 if test -n "$CPP" && test -d "$CPP"; then
5074 if test -z "$CPP"; then
5075 if test ${ac_cv_prog_CPP+y}
5077 printf %s "(cached) " >&6
5079 # Double quotes because $CC needs to be expanded
5080 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5083 for ac_c_preproc_warn_flag in '' yes
5085 # Use a header file that comes with gcc, so configuring glibc
5086 # with a fresh cross-compiler works.
5087 # On the NeXT, cc -E runs the code through the compiler's parser,
5088 # not just through cpp. "Syntax error" is here to catch this case.
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5094 if ac_fn_c_try_cpp "$LINENO"
5098 # Broken: fails on valid input.
5101 rm -f conftest.err conftest.i conftest.$ac_ext
5103 # OK, works on sane cases. Now check whether nonexistent headers
5104 # can be detected and how.
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 #include <ac_nonexistent.h>
5109 if ac_fn_c_try_cpp "$LINENO"
5111 # Broken: success on invalid input.
5114 # Passes both tests.
5118 rm -f conftest.err conftest.i conftest.$ac_ext
5121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122 rm -f conftest.i conftest.err conftest.$ac_ext
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5137 printf "%s\n" "$CPP" >&6; }
5139 for ac_c_preproc_warn_flag in '' yes
5141 # Use a header file that comes with gcc, so configuring glibc
5142 # with a fresh cross-compiler works.
5143 # On the NeXT, cc -E runs the code through the compiler's parser,
5144 # not just through cpp. "Syntax error" is here to catch this case.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5150 if ac_fn_c_try_cpp "$LINENO"
5154 # Broken: fails on valid input.
5157 rm -f conftest.err conftest.i conftest.$ac_ext
5159 # OK, works on sane cases. Now check whether nonexistent headers
5160 # can be detected and how.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <ac_nonexistent.h>
5165 if ac_fn_c_try_cpp "$LINENO"
5167 # Broken: success on invalid input.
5170 # Passes both tests.
5174 rm -f conftest.err conftest.i conftest.$ac_ext
5177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5178 rm -f conftest.i conftest.err conftest.$ac_ext
5183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5184 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5185 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5186 See \`config.log' for more details" "$LINENO" 5; }
5190 ac_cpp='$CPP $CPPFLAGS'
5191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 ac_cpp='$CXXCPP $CPPFLAGS'
5203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206 if test -z "$CXX"; then
5207 if test -n "$CCC"; then
5210 if test -n "$ac_tool_prefix"; then
5211 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 printf %s "checking for $ac_word... " >&6; }
5217 if test ${ac_cv_prog_CXX+y}
5219 printf %s "(cached) " >&6
5221 if test -n "$CXX"; then
5222 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 case $as_dir in #(((
5231 *) as_dir=$as_dir/ ;;
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5246 if test -n "$CXX"; then
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5248 printf "%s\n" "$CXX" >&6; }
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 printf "%s\n" "no" >&6; }
5255 test -n "$CXX" && break
5258 if test -z "$CXX"; then
5260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5262 # Extract the first word of "$ac_prog", so it can be a program name with args.
5263 set dummy $ac_prog; ac_word=$2
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 printf %s "checking for $ac_word... " >&6; }
5266 if test ${ac_cv_prog_ac_ct_CXX+y}
5268 printf %s "(cached) " >&6
5270 if test -n "$ac_ct_CXX"; then
5271 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 case $as_dir in #(((
5280 *) as_dir=$as_dir/ ;;
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_ac_ct_CXX="$ac_prog"
5285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5294 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5295 if test -n "$ac_ct_CXX"; then
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5297 printf "%s\n" "$ac_ct_CXX" >&6; }
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 printf "%s\n" "no" >&6; }
5304 test -n "$ac_ct_CXX" && break
5307 if test "x$ac_ct_CXX" = x; then
5310 case $cross_compiling:$ac_tool_warned in
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314 ac_tool_warned=yes ;;
5322 # Provide some information about the compiler.
5323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5326 for ac_option in --version -v -V -qversion; do
5327 { { ac_try="$ac_compiler $ac_option >&5"
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5333 printf "%s\n" "$ac_try_echo"; } >&5
5334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5336 if test -s conftest.err; then
5338 ... rest of stderr output deleted ...
5339 10q' conftest.err >conftest.er1
5340 cat conftest.er1 >&5
5342 rm -f conftest.er1 conftest.err
5343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5344 test $ac_status = 0; }
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5348 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5349 if test ${ac_cv_cxx_compiler_gnu+y}
5351 printf %s "(cached) " >&6
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5367 if ac_fn_cxx_try_compile "$LINENO"
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5374 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5378 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5381 if test $ac_compiler_gnu = yes; then
5386 ac_test_CXXFLAGS=${CXXFLAGS+y}
5387 ac_save_CXXFLAGS=$CXXFLAGS
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5389 printf %s "checking whether $CXX accepts -g... " >&6; }
5390 if test ${ac_cv_prog_cxx_g+y}
5392 printf %s "(cached) " >&6
5394 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5395 ac_cxx_werror_flag=yes
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5409 if ac_fn_cxx_try_compile "$LINENO"
5411 ac_cv_prog_cxx_g=yes
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5425 if ac_fn_cxx_try_compile "$LINENO"
5429 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5442 if ac_fn_cxx_try_compile "$LINENO"
5444 ac_cv_prog_cxx_g=yes
5446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5454 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5455 if test $ac_test_CXXFLAGS; then
5456 CXXFLAGS=$ac_save_CXXFLAGS
5457 elif test $ac_cv_prog_cxx_g = yes; then
5458 if test "$GXX" = yes; then
5464 if test "$GXX" = yes; then
5470 ac_prog_cxx_stdcxx=no
5471 if test x$ac_prog_cxx_stdcxx = xno
5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5474 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5475 if test ${ac_cv_prog_cxx_cxx11+y}
5477 printf %s "(cached) " >&6
5479 ac_cv_prog_cxx_cxx11=no
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 $ac_cxx_conftest_cxx11_program
5485 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5487 CXX="$ac_save_CXX $ac_arg"
5488 if ac_fn_cxx_try_compile "$LINENO"
5490 ac_cv_prog_cxx_cxx11=$ac_arg
5492 rm -f core conftest.err conftest.$ac_objext conftest.beam
5493 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5495 rm -f conftest.$ac_ext
5499 if test "x$ac_cv_prog_cxx_cxx11" = xno
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5502 printf "%s\n" "unsupported" >&6; }
5504 if test "x$ac_cv_prog_cxx_cxx11" = x
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5507 printf "%s\n" "none needed" >&6; }
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5510 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5511 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5513 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5514 ac_prog_cxx_stdcxx=cxx11
5517 if test x$ac_prog_cxx_stdcxx = xno
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5520 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5521 if test ${ac_cv_prog_cxx_cxx98+y}
5523 printf %s "(cached) " >&6
5525 ac_cv_prog_cxx_cxx98=no
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 $ac_cxx_conftest_cxx98_program
5531 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5533 CXX="$ac_save_CXX $ac_arg"
5534 if ac_fn_cxx_try_compile "$LINENO"
5536 ac_cv_prog_cxx_cxx98=$ac_arg
5538 rm -f core conftest.err conftest.$ac_objext conftest.beam
5539 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5541 rm -f conftest.$ac_ext
5545 if test "x$ac_cv_prog_cxx_cxx98" = xno
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5548 printf "%s\n" "unsupported" >&6; }
5550 if test "x$ac_cv_prog_cxx_cxx98" = x
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5553 printf "%s\n" "none needed" >&6; }
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5556 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5557 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5559 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5560 ac_prog_cxx_stdcxx=cxx98
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570 depcc="$CXX" am_compiler_list=
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5573 printf %s "checking dependency style of $depcc... " >&6; }
5574 if test ${am_cv_CXX_dependencies_compiler_type+y}
5576 printf %s "(cached) " >&6
5578 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5579 # We make a subdir and do the tests there. Otherwise we can end up
5580 # making bogus files that we don't know about and never remove. For
5581 # instance it was reported that on HP-UX the gcc test will end up
5582 # making a dummy file named 'D' -- because '-MD' means "put the output
5586 # Copy depcomp to subdir because otherwise we won't find it if we're
5587 # using a relative directory.
5588 cp "$am_depcomp" conftest.dir
5590 # We will build objects and dependencies in a subdirectory because
5591 # it helps to detect inapplicable dependency modes. For instance
5592 # both Tru64's cc and ICC support -MD to output dependencies as a
5593 # side effect of compilation, but ICC will put the dependencies in
5594 # the current directory while Tru64 will put them in the object
5598 am_cv_CXX_dependencies_compiler_type=none
5599 if test "$am_compiler_list" = ""; then
5600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5603 case " $depcc " in #(
5604 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5607 for depmode in $am_compiler_list; do
5608 # Setup a source with many dependencies, because some compilers
5609 # like to wrap large dependency lists on column 80 (with \), and
5610 # we should not choose a depcomp mode which is confused by this.
5612 # We need to recreate these files for each test, as the compiler may
5613 # overwrite some of them when testing with obscure command lines.
5614 # This happens at least with the AIX C compiler.
5616 for i in 1 2 3 4 5 6; do
5617 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5618 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5619 # Solaris 10 /bin/sh.
5620 echo '/* dummy */' > sub/conftst$i.h
5622 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5624 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5625 # mode. It turns out that the SunPro C++ compiler does not properly
5626 # handle '-M -o', and we need to detect this. Also, some Intel
5627 # versions had trouble with output in subdirs.
5628 am__obj=sub/conftest.${OBJEXT-o}
5629 am__minus_obj="-o $am__obj"
5632 # This depmode causes a compiler race in universal mode.
5633 test "$am__universal" = false || continue
5636 # After this tag, mechanisms are not by side-effect, so they'll
5637 # only be used when explicitly requested.
5638 if test "x$enable_dependency_tracking" = xyes; then
5644 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5645 # This compiler won't grok '-c -o', but also, the minuso test has
5646 # not run yet. These depmodes are late enough in the game, and
5647 # so weak that their functioning should not be impacted.
5648 am__obj=conftest.${OBJEXT-o}
5653 if depmode=$depmode \
5654 source=sub/conftest.c object=$am__obj \
5655 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5656 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5657 >/dev/null 2>conftest.err &&
5658 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5660 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5662 # icc doesn't choke on unknown options, it will just issue warnings
5663 # or remarks (even with -Werror). So we grep stderr for any message
5664 # that says an option was ignored or not supported.
5665 # When given -MP, icc 7.0 and 7.1 complain thusly:
5666 # icc: Command line warning: ignoring option '-M'; no argument required
5667 # The diagnosis changed in icc 8.0:
5668 # icc: Command line remark: option '-MP' not supported
5669 if (grep 'ignoring option' conftest.err ||
5670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5671 am_cv_CXX_dependencies_compiler_type=$depmode
5680 am_cv_CXX_dependencies_compiler_type=none
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5685 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5686 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5689 test "x$enable_dependency_tracking" != xno \
5690 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5691 am__fastdepCXX_TRUE=
5692 am__fastdepCXX_FALSE='#'
5694 am__fastdepCXX_TRUE='#'
5695 am__fastdepCXX_FALSE=
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5702 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5707 macro_version='2.4.7'
5708 macro_revision='2.4.7'
5723 ltmain=$ac_aux_dir/ltmain.sh
5725 # Backslashify metacharacters that are still active within
5726 # double-quoted strings.
5727 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5729 # Same as above, but do not quote variable references.
5730 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5732 # Sed substitution to delay expansion of an escaped shell variable in a
5733 # double_quote_subst'ed string.
5734 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5736 # Sed substitution to delay expansion of an escaped single quote.
5737 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5739 # Sed substitution to avoid accidental globbing in evaled expressions
5740 no_glob_subst='s/\*/\\\*/g'
5742 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5743 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5744 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5747 printf %s "checking how to print strings... " >&6; }
5748 # Test print first, because it will be a builtin if present.
5749 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5750 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5752 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5755 # Use this function as a fallback that always works.
5756 func_fallback_echo ()
5758 eval 'cat <<_LTECHO_EOF
5762 ECHO='func_fallback_echo'
5765 # func_echo_all arg...
5766 # Invoke $ECHO with all args, space-separated.
5773 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5774 printf "%s\n" "printf" >&6; } ;;
5775 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5776 printf "%s\n" "print -r" >&6; } ;;
5777 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5778 printf "%s\n" "cat" >&6; } ;;
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5795 printf %s "checking for a sed that does not truncate output... " >&6; }
5796 if test ${ac_cv_path_SED+y}
5798 printf %s "(cached) " >&6
5800 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5801 for ac_i in 1 2 3 4 5 6 7; do
5802 ac_script="$ac_script$as_nl$ac_script"
5804 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5805 { ac_script=; unset ac_script;}
5806 if test -z "$SED"; then
5807 ac_path_SED_found=false
5808 # Loop through the user's path and test for each of PROGNAME-LIST
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 case $as_dir in #(((
5816 *) as_dir=$as_dir/ ;;
5818 for ac_prog in sed gsed
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5822 as_fn_executable_p "$ac_path_SED" || continue
5823 # Check for GNU ac_path_SED and select it if it is found.
5824 # Check for GNU $ac_path_SED
5825 case `"$ac_path_SED" --version 2>&1` in
5827 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5830 printf %s 0123456789 >"conftest.in"
5833 cat "conftest.in" "conftest.in" >"conftest.tmp"
5834 mv "conftest.tmp" "conftest.in"
5835 cp "conftest.in" "conftest.nl"
5836 printf "%s\n" '' >> "conftest.nl"
5837 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5839 as_fn_arith $ac_count + 1 && ac_count=$as_val
5840 if test $ac_count -gt ${ac_path_SED_max-0}; then
5841 # Best one so far, save it but keep looking for a better one
5842 ac_cv_path_SED="$ac_path_SED"
5843 ac_path_SED_max=$ac_count
5845 # 10*(2^10) chars as input seems more than enough
5846 test $ac_count -gt 10 && break
5848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5851 $ac_path_SED_found && break 3
5856 if test -z "$ac_cv_path_SED"; then
5857 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5865 printf "%s\n" "$ac_cv_path_SED" >&6; }
5866 SED="$ac_cv_path_SED"
5869 test -z "$SED" && SED=sed
5870 Xsed="$SED -e 1s/^X//"
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5883 printf %s "checking for grep that handles long lines and -e... " >&6; }
5884 if test ${ac_cv_path_GREP+y}
5886 printf %s "(cached) " >&6
5888 if test -z "$GREP"; then
5889 ac_path_GREP_found=false
5890 # Loop through the user's path and test for each of PROGNAME-LIST
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5895 case $as_dir in #(((
5898 *) as_dir=$as_dir/ ;;
5900 for ac_prog in grep ggrep
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5904 as_fn_executable_p "$ac_path_GREP" || continue
5905 # Check for GNU ac_path_GREP and select it if it is found.
5906 # Check for GNU $ac_path_GREP
5907 case `"$ac_path_GREP" --version 2>&1` in
5909 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5912 printf %s 0123456789 >"conftest.in"
5915 cat "conftest.in" "conftest.in" >"conftest.tmp"
5916 mv "conftest.tmp" "conftest.in"
5917 cp "conftest.in" "conftest.nl"
5918 printf "%s\n" 'GREP' >> "conftest.nl"
5919 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5921 as_fn_arith $ac_count + 1 && ac_count=$as_val
5922 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5923 # Best one so far, save it but keep looking for a better one
5924 ac_cv_path_GREP="$ac_path_GREP"
5925 ac_path_GREP_max=$ac_count
5927 # 10*(2^10) chars as input seems more than enough
5928 test $ac_count -gt 10 && break
5930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5933 $ac_path_GREP_found && break 3
5938 if test -z "$ac_cv_path_GREP"; then
5939 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5942 ac_cv_path_GREP=$GREP
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5947 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5948 GREP="$ac_cv_path_GREP"
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5952 printf %s "checking for egrep... " >&6; }
5953 if test ${ac_cv_path_EGREP+y}
5955 printf %s "(cached) " >&6
5957 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5958 then ac_cv_path_EGREP="$GREP -E"
5960 if test -z "$EGREP"; then
5961 ac_path_EGREP_found=false
5962 # Loop through the user's path and test for each of PROGNAME-LIST
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5967 case $as_dir in #(((
5970 *) as_dir=$as_dir/ ;;
5972 for ac_prog in egrep
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5976 as_fn_executable_p "$ac_path_EGREP" || continue
5977 # Check for GNU ac_path_EGREP and select it if it is found.
5978 # Check for GNU $ac_path_EGREP
5979 case `"$ac_path_EGREP" --version 2>&1` in
5981 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5984 printf %s 0123456789 >"conftest.in"
5987 cat "conftest.in" "conftest.in" >"conftest.tmp"
5988 mv "conftest.tmp" "conftest.in"
5989 cp "conftest.in" "conftest.nl"
5990 printf "%s\n" 'EGREP' >> "conftest.nl"
5991 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5993 as_fn_arith $ac_count + 1 && ac_count=$as_val
5994 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5995 # Best one so far, save it but keep looking for a better one
5996 ac_cv_path_EGREP="$ac_path_EGREP"
5997 ac_path_EGREP_max=$ac_count
5999 # 10*(2^10) chars as input seems more than enough
6000 test $ac_count -gt 10 && break
6002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6005 $ac_path_EGREP_found && break 3
6010 if test -z "$ac_cv_path_EGREP"; then
6011 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6014 ac_cv_path_EGREP=$EGREP
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6020 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6021 EGREP="$ac_cv_path_EGREP"
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6025 printf %s "checking for fgrep... " >&6; }
6026 if test ${ac_cv_path_FGREP+y}
6028 printf %s "(cached) " >&6
6030 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6031 then ac_cv_path_FGREP="$GREP -F"
6033 if test -z "$FGREP"; then
6034 ac_path_FGREP_found=false
6035 # Loop through the user's path and test for each of PROGNAME-LIST
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6040 case $as_dir in #(((
6043 *) as_dir=$as_dir/ ;;
6045 for ac_prog in fgrep
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6049 as_fn_executable_p "$ac_path_FGREP" || continue
6050 # Check for GNU ac_path_FGREP and select it if it is found.
6051 # Check for GNU $ac_path_FGREP
6052 case `"$ac_path_FGREP" --version 2>&1` in
6054 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6057 printf %s 0123456789 >"conftest.in"
6060 cat "conftest.in" "conftest.in" >"conftest.tmp"
6061 mv "conftest.tmp" "conftest.in"
6062 cp "conftest.in" "conftest.nl"
6063 printf "%s\n" 'FGREP' >> "conftest.nl"
6064 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6066 as_fn_arith $ac_count + 1 && ac_count=$as_val
6067 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6068 # Best one so far, save it but keep looking for a better one
6069 ac_cv_path_FGREP="$ac_path_FGREP"
6070 ac_path_FGREP_max=$ac_count
6072 # 10*(2^10) chars as input seems more than enough
6073 test $ac_count -gt 10 && break
6075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6078 $ac_path_FGREP_found && break 3
6083 if test -z "$ac_cv_path_FGREP"; then
6084 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6087 ac_cv_path_FGREP=$FGREP
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6093 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6094 FGREP="$ac_cv_path_FGREP"
6097 test -z "$GREP" && GREP=grep
6117 # Check whether --with-gnu-ld was given.
6118 if test ${with_gnu_ld+y}
6120 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6126 if test yes = "$GCC"; then
6127 # Check if gcc -print-prog-name=ld gives a path.
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6129 printf %s "checking for ld used by $CC... " >&6; }
6132 # gcc leaves a trailing carriage return, which upsets mingw
6133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6138 # Accept absolute paths.
6140 re_direlt='/[^/][^/]*/\.\./'
6141 # Canonicalize the pathname of ld
6142 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6143 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6144 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6146 test -z "$LD" && LD=$ac_prog
6149 # If it fails, then pretend we aren't using GCC.
6153 # If it is relative, then search for the first ld in PATH.
6157 elif test yes = "$with_gnu_ld"; then
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6159 printf %s "checking for GNU ld... " >&6; }
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6162 printf %s "checking for non-GNU ld... " >&6; }
6164 if test ${lt_cv_path_LD+y}
6166 printf %s "(cached) " >&6
6168 if test -z "$LD"; then
6169 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6170 for ac_dir in $PATH; do
6172 test -z "$ac_dir" && ac_dir=.
6173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6174 lt_cv_path_LD=$ac_dir/$ac_prog
6175 # Check to see if the program is GNU ld. I'd rather use --version,
6176 # but apparently some variants of GNU ld only accept -v.
6177 # Break only if it was the GNU/non-GNU ld that we prefer.
6178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6179 *GNU* | *'with BFD'*)
6180 test no != "$with_gnu_ld" && break
6183 test yes != "$with_gnu_ld" && break
6190 lt_cv_path_LD=$LD # Let the user override the test with a path.
6195 if test -n "$LD"; then
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6197 printf "%s\n" "$LD" >&6; }
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 printf "%s\n" "no" >&6; }
6202 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6204 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6205 if test ${lt_cv_prog_gnu_ld+y}
6207 printf %s "(cached) " >&6
6209 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6210 case `$LD -v 2>&1 </dev/null` in
6211 *GNU* | *'with BFD'*)
6212 lt_cv_prog_gnu_ld=yes
6215 lt_cv_prog_gnu_ld=no
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6220 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6221 with_gnu_ld=$lt_cv_prog_gnu_ld
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6232 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6233 if test ${lt_cv_path_NM+y}
6235 printf %s "(cached) " >&6
6237 if test -n "$NM"; then
6238 # Let the user override the test.
6241 lt_nm_to_check=${ac_tool_prefix}nm
6242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6243 lt_nm_to_check="$lt_nm_to_check nm"
6245 for lt_tmp_nm in $lt_nm_to_check; do
6246 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6247 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6249 test -z "$ac_dir" && ac_dir=.
6250 tmp_nm=$ac_dir/$lt_tmp_nm
6251 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6252 # Check to see if the nm accepts a BSD-compat flag.
6253 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6254 # nm: unknown option "B" ignored
6255 # Tru64's nm complains that /dev/null is an invalid object file
6256 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6258 mingw*) lt_bad_file=conftest.nm/nofile ;;
6259 *) lt_bad_file=/dev/null ;;
6261 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6262 *$lt_bad_file* | *'Invalid file or object type'*)
6263 lt_cv_path_NM="$tmp_nm -B"
6267 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6269 lt_cv_path_NM="$tmp_nm -p"
6273 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6274 continue # so that we can try to find one that supports BSD flags
6283 : ${lt_cv_path_NM=no}
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6287 printf "%s\n" "$lt_cv_path_NM" >&6; }
6288 if test no != "$lt_cv_path_NM"; then
6291 # Didn't find any BSD compatible name lister, look for dumpbin.
6292 if test -n "$DUMPBIN"; then :
6293 # Let the user override the test.
6295 if test -n "$ac_tool_prefix"; then
6296 for ac_prog in dumpbin "link -dump"
6298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 printf %s "checking for $ac_word... " >&6; }
6302 if test ${ac_cv_prog_DUMPBIN+y}
6304 printf %s "(cached) " >&6
6306 if test -n "$DUMPBIN"; then
6307 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 case $as_dir in #(((
6316 *) as_dir=$as_dir/ ;;
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6330 DUMPBIN=$ac_cv_prog_DUMPBIN
6331 if test -n "$DUMPBIN"; then
6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6333 printf "%s\n" "$DUMPBIN" >&6; }
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 printf "%s\n" "no" >&6; }
6340 test -n "$DUMPBIN" && break
6343 if test -z "$DUMPBIN"; then
6344 ac_ct_DUMPBIN=$DUMPBIN
6345 for ac_prog in dumpbin "link -dump"
6347 # Extract the first word of "$ac_prog", so it can be a program name with args.
6348 set dummy $ac_prog; ac_word=$2
6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 printf %s "checking for $ac_word... " >&6; }
6351 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6353 printf %s "(cached) " >&6
6355 if test -n "$ac_ct_DUMPBIN"; then
6356 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 case $as_dir in #(((
6365 *) as_dir=$as_dir/ ;;
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6369 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6379 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6380 if test -n "$ac_ct_DUMPBIN"; then
6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6382 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 printf "%s\n" "no" >&6; }
6389 test -n "$ac_ct_DUMPBIN" && break
6392 if test "x$ac_ct_DUMPBIN" = x; then
6395 case $cross_compiling:$ac_tool_warned in
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6399 ac_tool_warned=yes ;;
6401 DUMPBIN=$ac_ct_DUMPBIN
6405 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6407 DUMPBIN="$DUMPBIN -symbols -headers"
6415 if test : != "$DUMPBIN"; then
6419 test -z "$NM" && NM=nm
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6427 printf %s "checking the name lister ($NM) interface... " >&6; }
6428 if test ${lt_cv_nm_interface+y}
6430 printf %s "(cached) " >&6
6432 lt_cv_nm_interface="BSD nm"
6433 echo "int some_variable = 0;" > conftest.$ac_ext
6434 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6435 (eval "$ac_compile" 2>conftest.err)
6436 cat conftest.err >&5
6437 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6438 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6439 cat conftest.err >&5
6440 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6441 cat conftest.out >&5
6442 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6443 lt_cv_nm_interface="MS dumpbin"
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6448 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6451 printf %s "checking whether ln -s works... " >&6; }
6453 if test "$LN_S" = "ln -s"; then
6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6455 printf "%s\n" "yes" >&6; }
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6458 printf "%s\n" "no, using $LN_S" >&6; }
6461 # find the maximum length of command line arguments
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6463 printf %s "checking the maximum length of command line arguments... " >&6; }
6464 if test ${lt_cv_sys_max_cmd_len+y}
6466 printf %s "(cached) " >&6
6473 # On DJGPP, this test can blow up pretty badly due to problems in libc
6474 # (any single argument exceeding 2000 bytes causes a buffer overrun
6475 # during glob expansion). Even if it were fixed, the result of this
6476 # check would be larger than it should be.
6477 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6481 # Under GNU Hurd, this test is not required because there is
6482 # no limit to the length of command line arguments.
6483 # Libtool will interpret -1 as no limit whatsoever
6484 lt_cv_sys_max_cmd_len=-1;
6487 cygwin* | mingw* | cegcc*)
6488 # On Win9x/ME, this test blows up -- it succeeds, but takes
6489 # about 5 minutes as the teststring grows exponentially.
6490 # Worse, since 9x/ME are not pre-emptively multitasking,
6491 # you end up with a "frozen" computer, even though with patience
6492 # the test eventually succeeds (with a max line length of 256k).
6493 # Instead, let's just punt: use the minimum linelength reported by
6494 # all of the supported platforms: 8192 (on NT/2K/XP).
6495 lt_cv_sys_max_cmd_len=8192;
6499 # On MiNT this can take a long time and run out of memory.
6500 lt_cv_sys_max_cmd_len=8192;
6504 # On AmigaOS with pdksh, this test takes hours, literally.
6505 # So we just punt and use a minimum line length of 8192.
6506 lt_cv_sys_max_cmd_len=8192;
6509 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6510 # This has been around since 386BSD, at least. Likely further.
6511 if test -x /sbin/sysctl; then
6512 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6513 elif test -x /usr/sbin/sysctl; then
6514 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6516 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6518 # And add a safety zone
6519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6524 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6525 lt_cv_sys_max_cmd_len=196608
6529 # The test takes a long time on OS/2.
6530 lt_cv_sys_max_cmd_len=8192
6534 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6535 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6536 # nice to cause kernel panics so lets avoid the loop below.
6537 # First set a reasonable default.
6538 lt_cv_sys_max_cmd_len=16384
6540 if test -x /sbin/sysconfig; then
6541 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6542 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6547 lt_cv_sys_max_cmd_len=102400
6549 sysv5* | sco5v6* | sysv4.2uw2*)
6550 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6551 if test -n "$kargmax"; then
6552 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6554 lt_cv_sys_max_cmd_len=32768
6558 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6559 if test -n "$lt_cv_sys_max_cmd_len" && \
6560 test undefined != "$lt_cv_sys_max_cmd_len"; then
6561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6564 # Make teststring a little bigger before we do anything with it.
6565 # a 1K string should be a reasonable start.
6566 for i in 1 2 3 4 5 6 7 8; do
6567 teststring=$teststring$teststring
6569 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6570 # If test is not a shell built-in, we'll probably end up computing a
6571 # maximum length that is only half of the actual maximum length, but
6573 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6574 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6575 test 17 != "$i" # 1/2 MB should be enough
6578 teststring=$teststring$teststring
6580 # Only check the string length outside the loop.
6581 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6583 # Add a significant safety factor because C++ compilers can tack on
6584 # massive amounts of additional arguments before passing them to the
6585 # linker. It appears as though 1/2 is a usable value.
6586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6593 if test -n "$lt_cv_sys_max_cmd_len"; then
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6595 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6598 printf "%s\n" "none" >&6; }
6600 max_cmd_len=$lt_cv_sys_max_cmd_len
6611 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6621 # test EBCDIC or ASCII
6622 case `echo X|tr X '\101'` in
6623 A) # ASCII based system
6624 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6625 lt_SP2NL='tr \040 \012'
6626 lt_NL2SP='tr \015\012 \040\040'
6628 *) # EBCDIC based system
6629 lt_SP2NL='tr \100 \n'
6630 lt_NL2SP='tr \r\n \100\100'
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6643 printf %s "checking how to convert $build file names to $host format... " >&6; }
6644 if test ${lt_cv_to_host_file_cmd+y}
6646 printf %s "(cached) " >&6
6651 *-*-mingw* ) # actually msys
6652 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6655 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6657 * ) # otherwise, assume *nix
6658 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6664 *-*-mingw* ) # actually msys
6665 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6668 lt_cv_to_host_file_cmd=func_convert_file_noop
6670 * ) # otherwise, assume *nix
6671 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6675 * ) # unhandled hosts (and "normal" native builds)
6676 lt_cv_to_host_file_cmd=func_convert_file_noop
6682 to_host_file_cmd=$lt_cv_to_host_file_cmd
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6684 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6691 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6692 if test ${lt_cv_to_tool_file_cmd+y}
6694 printf %s "(cached) " >&6
6696 #assume ordinary cross tools, or native build.
6697 lt_cv_to_tool_file_cmd=func_convert_file_noop
6701 *-*-mingw* ) # actually msys
6702 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6710 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6712 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6719 printf %s "checking for $LD option to reload object files... " >&6; }
6720 if test ${lt_cv_ld_reload_flag+y}
6722 printf %s "(cached) " >&6
6724 lt_cv_ld_reload_flag='-r'
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6727 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6728 reload_flag=$lt_cv_ld_reload_flag
6729 case $reload_flag in
6731 *) reload_flag=" $reload_flag" ;;
6733 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6735 cygwin* | mingw* | pw32* | cegcc*)
6736 if test yes != "$GCC"; then
6741 if test yes = "$GCC"; then
6742 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6744 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}file; ac_word=$2
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 printf %s "checking for $ac_word... " >&6; }
6762 if test ${ac_cv_prog_FILECMD+y}
6764 printf %s "(cached) " >&6
6766 if test -n "$FILECMD"; then
6767 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 case $as_dir in #(((
6776 *) as_dir=$as_dir/ ;;
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6790 FILECMD=$ac_cv_prog_FILECMD
6791 if test -n "$FILECMD"; then
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6793 printf "%s\n" "$FILECMD" >&6; }
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 printf "%s\n" "no" >&6; }
6801 if test -z "$ac_cv_prog_FILECMD"; then
6802 ac_ct_FILECMD=$FILECMD
6803 # Extract the first word of "file", so it can be a program name with args.
6804 set dummy file; ac_word=$2
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 printf %s "checking for $ac_word... " >&6; }
6807 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6809 printf %s "(cached) " >&6
6811 if test -n "$ac_ct_FILECMD"; then
6812 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 case $as_dir in #(((
6821 *) as_dir=$as_dir/ ;;
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_FILECMD="file"
6826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6835 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6836 if test -n "$ac_ct_FILECMD"; then
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6838 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 printf "%s\n" "no" >&6; }
6844 if test "x$ac_ct_FILECMD" = x; then
6847 case $cross_compiling:$ac_tool_warned in
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6853 FILECMD=$ac_ct_FILECMD
6856 FILECMD="$ac_cv_prog_FILECMD"
6865 if test -n "$ac_tool_prefix"; then
6866 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6867 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 printf %s "checking for $ac_word... " >&6; }
6870 if test ${ac_cv_prog_OBJDUMP+y}
6872 printf %s "(cached) " >&6
6874 if test -n "$OBJDUMP"; then
6875 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 case $as_dir in #(((
6884 *) as_dir=$as_dir/ ;;
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6898 OBJDUMP=$ac_cv_prog_OBJDUMP
6899 if test -n "$OBJDUMP"; then
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6901 printf "%s\n" "$OBJDUMP" >&6; }
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 printf "%s\n" "no" >&6; }
6909 if test -z "$ac_cv_prog_OBJDUMP"; then
6910 ac_ct_OBJDUMP=$OBJDUMP
6911 # Extract the first word of "objdump", so it can be a program name with args.
6912 set dummy objdump; ac_word=$2
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 printf %s "checking for $ac_word... " >&6; }
6915 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6917 printf %s "(cached) " >&6
6919 if test -n "$ac_ct_OBJDUMP"; then
6920 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 case $as_dir in #(((
6929 *) as_dir=$as_dir/ ;;
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6943 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6944 if test -n "$ac_ct_OBJDUMP"; then
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6946 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 printf "%s\n" "no" >&6; }
6952 if test "x$ac_ct_OBJDUMP" = x; then
6955 case $cross_compiling:$ac_tool_warned in
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6961 OBJDUMP=$ac_ct_OBJDUMP
6964 OBJDUMP="$ac_cv_prog_OBJDUMP"
6967 test -z "$OBJDUMP" && OBJDUMP=objdump
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6978 printf %s "checking how to recognize dependent libraries... " >&6; }
6979 if test ${lt_cv_deplibs_check_method+y}
6981 printf %s "(cached) " >&6
6983 lt_cv_file_magic_cmd='$MAGIC_CMD'
6984 lt_cv_file_magic_test_file=
6985 lt_cv_deplibs_check_method='unknown'
6986 # Need to set the preceding variable on all platforms that support
6987 # interlibrary dependencies.
6988 # 'none' -- dependencies not supported.
6989 # 'unknown' -- same as none, but documents that we really don't know.
6990 # 'pass_all' -- all dependencies passed with no checks.
6991 # 'test_compile' -- check by making test program.
6992 # 'file_magic [[regex]]' -- check by looking for files in library path
6993 # that responds to the $file_magic_cmd with a given extended regex.
6994 # If you have 'file' or equivalent on your system and you're not sure
6995 # whether 'pass_all' will *always* work, you probably want this one.
6999 lt_cv_deplibs_check_method=pass_all
7003 lt_cv_deplibs_check_method=pass_all
7007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7008 lt_cv_file_magic_cmd='$FILECMD -L'
7009 lt_cv_file_magic_test_file=/shlib/libc.so
7013 # func_win32_libid is a shell function defined in ltmain.sh
7014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7015 lt_cv_file_magic_cmd='func_win32_libid'
7019 # Base MSYS/MinGW do not provide the 'file' command needed by
7020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7021 # unless we find 'file', for example because we are cross-compiling.
7022 if ( file / ) >/dev/null 2>&1; then
7023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7024 lt_cv_file_magic_cmd='func_win32_libid'
7026 # Keep this pattern in sync with the one in func_win32_libid.
7027 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7028 lt_cv_file_magic_cmd='$OBJDUMP -f'
7033 # use the weaker test based on 'objdump'. See mingw*.
7034 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7035 lt_cv_file_magic_cmd='$OBJDUMP -f'
7038 darwin* | rhapsody*)
7039 lt_cv_deplibs_check_method=pass_all
7042 freebsd* | dragonfly* | midnightbsd*)
7043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7046 # Not sure whether the presence of OpenBSD here was a mistake.
7047 # Let's accept both of them until this is cleared up.
7048 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7049 lt_cv_file_magic_cmd=$FILECMD
7050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7054 lt_cv_deplibs_check_method=pass_all
7059 lt_cv_deplibs_check_method=pass_all
7062 hpux10.20* | hpux11*)
7063 lt_cv_file_magic_cmd=$FILECMD
7066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7067 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7070 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]'
7071 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7074 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7075 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7081 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7085 irix5* | irix6* | nonstopux*)
7087 *-32|*"-32 ") libmagic=32-bit;;
7088 *-n32|*"-n32 ") libmagic=N32;;
7089 *-64|*"-64 ") libmagic=64-bit;;
7090 *) libmagic=never-match;;
7092 lt_cv_deplibs_check_method=pass_all
7095 # This must be glibc/ELF.
7096 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7097 lt_cv_deplibs_check_method=pass_all
7100 netbsd* | netbsdelf*-gnu)
7101 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7110 lt_cv_file_magic_cmd=$FILECMD
7111 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7115 lt_cv_deplibs_check_method=pass_all
7119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7126 osf3* | osf4* | osf5*)
7127 lt_cv_deplibs_check_method=pass_all
7131 lt_cv_deplibs_check_method=pass_all
7135 lt_cv_deplibs_check_method=pass_all
7138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7139 lt_cv_deplibs_check_method=pass_all
7143 case $host_vendor in
7145 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]'
7146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7149 lt_cv_deplibs_check_method=pass_all
7152 lt_cv_file_magic_cmd='/bin/file'
7153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7156 lt_cv_file_magic_cmd='/bin/file'
7157 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7158 lt_cv_file_magic_test_file=/lib/libc.so
7161 lt_cv_deplibs_check_method=pass_all
7164 lt_cv_deplibs_check_method=pass_all
7170 lt_cv_deplibs_check_method=pass_all
7173 lt_cv_deplibs_check_method=pass_all
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7179 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7183 if test "$build" = "$host"; then
7186 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7189 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7195 file_magic_cmd=$lt_cv_file_magic_cmd
7196 deplibs_check_method=$lt_cv_deplibs_check_method
7197 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7220 if test -n "$ac_tool_prefix"; then
7221 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7222 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 printf %s "checking for $ac_word... " >&6; }
7225 if test ${ac_cv_prog_DLLTOOL+y}
7227 printf %s "(cached) " >&6
7229 if test -n "$DLLTOOL"; then
7230 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 case $as_dir in #(((
7239 *) as_dir=$as_dir/ ;;
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7253 DLLTOOL=$ac_cv_prog_DLLTOOL
7254 if test -n "$DLLTOOL"; then
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7256 printf "%s\n" "$DLLTOOL" >&6; }
7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 printf "%s\n" "no" >&6; }
7264 if test -z "$ac_cv_prog_DLLTOOL"; then
7265 ac_ct_DLLTOOL=$DLLTOOL
7266 # Extract the first word of "dlltool", so it can be a program name with args.
7267 set dummy dlltool; ac_word=$2
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 printf %s "checking for $ac_word... " >&6; }
7270 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7272 printf %s "(cached) " >&6
7274 if test -n "$ac_ct_DLLTOOL"; then
7275 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 case $as_dir in #(((
7284 *) as_dir=$as_dir/ ;;
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7298 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7299 if test -n "$ac_ct_DLLTOOL"; then
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7301 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 printf "%s\n" "no" >&6; }
7307 if test "x$ac_ct_DLLTOOL" = x; then
7310 case $cross_compiling:$ac_tool_warned in
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7316 DLLTOOL=$ac_ct_DLLTOOL
7319 DLLTOOL="$ac_cv_prog_DLLTOOL"
7322 test -z "$DLLTOOL" && DLLTOOL=dlltool
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7334 printf %s "checking how to associate runtime and link libraries... " >&6; }
7335 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7337 printf %s "(cached) " >&6
7339 lt_cv_sharedlib_from_linklib_cmd='unknown'
7342 cygwin* | mingw* | pw32* | cegcc*)
7343 # two different shell functions defined in ltmain.sh;
7344 # decide which one to use based on capabilities of $DLLTOOL
7345 case `$DLLTOOL --help 2>&1` in
7346 *--identify-strict*)
7347 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7350 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7355 # fallback: assume linklib IS sharedlib
7356 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7362 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7363 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7364 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7373 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 printf %s "checking for $ac_word... " >&6; }
7380 if test ${ac_cv_prog_AR+y}
7382 printf %s "(cached) " >&6
7384 if test -n "$AR"; then
7385 ac_cv_prog_AR="$AR" # Let the user override the test.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 case $as_dir in #(((
7394 *) as_dir=$as_dir/ ;;
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7409 if test -n "$AR"; then
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7411 printf "%s\n" "$AR" >&6; }
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 printf "%s\n" "no" >&6; }
7418 test -n "$AR" && break
7421 if test -z "$AR"; then
7425 # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 printf %s "checking for $ac_word... " >&6; }
7429 if test ${ac_cv_prog_ac_ct_AR+y}
7431 printf %s "(cached) " >&6
7433 if test -n "$ac_ct_AR"; then
7434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 case $as_dir in #(((
7443 *) as_dir=$as_dir/ ;;
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_ac_ct_AR="$ac_prog"
7448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7458 if test -n "$ac_ct_AR"; then
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7460 printf "%s\n" "$ac_ct_AR" >&6; }
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 printf "%s\n" "no" >&6; }
7467 test -n "$ac_ct_AR" && break
7470 if test "x$ac_ct_AR" = x; then
7473 case $cross_compiling:$ac_tool_warned in
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7490 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7491 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7492 # higher priority because thats what people were doing historically (setting
7493 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7494 # variable obsoleted/removed.
7496 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7497 lt_ar_flags=$AR_FLAGS
7504 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7505 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7513 printf %s "checking for archiver @FILE support... " >&6; }
7514 if test ${lt_cv_ar_at_file+y}
7516 printf %s "(cached) " >&6
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7530 if ac_fn_c_try_compile "$LINENO"
7532 echo conftest.$ac_objext > conftest.lst
7533 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7535 (eval $lt_ar_try) 2>&5
7537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538 test $ac_status = 0; }
7539 if test 0 -eq "$ac_status"; then
7540 # Ensure the archiver fails upon bogus file names.
7541 rm -f conftest.$ac_objext libconftest.a
7542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7543 (eval $lt_ar_try) 2>&5
7545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546 test $ac_status = 0; }
7547 if test 0 -ne "$ac_status"; then
7551 rm -f conftest.* libconftest.a
7554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7558 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7560 if test no = "$lt_cv_ar_at_file"; then
7563 archiver_list_spec=$lt_cv_ar_at_file
7572 if test -n "$ac_tool_prefix"; then
7573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7574 set dummy ${ac_tool_prefix}strip; ac_word=$2
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 printf %s "checking for $ac_word... " >&6; }
7577 if test ${ac_cv_prog_STRIP+y}
7579 printf %s "(cached) " >&6
7581 if test -n "$STRIP"; then
7582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 case $as_dir in #(((
7591 *) as_dir=$as_dir/ ;;
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7605 STRIP=$ac_cv_prog_STRIP
7606 if test -n "$STRIP"; then
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7608 printf "%s\n" "$STRIP" >&6; }
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 printf "%s\n" "no" >&6; }
7616 if test -z "$ac_cv_prog_STRIP"; then
7618 # Extract the first word of "strip", so it can be a program name with args.
7619 set dummy strip; ac_word=$2
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 printf %s "checking for $ac_word... " >&6; }
7622 if test ${ac_cv_prog_ac_ct_STRIP+y}
7624 printf %s "(cached) " >&6
7626 if test -n "$ac_ct_STRIP"; then
7627 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 case $as_dir in #(((
7636 *) as_dir=$as_dir/ ;;
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_ac_ct_STRIP="strip"
7641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7651 if test -n "$ac_ct_STRIP"; then
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7653 printf "%s\n" "$ac_ct_STRIP" >&6; }
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 printf "%s\n" "no" >&6; }
7659 if test "x$ac_ct_STRIP" = x; then
7662 case $cross_compiling:$ac_tool_warned in
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666 ac_tool_warned=yes ;;
7671 STRIP="$ac_cv_prog_STRIP"
7674 test -z "$STRIP" && STRIP=:
7681 if test -n "$ac_tool_prefix"; then
7682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 printf %s "checking for $ac_word... " >&6; }
7686 if test ${ac_cv_prog_RANLIB+y}
7688 printf %s "(cached) " >&6
7690 if test -n "$RANLIB"; then
7691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 case $as_dir in #(((
7700 *) as_dir=$as_dir/ ;;
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7714 RANLIB=$ac_cv_prog_RANLIB
7715 if test -n "$RANLIB"; then
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7717 printf "%s\n" "$RANLIB" >&6; }
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 printf "%s\n" "no" >&6; }
7725 if test -z "$ac_cv_prog_RANLIB"; then
7726 ac_ct_RANLIB=$RANLIB
7727 # Extract the first word of "ranlib", so it can be a program name with args.
7728 set dummy ranlib; ac_word=$2
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 printf %s "checking for $ac_word... " >&6; }
7731 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7733 printf %s "(cached) " >&6
7735 if test -n "$ac_ct_RANLIB"; then
7736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 case $as_dir in #(((
7745 *) as_dir=$as_dir/ ;;
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_ac_ct_RANLIB="ranlib"
7750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7759 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7760 if test -n "$ac_ct_RANLIB"; then
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7762 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 printf "%s\n" "no" >&6; }
7768 if test "x$ac_ct_RANLIB" = x; then
7771 case $cross_compiling:$ac_tool_warned in
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7777 RANLIB=$ac_ct_RANLIB
7780 RANLIB="$ac_cv_prog_RANLIB"
7783 test -z "$RANLIB" && RANLIB=:
7790 # Determine commands to create old-style static archives.
7791 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7792 old_postinstall_cmds='chmod 644 $oldlib'
7793 old_postuninstall_cmds=
7795 if test -n "$RANLIB"; then
7798 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7804 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7809 lock_old_archive_extraction=yes ;;
7811 lock_old_archive_extraction=no ;;
7852 # If no C compiler was specified, use CC.
7855 # If no C compiler flags were specified, use CFLAGS.
7856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7858 # Allow CC to be a program name with arguments.
7862 # Check for command to grab the raw symbol name followed by C symbol from nm.
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7864 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7865 if test ${lt_cv_sys_global_symbol_pipe+y}
7867 printf %s "(cached) " >&6
7870 # These are sane defaults that work on at least a few old systems.
7871 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7873 # Character class describing NM global symbol codes.
7874 symcode='[BCDEGRST]'
7876 # Regexp to match symbols that can be accessed directly from C.
7877 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7879 # Define system-specific variables.
7884 cygwin* | mingw* | pw32* | cegcc*)
7885 symcode='[ABCDGISTW]'
7888 if test ia64 = "$host_cpu"; then
7889 symcode='[ABCDEGRST]'
7893 symcode='[BCDEGRST]'
7896 symcode='[BCDEGQRST]'
7907 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7915 # If we're using GNU nm, then use its standard symbol codes.
7916 case `$NM -V 2>&1` in
7917 *GNU* | *'with BFD'*)
7918 symcode='[ABCDGIRSTW]' ;;
7921 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7922 # Gets list of data symbols to import.
7923 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7924 # Adjust the below global symbol transforms to fixup imported variables.
7925 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7926 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7927 lt_c_name_lib_hook="\
7928 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7929 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7931 # Disable hooks by default.
7932 lt_cv_sys_global_symbol_to_import=
7938 # Transform an extracted symbol line into a proper C declaration.
7939 # Some systems (esp. on ia64) link data and code symbols differently,
7940 # so use this general approach.
7941 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7943 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7944 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7946 # Transform an extracted symbol line into symbol name and symbol address
7947 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7949 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7950 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7952 # Transform an extracted symbol line into symbol name with lib prefix and
7954 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7955 $lt_c_name_lib_hook\
7956 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7957 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7958 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7960 # Handle CRLF in mingw tool chain
7964 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7968 # Try without a prefix underscore, then with it.
7969 for ac_symprfx in "" "_"; do
7971 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7972 symxfrm="\\1 $ac_symprfx\\2 \\2"
7974 # Write the raw and C identifiers.
7975 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7976 # Fake it for dumpbin and say T for any non-static function,
7977 # D for any global variable and I for any imported variable.
7978 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7979 # which start with @ or ?.
7980 lt_cv_sys_global_symbol_pipe="$AWK '"\
7981 " {last_section=section; section=\$ 3};"\
7982 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7983 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7984 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7985 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7986 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7987 " \$ 0!~/External *\|/{next};"\
7988 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7989 " {if(hide[section]) next};"\
7990 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7991 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7992 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7993 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7994 " ' prfx=^$ac_symprfx"
7996 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7998 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8000 # Check to see that the pipe works correctly.
8004 cat > conftest.$ac_ext <<_LT_EOF
8009 void nm_test_func(void);
8010 void nm_test_func(void){}
8014 int main(){nm_test_var='a';nm_test_func();return(0);}
8017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8018 (eval $ac_compile) 2>&5
8020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8021 test $ac_status = 0; }; then
8022 # Now try to grab the symbols.
8024 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8025 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8026 # Try sorting and uniquifying the output.
8027 if sort "$nlist" | uniq > "$nlist"T; then
8028 mv -f "$nlist"T "$nlist"
8033 # Make sure that we snagged all the symbols we need.
8034 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8035 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8036 cat <<_LT_EOF > conftest.$ac_ext
8037 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8038 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8039 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8040 relocations are performed -- see ld's documentation on pseudo-relocs. */
8041 # define LT_DLSYM_CONST
8042 #elif defined __osf__
8043 /* This system does not cope well with relocations in const data. */
8044 # define LT_DLSYM_CONST
8046 # define LT_DLSYM_CONST const
8054 # Now generate the symbol file.
8055 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8057 cat <<_LT_EOF >> conftest.$ac_ext
8059 /* The mapping between symbol names and symbols. */
8060 LT_DLSYM_CONST struct {
8064 lt__PROGRAM__LTX_preloaded_symbols[] =
8066 { "@PROGRAM@", (void *) 0 },
8068 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8069 cat <<\_LT_EOF >> conftest.$ac_ext
8073 /* This works around a problem in FreeBSD linker */
8074 #ifdef FREEBSD_WORKAROUND
8075 static const void *lt_preloaded_setup() {
8076 return lt__PROGRAM__LTX_preloaded_symbols;
8084 # Now try linking the two files.
8085 mv conftest.$ac_objext conftstm.$ac_objext
8086 lt_globsym_save_LIBS=$LIBS
8087 lt_globsym_save_CFLAGS=$CFLAGS
8088 LIBS=conftstm.$ac_objext
8089 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8091 (eval $ac_link) 2>&5
8093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8094 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8097 LIBS=$lt_globsym_save_LIBS
8098 CFLAGS=$lt_globsym_save_CFLAGS
8100 echo "cannot find nm_test_func in $nlist" >&5
8103 echo "cannot find nm_test_var in $nlist" >&5
8106 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8109 echo "$progname: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8112 rm -rf conftest* conftst*
8114 # Do not use the global_symbol_pipe unless it works.
8115 if test yes = "$pipe_works"; then
8118 lt_cv_sys_global_symbol_pipe=
8124 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8125 lt_cv_sys_global_symbol_to_cdecl=
8127 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8129 printf "%s\n" "failed" >&6; }
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8132 printf "%s\n" "ok" >&6; }
8135 # Response file support.
8136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8137 nm_file_list_spec='@'
8138 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8139 nm_file_list_spec='@'
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8179 printf %s "checking for sysroot... " >&6; }
8181 # Check whether --with-sysroot was given.
8182 if test ${with_sysroot+y}
8184 withval=$with_sysroot;
8191 case $with_sysroot in #(
8193 if test yes = "$GCC"; then
8194 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8198 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8204 printf "%s\n" "$with_sysroot" >&6; }
8205 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8210 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8217 printf %s "checking for a working dd... " >&6; }
8218 if test ${ac_cv_path_lt_DD+y}
8220 printf %s "(cached) " >&6
8222 printf 0123456789abcdef0123456789abcdef >conftest.i
8223 cat conftest.i conftest.i >conftest2.i
8225 if test -z "$lt_DD"; then
8226 ac_path_lt_DD_found=false
8227 # Loop through the user's path and test for each of PROGNAME-LIST
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 case $as_dir in #(((
8235 *) as_dir=$as_dir/ ;;
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8241 as_fn_executable_p "$ac_path_lt_DD" || continue
8242 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8243 cmp -s conftest.i conftest.out \
8244 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8246 $ac_path_lt_DD_found && break 3
8251 if test -z "$ac_cv_path_lt_DD"; then
8255 ac_cv_path_lt_DD=$lt_DD
8258 rm -f conftest.i conftest2.i conftest.out
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8261 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8265 printf %s "checking how to truncate binary pipes... " >&6; }
8266 if test ${lt_cv_truncate_bin+y}
8268 printf %s "(cached) " >&6
8270 printf 0123456789abcdef0123456789abcdef >conftest.i
8271 cat conftest.i conftest.i >conftest2.i
8273 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8274 cmp -s conftest.i conftest.out \
8275 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8277 rm -f conftest.i conftest2.i conftest.out
8278 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8281 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8289 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8292 for cc_temp in $*""; do
8294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8300 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8303 # Check whether --enable-libtool-lock was given.
8304 if test ${enable_libtool_lock+y}
8306 enableval=$enable_libtool_lock;
8309 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8311 # Some flags need to be propagated to the compiler or linker for good
8315 # Find out what ABI is being produced by ac_compile, and set mode
8316 # options accordingly.
8317 echo 'int i;' > conftest.$ac_ext
8318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8319 (eval $ac_compile) 2>&5
8321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8322 test $ac_status = 0; }; then
8323 case `$FILECMD conftest.$ac_objext` in
8335 # Find out what ABI is being produced by ac_compile, and set linker
8336 # options accordingly.
8337 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8339 (eval $ac_compile) 2>&5
8341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8342 test $ac_status = 0; }; then
8343 if test yes = "$lt_cv_prog_gnu_ld"; then
8344 case `$FILECMD conftest.$ac_objext` in
8346 LD="${LD-ld} -melf32bsmip"
8349 LD="${LD-ld} -melf32bmipn32"
8352 LD="${LD-ld} -melf64bmip"
8356 case `$FILECMD conftest.$ac_objext` in
8373 # Find out what ABI is being produced by ac_compile, and set linker
8374 # options accordingly.
8375 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8377 (eval $ac_compile) 2>&5
8379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8380 test $ac_status = 0; }; then
8382 case `$FILECMD conftest.$ac_objext` in
8390 case `$FILECMD conftest.$ac_objext` in
8392 emul="${emul}btsmip"
8395 emul="${emul}ltsmip"
8398 case `$FILECMD conftest.$ac_objext` in
8403 LD="${LD-ld} -m $emul"
8408 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8409 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8410 # Find out what ABI is being produced by ac_compile, and set linker
8411 # options accordingly. Note that the listed cases only cover the
8412 # situations where additional linker options are needed (such as when
8413 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8414 # vice versa); the common cases where no linker options are needed do
8415 # not appear in the list.
8416 echo 'int i;' > conftest.$ac_ext
8417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8418 (eval $ac_compile) 2>&5
8420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8421 test $ac_status = 0; }; then
8422 case `$FILECMD conftest.o` in
8425 x86_64-*kfreebsd*-gnu)
8426 LD="${LD-ld} -m elf_i386_fbsd"
8429 case `$FILECMD conftest.o` in
8431 LD="${LD-ld} -m elf32_x86_64"
8434 LD="${LD-ld} -m elf_i386"
8438 powerpc64le-*linux*)
8439 LD="${LD-ld} -m elf32lppclinux"
8442 LD="${LD-ld} -m elf32ppclinux"
8445 LD="${LD-ld} -m elf_s390"
8448 LD="${LD-ld} -m elf32_sparc"
8454 x86_64-*kfreebsd*-gnu)
8455 LD="${LD-ld} -m elf_x86_64_fbsd"
8458 LD="${LD-ld} -m elf_x86_64"
8461 LD="${LD-ld} -m elf64lppc"
8464 LD="${LD-ld} -m elf64ppc"
8466 s390*-*linux*|s390*-*tpf*)
8467 LD="${LD-ld} -m elf64_s390"
8470 LD="${LD-ld} -m elf64_sparc"
8480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8482 CFLAGS="$CFLAGS -belf"
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8484 printf %s "checking whether the C compiler needs -belf... " >&6; }
8485 if test ${lt_cv_cc_needs_belf+y}
8487 printf %s "(cached) " >&6
8490 ac_cpp='$CPP $CPPFLAGS'
8491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8506 if ac_fn_c_try_link "$LINENO"
8508 lt_cv_cc_needs_belf=yes
8510 lt_cv_cc_needs_belf=no
8512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8513 conftest$ac_exeext conftest.$ac_ext
8515 ac_cpp='$CPP $CPPFLAGS'
8516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8522 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8523 if test yes != "$lt_cv_cc_needs_belf"; then
8524 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8529 # Find out what ABI is being produced by ac_compile, and set linker
8530 # options accordingly.
8531 echo 'int i;' > conftest.$ac_ext
8532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8533 (eval $ac_compile) 2>&5
8535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8536 test $ac_status = 0; }; then
8537 case `$FILECMD conftest.o` in
8539 case $lt_cv_prog_gnu_ld in
8542 i?86-*-solaris*|x86_64-*-solaris*)
8543 LD="${LD-ld} -m elf_x86_64"
8546 LD="${LD-ld} -m elf64_sparc"
8549 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8550 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8555 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8567 need_locks=$enable_libtool_lock
8569 if test -n "$ac_tool_prefix"; then
8570 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}mt; ac_word=$2
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 printf %s "checking for $ac_word... " >&6; }
8574 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8576 printf %s "(cached) " >&6
8578 if test -n "$MANIFEST_TOOL"; then
8579 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 case $as_dir in #(((
8588 *) as_dir=$as_dir/ ;;
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8602 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8603 if test -n "$MANIFEST_TOOL"; then
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8605 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 printf "%s\n" "no" >&6; }
8613 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8614 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8615 # Extract the first word of "mt", so it can be a program name with args.
8616 set dummy mt; ac_word=$2
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 printf %s "checking for $ac_word... " >&6; }
8619 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8621 printf %s "(cached) " >&6
8623 if test -n "$ac_ct_MANIFEST_TOOL"; then
8624 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 case $as_dir in #(((
8633 *) as_dir=$as_dir/ ;;
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8647 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8648 if test -n "$ac_ct_MANIFEST_TOOL"; then
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8650 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 printf "%s\n" "no" >&6; }
8656 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8659 case $cross_compiling:$ac_tool_warned in
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8665 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8668 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8671 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8673 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8674 if test ${lt_cv_path_mainfest_tool+y}
8676 printf %s "(cached) " >&6
8678 lt_cv_path_mainfest_tool=no
8679 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8680 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8681 cat conftest.err >&5
8682 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8683 lt_cv_path_mainfest_tool=yes
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8688 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8689 if test yes != "$lt_cv_path_mainfest_tool"; then
8699 rhapsody* | darwin*)
8700 if test -n "$ac_tool_prefix"; then
8701 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8702 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 printf %s "checking for $ac_word... " >&6; }
8705 if test ${ac_cv_prog_DSYMUTIL+y}
8707 printf %s "(cached) " >&6
8709 if test -n "$DSYMUTIL"; then
8710 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 case $as_dir in #(((
8719 *) as_dir=$as_dir/ ;;
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8733 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8734 if test -n "$DSYMUTIL"; then
8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8736 printf "%s\n" "$DSYMUTIL" >&6; }
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 printf "%s\n" "no" >&6; }
8744 if test -z "$ac_cv_prog_DSYMUTIL"; then
8745 ac_ct_DSYMUTIL=$DSYMUTIL
8746 # Extract the first word of "dsymutil", so it can be a program name with args.
8747 set dummy dsymutil; ac_word=$2
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 printf %s "checking for $ac_word... " >&6; }
8750 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8752 printf %s "(cached) " >&6
8754 if test -n "$ac_ct_DSYMUTIL"; then
8755 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 case $as_dir in #(((
8764 *) as_dir=$as_dir/ ;;
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8768 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8778 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8779 if test -n "$ac_ct_DSYMUTIL"; then
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8781 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 printf "%s\n" "no" >&6; }
8787 if test "x$ac_ct_DSYMUTIL" = x; then
8790 case $cross_compiling:$ac_tool_warned in
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8794 ac_tool_warned=yes ;;
8796 DSYMUTIL=$ac_ct_DSYMUTIL
8799 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8802 if test -n "$ac_tool_prefix"; then
8803 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8804 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806 printf %s "checking for $ac_word... " >&6; }
8807 if test ${ac_cv_prog_NMEDIT+y}
8809 printf %s "(cached) " >&6
8811 if test -n "$NMEDIT"; then
8812 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 case $as_dir in #(((
8821 *) as_dir=$as_dir/ ;;
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8835 NMEDIT=$ac_cv_prog_NMEDIT
8836 if test -n "$NMEDIT"; then
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8838 printf "%s\n" "$NMEDIT" >&6; }
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 printf "%s\n" "no" >&6; }
8846 if test -z "$ac_cv_prog_NMEDIT"; then
8847 ac_ct_NMEDIT=$NMEDIT
8848 # Extract the first word of "nmedit", so it can be a program name with args.
8849 set dummy nmedit; ac_word=$2
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 printf %s "checking for $ac_word... " >&6; }
8852 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8854 printf %s "(cached) " >&6
8856 if test -n "$ac_ct_NMEDIT"; then
8857 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863 case $as_dir in #(((
8866 *) as_dir=$as_dir/ ;;
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8870 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8880 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8881 if test -n "$ac_ct_NMEDIT"; then
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8883 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 printf "%s\n" "no" >&6; }
8889 if test "x$ac_ct_NMEDIT" = x; then
8892 case $cross_compiling:$ac_tool_warned in
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8896 ac_tool_warned=yes ;;
8898 NMEDIT=$ac_ct_NMEDIT
8901 NMEDIT="$ac_cv_prog_NMEDIT"
8904 if test -n "$ac_tool_prefix"; then
8905 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8906 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 printf %s "checking for $ac_word... " >&6; }
8909 if test ${ac_cv_prog_LIPO+y}
8911 printf %s "(cached) " >&6
8913 if test -n "$LIPO"; then
8914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 case $as_dir in #(((
8923 *) as_dir=$as_dir/ ;;
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8937 LIPO=$ac_cv_prog_LIPO
8938 if test -n "$LIPO"; then
8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8940 printf "%s\n" "$LIPO" >&6; }
8942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 printf "%s\n" "no" >&6; }
8948 if test -z "$ac_cv_prog_LIPO"; then
8950 # Extract the first word of "lipo", so it can be a program name with args.
8951 set dummy lipo; ac_word=$2
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 printf %s "checking for $ac_word... " >&6; }
8954 if test ${ac_cv_prog_ac_ct_LIPO+y}
8956 printf %s "(cached) " >&6
8958 if test -n "$ac_ct_LIPO"; then
8959 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 case $as_dir in #(((
8968 *) as_dir=$as_dir/ ;;
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8972 ac_cv_prog_ac_ct_LIPO="lipo"
8973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8982 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8983 if test -n "$ac_ct_LIPO"; then
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8985 printf "%s\n" "$ac_ct_LIPO" >&6; }
8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 printf "%s\n" "no" >&6; }
8991 if test "x$ac_ct_LIPO" = x; then
8994 case $cross_compiling:$ac_tool_warned in
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8998 ac_tool_warned=yes ;;
9003 LIPO="$ac_cv_prog_LIPO"
9006 if test -n "$ac_tool_prefix"; then
9007 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9008 set dummy ${ac_tool_prefix}otool; ac_word=$2
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 printf %s "checking for $ac_word... " >&6; }
9011 if test ${ac_cv_prog_OTOOL+y}
9013 printf %s "(cached) " >&6
9015 if test -n "$OTOOL"; then
9016 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 case $as_dir in #(((
9025 *) as_dir=$as_dir/ ;;
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9029 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9039 OTOOL=$ac_cv_prog_OTOOL
9040 if test -n "$OTOOL"; then
9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9042 printf "%s\n" "$OTOOL" >&6; }
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 printf "%s\n" "no" >&6; }
9050 if test -z "$ac_cv_prog_OTOOL"; then
9052 # Extract the first word of "otool", so it can be a program name with args.
9053 set dummy otool; ac_word=$2
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9055 printf %s "checking for $ac_word... " >&6; }
9056 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9058 printf %s "(cached) " >&6
9060 if test -n "$ac_ct_OTOOL"; then
9061 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 case $as_dir in #(((
9070 *) as_dir=$as_dir/ ;;
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9074 ac_cv_prog_ac_ct_OTOOL="otool"
9075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9084 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9085 if test -n "$ac_ct_OTOOL"; then
9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9087 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 printf "%s\n" "no" >&6; }
9093 if test "x$ac_ct_OTOOL" = x; then
9096 case $cross_compiling:$ac_tool_warned in
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9099 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9100 ac_tool_warned=yes ;;
9105 OTOOL="$ac_cv_prog_OTOOL"
9108 if test -n "$ac_tool_prefix"; then
9109 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9110 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 printf %s "checking for $ac_word... " >&6; }
9113 if test ${ac_cv_prog_OTOOL64+y}
9115 printf %s "(cached) " >&6
9117 if test -n "$OTOOL64"; then
9118 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 case $as_dir in #(((
9127 *) as_dir=$as_dir/ ;;
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9131 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9141 OTOOL64=$ac_cv_prog_OTOOL64
9142 if test -n "$OTOOL64"; then
9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9144 printf "%s\n" "$OTOOL64" >&6; }
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 printf "%s\n" "no" >&6; }
9152 if test -z "$ac_cv_prog_OTOOL64"; then
9153 ac_ct_OTOOL64=$OTOOL64
9154 # Extract the first word of "otool64", so it can be a program name with args.
9155 set dummy otool64; ac_word=$2
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 printf %s "checking for $ac_word... " >&6; }
9158 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9160 printf %s "(cached) " >&6
9162 if test -n "$ac_ct_OTOOL64"; then
9163 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 case $as_dir in #(((
9172 *) as_dir=$as_dir/ ;;
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_ac_ct_OTOOL64="otool64"
9177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9186 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9187 if test -n "$ac_ct_OTOOL64"; then
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9189 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 printf "%s\n" "no" >&6; }
9195 if test "x$ac_ct_OTOOL64" = x; then
9198 case $cross_compiling:$ac_tool_warned in
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9202 ac_tool_warned=yes ;;
9204 OTOOL64=$ac_ct_OTOOL64
9207 OTOOL64="$ac_cv_prog_OTOOL64"
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9237 printf %s "checking for -single_module linker flag... " >&6; }
9238 if test ${lt_cv_apple_cc_single_mod+y}
9240 printf %s "(cached) " >&6
9242 lt_cv_apple_cc_single_mod=no
9243 if test -z "$LT_MULTI_MODULE"; then
9244 # By default we will add the -single_module flag. You can override
9245 # by either setting the environment variable LT_MULTI_MODULE
9246 # non-empty at configure time, or by adding -multi_module to the
9248 rm -rf libconftest.dylib*
9249 echo "int foo(void){return 1;}" > conftest.c
9250 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9251 -dynamiclib -Wl,-single_module conftest.c" >&5
9252 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9253 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9255 # If there is a non-empty error log, and "single_module"
9256 # appears in it, assume the flag caused a linker warning
9257 if test -s conftest.err && $GREP single_module conftest.err; then
9258 cat conftest.err >&5
9259 # Otherwise, if the output was created with a 0 exit code from
9260 # the compiler, it worked.
9261 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9262 lt_cv_apple_cc_single_mod=yes
9264 cat conftest.err >&5
9266 rm -rf libconftest.dylib*
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9271 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9274 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9275 if test ${lt_cv_ld_exported_symbols_list+y}
9277 printf %s "(cached) " >&6
9279 lt_cv_ld_exported_symbols_list=no
9280 save_LDFLAGS=$LDFLAGS
9281 echo "_main" > conftest.sym
9282 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9294 if ac_fn_c_try_link "$LINENO"
9296 lt_cv_ld_exported_symbols_list=yes
9298 lt_cv_ld_exported_symbols_list=no
9300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9301 conftest$ac_exeext conftest.$ac_ext
9302 LDFLAGS=$save_LDFLAGS
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9306 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9309 printf %s "checking for -force_load linker flag... " >&6; }
9310 if test ${lt_cv_ld_force_load+y}
9312 printf %s "(cached) " >&6
9314 lt_cv_ld_force_load=no
9315 cat > conftest.c << _LT_EOF
9316 int forced_loaded() { return 2;}
9318 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9319 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9320 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9321 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9322 echo "$RANLIB libconftest.a" >&5
9323 $RANLIB libconftest.a 2>&5
9324 cat > conftest.c << _LT_EOF
9325 int main() { return 0;}
9327 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9328 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9330 if test -s conftest.err && $GREP force_load conftest.err; then
9331 cat conftest.err >&5
9332 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9333 lt_cv_ld_force_load=yes
9335 cat conftest.err >&5
9337 rm -f conftest.err libconftest.a conftest conftest.c
9338 rm -rf conftest.dSYM
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9342 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9344 rhapsody* | darwin1.[012])
9345 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9347 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9349 case $MACOSX_DEPLOYMENT_TARGET,$host in
9350 10.[012],*|,*powerpc*-darwin[5-8]*)
9351 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9353 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9357 if test yes = "$lt_cv_apple_cc_single_mod"; then
9358 _lt_dar_single_mod='$single_module'
9360 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9361 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9363 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9365 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9366 _lt_dsymutil='~$DSYMUTIL $lib || :'
9373 # func_munge_path_list VARIABLE PATH
9374 # -----------------------------------
9375 # VARIABLE is name of variable containing _space_ separated list of
9376 # directories to be munged by the contents of PATH, which is string
9379 # string "DIR[ DIR]" will be prepended to VARIABLE
9381 # string "DIR[ DIR]" will be appended to VARIABLE
9382 # "DIRP[:DIRP]::[DIRA:]DIRA"
9383 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9384 # "DIRA[ DIRA]" will be appended to VARIABLE
9386 # VARIABLE will be replaced by "DIR[ DIR]"
9387 func_munge_path_list ()
9393 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9396 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9399 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9400 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9403 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9408 ac_header= ac_cache=
9409 for ac_item in $ac_header_c_list
9411 if test $ac_cache; then
9412 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9413 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9414 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9416 ac_header= ac_cache=
9417 elif test $ac_header; then
9431 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9434 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9437 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9439 if test "x$ac_cv_header_dlfcn_h" = xyes
9441 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9448 func_stripname_cnf ()
9451 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9452 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9454 } # func_stripname_cnf
9470 # Check whether --enable-shared was given.
9471 if test ${enable_shared+y}
9473 enableval=$enable_shared; p=${PACKAGE-default}
9475 yes) enable_shared=yes ;;
9476 no) enable_shared=no ;;
9479 # Look at the argument we got. We use all the common list separators.
9480 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9481 for pkg in $enableval; do
9483 if test "X$pkg" = "X$p"; then
9502 # Check whether --enable-static was given.
9503 if test ${enable_static+y}
9505 enableval=$enable_static; p=${PACKAGE-default}
9507 yes) enable_static=yes ;;
9508 no) enable_static=no ;;
9511 # Look at the argument we got. We use all the common list separators.
9512 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9513 for pkg in $enableval; do
9515 if test "X$pkg" = "X$p"; then
9535 # Check whether --with-pic was given.
9536 if test ${with_pic+y}
9538 withval=$with_pic; lt_p=${PACKAGE-default}
9540 yes|no) pic_mode=$withval ;;
9543 # Look at the argument we got. We use all the common list separators.
9544 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9545 for lt_pkg in $withval; do
9547 if test "X$lt_pkg" = "X$lt_p"; then
9565 # Check whether --enable-fast-install was given.
9566 if test ${enable_fast_install+y}
9568 enableval=$enable_fast_install; p=${PACKAGE-default}
9570 yes) enable_fast_install=yes ;;
9571 no) enable_fast_install=no ;;
9573 enable_fast_install=no
9574 # Look at the argument we got. We use all the common list separators.
9575 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9576 for pkg in $enableval; do
9578 if test "X$pkg" = "X$p"; then
9579 enable_fast_install=yes
9586 enable_fast_install=yes
9596 shared_archive_member_spec=
9597 case $host,$enable_shared in
9598 power*-*-aix[5-9]*,yes)
9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9600 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9602 # Check whether --with-aix-soname was given.
9603 if test ${with_aix_soname+y}
9605 withval=$with_aix_soname; case $withval in
9609 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9612 lt_cv_with_aix_soname=$with_aix_soname
9614 if test ${lt_cv_with_aix_soname+y}
9616 printf %s "(cached) " >&6
9618 lt_cv_with_aix_soname=aix
9621 with_aix_soname=$lt_cv_with_aix_soname
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9625 printf "%s\n" "$with_aix_soname" >&6; }
9626 if test aix != "$with_aix_soname"; then
9627 # For the AIX way of multilib, we name the shared archive member
9628 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9629 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9630 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9631 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9632 if test 64 = "${OBJECT_MODE-32}"; then
9633 shared_archive_member_spec=shr_64
9635 shared_archive_member_spec=shr
9653 # This can be used to rebuild libtool when needed
9654 LIBTOOL_DEPS=$ltmain
9656 # Always use our own libtool.
9657 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9688 test -z "$LN_S" && LN_S="ln -s"
9703 if test -n "${ZSH_VERSION+set}"; then
9704 setopt NO_GLOB_SUBST
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9708 printf %s "checking for objdir... " >&6; }
9709 if test ${lt_cv_objdir+y}
9711 printf %s "(cached) " >&6
9713 rm -f .libs 2>/dev/null
9714 mkdir .libs 2>/dev/null
9715 if test -d .libs; then
9718 # MS-DOS does not allow filenames that begin with a dot.
9721 rmdir .libs 2>/dev/null
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9724 printf "%s\n" "$lt_cv_objdir" >&6; }
9725 objdir=$lt_cv_objdir
9731 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9738 # AIX sometimes has problems with the GCC collect2 program. For some
9739 # reason, if we set the COLLECT_NAMES environment variable, the problems
9740 # vanish in a puff of smoke.
9741 if test set != "${COLLECT_NAMES+set}"; then
9743 export COLLECT_NAMES
9750 can_build_shared=yes
9752 # All known linkers require a '.a' archive for static linking (except MSVC and
9753 # ICC, which need '.lib').
9756 with_gnu_ld=$lt_cv_prog_gnu_ld
9761 # Set sane defaults for various variables
9762 test -z "$CC" && CC=cc
9763 test -z "$LTCC" && LTCC=$CC
9764 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9765 test -z "$LD" && LD=ld
9766 test -z "$ac_objext" && ac_objext=o
9768 func_cc_basename $compiler
9769 cc_basename=$func_cc_basename_result
9772 # Only perform the check for file, if the check method requires it
9773 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9774 case $deplibs_check_method in
9776 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9778 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9779 if test ${lt_cv_path_MAGIC_CMD+y}
9781 printf %s "(cached) " >&6
9785 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9788 lt_save_MAGIC_CMD=$MAGIC_CMD
9789 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9790 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9791 for ac_dir in $ac_dummy; do
9793 test -z "$ac_dir" && ac_dir=.
9794 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9795 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9796 if test -n "$file_magic_test_file"; then
9797 case $deplibs_check_method in
9799 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9800 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9801 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9802 $EGREP "$file_magic_regex" > /dev/null; then
9807 *** Warning: the command libtool uses to detect shared libraries,
9808 *** $file_magic_cmd, produces output that libtool cannot recognize.
9809 *** The result is that libtool may fail to recognize shared libraries
9810 *** as such. This will affect the creation of libtool libraries that
9811 *** depend on shared libraries, but programs linked with such libtool
9812 *** libraries will work regardless of this problem. Nevertheless, you
9813 *** may want to report the problem to your system manager and/or to
9814 *** bug-libtool@gnu.org
9824 MAGIC_CMD=$lt_save_MAGIC_CMD
9829 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9830 if test -n "$MAGIC_CMD"; then
9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9832 printf "%s\n" "$MAGIC_CMD" >&6; }
9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 printf "%s\n" "no" >&6; }
9842 if test -z "$lt_cv_path_MAGIC_CMD"; then
9843 if test -n "$ac_tool_prefix"; then
9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9845 printf %s "checking for file... " >&6; }
9846 if test ${lt_cv_path_MAGIC_CMD+y}
9848 printf %s "(cached) " >&6
9852 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9855 lt_save_MAGIC_CMD=$MAGIC_CMD
9856 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9857 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9858 for ac_dir in $ac_dummy; do
9860 test -z "$ac_dir" && ac_dir=.
9861 if test -f "$ac_dir/file"; then
9862 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9863 if test -n "$file_magic_test_file"; then
9864 case $deplibs_check_method in
9866 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9867 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9868 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9869 $EGREP "$file_magic_regex" > /dev/null; then
9874 *** Warning: the command libtool uses to detect shared libraries,
9875 *** $file_magic_cmd, produces output that libtool cannot recognize.
9876 *** The result is that libtool may fail to recognize shared libraries
9877 *** as such. This will affect the creation of libtool libraries that
9878 *** depend on shared libraries, but programs linked with such libtool
9879 *** libraries will work regardless of this problem. Nevertheless, you
9880 *** may want to report the problem to your system manager and/or to
9881 *** bug-libtool@gnu.org
9891 MAGIC_CMD=$lt_save_MAGIC_CMD
9896 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9897 if test -n "$MAGIC_CMD"; then
9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9899 printf "%s\n" "$MAGIC_CMD" >&6; }
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902 printf "%s\n" "no" >&6; }
9915 # Use C for the default configuration in the libtool script
9919 ac_cpp='$CPP $CPPFLAGS'
9920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9925 # Source file extension for C test sources.
9928 # Object file extension for compiled C test sources.
9932 # Code to be used in simple compile tests
9933 lt_simple_compile_test_code="int some_variable = 0;"
9935 # Code to be used in simple link tests
9936 lt_simple_link_test_code='int main(){return(0);}'
9944 # If no C compiler was specified, use CC.
9947 # If no C compiler flags were specified, use CFLAGS.
9948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9950 # Allow CC to be a program name with arguments.
9953 # Save the default compiler, since it gets overwritten when the other
9954 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9955 compiler_DEFAULT=$CC
9957 # save warnings/boilerplate of simple test code
9958 ac_outfile=conftest.$ac_objext
9959 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9960 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9961 _lt_compiler_boilerplate=`cat conftest.err`
9964 ac_outfile=conftest.$ac_objext
9965 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9966 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9967 _lt_linker_boilerplate=`cat conftest.err`
9972 ## There is no encapsulation within the following macros, do not change
9973 ## the running order or otherwise move them around unless you know exactly
9974 ## what you are doing...
9975 if test -n "$compiler"; then
9977 lt_prog_compiler_no_builtin_flag=
9979 if test yes = "$GCC"; then
9980 case $cc_basename in
9982 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9984 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9988 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9989 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9991 printf %s "(cached) " >&6
9993 lt_cv_prog_compiler_rtti_exceptions=no
9994 ac_outfile=conftest.$ac_objext
9995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9996 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9997 # Insert the option either (1) after the last *FLAGS variable, or
9998 # (2) before a word containing "conftest.", or (3) at the end.
9999 # Note that $ac_compile itself does not contain backslashes and begins
10000 # with a dollar sign (not a hyphen), so the echo should work correctly.
10001 # The option is referenced via a variable to avoid confusing sed.
10002 lt_compile=`echo "$ac_compile" | $SED \
10003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10005 -e 's:$: $lt_compiler_flag:'`
10006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10007 (eval "$lt_compile" 2>conftest.err)
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 if (exit $ac_status) && test -s "$ac_outfile"; then
10012 # The compiler can only warn and ignore the option if not recognized
10013 # So say no if there are warnings other than the usual output.
10014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10017 lt_cv_prog_compiler_rtti_exceptions=yes
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10024 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10026 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10027 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10039 lt_prog_compiler_wl=
10040 lt_prog_compiler_pic=
10041 lt_prog_compiler_static=
10044 if test yes = "$GCC"; then
10045 lt_prog_compiler_wl='-Wl,'
10046 lt_prog_compiler_static='-static'
10050 # All AIX code is PIC.
10051 if test ia64 = "$host_cpu"; then
10052 # AIX 5 now supports IA64 processor
10053 lt_prog_compiler_static='-Bstatic'
10055 lt_prog_compiler_pic='-fPIC'
10061 # see comment about AmigaOS4 .so support
10062 lt_prog_compiler_pic='-fPIC'
10065 # FIXME: we need at least 68020 code to build shared libraries, but
10066 # adding the '-m68020' flag to GCC prevents building anything better,
10068 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10073 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10074 # PIC is the default for these OSes.
10077 mingw* | cygwin* | pw32* | os2* | cegcc*)
10078 # This hack is so that the source file can tell whether it is being
10079 # built for inclusion in a dll (and should export symbols for example).
10080 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10081 # (--disable-auto-import) libraries
10082 lt_prog_compiler_pic='-DDLL_EXPORT'
10085 lt_prog_compiler_static='$wl-static'
10090 darwin* | rhapsody*)
10091 # PIC is the default on this platform
10092 # Common symbols not allowed in MH_DYLIB files
10093 lt_prog_compiler_pic='-fno-common'
10097 # PIC is the default for Haiku.
10098 # The "-static" flag exists, but is broken.
10099 lt_prog_compiler_static=
10103 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10104 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10105 # sets the default TLS model and affects inlining.
10111 lt_prog_compiler_pic='-fPIC'
10117 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10118 # Instead, we relocate shared libraries at runtime.
10122 # Just because we use GCC doesn't mean we suddenly get shared libraries
10123 # on systems that don't support them.
10124 lt_prog_compiler_can_build_shared=no
10129 # QNX uses GNU C++, but need to define -shared option too, otherwise
10130 # it will coredump.
10131 lt_prog_compiler_pic='-fPIC -shared'
10135 if test -d /usr/nec; then
10136 lt_prog_compiler_pic=-Kconform_pic
10141 lt_prog_compiler_pic='-fPIC'
10145 case $cc_basename in
10146 nvcc*) # Cuda Compiler Driver 2.2
10147 lt_prog_compiler_wl='-Xlinker '
10148 if test -n "$lt_prog_compiler_pic"; then
10149 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10154 # PORTME Check for flag to pass linker flags through the system compiler.
10157 lt_prog_compiler_wl='-Wl,'
10158 if test ia64 = "$host_cpu"; then
10159 # AIX 5 now supports IA64 processor
10160 lt_prog_compiler_static='-Bstatic'
10162 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10166 darwin* | rhapsody*)
10167 # PIC is the default on this platform
10168 # Common symbols not allowed in MH_DYLIB files
10169 lt_prog_compiler_pic='-fno-common'
10170 case $cc_basename in
10172 # NAG Fortran compiler
10173 lt_prog_compiler_wl='-Wl,-Wl,,'
10174 lt_prog_compiler_pic='-PIC'
10175 lt_prog_compiler_static='-Bstatic'
10180 mingw* | cygwin* | pw32* | os2* | cegcc*)
10181 # This hack is so that the source file can tell whether it is being
10182 # built for inclusion in a dll (and should export symbols for example).
10183 lt_prog_compiler_pic='-DDLL_EXPORT'
10186 lt_prog_compiler_static='$wl-static'
10191 hpux9* | hpux10* | hpux11*)
10192 lt_prog_compiler_wl='-Wl,'
10193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10194 # not for PA HP-UX.
10200 lt_prog_compiler_pic='+Z'
10203 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10204 lt_prog_compiler_static='$wl-a ${wl}archive'
10207 irix5* | irix6* | nonstopux*)
10208 lt_prog_compiler_wl='-Wl,'
10209 # PIC (with -KPIC) is the default.
10210 lt_prog_compiler_static='-non_shared'
10213 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10214 case $cc_basename in
10215 # old Intel for x86_64, which still supported -KPIC.
10217 lt_prog_compiler_wl='-Wl,'
10218 lt_prog_compiler_pic='-KPIC'
10219 lt_prog_compiler_static='-static'
10221 # flang / f18. f95 an alias for gfortran or flang on Debian
10222 flang* | f18* | f95*)
10223 lt_prog_compiler_wl='-Wl,'
10224 lt_prog_compiler_pic='-fPIC'
10225 lt_prog_compiler_static='-static'
10227 # icc used to be incompatible with GCC.
10228 # ICC 10 doesn't accept -KPIC any more.
10230 lt_prog_compiler_wl='-Wl,'
10231 lt_prog_compiler_pic='-fPIC'
10232 lt_prog_compiler_static='-static'
10234 # Lahey Fortran 8.1.
10236 lt_prog_compiler_wl='-Wl,'
10237 lt_prog_compiler_pic='--shared'
10238 lt_prog_compiler_static='--static'
10241 # NAG Fortran compiler
10242 lt_prog_compiler_wl='-Wl,-Wl,,'
10243 lt_prog_compiler_pic='-PIC'
10244 lt_prog_compiler_static='-Bstatic'
10247 # Fabrice Bellard et al's Tiny C Compiler
10248 lt_prog_compiler_wl='-Wl,'
10249 lt_prog_compiler_pic='-fPIC'
10250 lt_prog_compiler_static='-static'
10252 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10253 # Portland Group compilers (*not* the Pentium gcc compiler,
10254 # which looks to be a dead project)
10255 lt_prog_compiler_wl='-Wl,'
10256 lt_prog_compiler_pic='-fpic'
10257 lt_prog_compiler_static='-Bstatic'
10260 lt_prog_compiler_wl='-Wl,'
10261 # All Alpha code is PIC.
10262 lt_prog_compiler_static='-non_shared'
10264 xl* | bgxl* | bgf* | mpixl*)
10265 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10266 lt_prog_compiler_wl='-Wl,'
10267 lt_prog_compiler_pic='-qpic'
10268 lt_prog_compiler_static='-qstaticlink'
10271 case `$CC -V 2>&1 | $SED 5q` in
10272 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10273 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10274 lt_prog_compiler_pic='-KPIC'
10275 lt_prog_compiler_static='-Bstatic'
10276 lt_prog_compiler_wl=''
10278 *Sun\ F* | *Sun*Fortran*)
10279 lt_prog_compiler_pic='-KPIC'
10280 lt_prog_compiler_static='-Bstatic'
10281 lt_prog_compiler_wl='-Qoption ld '
10285 lt_prog_compiler_pic='-KPIC'
10286 lt_prog_compiler_static='-Bstatic'
10287 lt_prog_compiler_wl='-Wl,'
10289 *Intel*\ [CF]*Compiler*)
10290 lt_prog_compiler_wl='-Wl,'
10291 lt_prog_compiler_pic='-fPIC'
10292 lt_prog_compiler_static='-static'
10295 lt_prog_compiler_wl='-Wl,'
10296 lt_prog_compiler_pic='-fpic'
10297 lt_prog_compiler_static='-Bstatic'
10305 lt_prog_compiler_pic='-KPIC'
10306 lt_prog_compiler_static='-Bstatic'
10310 # QNX uses GNU C++, but need to define -shared option too, otherwise
10311 # it will coredump.
10312 lt_prog_compiler_pic='-fPIC -shared'
10315 osf3* | osf4* | osf5*)
10316 lt_prog_compiler_wl='-Wl,'
10317 # All OSF/1 code is PIC.
10318 lt_prog_compiler_static='-non_shared'
10322 lt_prog_compiler_static='-non_shared'
10326 lt_prog_compiler_pic='-KPIC'
10327 lt_prog_compiler_static='-Bstatic'
10328 case $cc_basename in
10329 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10330 lt_prog_compiler_wl='-Qoption ld ';;
10332 lt_prog_compiler_wl='-Wl,';;
10337 lt_prog_compiler_wl='-Qoption ld '
10338 lt_prog_compiler_pic='-PIC'
10339 lt_prog_compiler_static='-Bstatic'
10342 sysv4 | sysv4.2uw2* | sysv4.3*)
10343 lt_prog_compiler_wl='-Wl,'
10344 lt_prog_compiler_pic='-KPIC'
10345 lt_prog_compiler_static='-Bstatic'
10349 if test -d /usr/nec; then
10350 lt_prog_compiler_pic='-Kconform_pic'
10351 lt_prog_compiler_static='-Bstatic'
10355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10356 lt_prog_compiler_wl='-Wl,'
10357 lt_prog_compiler_pic='-KPIC'
10358 lt_prog_compiler_static='-Bstatic'
10362 lt_prog_compiler_wl='-Wl,'
10363 lt_prog_compiler_can_build_shared=no
10367 lt_prog_compiler_pic='-pic'
10368 lt_prog_compiler_static='-Bstatic'
10372 lt_prog_compiler_can_build_shared=no
10378 # For platforms that do not support PIC, -DPIC is meaningless:
10380 lt_prog_compiler_pic=
10383 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10388 printf %s "checking for $compiler option to produce PIC... " >&6; }
10389 if test ${lt_cv_prog_compiler_pic+y}
10391 printf %s "(cached) " >&6
10393 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10396 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10397 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10400 # Check to make sure the PIC flag actually works.
10402 if test -n "$lt_prog_compiler_pic"; then
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10404 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10405 if test ${lt_cv_prog_compiler_pic_works+y}
10407 printf %s "(cached) " >&6
10409 lt_cv_prog_compiler_pic_works=no
10410 ac_outfile=conftest.$ac_objext
10411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10412 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10413 # Insert the option either (1) after the last *FLAGS variable, or
10414 # (2) before a word containing "conftest.", or (3) at the end.
10415 # Note that $ac_compile itself does not contain backslashes and begins
10416 # with a dollar sign (not a hyphen), so the echo should work correctly.
10417 # The option is referenced via a variable to avoid confusing sed.
10418 lt_compile=`echo "$ac_compile" | $SED \
10419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10421 -e 's:$: $lt_compiler_flag:'`
10422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10423 (eval "$lt_compile" 2>conftest.err)
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 if (exit $ac_status) && test -s "$ac_outfile"; then
10428 # The compiler can only warn and ignore the option if not recognized
10429 # So say no if there are warnings other than the usual output.
10430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10433 lt_cv_prog_compiler_pic_works=yes
10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10440 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10442 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10443 case $lt_prog_compiler_pic in
10445 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10448 lt_prog_compiler_pic=
10449 lt_prog_compiler_can_build_shared=no
10465 # Check to make sure the static flag actually works.
10467 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10469 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10470 if test ${lt_cv_prog_compiler_static_works+y}
10472 printf %s "(cached) " >&6
10474 lt_cv_prog_compiler_static_works=no
10475 save_LDFLAGS=$LDFLAGS
10476 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10477 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10478 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10479 # The linker can only warn and ignore the option if not recognized
10480 # So say no if there are warnings
10481 if test -s conftest.err; then
10482 # Append any errors to the config.log.
10483 cat conftest.err 1>&5
10484 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10486 if diff conftest.exp conftest.er2 >/dev/null; then
10487 lt_cv_prog_compiler_static_works=yes
10490 lt_cv_prog_compiler_static_works=yes
10494 LDFLAGS=$save_LDFLAGS
10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10498 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10500 if test yes = "$lt_cv_prog_compiler_static_works"; then
10503 lt_prog_compiler_static=
10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10513 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10514 if test ${lt_cv_prog_compiler_c_o+y}
10516 printf %s "(cached) " >&6
10518 lt_cv_prog_compiler_c_o=no
10519 $RM -r conftest 2>/dev/null
10523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10525 lt_compiler_flag="-o out/conftest2.$ac_objext"
10526 # Insert the option either (1) after the last *FLAGS variable, or
10527 # (2) before a word containing "conftest.", or (3) at the end.
10528 # Note that $ac_compile itself does not contain backslashes and begins
10529 # with a dollar sign (not a hyphen), so the echo should work correctly.
10530 lt_compile=`echo "$ac_compile" | $SED \
10531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10533 -e 's:$: $lt_compiler_flag:'`
10534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10535 (eval "$lt_compile" 2>out/conftest.err)
10537 cat out/conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10541 # The compiler can only warn and ignore the option if not recognized
10542 # So say no if there are warnings
10543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10546 lt_cv_prog_compiler_c_o=yes
10551 # SGI C++ compiler will create directory out/ii_files/ for
10552 # template instantiation
10553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10554 $RM out/* && rmdir out
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10561 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10569 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10570 if test ${lt_cv_prog_compiler_c_o+y}
10572 printf %s "(cached) " >&6
10574 lt_cv_prog_compiler_c_o=no
10575 $RM -r conftest 2>/dev/null
10579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10581 lt_compiler_flag="-o out/conftest2.$ac_objext"
10582 # Insert the option either (1) after the last *FLAGS variable, or
10583 # (2) before a word containing "conftest.", or (3) at the end.
10584 # Note that $ac_compile itself does not contain backslashes and begins
10585 # with a dollar sign (not a hyphen), so the echo should work correctly.
10586 lt_compile=`echo "$ac_compile" | $SED \
10587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10589 -e 's:$: $lt_compiler_flag:'`
10590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10591 (eval "$lt_compile" 2>out/conftest.err)
10593 cat out/conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10597 # The compiler can only warn and ignore the option if not recognized
10598 # So say no if there are warnings
10599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10602 lt_cv_prog_compiler_c_o=yes
10607 # SGI C++ compiler will create directory out/ii_files/ for
10608 # template instantiation
10609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10610 $RM out/* && rmdir out
10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10617 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10622 hard_links=nottested
10623 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10624 # do not overwrite the value of need_locks provided by the user
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10626 printf %s "checking if we can lock with hard links... " >&6; }
10629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10631 ln conftest.a conftest.b 2>&5 || hard_links=no
10632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10634 printf "%s\n" "$hard_links" >&6; }
10635 if test no = "$hard_links"; then
10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10637 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10650 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10653 allow_undefined_flag=
10654 always_export_symbols=no
10656 archive_expsym_cmds=
10657 compiler_needs_object=no
10658 enable_shared_with_static_runtimes=no
10659 export_dynamic_flag_spec=
10660 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10661 hardcode_automatic=no
10663 hardcode_direct_absolute=no
10664 hardcode_libdir_flag_spec=
10665 hardcode_libdir_separator=
10666 hardcode_minus_L=no
10667 hardcode_shlibpath_var=unsupported
10669 link_all_deplibs=unknown
10671 module_expsym_cmds=
10672 old_archive_from_new_cmds=
10673 old_archive_from_expsyms_cmds=
10674 thread_safe_flag_spec=
10675 whole_archive_flag_spec=
10676 # include_expsyms should be a list of space-separated symbols to be *always*
10677 # included in the symbol list
10679 # exclude_expsyms can be an extended regexp of symbols to exclude
10680 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10681 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10682 # as well as any symbol that contains 'd'.
10683 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10684 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10685 # platforms (ab)use it in PIC code, but their linkers get confused if
10686 # the symbol is explicitly referenced. Since portable code cannot
10687 # rely on this symbol name, it's probably fine to never include it in
10688 # preloaded symbol tables.
10689 # Exclude shared library initialization/finalization symbols.
10690 extract_expsyms_cmds=
10693 cygwin* | mingw* | pw32* | cegcc*)
10694 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10695 # When not using gcc, we currently assume that we are using
10696 # Microsoft Visual C++ or Intel C++ Compiler.
10697 if test yes != "$GCC"; then
10702 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10705 openbsd* | bitrig*)
10708 linux* | k*bsd*-gnu | gnu*)
10709 link_all_deplibs=no
10715 # On some targets, GNU ld is compatible enough with the native linker
10716 # that we're better off using the native interface for both.
10717 lt_use_gnu_ld_interface=no
10718 if test yes = "$with_gnu_ld"; then
10721 # The AIX port of GNU ld has always aspired to compatibility
10722 # with the native linker. However, as the warning in the GNU ld
10723 # block says, versions before 2.19.5* couldn't really create working
10724 # shared libraries, regardless of the interface used.
10725 case `$LD -v 2>&1` in
10726 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10727 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10728 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10730 lt_use_gnu_ld_interface=yes
10735 lt_use_gnu_ld_interface=yes
10740 if test yes = "$lt_use_gnu_ld_interface"; then
10741 # If archive_cmds runs LD, not CC, wlarc should be empty
10744 # Set some defaults for GNU ld with shared library support. These
10745 # are reset later if shared libraries are not supported. Putting them
10746 # here allows them to be overridden if necessary.
10747 runpath_var=LD_RUN_PATH
10748 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10749 export_dynamic_flag_spec='$wl--export-dynamic'
10750 # ancient GNU ld didn't support --whole-archive et. al.
10751 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10752 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10754 whole_archive_flag_spec=
10756 supports_anon_versioning=no
10757 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10758 *GNU\ gold*) supports_anon_versioning=yes ;;
10759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10762 *\ 2.11.*) ;; # other 2.11 versions
10763 *) supports_anon_versioning=yes ;;
10766 # See if GNU ld supports shared libraries.
10769 # On AIX/PPC, the GNU linker is very broken
10770 if test ia64 != "$host_cpu"; then
10774 *** Warning: the GNU linker, at least up to release 2.19, is reported
10775 *** to be unable to reliably create shared libraries on AIX.
10776 *** Therefore, libtool is disabling shared libraries support. If you
10777 *** really care for shared libraries, you may want to install binutils
10778 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10779 *** You will then need to restart the configuration process.
10788 # see comment about AmigaOS4 .so support
10789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10790 archive_expsym_cmds=''
10793 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)'
10794 hardcode_libdir_flag_spec='-L$libdir'
10795 hardcode_minus_L=yes
10801 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10802 allow_undefined_flag=unsupported
10803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10804 # support --undefined. This deserves some investigation. FIXME
10805 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10811 cygwin* | mingw* | pw32* | cegcc*)
10812 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10813 # as there is no search path for DLLs.
10814 hardcode_libdir_flag_spec='-L$libdir'
10815 export_dynamic_flag_spec='$wl--export-all-symbols'
10816 allow_undefined_flag=unsupported
10817 always_export_symbols=no
10818 enable_shared_with_static_runtimes=yes
10819 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'
10820 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10822 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10824 # If the export-symbols file already is a .def file, use it as
10825 # is; otherwise, prepend EXPORTS...
10826 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10827 cp $export_symbols $output_objdir/$soname.def;
10829 echo EXPORTS > $output_objdir/$soname.def;
10830 cat $export_symbols >> $output_objdir/$soname.def;
10832 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10840 link_all_deplibs=yes
10844 hardcode_libdir_flag_spec='-L$libdir'
10845 hardcode_minus_L=yes
10846 allow_undefined_flag=unsupported
10848 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10849 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10850 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10851 $ECHO EXPORTS >> $output_objdir/$libname.def~
10852 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10853 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10854 emximp -o $lib $output_objdir/$libname.def'
10855 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10856 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10857 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10858 $ECHO EXPORTS >> $output_objdir/$libname.def~
10859 prefix_cmds="$SED"~
10860 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10861 prefix_cmds="$prefix_cmds -e 1d";
10863 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10864 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10865 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10866 emximp -o $lib $output_objdir/$libname.def'
10867 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10868 enable_shared_with_static_runtimes=yes
10874 hardcode_shlibpath_var=no
10875 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10876 export_dynamic_flag_spec='$wl-E'
10877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10878 # Instead, shared libraries are loaded at an image base (0x10000000 by
10879 # default) and relocated if they conflict, which is a slow very memory
10880 # consuming and fragmenting process. To avoid this, we pick a random,
10881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10884 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'
10887 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10889 if test linux-dietlibc = "$host_os"; then
10890 case $cc_basename in
10891 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10894 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10895 && test no = "$tmp_diet"
10897 tmp_addflag=' $pic_flag'
10898 tmp_sharedflag='-shared'
10899 case $cc_basename,$host_cpu in
10900 pgcc*) # Portland Group C compiler
10901 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'
10902 tmp_addflag=' $pic_flag'
10904 pgf77* | pgf90* | pgf95* | pgfortran*)
10905 # Portland Group f77 and f90 compilers
10906 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'
10907 tmp_addflag=' $pic_flag -Mnomain' ;;
10908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10909 tmp_addflag=' -i_dynamic' ;;
10910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10911 tmp_addflag=' -i_dynamic -nofor_main' ;;
10912 ifc* | ifort*) # Intel Fortran compiler
10913 tmp_addflag=' -nofor_main' ;;
10914 lf95*) # Lahey Fortran 8.1
10915 whole_archive_flag_spec=
10916 tmp_sharedflag='--shared' ;;
10917 nagfor*) # NAGFOR 5.3
10918 tmp_sharedflag='-Wl,-shared' ;;
10919 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10920 tmp_sharedflag='-qmkshrobj'
10922 nvcc*) # Cuda Compiler Driver 2.2
10923 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'
10924 compiler_needs_object=yes
10927 case `$CC -V 2>&1 | $SED 5q` in
10928 *Sun\ C*) # Sun C 5.9
10929 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'
10930 compiler_needs_object=yes
10931 tmp_sharedflag='-G' ;;
10932 *Sun\ F*) # Sun Fortran 8.3
10933 tmp_sharedflag='-G' ;;
10935 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10937 if test yes = "$supports_anon_versioning"; then
10938 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10939 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10940 echo "local: *; };" >> $output_objdir/$libname.ver~
10941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10944 case $cc_basename in
10946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10947 export_dynamic_flag_spec='-rdynamic'
10949 xlf* | bgf* | bgxlf* | mpixlf*)
10950 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10951 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10952 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10953 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10954 if test yes = "$supports_anon_versioning"; then
10955 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10956 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10957 echo "local: *; };" >> $output_objdir/$libname.ver~
10958 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10967 netbsd* | netbsdelf*-gnu)
10968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10969 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10972 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10973 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10978 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10982 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10983 *** create shared libraries on Solaris systems. Therefore, libtool
10984 *** is disabling shared libraries support. We urge you to upgrade GNU
10985 *** binutils to release 2.9.1 or newer. Another option is to modify
10986 *** your PATH or compiler configuration so that the native linker is
10987 *** used, and then restart.
10990 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10991 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10992 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10999 case `$LD -v 2>&1` in
11000 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11004 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11005 *** reliably create shared libraries on SCO systems. Therefore, libtool
11006 *** is disabling shared libraries support. We urge you to upgrade GNU
11007 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11008 *** your PATH or compiler configuration so that the native linker is
11009 *** used, and then restart.
11014 # For security reasons, it is highly recommended that you always
11015 # use absolute paths for naming shared libraries, and exclude the
11016 # DT_RUNPATH tag from executables and libraries. But doing so
11017 # requires that you compile everything twice, which is a pain.
11018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11019 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11030 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11032 hardcode_direct=yes
11033 hardcode_shlibpath_var=no
11037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11039 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11046 if test no = "$ld_shlibs"; then
11048 hardcode_libdir_flag_spec=
11049 export_dynamic_flag_spec=
11050 whole_archive_flag_spec=
11053 # PORTME fill in a description of your system's linker (not GNU ld)
11056 allow_undefined_flag=unsupported
11057 always_export_symbols=yes
11058 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'
11059 # Note: this linker hardcodes the directories in LIBPATH if there
11060 # are no directories specified by -L.
11061 hardcode_minus_L=yes
11062 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11063 # Neither direct hardcoding nor static linking is supported with a
11065 hardcode_direct=unsupported
11070 if test ia64 = "$host_cpu"; then
11071 # On IA64, the linker does run time linking by default, so we don't
11072 # have to do anything special.
11073 aix_use_runtimelinking=no
11074 exp_sym_flag='-Bexport'
11077 # If we're using GNU nm, then we don't want the "-C" option.
11078 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11079 # Without the "-l" option, or with the "-B" option, AIX nm treats
11080 # weak defined symbols like other global defined symbols, whereas
11081 # GNU nm marks them as "W".
11082 # While the 'weak' keyword is ignored in the Export File, we need
11083 # it in the Import File for the 'aix-soname' feature, so we have
11084 # to replace the "-B" option with "-P" for AIX nm.
11085 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11086 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'
11088 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'
11090 aix_use_runtimelinking=no
11092 # Test if we are trying to use run time linking or normal
11093 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11094 # have runtime linking enabled, and use it for executables.
11095 # For shared libraries, we enable/disable runtime linking
11096 # depending on the kind of the shared library created -
11097 # when "with_aix_soname,aix_use_runtimelinking" is:
11098 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11099 # "aix,yes" lib.so shared, rtl:yes, for executables
11100 # lib.a static archive
11101 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11102 # lib.a(lib.so.V) shared, rtl:no, for executables
11103 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11104 # lib.a(lib.so.V) shared, rtl:no
11105 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11106 # lib.a static archive
11107 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11108 for ld_flag in $LDFLAGS; do
11109 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11110 aix_use_runtimelinking=yes
11114 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11115 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11116 # so we don't have lib.a shared libs to link our executables.
11117 # We have to force runtime linking in this case.
11118 aix_use_runtimelinking=yes
11119 LDFLAGS="$LDFLAGS -Wl,-brtl"
11124 exp_sym_flag='-bexport'
11125 no_entry_flag='-bnoentry'
11128 # When large executables or shared objects are built, AIX ld can
11129 # have problems creating the table of contents. If linking a library
11130 # or program results in "error TOC overflow" add -mminimal-toc to
11131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11135 hardcode_direct=yes
11136 hardcode_direct_absolute=yes
11137 hardcode_libdir_separator=':'
11138 link_all_deplibs=yes
11139 file_list_spec='$wl-f,'
11140 case $with_aix_soname,$aix_use_runtimelinking in
11141 aix,*) ;; # traditional, no import file
11142 svr4,* | *,yes) # use import file
11143 # The Import File defines what to hardcode.
11145 hardcode_direct_absolute=no
11149 if test yes = "$GCC"; then
11150 case $host_os in aix4.[012]|aix4.[012].*)
11151 # We only want to do this on AIX 4.2 and lower, the check
11152 # below for broken collect2 doesn't work under 4.3+
11153 collect2name=`$CC -print-prog-name=collect2`
11154 if test -f "$collect2name" &&
11155 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11157 # We have reworked collect2
11160 # We have old collect2
11161 hardcode_direct=unsupported
11162 # It fails to find uninstalled libraries when the uninstalled
11163 # path is not listed in the libpath. Setting hardcode_minus_L
11164 # to unsupported forces relinking
11165 hardcode_minus_L=yes
11166 hardcode_libdir_flag_spec='-L$libdir'
11167 hardcode_libdir_separator=
11171 shared_flag='-shared'
11172 if test yes = "$aix_use_runtimelinking"; then
11173 shared_flag="$shared_flag "'$wl-G'
11175 # Need to ensure runtime linking is disabled for the traditional
11176 # shared library, or the linker may eventually find shared libraries
11177 # /with/ Import File - we do not want to mix them.
11178 shared_flag_aix='-shared'
11179 shared_flag_svr4='-shared $wl-G'
11182 if test ia64 = "$host_cpu"; then
11183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11184 # chokes on -Wl,-G. The following line is correct:
11187 if test yes = "$aix_use_runtimelinking"; then
11188 shared_flag='$wl-G'
11190 shared_flag='$wl-bM:SRE'
11192 shared_flag_aix='$wl-bM:SRE'
11193 shared_flag_svr4='$wl-G'
11197 export_dynamic_flag_spec='$wl-bexpall'
11198 # It seems that -bexpall does not export symbols beginning with
11199 # underscore (_), so it is better to generate a list of symbols to export.
11200 always_export_symbols=yes
11201 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11202 # Warning - without using the other runtime loading flags (-brtl),
11203 # -berok will link without error, but may produce a broken library.
11204 allow_undefined_flag='-berok'
11205 # Determine the default libpath from the value encoded in an
11206 # empty executable.
11207 if test set = "${lt_cv_aix_libpath+set}"; then
11208 aix_libpath=$lt_cv_aix_libpath
11210 if test ${lt_cv_aix_libpath_+y}
11212 printf %s "(cached) " >&6
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11225 if ac_fn_c_try_link "$LINENO"
11228 lt_aix_libpath_sed='
11229 /Import File Strings/,/^$/ {
11231 s/^0 *\([^ ]*\) *$/\1/
11235 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11236 # Check for a 64-bit object if we didn't find anything.
11237 if test -z "$lt_cv_aix_libpath_"; then
11238 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11242 conftest$ac_exeext conftest.$ac_ext
11243 if test -z "$lt_cv_aix_libpath_"; then
11244 lt_cv_aix_libpath_=/usr/lib:/lib
11249 aix_libpath=$lt_cv_aix_libpath_
11252 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11253 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
11255 if test ia64 = "$host_cpu"; then
11256 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11257 allow_undefined_flag="-z nodefs"
11258 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"
11260 # Determine the default libpath from the value encoded in an
11261 # empty executable.
11262 if test set = "${lt_cv_aix_libpath+set}"; then
11263 aix_libpath=$lt_cv_aix_libpath
11265 if test ${lt_cv_aix_libpath_+y}
11267 printf %s "(cached) " >&6
11269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11280 if ac_fn_c_try_link "$LINENO"
11283 lt_aix_libpath_sed='
11284 /Import File Strings/,/^$/ {
11286 s/^0 *\([^ ]*\) *$/\1/
11290 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11291 # Check for a 64-bit object if we didn't find anything.
11292 if test -z "$lt_cv_aix_libpath_"; then
11293 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11297 conftest$ac_exeext conftest.$ac_ext
11298 if test -z "$lt_cv_aix_libpath_"; then
11299 lt_cv_aix_libpath_=/usr/lib:/lib
11304 aix_libpath=$lt_cv_aix_libpath_
11307 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11308 # Warning - without using the other run time loading flags,
11309 # -berok will link without error, but may produce a broken library.
11310 no_undefined_flag=' $wl-bernotok'
11311 allow_undefined_flag=' $wl-berok'
11312 if test yes = "$with_gnu_ld"; then
11313 # We only use this code for GNU lds that support --whole-archive.
11314 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11316 # Exported symbols can be pulled into shared objects from archives
11317 whole_archive_flag_spec='$convenience'
11319 archive_cmds_need_lc=yes
11320 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11321 # -brtl affects multiple linker settings, -berok does not and is overridden later
11322 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11323 if test svr4 != "$with_aix_soname"; then
11324 # This is similar to how AIX traditionally builds its shared libraries.
11325 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'
11327 if test aix != "$with_aix_soname"; then
11328 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'
11330 # used by -dlpreopen to get the symbols
11331 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11333 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11341 # see comment about AmigaOS4 .so support
11342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11343 archive_expsym_cmds=''
11346 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)'
11347 hardcode_libdir_flag_spec='-L$libdir'
11348 hardcode_minus_L=yes
11354 export_dynamic_flag_spec=-rdynamic
11357 cygwin* | mingw* | pw32* | cegcc*)
11358 # When not using gcc, we currently assume that we are using
11359 # Microsoft Visual C++ or Intel C++ Compiler.
11360 # hardcode_libdir_flag_spec is actually meaningless, as there is
11361 # no search path for DLLs.
11362 case $cc_basename in
11364 # Native MSVC or ICC
11365 hardcode_libdir_flag_spec=' '
11366 allow_undefined_flag=unsupported
11367 always_export_symbols=yes
11369 # Tell ltmain to make .lib files, not .a files.
11371 # Tell ltmain to make .dll files, not .so files.
11373 # FIXME: Setting linknames here is a bad hack.
11374 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11375 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11376 cp "$export_symbols" "$output_objdir/$soname.def";
11377 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11379 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11381 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11383 # The linker will not automatically build a static lib if we build a DLL.
11384 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11385 enable_shared_with_static_runtimes=yes
11386 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11387 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11389 old_postinstall_cmds='chmod 644 $oldlib'
11390 postlink_cmds='lt_outputfile="@OUTPUT@"~
11391 lt_tool_outputfile="@TOOL_OUTPUT@"~
11392 case $lt_outputfile in
11395 lt_outputfile=$lt_outputfile.exe
11396 lt_tool_outputfile=$lt_tool_outputfile.exe
11399 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11400 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11401 $RM "$lt_outputfile.manifest";
11405 # Assume MSVC and ICC wrapper
11406 hardcode_libdir_flag_spec=' '
11407 allow_undefined_flag=unsupported
11408 # Tell ltmain to make .lib files, not .a files.
11410 # Tell ltmain to make .dll files, not .so files.
11412 # FIXME: Setting linknames here is a bad hack.
11413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11414 # The linker will automatically build a .lib file if we build a DLL.
11415 old_archive_from_new_cmds='true'
11416 # FIXME: Should let the user specify the lib program.
11417 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11418 enable_shared_with_static_runtimes=yes
11423 darwin* | rhapsody*)
11426 archive_cmds_need_lc=no
11428 hardcode_automatic=yes
11429 hardcode_shlibpath_var=unsupported
11430 if test yes = "$lt_cv_ld_force_load"; then
11431 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\"`'
11434 whole_archive_flag_spec=''
11436 link_all_deplibs=yes
11437 allow_undefined_flag=$_lt_dar_allow_undefined
11438 case $cc_basename in
11439 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11440 *) _lt_dar_can_shared=$GCC ;;
11442 if test yes = "$_lt_dar_can_shared"; then
11443 output_verbose_link_cmd=func_echo_all
11444 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11445 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11446 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"
11447 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"
11456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11457 hardcode_libdir_flag_spec='-L$libdir'
11458 hardcode_shlibpath_var=no
11461 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11462 # support. Future versions do this automatically, but an explicit c++rt0.o
11463 # does not break anything, and helps significantly (at the cost of a little
11466 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11467 hardcode_libdir_flag_spec='-R$libdir'
11468 hardcode_direct=yes
11469 hardcode_shlibpath_var=no
11472 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11475 hardcode_direct=yes
11476 hardcode_minus_L=yes
11477 hardcode_shlibpath_var=no
11480 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11481 freebsd* | dragonfly* | midnightbsd*)
11482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11483 hardcode_libdir_flag_spec='-R$libdir'
11484 hardcode_direct=yes
11485 hardcode_shlibpath_var=no
11489 if test yes = "$GCC"; then
11490 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'
11492 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'
11494 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11495 hardcode_libdir_separator=:
11496 hardcode_direct=yes
11498 # hardcode_minus_L: Not really in the search PATH,
11499 # but as the default location of the library.
11500 hardcode_minus_L=yes
11501 export_dynamic_flag_spec='$wl-E'
11505 if test yes,no = "$GCC,$with_gnu_ld"; then
11506 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11508 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11510 if test no = "$with_gnu_ld"; then
11511 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11512 hardcode_libdir_separator=:
11513 hardcode_direct=yes
11514 hardcode_direct_absolute=yes
11515 export_dynamic_flag_spec='$wl-E'
11516 # hardcode_minus_L: Not really in the search PATH,
11517 # but as the default location of the library.
11518 hardcode_minus_L=yes
11523 if test yes,no = "$GCC,$with_gnu_ld"; then
11526 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11529 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11532 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11538 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11541 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11545 # Older versions of the 11.00 compiler do not understand -b yet
11546 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11548 printf %s "checking if $CC understands -b... " >&6; }
11549 if test ${lt_cv_prog_compiler__b+y}
11551 printf %s "(cached) " >&6
11553 lt_cv_prog_compiler__b=no
11554 save_LDFLAGS=$LDFLAGS
11555 LDFLAGS="$LDFLAGS -b"
11556 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11558 # The linker can only warn and ignore the option if not recognized
11559 # So say no if there are warnings
11560 if test -s conftest.err; then
11561 # Append any errors to the config.log.
11562 cat conftest.err 1>&5
11563 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11565 if diff conftest.exp conftest.er2 >/dev/null; then
11566 lt_cv_prog_compiler__b=yes
11569 lt_cv_prog_compiler__b=yes
11573 LDFLAGS=$save_LDFLAGS
11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11577 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11579 if test yes = "$lt_cv_prog_compiler__b"; then
11580 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11582 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11588 if test no = "$with_gnu_ld"; then
11589 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11590 hardcode_libdir_separator=:
11595 hardcode_shlibpath_var=no
11598 hardcode_direct=yes
11599 hardcode_direct_absolute=yes
11600 export_dynamic_flag_spec='$wl-E'
11602 # hardcode_minus_L: Not really in the search PATH,
11603 # but as the default location of the library.
11604 hardcode_minus_L=yes
11610 irix5* | irix6* | nonstopux*)
11611 if test yes = "$GCC"; then
11612 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'
11613 # Try to use the -exported_symbol ld option, if it does not
11614 # work, assume that -exports_file does not work either and
11615 # implicitly export all symbols.
11616 # This should be the same for all languages, so no per-tag cache variable.
11617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11618 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11619 if test ${lt_cv_irix_exported_symbol+y}
11621 printf %s "(cached) " >&6
11623 save_LDFLAGS=$LDFLAGS
11624 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627 int foo (void) { return 0; }
11629 if ac_fn_c_try_link "$LINENO"
11631 lt_cv_irix_exported_symbol=yes
11633 lt_cv_irix_exported_symbol=no
11635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LDFLAGS=$save_LDFLAGS
11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11640 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11641 if test yes = "$lt_cv_irix_exported_symbol"; then
11642 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'
11644 link_all_deplibs=no
11646 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'
11647 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'
11649 archive_cmds_need_lc='no'
11650 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11651 hardcode_libdir_separator=:
11653 link_all_deplibs=yes
11657 case $cc_basename in
11659 # Fabrice Bellard et al's Tiny C Compiler
11661 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11662 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11667 netbsd* | netbsdelf*-gnu)
11668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11671 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11673 hardcode_libdir_flag_spec='-R$libdir'
11674 hardcode_direct=yes
11675 hardcode_shlibpath_var=no
11679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11680 hardcode_direct=yes
11681 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11682 hardcode_libdir_separator=:
11683 hardcode_shlibpath_var=no
11689 openbsd* | bitrig*)
11690 if test -f /usr/libexec/ld.so; then
11691 hardcode_direct=yes
11692 hardcode_shlibpath_var=no
11693 hardcode_direct_absolute=yes
11694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11696 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11697 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11698 export_dynamic_flag_spec='$wl-E'
11700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11701 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11709 hardcode_libdir_flag_spec='-L$libdir'
11710 hardcode_minus_L=yes
11711 allow_undefined_flag=unsupported
11713 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11714 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11715 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11716 $ECHO EXPORTS >> $output_objdir/$libname.def~
11717 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11718 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11719 emximp -o $lib $output_objdir/$libname.def'
11720 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11721 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11722 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11723 $ECHO EXPORTS >> $output_objdir/$libname.def~
11724 prefix_cmds="$SED"~
11725 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11726 prefix_cmds="$prefix_cmds -e 1d";
11728 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11729 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11730 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11731 emximp -o $lib $output_objdir/$libname.def'
11732 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11733 enable_shared_with_static_runtimes=yes
11738 if test yes = "$GCC"; then
11739 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11740 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'
11742 allow_undefined_flag=' -expect_unresolved \*'
11743 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'
11745 archive_cmds_need_lc='no'
11746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11747 hardcode_libdir_separator=:
11750 osf4* | osf5*) # as osf3* with the addition of -msym flag
11751 if test yes = "$GCC"; then
11752 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11753 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'
11754 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11756 allow_undefined_flag=' -expect_unresolved \*'
11757 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'
11758 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~
11759 $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'
11761 # Both c and cxx compiler support -rpath directly
11762 hardcode_libdir_flag_spec='-rpath $libdir'
11764 archive_cmds_need_lc='no'
11765 hardcode_libdir_separator=:
11769 no_undefined_flag=' -z defs'
11770 if test yes = "$GCC"; then
11772 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11774 $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'
11776 case `$CC -V 2>&1` in
11779 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11781 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11785 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11787 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11791 hardcode_libdir_flag_spec='-R$libdir'
11792 hardcode_shlibpath_var=no
11794 solaris2.[0-5] | solaris2.[0-5].*) ;;
11796 # The compiler driver will combine and reorder linker options,
11797 # but understands '-z linker_flag'. GCC discards it without '$wl',
11798 # but is careful enough not to reorder.
11799 # Supported since Solaris 2.6 (maybe 2.5.1?)
11800 if test yes = "$GCC"; then
11801 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11803 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11807 link_all_deplibs=yes
11811 if test sequent = "$host_vendor"; then
11812 # Use $CC to link under sequent, because it throws in some extra .o
11813 # files that make .init and .fini sections work.
11814 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11816 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11818 hardcode_libdir_flag_spec='-L$libdir'
11819 hardcode_direct=yes
11820 hardcode_minus_L=yes
11821 hardcode_shlibpath_var=no
11825 case $host_vendor in
11827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11828 hardcode_direct=yes # is this really true???
11831 ## LD is ld it makes a PLAMLIB
11832 ## CC just makes a GrossModule.
11833 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11834 reload_cmds='$CC -r -o $output$reload_objs'
11838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11839 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11842 runpath_var='LD_RUN_PATH'
11843 hardcode_shlibpath_var=no
11847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11848 hardcode_shlibpath_var=no
11849 export_dynamic_flag_spec='-Bexport'
11853 if test -d /usr/nec; then
11854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11855 hardcode_shlibpath_var=no
11856 runpath_var=LD_RUN_PATH
11857 hardcode_runpath_var=yes
11862 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11863 no_undefined_flag='$wl-z,text'
11864 archive_cmds_need_lc=no
11865 hardcode_shlibpath_var=no
11866 runpath_var='LD_RUN_PATH'
11868 if test yes = "$GCC"; then
11869 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11870 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11872 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11873 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11877 sysv5* | sco3.2v5* | sco5v6*)
11878 # Note: We CANNOT use -z defs as we might desire, because we do not
11879 # link with -lc, and that would cause any symbols used from libc to
11880 # always be unresolved, which means just about no library would
11881 # ever link correctly. If we're not using GNU ld we use -z text
11882 # though, which does catch some bad symbols but isn't as heavy-handed
11884 no_undefined_flag='$wl-z,text'
11885 allow_undefined_flag='$wl-z,nodefs'
11886 archive_cmds_need_lc=no
11887 hardcode_shlibpath_var=no
11888 hardcode_libdir_flag_spec='$wl-R,$libdir'
11889 hardcode_libdir_separator=':'
11890 link_all_deplibs=yes
11891 export_dynamic_flag_spec='$wl-Bexport'
11892 runpath_var='LD_RUN_PATH'
11894 if test yes = "$GCC"; then
11895 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11896 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11898 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11899 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11905 hardcode_libdir_flag_spec='-L$libdir'
11906 hardcode_shlibpath_var=no
11914 if test sni = "$host_vendor"; then
11916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11917 export_dynamic_flag_spec='$wl-Blargedynsym'
11923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11924 printf "%s\n" "$ld_shlibs" >&6; }
11925 test no = "$ld_shlibs" && can_build_shared=no
11927 with_gnu_ld=$with_gnu_ld
11944 # Do we need to explicitly link libc?
11946 case "x$archive_cmds_need_lc" in
11948 # Assume -lc should be added
11949 archive_cmds_need_lc=yes
11951 if test yes,yes = "$GCC,$enable_shared"; then
11952 case $archive_cmds in
11954 # FIXME: we may have to deal with multi-command sequences.
11957 # Test whether the compiler implicitly links with -lc since on some
11958 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11959 # to ld, don't add -lc before -lgcc.
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11961 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11962 if test ${lt_cv_archive_cmds_need_lc+y}
11964 printf %s "(cached) " >&6
11967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11970 (eval $ac_compile) 2>&5
11972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973 test $ac_status = 0; } 2>conftest.err; then
11976 libobjs=conftest.$ac_objext
11978 wl=$lt_prog_compiler_wl
11979 pic_flag=$lt_prog_compiler_pic
11985 lt_save_allow_undefined_flag=$allow_undefined_flag
11986 allow_undefined_flag=
11987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11988 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11991 test $ac_status = 0; }
11993 lt_cv_archive_cmds_need_lc=no
11995 lt_cv_archive_cmds_need_lc=yes
11997 allow_undefined_flag=$lt_save_allow_undefined_flag
11999 cat conftest.err 1>&5
12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12005 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12006 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12165 printf %s "checking dynamic linker characteristics... " >&6; }
12167 if test yes = "$GCC"; then
12169 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12170 *) lt_awk_arg='/^libraries:/' ;;
12173 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12174 *) lt_sed_strip_eq='s|=/|/|g' ;;
12176 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12177 case $lt_search_path_spec in
12179 # if the path contains ";" then we assume it to be the separator
12180 # otherwise default to the standard path separator (i.e. ":") - it is
12181 # assumed that no part of a normal pathname contains ";" but that should
12182 # okay in the real world where ";" in dirpaths is itself problematic.
12183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12186 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12189 # Ok, now we have the path, separated by spaces, we can step through it
12190 # and add multilib dir if necessary...
12191 lt_tmp_lt_search_path_spec=
12192 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12193 # ...but if some path component already ends with the multilib dir we assume
12194 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12195 case "$lt_multi_os_dir; $lt_search_path_spec " in
12196 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12200 for lt_sys_path in $lt_search_path_spec; do
12201 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12203 elif test -n "$lt_multi_os_dir"; then
12204 test -d "$lt_sys_path" && \
12205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12208 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12209 BEGIN {RS = " "; FS = "/|\n";} {
12212 for (lt_i = NF; lt_i > 0; lt_i--) {
12213 if ($lt_i != "" && $lt_i != ".") {
12214 if ($lt_i == "..") {
12217 if (lt_count == 0) {
12218 lt_foo = "/" $lt_i lt_foo;
12225 if (lt_foo != "") { lt_freq[lt_foo]++; }
12226 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12228 # AWK program above erroneously prepends '/' to C:/dos/paths
12231 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12232 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12234 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12238 library_names_spec=
12239 libname_spec='lib$name'
12243 postuninstall_cmds=
12247 shlibpath_overrides_runpath=unknown
12249 dynamic_linker="$host_os ld.so"
12250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12251 need_lib_prefix=unknown
12252 hardcode_into_libs=no
12254 # when you set need_version to no, make sure it does not cause -set_version
12255 # flags to be left without arguments
12256 need_version=unknown
12262 version_type=linux # correct to gnu/linux during the next big refactor
12263 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12264 shlibpath_var=LIBPATH
12266 # AIX 3 has no versioning support, so we append a major version to the name.
12267 soname_spec='$libname$release$shared_ext$major'
12271 version_type=linux # correct to gnu/linux during the next big refactor
12274 hardcode_into_libs=yes
12275 if test ia64 = "$host_cpu"; then
12276 # AIX 5 supports IA64
12277 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12278 shlibpath_var=LD_LIBRARY_PATH
12280 # With GCC up to 2.95.x, collect2 would create an import file
12281 # for dependence libraries. The import file would start with
12282 # the line '#! .'. This would cause the generated library to
12283 # depend on '.', always an invalid library. This was fixed in
12284 # development snapshots of GCC prior to 3.0.
12286 aix4 | aix4.[01] | aix4.[01].*)
12287 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12289 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12292 can_build_shared=no
12296 # Using Import Files as archive members, it is possible to support
12297 # filename-based versioning of shared library archives on AIX. While
12298 # this would work for both with and without runtime linking, it will
12299 # prevent static linking of such archives. So we do filename-based
12300 # shared library versioning with .so extension only, which is used
12301 # when both runtime linking and shared linking is enabled.
12302 # Unfortunately, runtime linking may impact performance, so we do
12303 # not want this to be the default eventually. Also, we use the
12304 # versioned .so libs for executables only if there is the -brtl
12305 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12306 # To allow for filename-based versioning support, we need to create
12307 # libNAME.so.V as an archive file, containing:
12308 # *) an Import File, referring to the versioned filename of the
12309 # archive as well as the shared archive member, telling the
12310 # bitwidth (32 or 64) of that shared object, and providing the
12311 # list of exported symbols of that shared object, eventually
12312 # decorated with the 'weak' keyword
12313 # *) the shared object with the F_LOADONLY flag set, to really avoid
12314 # it being seen by the linker.
12315 # At run time we better use the real file rather than another symlink,
12316 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12318 case $with_aix_soname,$aix_use_runtimelinking in
12319 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12320 # soname into executable. Probably we can add versioning support to
12321 # collect2, so additional links can be useful in future.
12322 aix,yes) # traditional libtool
12323 dynamic_linker='AIX unversionable lib.so'
12324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12325 # instead of lib<name>.a to let people know that these are not
12326 # typical AIX shared libraries.
12327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12329 aix,no) # traditional AIX only
12330 dynamic_linker='AIX lib.a(lib.so.V)'
12331 # We preserve .a as extension for shared libraries through AIX4.2
12332 # and later when we are not doing run time linking.
12333 library_names_spec='$libname$release.a $libname.a'
12334 soname_spec='$libname$release$shared_ext$major'
12336 svr4,*) # full svr4 only
12337 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12338 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12339 # We do not specify a path in Import Files, so LIBPATH fires.
12340 shlibpath_overrides_runpath=yes
12342 *,yes) # both, prefer svr4
12343 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12344 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12345 # unpreferred sharedlib libNAME.a needs extra handling
12346 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"'
12347 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"'
12348 # We do not specify a path in Import Files, so LIBPATH fires.
12349 shlibpath_overrides_runpath=yes
12351 *,no) # both, prefer aix
12352 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12353 library_names_spec='$libname$release.a $libname.a'
12354 soname_spec='$libname$release$shared_ext$major'
12355 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12356 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)'
12357 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"'
12360 shlibpath_var=LIBPATH
12367 # Since July 2007 AmigaOS4 officially supports .so libraries.
12368 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12372 library_names_spec='$libname.ixlibrary $libname.a'
12373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12374 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'
12380 library_names_spec='$libname$shared_ext'
12381 dynamic_linker="$host_os ld.so"
12382 shlibpath_var=LIBRARY_PATH
12386 version_type=linux # correct to gnu/linux during the next big refactor
12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389 soname_spec='$libname$release$shared_ext$major'
12390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12394 # the default ld.so.conf also contains /usr/contrib/lib and
12395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12396 # libtool to hard-code these into programs
12399 cygwin* | mingw* | pw32* | cegcc*)
12400 version_type=windows
12405 case $GCC,$cc_basename in
12408 library_names_spec='$libname.dll.a'
12409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12410 postinstall_cmds='base_file=`basename \$file`~
12411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12412 dldir=$destdir/`dirname \$dlpath`~
12413 test -d \$dldir || mkdir -p \$dldir~
12414 $install_prog $dir/$dlname \$dldir/$dlname~
12415 chmod a+x \$dldir/$dlname~
12416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12420 dlpath=$dir/\$dldll~
12422 shlibpath_overrides_runpath=yes
12426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12427 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12429 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12432 # MinGW DLLs use traditional 'lib' prefix
12433 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12436 # pw32 DLLs use 'pw' prefix rather than 'lib'
12437 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12440 dynamic_linker='Win32 ld.exe'
12444 # Native MSVC or ICC
12445 libname_spec='$name'
12446 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12447 library_names_spec='$libname.dll.lib'
12451 sys_lib_search_path_spec=
12454 for lt_path in $LIB
12457 # Let DOS variable expansion print the short 8.3 style file name.
12458 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12459 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12462 # Convert to MSYS style.
12463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12466 # Convert to unix form, then to dos form, then back to unix form
12467 # but this time dos style (no spaces!) so that the unix form looks
12468 # like /cygdrive/c/PROGRA~1:/cygdr...
12469 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12470 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12471 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12474 sys_lib_search_path_spec=$LIB
12475 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12476 # It is most probably a Windows format PATH.
12477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12481 # FIXME: find the short name or the path components, as spaces are
12482 # common. (e.g. "Program Files" -> "PROGRA~1")
12486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12487 postinstall_cmds='base_file=`basename \$file`~
12488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12489 dldir=$destdir/`dirname \$dlpath`~
12490 test -d \$dldir || mkdir -p \$dldir~
12491 $install_prog $dir/$dlname \$dldir/$dlname'
12492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12493 dlpath=$dir/\$dldll~
12495 shlibpath_overrides_runpath=yes
12496 dynamic_linker='Win32 link.exe'
12500 # Assume MSVC and ICC wrapper
12501 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12502 dynamic_linker='Win32 ld.exe'
12505 # FIXME: first we should search . and the directory the executable is in
12509 darwin* | rhapsody*)
12510 dynamic_linker="$host_os dyld"
12511 version_type=darwin
12514 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12515 soname_spec='$libname$release$major$shared_ext'
12516 shlibpath_overrides_runpath=yes
12517 shlibpath_var=DYLD_LIBRARY_PATH
12518 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12520 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12525 version_type=linux # correct to gnu/linux during the next big refactor
12528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12529 soname_spec='$libname$release$shared_ext$major'
12530 shlibpath_var=LD_LIBRARY_PATH
12533 freebsd* | dragonfly* | midnightbsd*)
12534 # DragonFly does not have aout. When/if they implement a new
12535 # versioning mechanism, adjust this.
12536 if test -x /usr/bin/objformat; then
12537 objformat=`/usr/bin/objformat`
12540 freebsd[23].*) objformat=aout ;;
12541 *) objformat=elf ;;
12544 version_type=freebsd-$objformat
12545 case $version_type in
12547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12548 soname_spec='$libname$release$shared_ext$major'
12553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12557 shlibpath_var=LD_LIBRARY_PATH
12560 shlibpath_overrides_runpath=yes
12562 freebsd3.[01]* | freebsdelf3.[01]*)
12563 shlibpath_overrides_runpath=yes
12564 hardcode_into_libs=yes
12566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12568 shlibpath_overrides_runpath=no
12569 hardcode_into_libs=yes
12571 *) # from 4.6 on, and DragonFly
12572 shlibpath_overrides_runpath=yes
12573 hardcode_into_libs=yes
12579 version_type=linux # correct to gnu/linux during the next big refactor
12582 dynamic_linker="$host_os runtime_loader"
12583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12584 soname_spec='$libname$release$shared_ext$major'
12585 shlibpath_var=LIBRARY_PATH
12586 shlibpath_overrides_runpath=no
12587 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12588 hardcode_into_libs=yes
12591 hpux9* | hpux10* | hpux11*)
12592 # Give a soname corresponding to the major version so that dld.sl refuses to
12593 # link against other versions.
12600 hardcode_into_libs=yes
12601 dynamic_linker="$host_os dld.so"
12602 shlibpath_var=LD_LIBRARY_PATH
12603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12605 soname_spec='$libname$release$shared_ext$major'
12606 if test 32 = "$HPUX_IA64_MODE"; then
12607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12608 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12611 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12616 hardcode_into_libs=yes
12617 dynamic_linker="$host_os dld.sl"
12618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12621 soname_spec='$libname$release$shared_ext$major'
12622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12627 dynamic_linker="$host_os dld.sl"
12628 shlibpath_var=SHLIB_PATH
12629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12631 soname_spec='$libname$release$shared_ext$major'
12634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12635 postinstall_cmds='chmod 555 $lib'
12636 # or fails outright, so override atomically:
12637 install_override_mode=555
12641 version_type=linux # correct to gnu/linux during the next big refactor
12644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12645 soname_spec='$libname$release$shared_ext$major'
12646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12647 shlibpath_var=LD_LIBRARY_PATH
12648 shlibpath_overrides_runpath=no
12649 hardcode_into_libs=yes
12652 irix5* | irix6* | nonstopux*)
12654 nonstopux*) version_type=nonstopux ;;
12656 if test yes = "$lt_cv_prog_gnu_ld"; then
12657 version_type=linux # correct to gnu/linux during the next big refactor
12664 soname_spec='$libname$release$shared_ext$major'
12665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12667 irix5* | nonstopux*)
12668 libsuff= shlibsuff=
12671 case $LD in # libtool.m4 will add one of these switches to LD
12672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12673 libsuff= shlibsuff= libmagic=32-bit;;
12674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12675 libsuff=32 shlibsuff=N32 libmagic=N32;;
12676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12678 *) libsuff= shlibsuff= libmagic=never-match;;
12682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12683 shlibpath_overrides_runpath=no
12684 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12685 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12686 hardcode_into_libs=yes
12689 # No shared lib support for Linux oldld, aout, or coff.
12690 linux*oldld* | linux*aout* | linux*coff*)
12695 version_type=none # Android doesn't support versioned libraries.
12698 library_names_spec='$libname$release$shared_ext'
12699 soname_spec='$libname$release$shared_ext'
12701 shlibpath_var=LD_LIBRARY_PATH
12702 shlibpath_overrides_runpath=yes
12704 # This implies no fast_install, which is unacceptable.
12705 # Some rework will be needed to allow for fast_install
12706 # before this can be enabled.
12707 hardcode_into_libs=yes
12709 dynamic_linker='Android linker'
12710 # Don't embed -rpath directories since the linker doesn't support them.
12711 hardcode_libdir_flag_spec='-L$libdir'
12714 # This must be glibc/ELF.
12715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12716 version_type=linux # correct to gnu/linux during the next big refactor
12719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12720 soname_spec='$libname$release$shared_ext$major'
12721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 shlibpath_overrides_runpath=no
12725 # Some binutils ld are patched to set DT_RUNPATH
12726 if test ${lt_cv_shlibpath_overrides_runpath+y}
12728 printf %s "(cached) " >&6
12730 lt_cv_shlibpath_overrides_runpath=no
12731 save_LDFLAGS=$LDFLAGS
12732 save_libdir=$libdir
12733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12746 if ac_fn_c_try_link "$LINENO"
12748 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12750 lt_cv_shlibpath_overrides_runpath=yes
12753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12754 conftest$ac_exeext conftest.$ac_ext
12755 LDFLAGS=$save_LDFLAGS
12756 libdir=$save_libdir
12760 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12762 # This implies no fast_install, which is unacceptable.
12763 # Some rework will be needed to allow for fast_install
12764 # before this can be enabled.
12765 hardcode_into_libs=yes
12767 # Ideally, we could use ldconfig to report *all* directores which are
12768 # searched for libraries, however this is still not possible. Aside from not
12769 # being certain /sbin/ldconfig is available, command
12770 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12771 # even though it is searched at run-time. Try to do the best guess by
12772 # appending ld.so.conf contents (and includes) to the search path.
12773 if test -f /etc/ld.so.conf; then
12774 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' ' '`
12775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12778 # We used to test for /lib/ld.so.1 and disable shared libraries on
12779 # powerpc, because MkLinux only supported shared libraries with the
12780 # GNU dynamic linker. Since this was broken with cross compilers,
12781 # most powerpc-linux boxes support dynamic linking these days and
12782 # people can always --disable-shared, the test was removed, and we
12783 # assume the GNU/Linux dynamic linker is in use.
12784 dynamic_linker='GNU/Linux ld.so'
12791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12792 soname_spec='${libname}${release}${shared_ext}$major'
12793 shlibpath_var=LD_LIBRARY_PATH
12794 shlibpath_overrides_runpath=no
12795 hardcode_into_libs=yes
12796 dynamic_linker='NetBSD ld.elf_so'
12803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12804 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12806 dynamic_linker='NetBSD (a.out) ld.so'
12808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12809 soname_spec='$libname$release$shared_ext$major'
12810 dynamic_linker='NetBSD ld.elf_so'
12812 shlibpath_var=LD_LIBRARY_PATH
12813 shlibpath_overrides_runpath=yes
12814 hardcode_into_libs=yes
12818 version_type=linux # correct to gnu/linux during the next big refactor
12819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12820 shlibpath_var=LD_LIBRARY_PATH
12821 shlibpath_overrides_runpath=yes
12828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12829 soname_spec='$libname$release$shared_ext$major'
12830 shlibpath_var=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath=no
12832 hardcode_into_libs=yes
12833 dynamic_linker='ldqnx.so'
12836 openbsd* | bitrig*)
12838 sys_lib_dlsearch_path_spec=/usr/lib
12840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12845 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12847 shlibpath_var=LD_LIBRARY_PATH
12848 shlibpath_overrides_runpath=yes
12852 libname_spec='$name'
12853 version_type=windows
12857 # OS/2 can only load a DLL with a base name of 8 characters or less.
12858 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12859 v=$($ECHO $release$versuffix | tr -d .-);
12860 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12861 $ECHO $n$v`$shared_ext'
12862 library_names_spec='${libname}_dll.$libext'
12863 dynamic_linker='OS/2 ld.exe'
12864 shlibpath_var=BEGINLIBPATH
12865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12867 postinstall_cmds='base_file=`basename \$file`~
12868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12869 dldir=$destdir/`dirname \$dlpath`~
12870 test -d \$dldir || mkdir -p \$dldir~
12871 $install_prog $dir/$dlname \$dldir/$dlname~
12872 chmod a+x \$dldir/$dlname~
12873 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12874 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12877 dlpath=$dir/\$dldll~
12881 osf3* | osf4* | osf5*)
12885 soname_spec='$libname$release$shared_ext$major'
12886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12887 shlibpath_var=LD_LIBRARY_PATH
12888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12897 version_type=linux # correct to gnu/linux during the next big refactor
12900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12901 soname_spec='$libname$release$shared_ext$major'
12902 shlibpath_var=LD_LIBRARY_PATH
12903 shlibpath_overrides_runpath=yes
12904 hardcode_into_libs=yes
12905 # ldd complains unless libraries are executable
12906 postinstall_cmds='chmod +x $lib'
12911 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12912 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12913 shlibpath_var=LD_LIBRARY_PATH
12914 shlibpath_overrides_runpath=yes
12915 if test yes = "$with_gnu_ld"; then
12922 version_type=linux # correct to gnu/linux during the next big refactor
12923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12924 soname_spec='$libname$release$shared_ext$major'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 case $host_vendor in
12928 shlibpath_overrides_runpath=no
12930 runpath_var=LD_RUN_PATH
12938 shlibpath_overrides_runpath=no
12939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12945 if test -d /usr/nec; then
12946 version_type=linux # correct to gnu/linux during the next big refactor
12947 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12948 soname_spec='$libname$shared_ext.$major'
12949 shlibpath_var=LD_LIBRARY_PATH
12953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12958 soname_spec='$libname$release$shared_ext$major'
12959 shlibpath_var=LD_LIBRARY_PATH
12960 shlibpath_overrides_runpath=yes
12961 hardcode_into_libs=yes
12962 if test yes = "$with_gnu_ld"; then
12963 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12972 sys_lib_dlsearch_path_spec='/usr/lib'
12976 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12977 version_type=linux # correct to gnu/linux during the next big refactor
12980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 shlibpath_overrides_runpath=no
12983 hardcode_into_libs=yes
12987 version_type=linux # correct to gnu/linux during the next big refactor
12988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12989 soname_spec='$libname$release$shared_ext$major'
12990 shlibpath_var=LD_LIBRARY_PATH
12997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12998 printf "%s\n" "$dynamic_linker" >&6; }
12999 test no = "$dynamic_linker" && can_build_shared=no
13001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13002 if test yes = "$GCC"; then
13003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13006 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13007 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13010 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13011 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13014 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13015 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13017 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13018 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13020 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13021 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13120 printf %s "checking how to hardcode library paths into programs... " >&6; }
13122 if test -n "$hardcode_libdir_flag_spec" ||
13123 test -n "$runpath_var" ||
13124 test yes = "$hardcode_automatic"; then
13126 # We can hardcode non-existent directories.
13127 if test no != "$hardcode_direct" &&
13128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13129 # have to relink, otherwise we might link with an installed library
13130 # when we should be linking with a yet-to-be-installed one
13131 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13132 test no != "$hardcode_minus_L"; then
13133 # Linking always hardcodes the temporary library directory.
13134 hardcode_action=relink
13136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13137 hardcode_action=immediate
13140 # We cannot hardcode anything, or else we can only hardcode existing
13142 hardcode_action=unsupported
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13145 printf "%s\n" "$hardcode_action" >&6; }
13147 if test relink = "$hardcode_action" ||
13148 test yes = "$inherit_rpath"; then
13149 # Fast installation is not supported
13150 enable_fast_install=no
13151 elif test yes = "$shlibpath_overrides_runpath" ||
13152 test no = "$enable_shared"; then
13153 # Fast installation is not necessary
13154 enable_fast_install=needless
13162 if test yes != "$enable_dlopen"; then
13163 enable_dlopen=unknown
13164 enable_dlopen_self=unknown
13165 enable_dlopen_self_static=unknown
13172 lt_cv_dlopen=load_add_on
13174 lt_cv_dlopen_self=yes
13177 mingw* | pw32* | cegcc*)
13178 lt_cv_dlopen=LoadLibrary
13183 lt_cv_dlopen=dlopen
13188 # if libdl is installed we need to link against it
13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13190 printf %s "checking for dlopen in -ldl... " >&6; }
13191 if test ${ac_cv_lib_dl_dlopen+y}
13193 printf %s "(cached) " >&6
13195 ac_check_lib_save_LIBS=$LIBS
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13212 if ac_fn_c_try_link "$LINENO"
13214 ac_cv_lib_dl_dlopen=yes
13216 ac_cv_lib_dl_dlopen=no
13218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13219 conftest$ac_exeext conftest.$ac_ext
13220 LIBS=$ac_check_lib_save_LIBS
13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13223 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13224 if test "x$ac_cv_lib_dl_dlopen" = xyes
13226 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13231 lt_cv_dlopen_self=yes
13238 # Don't try to run any link tests for TPF. We know it's impossible
13239 # because TPF is a cross-compiler, and we know how we open DSOs.
13240 lt_cv_dlopen=dlopen
13242 lt_cv_dlopen_self=no
13246 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13247 if test "x$ac_cv_func_shl_load" = xyes
13249 lt_cv_dlopen=shl_load
13251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13252 printf %s "checking for shl_load in -ldld... " >&6; }
13253 if test ${ac_cv_lib_dld_shl_load+y}
13255 printf %s "(cached) " >&6
13257 ac_check_lib_save_LIBS=$LIBS
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13262 /* Override any GCC internal prototype to avoid an error.
13263 Use char because int might match the return type of a GCC
13264 builtin and then its argument prototype would still apply. */
13269 return shl_load ();
13274 if ac_fn_c_try_link "$LINENO"
13276 ac_cv_lib_dld_shl_load=yes
13278 ac_cv_lib_dld_shl_load=no
13280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13281 conftest$ac_exeext conftest.$ac_ext
13282 LIBS=$ac_check_lib_save_LIBS
13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13285 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13286 if test "x$ac_cv_lib_dld_shl_load" = xyes
13288 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13290 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13291 if test "x$ac_cv_func_dlopen" = xyes
13293 lt_cv_dlopen=dlopen
13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13296 printf %s "checking for dlopen in -ldl... " >&6; }
13297 if test ${ac_cv_lib_dl_dlopen+y}
13299 printf %s "(cached) " >&6
13301 ac_check_lib_save_LIBS=$LIBS
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13306 /* Override any GCC internal prototype to avoid an error.
13307 Use char because int might match the return type of a GCC
13308 builtin and then its argument prototype would still apply. */
13318 if ac_fn_c_try_link "$LINENO"
13320 ac_cv_lib_dl_dlopen=yes
13322 ac_cv_lib_dl_dlopen=no
13324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13325 conftest$ac_exeext conftest.$ac_ext
13326 LIBS=$ac_check_lib_save_LIBS
13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13329 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13330 if test "x$ac_cv_lib_dl_dlopen" = xyes
13332 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13335 printf %s "checking for dlopen in -lsvld... " >&6; }
13336 if test ${ac_cv_lib_svld_dlopen+y}
13338 printf %s "(cached) " >&6
13340 ac_check_lib_save_LIBS=$LIBS
13341 LIBS="-lsvld $LIBS"
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13345 /* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13357 if ac_fn_c_try_link "$LINENO"
13359 ac_cv_lib_svld_dlopen=yes
13361 ac_cv_lib_svld_dlopen=no
13363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13364 conftest$ac_exeext conftest.$ac_ext
13365 LIBS=$ac_check_lib_save_LIBS
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13368 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13369 if test "x$ac_cv_lib_svld_dlopen" = xyes
13371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13374 printf %s "checking for dld_link in -ldld... " >&6; }
13375 if test ${ac_cv_lib_dld_dld_link+y}
13377 printf %s "(cached) " >&6
13379 ac_check_lib_save_LIBS=$LIBS
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13384 /* Override any GCC internal prototype to avoid an error.
13385 Use char because int might match the return type of a GCC
13386 builtin and then its argument prototype would still apply. */
13391 return dld_link ();
13396 if ac_fn_c_try_link "$LINENO"
13398 ac_cv_lib_dld_dld_link=yes
13400 ac_cv_lib_dld_dld_link=no
13402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13403 conftest$ac_exeext conftest.$ac_ext
13404 LIBS=$ac_check_lib_save_LIBS
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13407 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13408 if test "x$ac_cv_lib_dld_dld_link" = xyes
13410 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13431 if test no = "$lt_cv_dlopen"; then
13437 case $lt_cv_dlopen in
13439 save_CPPFLAGS=$CPPFLAGS
13440 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13442 save_LDFLAGS=$LDFLAGS
13443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13446 LIBS="$lt_cv_dlopen_libs $LIBS"
13448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13449 printf %s "checking whether a program can dlopen itself... " >&6; }
13450 if test ${lt_cv_dlopen_self+y}
13452 printf %s "(cached) " >&6
13454 if test yes = "$cross_compiling"; then :
13455 lt_cv_dlopen_self=cross
13457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13458 lt_status=$lt_dlunknown
13459 cat > conftest.$ac_ext <<_LT_EOF
13460 #line $LINENO "configure"
13461 #include "confdefs.h"
13470 # define LT_DLGLOBAL RTLD_GLOBAL
13473 # define LT_DLGLOBAL DL_GLOBAL
13475 # define LT_DLGLOBAL 0
13479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13480 find out it does not work in some platform. */
13481 #ifndef LT_DLLAZY_OR_NOW
13483 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13486 # define LT_DLLAZY_OR_NOW DL_LAZY
13489 # define LT_DLLAZY_OR_NOW RTLD_NOW
13492 # define LT_DLLAZY_OR_NOW DL_NOW
13494 # define LT_DLLAZY_OR_NOW 0
13501 /* When -fvisibility=hidden is used, assume the code has been annotated
13502 correspondingly for the symbols needed. */
13503 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13504 int fnord () __attribute__((visibility("default")));
13507 int fnord () { return 42; }
13510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13511 int status = $lt_dlunknown;
13515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13518 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13519 else puts (dlerror ());
13521 /* dlclose (self); */
13529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13530 (eval $ac_link) 2>&5
13532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13533 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13534 (./conftest; exit; ) >&5 2>/dev/null
13536 case x$lt_status in
13537 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13538 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13539 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13542 # compilation failed
13543 lt_cv_dlopen_self=no
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13551 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13553 if test yes = "$lt_cv_dlopen_self"; then
13554 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13556 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13557 if test ${lt_cv_dlopen_self_static+y}
13559 printf %s "(cached) " >&6
13561 if test yes = "$cross_compiling"; then :
13562 lt_cv_dlopen_self_static=cross
13564 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13565 lt_status=$lt_dlunknown
13566 cat > conftest.$ac_ext <<_LT_EOF
13567 #line $LINENO "configure"
13568 #include "confdefs.h"
13577 # define LT_DLGLOBAL RTLD_GLOBAL
13580 # define LT_DLGLOBAL DL_GLOBAL
13582 # define LT_DLGLOBAL 0
13586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13587 find out it does not work in some platform. */
13588 #ifndef LT_DLLAZY_OR_NOW
13590 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13593 # define LT_DLLAZY_OR_NOW DL_LAZY
13596 # define LT_DLLAZY_OR_NOW RTLD_NOW
13599 # define LT_DLLAZY_OR_NOW DL_NOW
13601 # define LT_DLLAZY_OR_NOW 0
13608 /* When -fvisibility=hidden is used, assume the code has been annotated
13609 correspondingly for the symbols needed. */
13610 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13611 int fnord () __attribute__((visibility("default")));
13614 int fnord () { return 42; }
13617 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13618 int status = $lt_dlunknown;
13622 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13625 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13626 else puts (dlerror ());
13628 /* dlclose (self); */
13636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13637 (eval $ac_link) 2>&5
13639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13640 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13641 (./conftest; exit; ) >&5 2>/dev/null
13643 case x$lt_status in
13644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13646 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13649 # compilation failed
13650 lt_cv_dlopen_self_static=no
13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13658 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13661 CPPFLAGS=$save_CPPFLAGS
13662 LDFLAGS=$save_LDFLAGS
13667 case $lt_cv_dlopen_self in
13668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13669 *) enable_dlopen_self=unknown ;;
13672 case $lt_cv_dlopen_self_static in
13673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13674 *) enable_dlopen_self_static=unknown ;;
13696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13697 printf %s "checking whether stripping libraries is possible... " >&6; }
13698 if test -z "$STRIP"; then
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700 printf "%s\n" "no" >&6; }
13702 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13703 old_striplib="$STRIP --strip-debug"
13704 striplib="$STRIP --strip-unneeded"
13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13706 printf "%s\n" "yes" >&6; }
13710 # FIXME - insert some real tests, host_os isn't really good enough
13711 striplib="$STRIP -x"
13712 old_striplib="$STRIP -S"
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13714 printf "%s\n" "yes" >&6; }
13717 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13718 old_striplib="$STRIP --strip-debug"
13719 striplib="$STRIP --strip-unneeded"
13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13721 printf "%s\n" "yes" >&6; }
13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724 printf "%s\n" "no" >&6; }
13728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 printf "%s\n" "no" >&6; }
13746 # Report what library types will actually be built
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13748 printf %s "checking if libtool supports shared libraries... " >&6; }
13749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13750 printf "%s\n" "$can_build_shared" >&6; }
13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13753 printf %s "checking whether to build shared libraries... " >&6; }
13754 test no = "$can_build_shared" && enable_shared=no
13756 # On AIX, shared libraries and static libraries use the same namespace, and
13757 # are all built from PIC.
13760 test yes = "$enable_shared" && enable_static=no
13761 if test -n "$RANLIB"; then
13762 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13763 postinstall_cmds='$RANLIB $lib'
13768 if test ia64 != "$host_cpu"; then
13769 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13770 yes,aix,yes) ;; # shared object as lib.so file only
13771 yes,svr4,*) ;; # shared object as lib.so archive member only
13772 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13778 printf "%s\n" "$enable_shared" >&6; }
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13781 printf %s "checking whether to build static libraries... " >&6; }
13782 # Make sure either enable_shared or enable_static is yes.
13783 test yes = "$enable_shared" || enable_static=yes
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13785 printf "%s\n" "$enable_static" >&6; }
13792 ac_cpp='$CPP $CPPFLAGS'
13793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13799 if test -n "$CXX" && ( test no != "$CXX" &&
13800 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13801 (test g++ != "$CXX"))); then
13803 ac_cpp='$CXXCPP $CPPFLAGS'
13804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13808 printf %s "checking how to run the C++ preprocessor... " >&6; }
13809 if test -z "$CXXCPP"; then
13810 if test ${ac_cv_prog_CXXCPP+y}
13812 printf %s "(cached) " >&6
13814 # Double quotes because $CXX needs to be expanded
13815 for CXXCPP in "$CXX -E" cpp /lib/cpp
13817 ac_preproc_ok=false
13818 for ac_cxx_preproc_warn_flag in '' yes
13820 # Use a header file that comes with gcc, so configuring glibc
13821 # with a fresh cross-compiler works.
13822 # On the NeXT, cc -E runs the code through the compiler's parser,
13823 # not just through cpp. "Syntax error" is here to catch this case.
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <limits.h>
13829 if ac_fn_cxx_try_cpp "$LINENO"
13833 # Broken: fails on valid input.
13836 rm -f conftest.err conftest.i conftest.$ac_ext
13838 # OK, works on sane cases. Now check whether nonexistent headers
13839 # can be detected and how.
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13842 #include <ac_nonexistent.h>
13844 if ac_fn_cxx_try_cpp "$LINENO"
13846 # Broken: success on invalid input.
13849 # Passes both tests.
13853 rm -f conftest.err conftest.i conftest.$ac_ext
13856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13857 rm -f conftest.i conftest.err conftest.$ac_ext
13864 ac_cv_prog_CXXCPP=$CXXCPP
13867 CXXCPP=$ac_cv_prog_CXXCPP
13869 ac_cv_prog_CXXCPP=$CXXCPP
13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13872 printf "%s\n" "$CXXCPP" >&6; }
13873 ac_preproc_ok=false
13874 for ac_cxx_preproc_warn_flag in '' yes
13876 # Use a header file that comes with gcc, so configuring glibc
13877 # with a fresh cross-compiler works.
13878 # On the NeXT, cc -E runs the code through the compiler's parser,
13879 # not just through cpp. "Syntax error" is here to catch this case.
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 #include <limits.h>
13885 if ac_fn_cxx_try_cpp "$LINENO"
13889 # Broken: fails on valid input.
13892 rm -f conftest.err conftest.i conftest.$ac_ext
13894 # OK, works on sane cases. Now check whether nonexistent headers
13895 # can be detected and how.
13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h. */
13898 #include <ac_nonexistent.h>
13900 if ac_fn_cxx_try_cpp "$LINENO"
13902 # Broken: success on invalid input.
13905 # Passes both tests.
13909 rm -f conftest.err conftest.i conftest.$ac_ext
13912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13913 rm -f conftest.i conftest.err conftest.$ac_ext
13918 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13919 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13920 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13921 See \`config.log' for more details" "$LINENO" 5; }
13925 ac_cpp='$CPP $CPPFLAGS'
13926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13931 _lt_caught_CXX_error=yes
13935 ac_cpp='$CXXCPP $CPPFLAGS'
13936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13940 archive_cmds_need_lc_CXX=no
13941 allow_undefined_flag_CXX=
13942 always_export_symbols_CXX=no
13943 archive_expsym_cmds_CXX=
13944 compiler_needs_object_CXX=no
13945 export_dynamic_flag_spec_CXX=
13946 hardcode_direct_CXX=no
13947 hardcode_direct_absolute_CXX=no
13948 hardcode_libdir_flag_spec_CXX=
13949 hardcode_libdir_separator_CXX=
13950 hardcode_minus_L_CXX=no
13951 hardcode_shlibpath_var_CXX=unsupported
13952 hardcode_automatic_CXX=no
13953 inherit_rpath_CXX=no
13955 module_expsym_cmds_CXX=
13956 link_all_deplibs_CXX=unknown
13957 old_archive_cmds_CXX=$old_archive_cmds
13958 reload_flag_CXX=$reload_flag
13959 reload_cmds_CXX=$reload_cmds
13960 no_undefined_flag_CXX=
13961 whole_archive_flag_spec_CXX=
13962 enable_shared_with_static_runtimes_CXX=no
13964 # Source file extension for C++ test sources.
13967 # Object file extension for compiled C++ test sources.
13971 # No sense in running all these tests if we already determined that
13972 # the CXX compiler isn't working. Some variables (like enable_shared)
13973 # are currently assumed to apply to all compilers on this platform,
13974 # and will be corrupted by setting them based on a non-working compiler.
13975 if test yes != "$_lt_caught_CXX_error"; then
13976 # Code to be used in simple compile tests
13977 lt_simple_compile_test_code="int some_variable = 0;"
13979 # Code to be used in simple link tests
13980 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13982 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13989 # If no C compiler was specified, use CC.
13992 # If no C compiler flags were specified, use CFLAGS.
13993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13995 # Allow CC to be a program name with arguments.
13999 # save warnings/boilerplate of simple test code
14000 ac_outfile=conftest.$ac_objext
14001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14003 _lt_compiler_boilerplate=`cat conftest.err`
14006 ac_outfile=conftest.$ac_objext
14007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14009 _lt_linker_boilerplate=`cat conftest.err`
14013 # Allow CC to be a program name with arguments.
14015 lt_save_CFLAGS=$CFLAGS
14019 lt_save_with_gnu_ld=$with_gnu_ld
14020 lt_save_path_LD=$lt_cv_path_LD
14021 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14022 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14024 $as_unset lt_cv_prog_gnu_ld
14026 if test -n "${lt_cv_path_LDCXX+set}"; then
14027 lt_cv_path_LD=$lt_cv_path_LDCXX
14029 $as_unset lt_cv_path_LD
14031 test -z "${LDCXX+set}" || LD=$LDCXX
14036 func_cc_basename $compiler
14037 cc_basename=$func_cc_basename_result
14040 if test -n "$compiler"; then
14041 # We don't want -fno-exception when compiling C++ code, so set the
14042 # no_builtin_flag separately
14043 if test yes = "$GXX"; then
14044 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14046 lt_prog_compiler_no_builtin_flag_CXX=
14049 if test yes = "$GXX"; then
14050 # Set up default GNU C++ configuration
14054 # Check whether --with-gnu-ld was given.
14055 if test ${with_gnu_ld+y}
14057 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14063 if test yes = "$GCC"; then
14064 # Check if gcc -print-prog-name=ld gives a path.
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14066 printf %s "checking for ld used by $CC... " >&6; }
14069 # gcc leaves a trailing carriage return, which upsets mingw
14070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14075 # Accept absolute paths.
14077 re_direlt='/[^/][^/]*/\.\./'
14078 # Canonicalize the pathname of ld
14079 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14080 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14081 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14083 test -z "$LD" && LD=$ac_prog
14086 # If it fails, then pretend we aren't using GCC.
14090 # If it is relative, then search for the first ld in PATH.
14091 with_gnu_ld=unknown
14094 elif test yes = "$with_gnu_ld"; then
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14096 printf %s "checking for GNU ld... " >&6; }
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14099 printf %s "checking for non-GNU ld... " >&6; }
14101 if test ${lt_cv_path_LD+y}
14103 printf %s "(cached) " >&6
14105 if test -z "$LD"; then
14106 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14107 for ac_dir in $PATH; do
14109 test -z "$ac_dir" && ac_dir=.
14110 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14111 lt_cv_path_LD=$ac_dir/$ac_prog
14112 # Check to see if the program is GNU ld. I'd rather use --version,
14113 # but apparently some variants of GNU ld only accept -v.
14114 # Break only if it was the GNU/non-GNU ld that we prefer.
14115 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14116 *GNU* | *'with BFD'*)
14117 test no != "$with_gnu_ld" && break
14120 test yes != "$with_gnu_ld" && break
14127 lt_cv_path_LD=$LD # Let the user override the test with a path.
14132 if test -n "$LD"; then
14133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14134 printf "%s\n" "$LD" >&6; }
14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137 printf "%s\n" "no" >&6; }
14139 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14141 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14142 if test ${lt_cv_prog_gnu_ld+y}
14144 printf %s "(cached) " >&6
14146 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14147 case `$LD -v 2>&1 </dev/null` in
14148 *GNU* | *'with BFD'*)
14149 lt_cv_prog_gnu_ld=yes
14152 lt_cv_prog_gnu_ld=no
14156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14157 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14158 with_gnu_ld=$lt_cv_prog_gnu_ld
14166 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14167 # archiving commands below assume that GNU ld is being used.
14168 if test yes = "$with_gnu_ld"; then
14169 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14170 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14172 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14173 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14175 # If archive_cmds runs LD, not CC, wlarc should be empty
14176 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14177 # investigate it a little bit more. (MM)
14180 # ancient GNU ld didn't support --whole-archive et. al.
14181 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14182 $GREP 'no-whole-archive' > /dev/null; then
14183 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14185 whole_archive_flag_spec_CXX=
14191 # A generic and very simple default shared library creation
14192 # command for GNU C++ for the case where it uses the native
14193 # linker, instead of GNU ld. If possible, this setting should
14194 # overridden to take advantage of the native linker features on
14195 # the platform it is being used on.
14196 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14199 # Commands to make compiler produce verbose output that lists
14200 # what "hidden" libraries, object files and flags are used when
14201 # linking a shared library.
14202 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14210 # PORTME: fill in a description of your system's C++ link characteristics
14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14212 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14216 # FIXME: insert proper C++ library support
14220 if test ia64 = "$host_cpu"; then
14221 # On IA64, the linker does run time linking by default, so we don't
14222 # have to do anything special.
14223 aix_use_runtimelinking=no
14224 exp_sym_flag='-Bexport'
14227 aix_use_runtimelinking=no
14229 # Test if we are trying to use run time linking or normal
14230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14231 # have runtime linking enabled, and use it for executables.
14232 # For shared libraries, we enable/disable runtime linking
14233 # depending on the kind of the shared library created -
14234 # when "with_aix_soname,aix_use_runtimelinking" is:
14235 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14236 # "aix,yes" lib.so shared, rtl:yes, for executables
14237 # lib.a static archive
14238 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14239 # lib.a(lib.so.V) shared, rtl:no, for executables
14240 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14241 # lib.a(lib.so.V) shared, rtl:no
14242 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14243 # lib.a static archive
14244 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14245 for ld_flag in $LDFLAGS; do
14248 aix_use_runtimelinking=yes
14253 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14254 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14255 # so we don't have lib.a shared libs to link our executables.
14256 # We have to force runtime linking in this case.
14257 aix_use_runtimelinking=yes
14258 LDFLAGS="$LDFLAGS -Wl,-brtl"
14263 exp_sym_flag='-bexport'
14264 no_entry_flag='-bnoentry'
14267 # When large executables or shared objects are built, AIX ld can
14268 # have problems creating the table of contents. If linking a library
14269 # or program results in "error TOC overflow" add -mminimal-toc to
14270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14273 archive_cmds_CXX=''
14274 hardcode_direct_CXX=yes
14275 hardcode_direct_absolute_CXX=yes
14276 hardcode_libdir_separator_CXX=':'
14277 link_all_deplibs_CXX=yes
14278 file_list_spec_CXX='$wl-f,'
14279 case $with_aix_soname,$aix_use_runtimelinking in
14280 aix,*) ;; # no import file
14281 svr4,* | *,yes) # use import file
14282 # The Import File defines what to hardcode.
14283 hardcode_direct_CXX=no
14284 hardcode_direct_absolute_CXX=no
14288 if test yes = "$GXX"; then
14289 case $host_os in aix4.[012]|aix4.[012].*)
14290 # We only want to do this on AIX 4.2 and lower, the check
14291 # below for broken collect2 doesn't work under 4.3+
14292 collect2name=`$CC -print-prog-name=collect2`
14293 if test -f "$collect2name" &&
14294 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14296 # We have reworked collect2
14299 # We have old collect2
14300 hardcode_direct_CXX=unsupported
14301 # It fails to find uninstalled libraries when the uninstalled
14302 # path is not listed in the libpath. Setting hardcode_minus_L
14303 # to unsupported forces relinking
14304 hardcode_minus_L_CXX=yes
14305 hardcode_libdir_flag_spec_CXX='-L$libdir'
14306 hardcode_libdir_separator_CXX=
14309 shared_flag='-shared'
14310 if test yes = "$aix_use_runtimelinking"; then
14311 shared_flag=$shared_flag' $wl-G'
14313 # Need to ensure runtime linking is disabled for the traditional
14314 # shared library, or the linker may eventually find shared libraries
14315 # /with/ Import File - we do not want to mix them.
14316 shared_flag_aix='-shared'
14317 shared_flag_svr4='-shared $wl-G'
14320 if test ia64 = "$host_cpu"; then
14321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14322 # chokes on -Wl,-G. The following line is correct:
14325 if test yes = "$aix_use_runtimelinking"; then
14326 shared_flag='$wl-G'
14328 shared_flag='$wl-bM:SRE'
14330 shared_flag_aix='$wl-bM:SRE'
14331 shared_flag_svr4='$wl-G'
14335 export_dynamic_flag_spec_CXX='$wl-bexpall'
14336 # It seems that -bexpall does not export symbols beginning with
14337 # underscore (_), so it is better to generate a list of symbols to
14339 always_export_symbols_CXX=yes
14340 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14341 # Warning - without using the other runtime loading flags (-brtl),
14342 # -berok will link without error, but may produce a broken library.
14343 # The "-G" linker flag allows undefined symbols.
14344 no_undefined_flag_CXX='-bernotok'
14345 # Determine the default libpath from the value encoded in an empty
14347 if test set = "${lt_cv_aix_libpath+set}"; then
14348 aix_libpath=$lt_cv_aix_libpath
14350 if test ${lt_cv_aix_libpath__CXX+y}
14352 printf %s "(cached) " >&6
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14365 if ac_fn_cxx_try_link "$LINENO"
14368 lt_aix_libpath_sed='
14369 /Import File Strings/,/^$/ {
14371 s/^0 *\([^ ]*\) *$/\1/
14375 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14376 # Check for a 64-bit object if we didn't find anything.
14377 if test -z "$lt_cv_aix_libpath__CXX"; then
14378 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14382 conftest$ac_exeext conftest.$ac_ext
14383 if test -z "$lt_cv_aix_libpath__CXX"; then
14384 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14389 aix_libpath=$lt_cv_aix_libpath__CXX
14392 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14394 archive_expsym_cmds_CXX='$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
14396 if test ia64 = "$host_cpu"; then
14397 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14398 allow_undefined_flag_CXX="-z nodefs"
14399 archive_expsym_cmds_CXX="\$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"
14401 # Determine the default libpath from the value encoded in an
14402 # empty executable.
14403 if test set = "${lt_cv_aix_libpath+set}"; then
14404 aix_libpath=$lt_cv_aix_libpath
14406 if test ${lt_cv_aix_libpath__CXX+y}
14408 printf %s "(cached) " >&6
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14421 if ac_fn_cxx_try_link "$LINENO"
14424 lt_aix_libpath_sed='
14425 /Import File Strings/,/^$/ {
14427 s/^0 *\([^ ]*\) *$/\1/
14431 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14432 # Check for a 64-bit object if we didn't find anything.
14433 if test -z "$lt_cv_aix_libpath__CXX"; then
14434 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14438 conftest$ac_exeext conftest.$ac_ext
14439 if test -z "$lt_cv_aix_libpath__CXX"; then
14440 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14445 aix_libpath=$lt_cv_aix_libpath__CXX
14448 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14449 # Warning - without using the other run time loading flags,
14450 # -berok will link without error, but may produce a broken library.
14451 no_undefined_flag_CXX=' $wl-bernotok'
14452 allow_undefined_flag_CXX=' $wl-berok'
14453 if test yes = "$with_gnu_ld"; then
14454 # We only use this code for GNU lds that support --whole-archive.
14455 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14457 # Exported symbols can be pulled into shared objects from archives
14458 whole_archive_flag_spec_CXX='$convenience'
14460 archive_cmds_need_lc_CXX=yes
14461 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14462 # -brtl affects multiple linker settings, -berok does not and is overridden later
14463 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14464 if test svr4 != "$with_aix_soname"; then
14465 # This is similar to how AIX traditionally builds its shared
14466 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14467 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14469 if test aix != "$with_aix_soname"; then
14470 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
14472 # used by -dlpreopen to get the symbols
14473 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14475 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14482 allow_undefined_flag_CXX=unsupported
14483 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14484 # support --undefined. This deserves some investigation. FIXME
14485 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14492 case $cc_basename in
14494 # FIXME: insert proper C++ library support
14500 cygwin* | mingw* | pw32* | cegcc*)
14501 case $GXX,$cc_basename in
14502 ,cl* | no,cl* | ,icl* | no,icl*)
14503 # Native MSVC or ICC
14504 # hardcode_libdir_flag_spec is actually meaningless, as there is
14505 # no search path for DLLs.
14506 hardcode_libdir_flag_spec_CXX=' '
14507 allow_undefined_flag_CXX=unsupported
14508 always_export_symbols_CXX=yes
14509 file_list_spec_CXX='@'
14510 # Tell ltmain to make .lib files, not .a files.
14512 # Tell ltmain to make .dll files, not .so files.
14514 # FIXME: Setting linknames here is a bad hack.
14515 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14516 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14517 cp "$export_symbols" "$output_objdir/$soname.def";
14518 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14520 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14522 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14524 # The linker will not automatically build a static lib if we build a DLL.
14525 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14526 enable_shared_with_static_runtimes_CXX=yes
14528 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14529 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14530 lt_tool_outputfile="@TOOL_OUTPUT@"~
14531 case $lt_outputfile in
14534 lt_outputfile=$lt_outputfile.exe
14535 lt_tool_outputfile=$lt_tool_outputfile.exe
14538 func_to_tool_file "$lt_outputfile"~
14539 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14540 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14541 $RM "$lt_outputfile.manifest";
14546 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14547 # as there is no search path for DLLs.
14548 hardcode_libdir_flag_spec_CXX='-L$libdir'
14549 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14550 allow_undefined_flag_CXX=unsupported
14551 always_export_symbols_CXX=no
14552 enable_shared_with_static_runtimes_CXX=yes
14554 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14555 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14556 # If the export-symbols file already is a .def file, use it as
14557 # is; otherwise, prepend EXPORTS...
14558 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14559 cp $export_symbols $output_objdir/$soname.def;
14561 echo EXPORTS > $output_objdir/$soname.def;
14562 cat $export_symbols >> $output_objdir/$soname.def;
14564 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14571 darwin* | rhapsody*)
14574 archive_cmds_need_lc_CXX=no
14575 hardcode_direct_CXX=no
14576 hardcode_automatic_CXX=yes
14577 hardcode_shlibpath_var_CXX=unsupported
14578 if test yes = "$lt_cv_ld_force_load"; then
14579 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14582 whole_archive_flag_spec_CXX=''
14584 link_all_deplibs_CXX=yes
14585 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14586 case $cc_basename in
14587 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14588 *) _lt_dar_can_shared=$GCC ;;
14590 if test yes = "$_lt_dar_can_shared"; then
14591 output_verbose_link_cmd=func_echo_all
14592 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14593 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14594 archive_expsym_cmds_CXX="$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"
14595 module_expsym_cmds_CXX="$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"
14596 if test yes != "$lt_cv_apple_cc_single_mod"; then
14597 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
14598 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
14608 hardcode_libdir_flag_spec_CXX='-L$libdir'
14609 hardcode_minus_L_CXX=yes
14610 allow_undefined_flag_CXX=unsupported
14612 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14613 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14614 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14615 $ECHO EXPORTS >> $output_objdir/$libname.def~
14616 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14617 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14618 emximp -o $lib $output_objdir/$libname.def'
14619 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14620 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14621 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14622 $ECHO EXPORTS >> $output_objdir/$libname.def~
14623 prefix_cmds="$SED"~
14624 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14625 prefix_cmds="$prefix_cmds -e 1d";
14627 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14628 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14629 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14630 emximp -o $lib $output_objdir/$libname.def'
14631 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14632 enable_shared_with_static_runtimes_CXX=yes
14633 file_list_spec_CXX='@'
14637 case $cc_basename in
14639 # FIXME: insert proper C++ library support
14643 # Green Hills C++ Compiler
14644 # FIXME: insert proper C++ library support
14648 # FIXME: insert proper C++ library support
14655 # C++ shared libraries reported to be fairly broken before
14661 archive_cmds_need_lc_CXX=no
14664 freebsd* | dragonfly* | midnightbsd*)
14665 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14671 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14672 link_all_deplibs_CXX=yes
14676 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14677 hardcode_libdir_separator_CXX=:
14678 export_dynamic_flag_spec_CXX='$wl-E'
14679 hardcode_direct_CXX=yes
14680 hardcode_minus_L_CXX=yes # Not in the search PATH,
14681 # but as the default
14682 # location of the library.
14684 case $cc_basename in
14686 # FIXME: insert proper C++ library support
14690 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14691 # Commands to make compiler produce verbose output that lists
14692 # what "hidden" libraries, object files and flags are used when
14693 # linking a shared library.
14695 # There doesn't appear to be a way to prevent this compiler from
14696 # explicitly linking system object files so we need to strip them
14697 # from the output so that they don't get included in the library
14699 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14702 if test yes = "$GXX"; then
14703 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14705 # FIXME: insert proper C++ library support
14713 if test no = "$with_gnu_ld"; then
14714 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14715 hardcode_libdir_separator_CXX=:
14721 export_dynamic_flag_spec_CXX='$wl-E'
14727 hardcode_direct_CXX=no
14728 hardcode_shlibpath_var_CXX=no
14731 hardcode_direct_CXX=yes
14732 hardcode_direct_absolute_CXX=yes
14733 hardcode_minus_L_CXX=yes # Not in the search PATH,
14734 # but as the default
14735 # location of the library.
14739 case $cc_basename in
14741 # FIXME: insert proper C++ library support
14747 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14750 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14753 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14756 # Commands to make compiler produce verbose output that lists
14757 # what "hidden" libraries, object files and flags are used when
14758 # linking a shared library.
14760 # There doesn't appear to be a way to prevent this compiler from
14761 # explicitly linking system object files so we need to strip them
14762 # from the output so that they don't get included in the library
14764 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14767 if test yes = "$GXX"; then
14768 if test no = "$with_gnu_ld"; then
14771 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14774 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14777 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14782 # FIXME: insert proper C++ library support
14790 hardcode_direct_CXX=no
14791 hardcode_shlibpath_var_CXX=no
14792 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14793 export_dynamic_flag_spec_CXX='$wl-E'
14794 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14795 # Instead, shared libraries are loaded at an image base (0x10000000 by
14796 # default) and relocated if they conflict, which is a slow very memory
14797 # consuming and fragmenting process. To avoid this, we pick a random,
14798 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14799 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14800 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14801 archive_expsym_cmds_CXX='$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'
14804 case $cc_basename in
14807 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14809 # Archives containing C++ object files must be created using
14810 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14811 # necessary to make sure instantiated templates are included
14813 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14816 if test yes = "$GXX"; then
14817 if test no = "$with_gnu_ld"; then
14818 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14820 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14823 link_all_deplibs_CXX=yes
14826 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14827 hardcode_libdir_separator_CXX=:
14828 inherit_rpath_CXX=yes
14831 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14832 case $cc_basename in
14834 # Kuck and Associates, Inc. (KAI) C++ Compiler
14836 # KCC will only create a shared library if the output file
14837 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14838 # to its proper name (with version) after linking.
14839 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14840 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
14841 # Commands to make compiler produce verbose output that lists
14842 # what "hidden" libraries, object files and flags are used when
14843 # linking a shared library.
14845 # There doesn't appear to be a way to prevent this compiler from
14846 # explicitly linking system object files so we need to strip them
14847 # from the output so that they don't get included in the library
14849 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14851 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14852 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14854 # Archives containing C++ object files must be created using
14855 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14856 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14861 # version 8.0 and above of icpc choke on multiply defined symbols
14862 # if we add $predep_objects and $postdep_objects, however 7.1 and
14863 # earlier do not add the objects themselves.
14864 case `$CC -V 2>&1` in
14866 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14867 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14869 *) # Version 8.0 or newer
14872 ia64*) tmp_idyn=' -i_dynamic';;
14874 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14875 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14878 archive_cmds_need_lc_CXX=no
14879 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14880 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14881 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14884 # Portland Group C++ compiler
14886 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14887 prelink_cmds_CXX='tpldir=Template.dir~
14889 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14890 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14891 old_archive_cmds_CXX='tpldir=Template.dir~
14893 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14894 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14896 archive_cmds_CXX='tpldir=Template.dir~
14898 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14899 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14900 archive_expsym_cmds_CXX='tpldir=Template.dir~
14902 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14903 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14905 *) # Version 6 and above use weak symbols
14906 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14907 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14911 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14912 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14913 whole_archive_flag_spec_CXX='$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'
14917 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14918 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
14920 runpath_var=LD_RUN_PATH
14921 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14922 hardcode_libdir_separator_CXX=:
14924 # Commands to make compiler produce verbose output that lists
14925 # what "hidden" libraries, object files and flags are used when
14926 # linking a shared library.
14928 # There doesn't appear to be a way to prevent this compiler from
14929 # explicitly linking system object files so we need to strip them
14930 # from the output so that they don't get included in the library
14932 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14934 xl* | mpixl* | bgxl*)
14935 # IBM XL 8.0 on PPC, with GNU ld
14936 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14937 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14938 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14939 if test yes = "$supports_anon_versioning"; then
14940 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14941 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14942 echo "local: *; };" >> $output_objdir/$libname.ver~
14943 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14947 case `$CC -V 2>&1 | $SED 5q` in
14950 no_undefined_flag_CXX=' -zdefs'
14951 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14952 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14953 hardcode_libdir_flag_spec_CXX='-R$libdir'
14954 whole_archive_flag_spec_CXX='$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'
14955 compiler_needs_object_CXX=yes
14957 # Not sure whether something based on
14958 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14960 output_verbose_link_cmd='func_echo_all'
14962 # Archives containing C++ object files must be created using
14963 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14964 # necessary to make sure instantiated templates are included
14966 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14974 # FIXME: insert proper C++ library support
14979 # FIXME: insert proper C++ library support
14984 case $cc_basename in
14986 # FIXME: insert proper C++ library support
14990 # FIXME: insert proper C++ library support
14997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14998 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15000 hardcode_libdir_flag_spec_CXX='-R$libdir'
15001 hardcode_direct_CXX=yes
15002 hardcode_shlibpath_var_CXX=no
15004 # Workaround some broken pre-1.5 toolchains
15005 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15012 openbsd* | bitrig*)
15013 if test -f /usr/libexec/ld.so; then
15014 hardcode_direct_CXX=yes
15015 hardcode_shlibpath_var_CXX=no
15016 hardcode_direct_absolute_CXX=yes
15017 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15018 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15020 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15021 export_dynamic_flag_spec_CXX='$wl-E'
15022 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15024 output_verbose_link_cmd=func_echo_all
15030 osf3* | osf4* | osf5*)
15031 case $cc_basename in
15033 # Kuck and Associates, Inc. (KAI) C++ Compiler
15035 # KCC will only create a shared library if the output file
15036 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15037 # to its proper name (with version) after linking.
15038 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15040 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15041 hardcode_libdir_separator_CXX=:
15043 # Archives containing C++ object files must be created using
15044 # the KAI C++ compiler.
15046 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15047 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15051 # Rational C++ 2.4.1
15052 # FIXME: insert proper C++ library support
15058 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15059 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15060 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15063 allow_undefined_flag_CXX=' -expect_unresolved \*'
15064 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15065 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15066 echo "-hidden">> $lib.exp~
15067 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15069 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15073 hardcode_libdir_separator_CXX=:
15075 # Commands to make compiler produce verbose output that lists
15076 # what "hidden" libraries, object files and flags are used when
15077 # linking a shared library.
15079 # There doesn't appear to be a way to prevent this compiler from
15080 # explicitly linking system object files so we need to strip them
15081 # from the output so that they don't get included in the library
15083 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15086 if test yes,no = "$GXX,$with_gnu_ld"; then
15087 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15090 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15093 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
15097 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15098 hardcode_libdir_separator_CXX=:
15100 # Commands to make compiler produce verbose output that lists
15101 # what "hidden" libraries, object files and flags are used when
15102 # linking a shared library.
15103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15106 # FIXME: insert proper C++ library support
15114 # FIXME: insert proper C++ library support
15119 case $cc_basename in
15122 # FIXME: insert proper C++ library support
15127 # FIXME: insert proper C++ library support
15131 # FIXME: insert proper C++ library support
15138 case $cc_basename in
15140 # Sun C++ 4.2, 5.x and Centerline C++
15141 archive_cmds_need_lc_CXX=yes
15142 no_undefined_flag_CXX=' -zdefs'
15143 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15144 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15145 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15147 hardcode_libdir_flag_spec_CXX='-R$libdir'
15148 hardcode_shlibpath_var_CXX=no
15150 solaris2.[0-5] | solaris2.[0-5].*) ;;
15152 # The compiler driver will combine and reorder linker options,
15153 # but understands '-z linker_flag'.
15154 # Supported since Solaris 2.6 (maybe 2.5.1?)
15155 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15158 link_all_deplibs_CXX=yes
15160 output_verbose_link_cmd='func_echo_all'
15162 # Archives containing C++ object files must be created using
15163 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15164 # necessary to make sure instantiated templates are included
15166 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15169 # Green Hills C++ Compiler
15170 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15172 # The C++ compiler must be used to create the archive.
15173 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15176 # GNU C++ compiler with Solaris linker
15177 if test yes,no = "$GXX,$with_gnu_ld"; then
15178 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15179 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15180 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15181 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15182 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15184 # Commands to make compiler produce verbose output that lists
15185 # what "hidden" libraries, object files and flags are used when
15186 # linking a shared library.
15187 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15189 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15191 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15192 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15193 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15195 # Commands to make compiler produce verbose output that lists
15196 # what "hidden" libraries, object files and flags are used when
15197 # linking a shared library.
15198 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15201 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15203 solaris2.[0-5] | solaris2.[0-5].*) ;;
15205 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15213 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15214 no_undefined_flag_CXX='$wl-z,text'
15215 archive_cmds_need_lc_CXX=no
15216 hardcode_shlibpath_var_CXX=no
15217 runpath_var='LD_RUN_PATH'
15219 case $cc_basename in
15221 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15222 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15225 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15226 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15231 sysv5* | sco3.2v5* | sco5v6*)
15232 # Note: We CANNOT use -z defs as we might desire, because we do not
15233 # link with -lc, and that would cause any symbols used from libc to
15234 # always be unresolved, which means just about no library would
15235 # ever link correctly. If we're not using GNU ld we use -z text
15236 # though, which does catch some bad symbols but isn't as heavy-handed
15238 no_undefined_flag_CXX='$wl-z,text'
15239 allow_undefined_flag_CXX='$wl-z,nodefs'
15240 archive_cmds_need_lc_CXX=no
15241 hardcode_shlibpath_var_CXX=no
15242 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15243 hardcode_libdir_separator_CXX=':'
15244 link_all_deplibs_CXX=yes
15245 export_dynamic_flag_spec_CXX='$wl-Bexport'
15246 runpath_var='LD_RUN_PATH'
15248 case $cc_basename in
15250 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15251 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15252 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15253 '"$old_archive_cmds_CXX"
15254 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15255 '"$reload_cmds_CXX"
15258 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15259 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15265 case $cc_basename in
15267 # NonStop-UX NCC 3.20
15268 # FIXME: insert proper C++ library support
15272 # FIXME: insert proper C++ library support
15279 # FIXME: insert proper C++ library support
15284 # FIXME: insert proper C++ library support
15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15290 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15291 test no = "$ld_shlibs_CXX" && can_build_shared=no
15297 ## There is no encapsulation within the following macros, do not change
15298 ## the running order or otherwise move them around unless you know exactly
15299 ## what you are doing...
15300 # Dependencies to place before and after the object being linked:
15301 predep_objects_CXX=
15302 postdep_objects_CXX=
15305 compiler_lib_search_path_CXX=
15307 cat > conftest.$ac_ext <<_LT_EOF
15311 Foo (void) { a = 0; }
15318 _lt_libdeps_save_CFLAGS=$CFLAGS
15319 case "$CC $CFLAGS " in #(
15320 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15321 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15322 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15326 (eval $ac_compile) 2>&5
15328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15329 test $ac_status = 0; }; then
15330 # Parse the compiler output and extract the necessary
15331 # objects, libraries and library flags.
15333 # Sentinel used to keep track of whether or not we are before
15334 # the conftest object file.
15335 pre_test_object_deps_done=no
15337 for p in `eval "$output_verbose_link_cmd"`; do
15341 # Some compilers place space between "-{L,R}" and the path.
15342 # Remove the space.
15343 if test x-L = "$p" ||
15344 test x-R = "$p"; then
15349 # Expand the sysroot to ease extracting the directories later.
15350 if test -z "$prev"; then
15352 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15353 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15354 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15358 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15360 if test no = "$pre_test_object_deps_done"; then
15363 # Internal compiler library paths should come after those
15364 # provided the user. The postdeps already come after the
15365 # user supplied libs so there is no need to process them.
15366 if test -z "$compiler_lib_search_path_CXX"; then
15367 compiler_lib_search_path_CXX=$prev$p
15369 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15372 # The "-l" case would never come before the object being
15373 # linked, so don't bother handling this case.
15376 if test -z "$postdeps_CXX"; then
15377 postdeps_CXX=$prev$p
15379 postdeps_CXX="${postdeps_CXX} $prev$p"
15385 *.lto.$objext) ;; # Ignore GCC LTO objects
15387 # This assumes that the test object file only shows up
15388 # once in the compiler output.
15389 if test "$p" = "conftest.$objext"; then
15390 pre_test_object_deps_done=yes
15394 if test no = "$pre_test_object_deps_done"; then
15395 if test -z "$predep_objects_CXX"; then
15396 predep_objects_CXX=$p
15398 predep_objects_CXX="$predep_objects_CXX $p"
15401 if test -z "$postdep_objects_CXX"; then
15402 postdep_objects_CXX=$p
15404 postdep_objects_CXX="$postdep_objects_CXX $p"
15409 *) ;; # Ignore the rest.
15417 echo "libtool.m4: error: problem compiling CXX test program"
15420 $RM -f confest.$objext
15421 CFLAGS=$_lt_libdeps_save_CFLAGS
15423 # PORTME: override above test on systems where it is broken
15426 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15427 # hack all around it, let's just trust "g++" to DTRT.
15428 predep_objects_CXX=
15429 postdep_objects_CXX=
15435 case " $postdeps_CXX " in
15436 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15438 compiler_lib_search_dirs_CXX=
15439 if test -n "${compiler_lib_search_path_CXX}"; then
15440 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15473 lt_prog_compiler_wl_CXX=
15474 lt_prog_compiler_pic_CXX=
15475 lt_prog_compiler_static_CXX=
15478 # C++ specific cases for pic, static, wl, etc.
15479 if test yes = "$GXX"; then
15480 lt_prog_compiler_wl_CXX='-Wl,'
15481 lt_prog_compiler_static_CXX='-static'
15485 # All AIX code is PIC.
15486 if test ia64 = "$host_cpu"; then
15487 # AIX 5 now supports IA64 processor
15488 lt_prog_compiler_static_CXX='-Bstatic'
15490 lt_prog_compiler_pic_CXX='-fPIC'
15496 # see comment about AmigaOS4 .so support
15497 lt_prog_compiler_pic_CXX='-fPIC'
15500 # FIXME: we need at least 68020 code to build shared libraries, but
15501 # adding the '-m68020' flag to GCC prevents building anything better,
15503 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15508 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15509 # PIC is the default for these OSes.
15511 mingw* | cygwin* | os2* | pw32* | cegcc*)
15512 # This hack is so that the source file can tell whether it is being
15513 # built for inclusion in a dll (and should export symbols for example).
15514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15515 # (--disable-auto-import) libraries
15516 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15519 lt_prog_compiler_static_CXX='$wl-static'
15523 darwin* | rhapsody*)
15524 # PIC is the default on this platform
15525 # Common symbols not allowed in MH_DYLIB files
15526 lt_prog_compiler_pic_CXX='-fno-common'
15529 # DJGPP does not support shared libraries at all
15530 lt_prog_compiler_pic_CXX=
15533 # PIC is the default for Haiku.
15534 # The "-static" flag exists, but is broken.
15535 lt_prog_compiler_static_CXX=
15538 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15539 # Instead, we relocate shared libraries at runtime.
15542 if test -d /usr/nec; then
15543 lt_prog_compiler_pic_CXX=-Kconform_pic
15547 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15548 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15549 # sets the default TLS model and affects inlining.
15554 lt_prog_compiler_pic_CXX='-fPIC'
15559 # QNX uses GNU C++, but need to define -shared option too, otherwise
15560 # it will coredump.
15561 lt_prog_compiler_pic_CXX='-fPIC -shared'
15564 lt_prog_compiler_pic_CXX='-fPIC'
15570 # All AIX code is PIC.
15571 if test ia64 = "$host_cpu"; then
15572 # AIX 5 now supports IA64 processor
15573 lt_prog_compiler_static_CXX='-Bstatic'
15575 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15579 case $cc_basename in
15581 # Green Hills C++ Compiler
15582 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15586 mingw* | cygwin* | os2* | pw32* | cegcc*)
15587 # This hack is so that the source file can tell whether it is being
15588 # built for inclusion in a dll (and should export symbols for example).
15589 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15592 case $cc_basename in
15594 lt_prog_compiler_pic_CXX='-KPIC'
15597 # Green Hills C++ Compiler
15598 lt_prog_compiler_pic_CXX='-pic'
15604 freebsd* | dragonfly* | midnightbsd*)
15605 # FreeBSD uses GNU C++
15607 hpux9* | hpux10* | hpux11*)
15608 case $cc_basename in
15610 lt_prog_compiler_wl_CXX='-Wl,'
15611 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15612 if test ia64 != "$host_cpu"; then
15613 lt_prog_compiler_pic_CXX='+Z'
15617 lt_prog_compiler_wl_CXX='-Wl,'
15618 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15624 lt_prog_compiler_pic_CXX='+Z'
15633 # This is c89, which is MS Visual C++ (no shared libs)
15634 # Anyone wants to do a port?
15636 irix5* | irix6* | nonstopux*)
15637 case $cc_basename in
15639 lt_prog_compiler_wl_CXX='-Wl,'
15640 lt_prog_compiler_static_CXX='-non_shared'
15641 # CC pic flag -KPIC is the default.
15647 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15648 case $cc_basename in
15651 lt_prog_compiler_wl_CXX='--backend -Wl,'
15652 lt_prog_compiler_pic_CXX='-fPIC'
15655 # old Intel C++ for x86_64, which still supported -KPIC.
15656 lt_prog_compiler_wl_CXX='-Wl,'
15657 lt_prog_compiler_pic_CXX='-KPIC'
15658 lt_prog_compiler_static_CXX='-static'
15661 # Intel C++, used to be incompatible with GCC.
15662 # ICC 10 doesn't accept -KPIC any more.
15663 lt_prog_compiler_wl_CXX='-Wl,'
15664 lt_prog_compiler_pic_CXX='-fPIC'
15665 lt_prog_compiler_static_CXX='-static'
15668 # Portland Group C++ compiler
15669 lt_prog_compiler_wl_CXX='-Wl,'
15670 lt_prog_compiler_pic_CXX='-fpic'
15671 lt_prog_compiler_static_CXX='-Bstatic'
15675 # Make sure the PIC flag is empty. It appears that all Alpha
15676 # Linux and Compaq Tru64 Unix objects are PIC.
15677 lt_prog_compiler_pic_CXX=
15678 lt_prog_compiler_static_CXX='-non_shared'
15680 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15681 # IBM XL 8.0, 9.0 on PPC and BlueGene
15682 lt_prog_compiler_wl_CXX='-Wl,'
15683 lt_prog_compiler_pic_CXX='-qpic'
15684 lt_prog_compiler_static_CXX='-qstaticlink'
15687 case `$CC -V 2>&1 | $SED 5q` in
15690 lt_prog_compiler_pic_CXX='-KPIC'
15691 lt_prog_compiler_static_CXX='-Bstatic'
15692 lt_prog_compiler_wl_CXX='-Qoption ld '
15703 case $cc_basename in
15705 lt_prog_compiler_pic_CXX='-W c,exportall'
15711 netbsd* | netbsdelf*-gnu)
15714 # QNX uses GNU C++, but need to define -shared option too, otherwise
15715 # it will coredump.
15716 lt_prog_compiler_pic_CXX='-fPIC -shared'
15718 osf3* | osf4* | osf5*)
15719 case $cc_basename in
15721 lt_prog_compiler_wl_CXX='--backend -Wl,'
15724 # Rational C++ 2.4.1
15725 lt_prog_compiler_pic_CXX='-pic'
15728 # Digital/Compaq C++
15729 lt_prog_compiler_wl_CXX='-Wl,'
15730 # Make sure the PIC flag is empty. It appears that all Alpha
15731 # Linux and Compaq Tru64 Unix objects are PIC.
15732 lt_prog_compiler_pic_CXX=
15733 lt_prog_compiler_static_CXX='-non_shared'
15742 case $cc_basename in
15744 # Sun C++ 4.2, 5.x and Centerline C++
15745 lt_prog_compiler_pic_CXX='-KPIC'
15746 lt_prog_compiler_static_CXX='-Bstatic'
15747 lt_prog_compiler_wl_CXX='-Qoption ld '
15750 # Green Hills C++ Compiler
15751 lt_prog_compiler_pic_CXX='-PIC'
15758 case $cc_basename in
15761 lt_prog_compiler_pic_CXX='-pic'
15762 lt_prog_compiler_static_CXX='-Bstatic'
15766 lt_prog_compiler_pic_CXX='-pic'
15772 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15773 case $cc_basename in
15775 lt_prog_compiler_wl_CXX='-Wl,'
15776 lt_prog_compiler_pic_CXX='-KPIC'
15777 lt_prog_compiler_static_CXX='-Bstatic'
15782 case $cc_basename in
15784 # NonStop-UX NCC 3.20
15785 lt_prog_compiler_pic_CXX='-KPIC'
15794 lt_prog_compiler_can_build_shared_CXX=no
15800 # For platforms that do not support PIC, -DPIC is meaningless:
15802 lt_prog_compiler_pic_CXX=
15805 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15810 printf %s "checking for $compiler option to produce PIC... " >&6; }
15811 if test ${lt_cv_prog_compiler_pic_CXX+y}
15813 printf %s "(cached) " >&6
15815 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15818 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15819 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15822 # Check to make sure the PIC flag actually works.
15824 if test -n "$lt_prog_compiler_pic_CXX"; then
15825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15826 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15827 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15829 printf %s "(cached) " >&6
15831 lt_cv_prog_compiler_pic_works_CXX=no
15832 ac_outfile=conftest.$ac_objext
15833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15834 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15835 # Insert the option either (1) after the last *FLAGS variable, or
15836 # (2) before a word containing "conftest.", or (3) at the end.
15837 # Note that $ac_compile itself does not contain backslashes and begins
15838 # with a dollar sign (not a hyphen), so the echo should work correctly.
15839 # The option is referenced via a variable to avoid confusing sed.
15840 lt_compile=`echo "$ac_compile" | $SED \
15841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15843 -e 's:$: $lt_compiler_flag:'`
15844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15845 (eval "$lt_compile" 2>conftest.err)
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 if (exit $ac_status) && test -s "$ac_outfile"; then
15850 # The compiler can only warn and ignore the option if not recognized
15851 # So say no if there are warnings other than the usual output.
15852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15855 lt_cv_prog_compiler_pic_works_CXX=yes
15861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15862 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15864 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15865 case $lt_prog_compiler_pic_CXX in
15867 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15870 lt_prog_compiler_pic_CXX=
15871 lt_prog_compiler_can_build_shared_CXX=no
15881 # Check to make sure the static flag actually works.
15883 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15885 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15886 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15888 printf %s "(cached) " >&6
15890 lt_cv_prog_compiler_static_works_CXX=no
15891 save_LDFLAGS=$LDFLAGS
15892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15895 # The linker can only warn and ignore the option if not recognized
15896 # So say no if there are warnings
15897 if test -s conftest.err; then
15898 # Append any errors to the config.log.
15899 cat conftest.err 1>&5
15900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15902 if diff conftest.exp conftest.er2 >/dev/null; then
15903 lt_cv_prog_compiler_static_works_CXX=yes
15906 lt_cv_prog_compiler_static_works_CXX=yes
15910 LDFLAGS=$save_LDFLAGS
15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15914 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15916 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15919 lt_prog_compiler_static_CXX=
15925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15926 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15927 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15929 printf %s "(cached) " >&6
15931 lt_cv_prog_compiler_c_o_CXX=no
15932 $RM -r conftest 2>/dev/null
15936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15938 lt_compiler_flag="-o out/conftest2.$ac_objext"
15939 # Insert the option either (1) after the last *FLAGS variable, or
15940 # (2) before a word containing "conftest.", or (3) at the end.
15941 # Note that $ac_compile itself does not contain backslashes and begins
15942 # with a dollar sign (not a hyphen), so the echo should work correctly.
15943 lt_compile=`echo "$ac_compile" | $SED \
15944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15946 -e 's:$: $lt_compiler_flag:'`
15947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15948 (eval "$lt_compile" 2>out/conftest.err)
15950 cat out/conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15954 # The compiler can only warn and ignore the option if not recognized
15955 # So say no if there are warnings
15956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15959 lt_cv_prog_compiler_c_o_CXX=yes
15964 # SGI C++ compiler will create directory out/ii_files/ for
15965 # template instantiation
15966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15967 $RM out/* && rmdir out
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15974 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15979 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15980 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15982 printf %s "(cached) " >&6
15984 lt_cv_prog_compiler_c_o_CXX=no
15985 $RM -r conftest 2>/dev/null
15989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15991 lt_compiler_flag="-o out/conftest2.$ac_objext"
15992 # Insert the option either (1) after the last *FLAGS variable, or
15993 # (2) before a word containing "conftest.", or (3) at the end.
15994 # Note that $ac_compile itself does not contain backslashes and begins
15995 # with a dollar sign (not a hyphen), so the echo should work correctly.
15996 lt_compile=`echo "$ac_compile" | $SED \
15997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15999 -e 's:$: $lt_compiler_flag:'`
16000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16001 (eval "$lt_compile" 2>out/conftest.err)
16003 cat out/conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16007 # The compiler can only warn and ignore the option if not recognized
16008 # So say no if there are warnings
16009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16010 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16011 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16012 lt_cv_prog_compiler_c_o_CXX=yes
16017 # SGI C++ compiler will create directory out/ii_files/ for
16018 # template instantiation
16019 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16020 $RM out/* && rmdir out
16026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16027 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16032 hard_links=nottested
16033 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16034 # do not overwrite the value of need_locks provided by the user
16035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16036 printf %s "checking if we can lock with hard links... " >&6; }
16039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16041 ln conftest.a conftest.b 2>&5 || hard_links=no
16042 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16044 printf "%s\n" "$hard_links" >&6; }
16045 if test no = "$hard_links"; then
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16047 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16057 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16059 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16060 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16063 # If we're using GNU nm, then we don't want the "-C" option.
16064 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16065 # Without the "-l" option, or with the "-B" option, AIX nm treats
16066 # weak defined symbols like other global defined symbols, whereas
16067 # GNU nm marks them as "W".
16068 # While the 'weak' keyword is ignored in the Export File, we need
16069 # it in the Import File for the 'aix-soname' feature, so we have
16070 # to replace the "-B" option with "-P" for AIX nm.
16071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16072 export_symbols_cmds_CXX='$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'
16074 export_symbols_cmds_CXX='`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'
16078 export_symbols_cmds_CXX=$ltdll_cmds
16080 cygwin* | mingw* | cegcc*)
16081 case $cc_basename in
16083 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16086 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16087 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16091 linux* | k*bsd*-gnu | gnu*)
16092 link_all_deplibs_CXX=no
16095 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16100 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16101 test no = "$ld_shlibs_CXX" && can_build_shared=no
16103 with_gnu_ld_CXX=$with_gnu_ld
16111 # Do we need to explicitly link libc?
16113 case "x$archive_cmds_need_lc_CXX" in
16115 # Assume -lc should be added
16116 archive_cmds_need_lc_CXX=yes
16118 if test yes,yes = "$GCC,$enable_shared"; then
16119 case $archive_cmds_CXX in
16121 # FIXME: we may have to deal with multi-command sequences.
16124 # Test whether the compiler implicitly links with -lc since on some
16125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16126 # to ld, don't add -lc before -lgcc.
16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16128 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16129 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16131 printf %s "(cached) " >&6
16134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16137 (eval $ac_compile) 2>&5
16139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16140 test $ac_status = 0; } 2>conftest.err; then
16143 libobjs=conftest.$ac_objext
16145 wl=$lt_prog_compiler_wl_CXX
16146 pic_flag=$lt_prog_compiler_pic_CXX
16152 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16153 allow_undefined_flag_CXX=
16154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16155 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16158 test $ac_status = 0; }
16160 lt_cv_archive_cmds_need_lc_CXX=no
16162 lt_cv_archive_cmds_need_lc_CXX=yes
16164 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16166 cat conftest.err 1>&5
16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16172 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16173 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16242 printf %s "checking dynamic linker characteristics... " >&6; }
16244 library_names_spec=
16245 libname_spec='lib$name'
16249 postuninstall_cmds=
16253 shlibpath_overrides_runpath=unknown
16255 dynamic_linker="$host_os ld.so"
16256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16257 need_lib_prefix=unknown
16258 hardcode_into_libs=no
16260 # when you set need_version to no, make sure it does not cause -set_version
16261 # flags to be left without arguments
16262 need_version=unknown
16268 version_type=linux # correct to gnu/linux during the next big refactor
16269 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16270 shlibpath_var=LIBPATH
16272 # AIX 3 has no versioning support, so we append a major version to the name.
16273 soname_spec='$libname$release$shared_ext$major'
16277 version_type=linux # correct to gnu/linux during the next big refactor
16280 hardcode_into_libs=yes
16281 if test ia64 = "$host_cpu"; then
16282 # AIX 5 supports IA64
16283 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16284 shlibpath_var=LD_LIBRARY_PATH
16286 # With GCC up to 2.95.x, collect2 would create an import file
16287 # for dependence libraries. The import file would start with
16288 # the line '#! .'. This would cause the generated library to
16289 # depend on '.', always an invalid library. This was fixed in
16290 # development snapshots of GCC prior to 3.0.
16292 aix4 | aix4.[01] | aix4.[01].*)
16293 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16295 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16298 can_build_shared=no
16302 # Using Import Files as archive members, it is possible to support
16303 # filename-based versioning of shared library archives on AIX. While
16304 # this would work for both with and without runtime linking, it will
16305 # prevent static linking of such archives. So we do filename-based
16306 # shared library versioning with .so extension only, which is used
16307 # when both runtime linking and shared linking is enabled.
16308 # Unfortunately, runtime linking may impact performance, so we do
16309 # not want this to be the default eventually. Also, we use the
16310 # versioned .so libs for executables only if there is the -brtl
16311 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16312 # To allow for filename-based versioning support, we need to create
16313 # libNAME.so.V as an archive file, containing:
16314 # *) an Import File, referring to the versioned filename of the
16315 # archive as well as the shared archive member, telling the
16316 # bitwidth (32 or 64) of that shared object, and providing the
16317 # list of exported symbols of that shared object, eventually
16318 # decorated with the 'weak' keyword
16319 # *) the shared object with the F_LOADONLY flag set, to really avoid
16320 # it being seen by the linker.
16321 # At run time we better use the real file rather than another symlink,
16322 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16324 case $with_aix_soname,$aix_use_runtimelinking in
16325 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16326 # soname into executable. Probably we can add versioning support to
16327 # collect2, so additional links can be useful in future.
16328 aix,yes) # traditional libtool
16329 dynamic_linker='AIX unversionable lib.so'
16330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16331 # instead of lib<name>.a to let people know that these are not
16332 # typical AIX shared libraries.
16333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16335 aix,no) # traditional AIX only
16336 dynamic_linker='AIX lib.a(lib.so.V)'
16337 # We preserve .a as extension for shared libraries through AIX4.2
16338 # and later when we are not doing run time linking.
16339 library_names_spec='$libname$release.a $libname.a'
16340 soname_spec='$libname$release$shared_ext$major'
16342 svr4,*) # full svr4 only
16343 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16344 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16345 # We do not specify a path in Import Files, so LIBPATH fires.
16346 shlibpath_overrides_runpath=yes
16348 *,yes) # both, prefer svr4
16349 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16350 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16351 # unpreferred sharedlib libNAME.a needs extra handling
16352 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"'
16353 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"'
16354 # We do not specify a path in Import Files, so LIBPATH fires.
16355 shlibpath_overrides_runpath=yes
16357 *,no) # both, prefer aix
16358 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16359 library_names_spec='$libname$release.a $libname.a'
16360 soname_spec='$libname$release$shared_ext$major'
16361 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16362 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)'
16363 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"'
16366 shlibpath_var=LIBPATH
16373 # Since July 2007 AmigaOS4 officially supports .so libraries.
16374 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16378 library_names_spec='$libname.ixlibrary $libname.a'
16379 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16380 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'
16386 library_names_spec='$libname$shared_ext'
16387 dynamic_linker="$host_os ld.so"
16388 shlibpath_var=LIBRARY_PATH
16392 version_type=linux # correct to gnu/linux during the next big refactor
16394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16395 soname_spec='$libname$release$shared_ext$major'
16396 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16399 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16400 # the default ld.so.conf also contains /usr/contrib/lib and
16401 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16402 # libtool to hard-code these into programs
16405 cygwin* | mingw* | pw32* | cegcc*)
16406 version_type=windows
16411 case $GCC,$cc_basename in
16414 library_names_spec='$libname.dll.a'
16415 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16416 postinstall_cmds='base_file=`basename \$file`~
16417 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16418 dldir=$destdir/`dirname \$dlpath`~
16419 test -d \$dldir || mkdir -p \$dldir~
16420 $install_prog $dir/$dlname \$dldir/$dlname~
16421 chmod a+x \$dldir/$dlname~
16422 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16423 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16426 dlpath=$dir/\$dldll~
16428 shlibpath_overrides_runpath=yes
16432 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16433 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16437 # MinGW DLLs use traditional 'lib' prefix
16438 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16441 # pw32 DLLs use 'pw' prefix rather than 'lib'
16442 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16445 dynamic_linker='Win32 ld.exe'
16449 # Native MSVC or ICC
16450 libname_spec='$name'
16451 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16452 library_names_spec='$libname.dll.lib'
16456 sys_lib_search_path_spec=
16459 for lt_path in $LIB
16462 # Let DOS variable expansion print the short 8.3 style file name.
16463 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16464 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16467 # Convert to MSYS style.
16468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16471 # Convert to unix form, then to dos form, then back to unix form
16472 # but this time dos style (no spaces!) so that the unix form looks
16473 # like /cygdrive/c/PROGRA~1:/cygdr...
16474 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16475 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16476 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16479 sys_lib_search_path_spec=$LIB
16480 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16481 # It is most probably a Windows format PATH.
16482 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16486 # FIXME: find the short name or the path components, as spaces are
16487 # common. (e.g. "Program Files" -> "PROGRA~1")
16491 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16492 postinstall_cmds='base_file=`basename \$file`~
16493 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16494 dldir=$destdir/`dirname \$dlpath`~
16495 test -d \$dldir || mkdir -p \$dldir~
16496 $install_prog $dir/$dlname \$dldir/$dlname'
16497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16498 dlpath=$dir/\$dldll~
16500 shlibpath_overrides_runpath=yes
16501 dynamic_linker='Win32 link.exe'
16505 # Assume MSVC and ICC wrapper
16506 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16507 dynamic_linker='Win32 ld.exe'
16510 # FIXME: first we should search . and the directory the executable is in
16514 darwin* | rhapsody*)
16515 dynamic_linker="$host_os dyld"
16516 version_type=darwin
16519 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16520 soname_spec='$libname$release$major$shared_ext'
16521 shlibpath_overrides_runpath=yes
16522 shlibpath_var=DYLD_LIBRARY_PATH
16523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16529 version_type=linux # correct to gnu/linux during the next big refactor
16532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16533 soname_spec='$libname$release$shared_ext$major'
16534 shlibpath_var=LD_LIBRARY_PATH
16537 freebsd* | dragonfly* | midnightbsd*)
16538 # DragonFly does not have aout. When/if they implement a new
16539 # versioning mechanism, adjust this.
16540 if test -x /usr/bin/objformat; then
16541 objformat=`/usr/bin/objformat`
16544 freebsd[23].*) objformat=aout ;;
16545 *) objformat=elf ;;
16548 version_type=freebsd-$objformat
16549 case $version_type in
16551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16552 soname_spec='$libname$release$shared_ext$major'
16557 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16561 shlibpath_var=LD_LIBRARY_PATH
16564 shlibpath_overrides_runpath=yes
16566 freebsd3.[01]* | freebsdelf3.[01]*)
16567 shlibpath_overrides_runpath=yes
16568 hardcode_into_libs=yes
16570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16572 shlibpath_overrides_runpath=no
16573 hardcode_into_libs=yes
16575 *) # from 4.6 on, and DragonFly
16576 shlibpath_overrides_runpath=yes
16577 hardcode_into_libs=yes
16583 version_type=linux # correct to gnu/linux during the next big refactor
16586 dynamic_linker="$host_os runtime_loader"
16587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16588 soname_spec='$libname$release$shared_ext$major'
16589 shlibpath_var=LIBRARY_PATH
16590 shlibpath_overrides_runpath=no
16591 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16592 hardcode_into_libs=yes
16595 hpux9* | hpux10* | hpux11*)
16596 # Give a soname corresponding to the major version so that dld.sl refuses to
16597 # link against other versions.
16604 hardcode_into_libs=yes
16605 dynamic_linker="$host_os dld.so"
16606 shlibpath_var=LD_LIBRARY_PATH
16607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16609 soname_spec='$libname$release$shared_ext$major'
16610 if test 32 = "$HPUX_IA64_MODE"; then
16611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16612 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16615 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16620 hardcode_into_libs=yes
16621 dynamic_linker="$host_os dld.sl"
16622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16625 soname_spec='$libname$release$shared_ext$major'
16626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16631 dynamic_linker="$host_os dld.sl"
16632 shlibpath_var=SHLIB_PATH
16633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16635 soname_spec='$libname$release$shared_ext$major'
16638 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16639 postinstall_cmds='chmod 555 $lib'
16640 # or fails outright, so override atomically:
16641 install_override_mode=555
16645 version_type=linux # correct to gnu/linux during the next big refactor
16648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16649 soname_spec='$libname$release$shared_ext$major'
16650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16651 shlibpath_var=LD_LIBRARY_PATH
16652 shlibpath_overrides_runpath=no
16653 hardcode_into_libs=yes
16656 irix5* | irix6* | nonstopux*)
16658 nonstopux*) version_type=nonstopux ;;
16660 if test yes = "$lt_cv_prog_gnu_ld"; then
16661 version_type=linux # correct to gnu/linux during the next big refactor
16668 soname_spec='$libname$release$shared_ext$major'
16669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16671 irix5* | nonstopux*)
16672 libsuff= shlibsuff=
16675 case $LD in # libtool.m4 will add one of these switches to LD
16676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16677 libsuff= shlibsuff= libmagic=32-bit;;
16678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16679 libsuff=32 shlibsuff=N32 libmagic=N32;;
16680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16681 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16682 *) libsuff= shlibsuff= libmagic=never-match;;
16686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16687 shlibpath_overrides_runpath=no
16688 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16689 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16690 hardcode_into_libs=yes
16693 # No shared lib support for Linux oldld, aout, or coff.
16694 linux*oldld* | linux*aout* | linux*coff*)
16699 version_type=none # Android doesn't support versioned libraries.
16702 library_names_spec='$libname$release$shared_ext'
16703 soname_spec='$libname$release$shared_ext'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 shlibpath_overrides_runpath=yes
16708 # This implies no fast_install, which is unacceptable.
16709 # Some rework will be needed to allow for fast_install
16710 # before this can be enabled.
16711 hardcode_into_libs=yes
16713 dynamic_linker='Android linker'
16714 # Don't embed -rpath directories since the linker doesn't support them.
16715 hardcode_libdir_flag_spec_CXX='-L$libdir'
16718 # This must be glibc/ELF.
16719 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16720 version_type=linux # correct to gnu/linux during the next big refactor
16723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16724 soname_spec='$libname$release$shared_ext$major'
16725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16726 shlibpath_var=LD_LIBRARY_PATH
16727 shlibpath_overrides_runpath=no
16729 # Some binutils ld are patched to set DT_RUNPATH
16730 if test ${lt_cv_shlibpath_overrides_runpath+y}
16732 printf %s "(cached) " >&6
16734 lt_cv_shlibpath_overrides_runpath=no
16735 save_LDFLAGS=$LDFLAGS
16736 save_libdir=$libdir
16737 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16738 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16750 if ac_fn_cxx_try_link "$LINENO"
16752 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16754 lt_cv_shlibpath_overrides_runpath=yes
16757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16758 conftest$ac_exeext conftest.$ac_ext
16759 LDFLAGS=$save_LDFLAGS
16760 libdir=$save_libdir
16764 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16766 # This implies no fast_install, which is unacceptable.
16767 # Some rework will be needed to allow for fast_install
16768 # before this can be enabled.
16769 hardcode_into_libs=yes
16771 # Ideally, we could use ldconfig to report *all* directores which are
16772 # searched for libraries, however this is still not possible. Aside from not
16773 # being certain /sbin/ldconfig is available, command
16774 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16775 # even though it is searched at run-time. Try to do the best guess by
16776 # appending ld.so.conf contents (and includes) to the search path.
16777 if test -f /etc/ld.so.conf; then
16778 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' ' '`
16779 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16782 # We used to test for /lib/ld.so.1 and disable shared libraries on
16783 # powerpc, because MkLinux only supported shared libraries with the
16784 # GNU dynamic linker. Since this was broken with cross compilers,
16785 # most powerpc-linux boxes support dynamic linking these days and
16786 # people can always --disable-shared, the test was removed, and we
16787 # assume the GNU/Linux dynamic linker is in use.
16788 dynamic_linker='GNU/Linux ld.so'
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 shlibpath_overrides_runpath=no
16799 hardcode_into_libs=yes
16800 dynamic_linker='NetBSD ld.elf_so'
16807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16808 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16810 dynamic_linker='NetBSD (a.out) ld.so'
16812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16813 soname_spec='$libname$release$shared_ext$major'
16814 dynamic_linker='NetBSD ld.elf_so'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 shlibpath_overrides_runpath=yes
16818 hardcode_into_libs=yes
16822 version_type=linux # correct to gnu/linux during the next big refactor
16823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16824 shlibpath_var=LD_LIBRARY_PATH
16825 shlibpath_overrides_runpath=yes
16832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16833 soname_spec='$libname$release$shared_ext$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 shlibpath_overrides_runpath=no
16836 hardcode_into_libs=yes
16837 dynamic_linker='ldqnx.so'
16840 openbsd* | bitrig*)
16842 sys_lib_dlsearch_path_spec=/usr/lib
16844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16849 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 shlibpath_overrides_runpath=yes
16856 libname_spec='$name'
16857 version_type=windows
16861 # OS/2 can only load a DLL with a base name of 8 characters or less.
16862 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16863 v=$($ECHO $release$versuffix | tr -d .-);
16864 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16865 $ECHO $n$v`$shared_ext'
16866 library_names_spec='${libname}_dll.$libext'
16867 dynamic_linker='OS/2 ld.exe'
16868 shlibpath_var=BEGINLIBPATH
16869 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16871 postinstall_cmds='base_file=`basename \$file`~
16872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16873 dldir=$destdir/`dirname \$dlpath`~
16874 test -d \$dldir || mkdir -p \$dldir~
16875 $install_prog $dir/$dlname \$dldir/$dlname~
16876 chmod a+x \$dldir/$dlname~
16877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16881 dlpath=$dir/\$dldll~
16885 osf3* | osf4* | osf5*)
16889 soname_spec='$libname$release$shared_ext$major'
16890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16893 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16901 version_type=linux # correct to gnu/linux during the next big refactor
16904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16905 soname_spec='$libname$release$shared_ext$major'
16906 shlibpath_var=LD_LIBRARY_PATH
16907 shlibpath_overrides_runpath=yes
16908 hardcode_into_libs=yes
16909 # ldd complains unless libraries are executable
16910 postinstall_cmds='chmod +x $lib'
16915 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16916 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16917 shlibpath_var=LD_LIBRARY_PATH
16918 shlibpath_overrides_runpath=yes
16919 if test yes = "$with_gnu_ld"; then
16926 version_type=linux # correct to gnu/linux during the next big refactor
16927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16928 soname_spec='$libname$release$shared_ext$major'
16929 shlibpath_var=LD_LIBRARY_PATH
16930 case $host_vendor in
16932 shlibpath_overrides_runpath=no
16934 runpath_var=LD_RUN_PATH
16942 shlibpath_overrides_runpath=no
16943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16949 if test -d /usr/nec; then
16950 version_type=linux # correct to gnu/linux during the next big refactor
16951 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16952 soname_spec='$libname$shared_ext.$major'
16953 shlibpath_var=LD_LIBRARY_PATH
16957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16962 soname_spec='$libname$release$shared_ext$major'
16963 shlibpath_var=LD_LIBRARY_PATH
16964 shlibpath_overrides_runpath=yes
16965 hardcode_into_libs=yes
16966 if test yes = "$with_gnu_ld"; then
16967 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16969 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16972 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16976 sys_lib_dlsearch_path_spec='/usr/lib'
16980 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16981 version_type=linux # correct to gnu/linux during the next big refactor
16984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16985 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=no
16987 hardcode_into_libs=yes
16991 version_type=linux # correct to gnu/linux during the next big refactor
16992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16993 soname_spec='$libname$release$shared_ext$major'
16994 shlibpath_var=LD_LIBRARY_PATH
17001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17002 printf "%s\n" "$dynamic_linker" >&6; }
17003 test no = "$dynamic_linker" && can_build_shared=no
17005 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17006 if test yes = "$GCC"; then
17007 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17010 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17011 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17014 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17015 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17018 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17019 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17021 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17022 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17024 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17025 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17067 printf %s "checking how to hardcode library paths into programs... " >&6; }
17068 hardcode_action_CXX=
17069 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17070 test -n "$runpath_var_CXX" ||
17071 test yes = "$hardcode_automatic_CXX"; then
17073 # We can hardcode non-existent directories.
17074 if test no != "$hardcode_direct_CXX" &&
17075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17076 # have to relink, otherwise we might link with an installed library
17077 # when we should be linking with a yet-to-be-installed one
17078 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17079 test no != "$hardcode_minus_L_CXX"; then
17080 # Linking always hardcodes the temporary library directory.
17081 hardcode_action_CXX=relink
17083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17084 hardcode_action_CXX=immediate
17087 # We cannot hardcode anything, or else we can only hardcode existing
17089 hardcode_action_CXX=unsupported
17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17092 printf "%s\n" "$hardcode_action_CXX" >&6; }
17094 if test relink = "$hardcode_action_CXX" ||
17095 test yes = "$inherit_rpath_CXX"; then
17096 # Fast installation is not supported
17097 enable_fast_install=no
17098 elif test yes = "$shlibpath_overrides_runpath" ||
17099 test no = "$enable_shared"; then
17100 # Fast installation is not necessary
17101 enable_fast_install=needless
17110 fi # test -n "$compiler"
17113 CFLAGS=$lt_save_CFLAGS
17117 with_gnu_ld=$lt_save_with_gnu_ld
17118 lt_cv_path_LDCXX=$lt_cv_path_LD
17119 lt_cv_path_LD=$lt_save_path_LD
17120 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17121 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17122 fi # test yes != "$_lt_caught_CXX_error"
17125 ac_cpp='$CPP $CPPFLAGS'
17126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17144 ac_config_commands="$ac_config_commands libtool"
17149 # Only expand once:
17160 # Tests for Windows
17165 # Configure libtool
17166 # Check whether --enable-shared was given.
17167 if test ${enable_shared+y}
17169 enableval=$enable_shared; p=${PACKAGE-default}
17171 yes) enable_shared=yes ;;
17172 no) enable_shared=no ;;
17175 # Look at the argument we got. We use all the common list separators.
17176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17177 for pkg in $enableval; do
17179 if test "X$pkg" = "X$p"; then
17195 # Check whether --enable-static was given.
17196 if test ${enable_static+y}
17198 enableval=$enable_static; p=${PACKAGE-default}
17200 yes) enable_static=yes ;;
17201 no) enable_static=no ;;
17204 # Look at the argument we got. We use all the common list separators.
17205 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17206 for pkg in $enableval; do
17208 if test "X$pkg" = "X$p"; then
17224 enable_win32_dll=yes
17227 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
17228 if test -n "$ac_tool_prefix"; then
17229 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
17230 set dummy ${ac_tool_prefix}as; ac_word=$2
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17232 printf %s "checking for $ac_word... " >&6; }
17233 if test ${ac_cv_prog_AS+y}
17235 printf %s "(cached) " >&6
17237 if test -n "$AS"; then
17238 ac_cv_prog_AS="$AS" # Let the user override the test.
17240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241 for as_dir in $PATH
17244 case $as_dir in #(((
17247 *) as_dir=$as_dir/ ;;
17249 for ac_exec_ext in '' $ac_executable_extensions; do
17250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17251 ac_cv_prog_AS="${ac_tool_prefix}as"
17252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17262 if test -n "$AS"; then
17263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
17264 printf "%s\n" "$AS" >&6; }
17266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17267 printf "%s\n" "no" >&6; }
17272 if test -z "$ac_cv_prog_AS"; then
17274 # Extract the first word of "as", so it can be a program name with args.
17275 set dummy as; ac_word=$2
17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17277 printf %s "checking for $ac_word... " >&6; }
17278 if test ${ac_cv_prog_ac_ct_AS+y}
17280 printf %s "(cached) " >&6
17282 if test -n "$ac_ct_AS"; then
17283 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
17285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17286 for as_dir in $PATH
17289 case $as_dir in #(((
17292 *) as_dir=$as_dir/ ;;
17294 for ac_exec_ext in '' $ac_executable_extensions; do
17295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17296 ac_cv_prog_ac_ct_AS="as"
17297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17306 ac_ct_AS=$ac_cv_prog_ac_ct_AS
17307 if test -n "$ac_ct_AS"; then
17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
17309 printf "%s\n" "$ac_ct_AS" >&6; }
17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17312 printf "%s\n" "no" >&6; }
17315 if test "x$ac_ct_AS" = x; then
17318 case $cross_compiling:$ac_tool_warned in
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17321 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17322 ac_tool_warned=yes ;;
17327 AS="$ac_cv_prog_AS"
17330 if test -n "$ac_tool_prefix"; then
17331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17334 printf %s "checking for $ac_word... " >&6; }
17335 if test ${ac_cv_prog_DLLTOOL+y}
17337 printf %s "(cached) " >&6
17339 if test -n "$DLLTOOL"; then
17340 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17343 for as_dir in $PATH
17346 case $as_dir in #(((
17349 *) as_dir=$as_dir/ ;;
17351 for ac_exec_ext in '' $ac_executable_extensions; do
17352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17353 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17363 DLLTOOL=$ac_cv_prog_DLLTOOL
17364 if test -n "$DLLTOOL"; then
17365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17366 printf "%s\n" "$DLLTOOL" >&6; }
17368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369 printf "%s\n" "no" >&6; }
17374 if test -z "$ac_cv_prog_DLLTOOL"; then
17375 ac_ct_DLLTOOL=$DLLTOOL
17376 # Extract the first word of "dlltool", so it can be a program name with args.
17377 set dummy dlltool; ac_word=$2
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17379 printf %s "checking for $ac_word... " >&6; }
17380 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
17382 printf %s "(cached) " >&6
17384 if test -n "$ac_ct_DLLTOOL"; then
17385 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17388 for as_dir in $PATH
17391 case $as_dir in #(((
17394 *) as_dir=$as_dir/ ;;
17396 for ac_exec_ext in '' $ac_executable_extensions; do
17397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17398 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17408 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17409 if test -n "$ac_ct_DLLTOOL"; then
17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17411 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17414 printf "%s\n" "no" >&6; }
17417 if test "x$ac_ct_DLLTOOL" = x; then
17420 case $cross_compiling:$ac_tool_warned in
17422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17423 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17424 ac_tool_warned=yes ;;
17426 DLLTOOL=$ac_ct_DLLTOOL
17429 DLLTOOL="$ac_cv_prog_DLLTOOL"
17432 if test -n "$ac_tool_prefix"; then
17433 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17434 set dummy ${ac_tool_prefix}objdump; ac_word=$2
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17436 printf %s "checking for $ac_word... " >&6; }
17437 if test ${ac_cv_prog_OBJDUMP+y}
17439 printf %s "(cached) " >&6
17441 if test -n "$OBJDUMP"; then
17442 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17445 for as_dir in $PATH
17448 case $as_dir in #(((
17451 *) as_dir=$as_dir/ ;;
17453 for ac_exec_ext in '' $ac_executable_extensions; do
17454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17455 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17465 OBJDUMP=$ac_cv_prog_OBJDUMP
17466 if test -n "$OBJDUMP"; then
17467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17468 printf "%s\n" "$OBJDUMP" >&6; }
17470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17471 printf "%s\n" "no" >&6; }
17476 if test -z "$ac_cv_prog_OBJDUMP"; then
17477 ac_ct_OBJDUMP=$OBJDUMP
17478 # Extract the first word of "objdump", so it can be a program name with args.
17479 set dummy objdump; ac_word=$2
17480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17481 printf %s "checking for $ac_word... " >&6; }
17482 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
17484 printf %s "(cached) " >&6
17486 if test -n "$ac_ct_OBJDUMP"; then
17487 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17490 for as_dir in $PATH
17493 case $as_dir in #(((
17496 *) as_dir=$as_dir/ ;;
17498 for ac_exec_ext in '' $ac_executable_extensions; do
17499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17500 ac_cv_prog_ac_ct_OBJDUMP="objdump"
17501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17510 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17511 if test -n "$ac_ct_OBJDUMP"; then
17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17513 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17516 printf "%s\n" "no" >&6; }
17519 if test "x$ac_ct_OBJDUMP" = x; then
17522 case $cross_compiling:$ac_tool_warned in
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17525 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17526 ac_tool_warned=yes ;;
17528 OBJDUMP=$ac_ct_OBJDUMP
17531 OBJDUMP="$ac_cv_prog_OBJDUMP"
17537 test -z "$AS" && AS=as
17543 test -z "$DLLTOOL" && DLLTOOL=dlltool
17546 test -z "$OBJDUMP" && OBJDUMP=objdump
17557 # Add configure option --enable-maintainer-mode which enables dependency
17558 # checking and generation useful to package maintainers. This is made an
17559 # option to avoid confusing end users.
17561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17562 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17563 # Check whether --enable-maintainer-mode was given.
17564 if test ${enable_maintainer_mode+y}
17566 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17568 USE_MAINTAINER_MODE=no
17571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17572 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
17573 if test $USE_MAINTAINER_MODE = yes; then
17574 MAINTAINER_MODE_TRUE=
17575 MAINTAINER_MODE_FALSE='#'
17577 MAINTAINER_MODE_TRUE='#'
17578 MAINTAINER_MODE_FALSE=
17581 MAINT=$MAINTAINER_MODE_TRUE
17585 # If the C compiler supports the keyword inline, do nothing. Otherwise
17586 # define inline to __inline__ or __inline if it accepts one of those,
17587 # otherwise define inline to be empty.
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17589 printf %s "checking for inline... " >&6; }
17590 if test ${ac_cv_c_inline+y}
17592 printf %s "(cached) " >&6
17595 for ac_kw in inline __inline__ __inline; do
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17598 #ifndef __cplusplus
17600 static $ac_kw foo_t static_foo (void) {return 0; }
17601 $ac_kw foo_t foo (void) {return 0; }
17605 if ac_fn_c_try_compile "$LINENO"
17607 ac_cv_c_inline=$ac_kw
17609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17610 test "$ac_cv_c_inline" != no && break
17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17615 printf "%s\n" "$ac_cv_c_inline" >&6; }
17617 case $ac_cv_c_inline in
17620 case $ac_cv_c_inline in
17622 *) ac_val=$ac_cv_c_inline;;
17624 cat >>confdefs.h <<_ACEOF
17625 #ifndef __cplusplus
17626 #define inline $ac_val
17634 # Check if the C compiler supports the "visibility" function attribute
17635 # If supported, defines HAVE_FUNC_ATTRIBUTE_VISIBILITY
17639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility))" >&5
17640 printf %s "checking for __attribute__((visibility))... " >&6; }
17641 if test ${ax_cv_have_func_attribute_visibility+y}
17643 printf %s "(cached) " >&6
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17650 int foo_def( void ) __attribute__((visibility("default")));
17651 int foo_hid( void ) __attribute__((visibility("hidden")));
17652 int foo_int( void ) __attribute__((visibility("internal")));
17653 int foo_pro( void ) __attribute__((visibility("protected")));
17664 if ac_fn_c_try_link "$LINENO"
17666 if grep -- -Wattributes conftest.err
17668 ax_cv_have_func_attribute_visibility=no
17670 ax_cv_have_func_attribute_visibility=yes
17673 ax_cv_have_func_attribute_visibility=no
17675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17676 conftest$ac_exeext conftest.$ac_ext
17679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_visibility" >&5
17680 printf "%s\n" "$ax_cv_have_func_attribute_visibility" >&6; }
17682 if test yes = $ax_cv_have_func_attribute_visibility
17685 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
17692 # Check if the compiler supports "-fvisibility=hidden" and if yes, add it to CFLAGS
17693 # This means that symbols that are not marked explicitly for export (CMSAPI)
17694 # will not be reachable in the shared library.
17699 for flag in "-fvisibility=hidden"; do
17700 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17702 printf %s "checking whether C compiler accepts $flag... " >&6; }
17703 if eval test \${$as_CACHEVAR+y}
17705 printf %s "(cached) " >&6
17708 ax_check_save_flags=$CFLAGS
17709 CFLAGS="$CFLAGS $flag"
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17721 if ac_fn_c_try_compile "$LINENO"
17723 eval "$as_CACHEVAR=yes"
17725 eval "$as_CACHEVAR=no"
17727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17728 CFLAGS=$ax_check_save_flags
17730 eval ac_res=\$$as_CACHEVAR
17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17732 printf "%s\n" "$ac_res" >&6; }
17733 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17736 if test ${CFLAGS+y}
17739 case " $CFLAGS " in #(
17741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17742 (: CFLAGS already contains $flag) 2>&5
17744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17745 test $ac_status = 0; } ;; #(
17748 as_fn_append CFLAGS " $flag"
17749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17750 (: CFLAGS="$CFLAGS") 2>&5
17752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17753 test $ac_status = 0; }
17760 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17761 (: CFLAGS="$CFLAGS") 2>&5
17763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17764 test $ac_status = 0; }
17775 # If words are stored with the most significant byte first (like
17776 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17778 printf %s "checking whether byte ordering is bigendian... " >&6; }
17779 if test ${ac_cv_c_bigendian+y}
17781 printf %s "(cached) " >&6
17783 ac_cv_c_bigendian=unknown
17784 # See if we're dealing with a universal compiler.
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17787 #ifndef __APPLE_CC__
17788 not a universal capable compiler
17793 if ac_fn_c_try_compile "$LINENO"
17796 # Check for potential -arch flags. It is not universal unless
17797 # there are at least two -arch flags with different values.
17800 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17801 if test -n "$ac_prev"; then
17803 i?86 | x86_64 | ppc | ppc64)
17804 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17807 ac_cv_c_bigendian=universal
17813 elif test "x$ac_word" = "x-arch"; then
17818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17819 if test $ac_cv_c_bigendian = unknown; then
17820 # See if sys/param.h defines the BYTE_ORDER macro.
17821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h. */
17823 #include <sys/types.h>
17824 #include <sys/param.h>
17829 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17830 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17832 bogus endian macros
17839 if ac_fn_c_try_compile "$LINENO"
17841 # It does; now see whether it defined to BIG_ENDIAN or not.
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h. */
17844 #include <sys/types.h>
17845 #include <sys/param.h>
17850 #if BYTE_ORDER != BIG_ENDIAN
17858 if ac_fn_c_try_compile "$LINENO"
17860 ac_cv_c_bigendian=yes
17862 ac_cv_c_bigendian=no
17864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17868 if test $ac_cv_c_bigendian = unknown; then
17869 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h. */
17872 #include <limits.h>
17877 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17878 bogus endian macros
17885 if ac_fn_c_try_compile "$LINENO"
17887 # It does; now see whether it defined to _BIG_ENDIAN or not.
17888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h. */
17890 #include <limits.h>
17895 #ifndef _BIG_ENDIAN
17903 if ac_fn_c_try_compile "$LINENO"
17905 ac_cv_c_bigendian=yes
17907 ac_cv_c_bigendian=no
17909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17913 if test $ac_cv_c_bigendian = unknown; then
17914 # Compile a test program.
17915 if test "$cross_compiling" = yes
17917 # Try to guess by grepping values from an object file.
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920 unsigned short int ascii_mm[] =
17921 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17922 unsigned short int ascii_ii[] =
17923 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17924 int use_ascii (int i) {
17925 return ascii_mm[i] + ascii_ii[i];
17927 unsigned short int ebcdic_ii[] =
17928 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17929 unsigned short int ebcdic_mm[] =
17930 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17931 int use_ebcdic (int i) {
17932 return ebcdic_mm[i] + ebcdic_ii[i];
17939 return use_ascii (foo) == use_ebcdic (foo);
17944 if ac_fn_c_try_compile "$LINENO"
17946 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17947 ac_cv_c_bigendian=yes
17949 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17950 if test "$ac_cv_c_bigendian" = unknown; then
17951 ac_cv_c_bigendian=no
17953 # finding both strings is unlikely to happen, but who knows?
17954 ac_cv_c_bigendian=unknown
17958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962 $ac_includes_default
17967 /* Are we little or big endian? From Harbison&Steele. */
17971 char c[sizeof (long int)];
17974 return u.c[sizeof (long int) - 1] == 1;
17980 if ac_fn_c_try_run "$LINENO"
17982 ac_cv_c_bigendian=no
17984 ac_cv_c_bigendian=yes
17986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17987 conftest.$ac_objext conftest.beam conftest.$ac_ext
17992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17993 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
17994 case $ac_cv_c_bigendian in #(
17996 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
18002 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18006 as_fn_error $? "unknown endianness
18007 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18011 # Check for threadsafe variants of gmtime
18012 # Note: check for gmtime_s is a bit more complex as it is implemented as a macro
18014 for ac_func in gmtime_r
18016 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18017 if test "x$ac_cv_func_gmtime_r" = xyes
18019 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
18023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmtime_s" >&5
18024 printf %s "checking for gmtime_s... " >&6; }
18025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h. */
18042 if ac_fn_c_try_link "$LINENO"
18044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18045 printf "%s\n" "yes" >&6; }
18047 printf "%s\n" "#define HAVE_GMTIME_S 1" >>confdefs.h
18050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18051 printf "%s\n" "no" >&6; }
18054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18055 conftest$ac_exeext conftest.$ac_ext
18060 # Point to JPEG installed in DIR or disable JPEG with --without-jpeg.
18062 # Check whether --with-jpeg was given.
18063 if test ${with_jpeg+y}
18065 withval=$with_jpeg;
18066 if test "x$withval" = "xno" ; then
18069 if test "x$withval" != "xyes" ; then
18072 CPPFLAGS="$CPPFLAGS -I$JPEG_DIR/include"
18073 LDFLAGS="$LDFLAGS -L$JPEG_DIR/lib"
18083 # Point to TIFF installed in DIR or disable TIFF with --without-tiff.
18085 # Check whether --with-tiff was given.
18086 if test ${with_tiff+y}
18088 withval=$with_tiff;
18089 if test "x$withval" = "xno" ; then
18092 if test "x$withval" != "xyes" ; then
18095 CPPFLAGS="$CPPFLAGS -I$TIFF_DIR/include"
18096 LDFLAGS="$LDFLAGS -L$TIFF_DIR/lib"
18108 # Check whether --with-zlib was given.
18109 if test ${with_zlib+y}
18111 withval=$with_zlib; with_zlib=$withval
18117 #fast_float plugin:
18119 # Check whether --with-fastfloat was given.
18120 if test ${with_fastfloat+y}
18122 withval=$with_fastfloat;
18123 with_fastfloat=$withval
18127 with_fastfloat='no'
18131 if test "x$with_fastfloat" = "xyes"
18133 LIB_PLUGINS="$LIB_PLUGINS -llcms2_fast_float"
18136 #multi threaded plugin:
18138 # Check whether --with-threaded was given.
18139 if test ${with_threaded+y}
18141 withval=$with_threaded;
18142 with_threaded=$withval
18150 if test "x$with_threaded" = "xyes"
18152 LIB_PLUGINS="$LIB_PLUGINS -llcms2_threaded"
18156 # Determine POSIX threads settings
18158 # Enable support for POSIX thread APIs
18160 # Check whether --with-threads was given.
18161 if test ${with_threads+y}
18163 withval=$with_threads; with_threads=$withval
18170 if test "$with_threads" != 'no'
18179 ac_cpp='$CPP $CPPFLAGS'
18180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18186 # We used to check for pthread.h first, but this fails if pthread.h
18187 # requires special compiler flags (e.g. on Tru64 or Sequent).
18188 # It gets checked for in the link test anyway.
18190 # First of all, check if the user has set any of the PTHREAD_LIBS,
18191 # etcetera environment variables, and if threads linking works using
18193 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
18194 ax_pthread_save_CC="$CC"
18195 ax_pthread_save_CFLAGS="$CFLAGS"
18196 ax_pthread_save_LIBS="$LIBS"
18197 if test "x$PTHREAD_CC" != "x"
18201 if test "x$PTHREAD_CXX" != "x"
18205 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18206 LIBS="$PTHREAD_LIBS $LIBS"
18207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
18208 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18212 /* Override any GCC internal prototype to avoid an error.
18213 Use char because int might match the return type of a GCC
18214 builtin and then its argument prototype would still apply. */
18215 char pthread_join ();
18219 return pthread_join ();
18224 if ac_fn_c_try_link "$LINENO"
18228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18229 conftest$ac_exeext conftest.$ac_ext
18230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18231 printf "%s\n" "$ax_pthread_ok" >&6; }
18232 if test "x$ax_pthread_ok" = "xno"; then
18236 CC="$ax_pthread_save_CC"
18237 CFLAGS="$ax_pthread_save_CFLAGS"
18238 LIBS="$ax_pthread_save_LIBS"
18241 # We must check for the threads library under a number of different
18242 # names; the ordering is very important because some systems
18243 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18244 # libraries is broken (non-POSIX).
18246 # Create a list of thread flags to try. Items with a "," contain both
18247 # C compiler flags (before ",") and linker flags (after ","). Other items
18248 # starting with a "-" are C compiler flags, and remaining items are
18249 # library names, except for "none" which indicates that we try without
18250 # any flags at all, and "pthread-config" which is a program returning
18251 # the flags for the Pth emulation library.
18253 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18255 # The ordering *is* (sometimes) important. Some notes on the
18256 # individual items follow:
18258 # pthreads: AIX (must check this before -lpthread)
18259 # none: in case threads are in libc; should be tried before -Kthread and
18260 # other compiler flags to prevent continual compiler warnings
18261 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18262 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
18263 # (Note: HP C rejects this with "bad form for `-t' option")
18264 # -pthreads: Solaris/gcc (Note: HP C also rejects)
18265 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18266 # doesn't hurt to check since this sometimes defines pthreads and
18267 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
18268 # is present but should not be used directly; and before -mthreads,
18269 # because the compiler interprets this as "-mt" + "-hreads")
18270 # -mthreads: Mingw32/gcc, Lynx/gcc
18271 # pthread: Linux, etcetera
18272 # --thread-safe: KAI C++
18273 # pthread-config: use pthread-config program (for GNU Pth library)
18279 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18280 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18282 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
18287 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
18288 # multi-threading and also sets -lpthread."
18290 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
18295 # IBM z/OS requires a feature-test macro to be defined in order to
18296 # enable POSIX threads at all, so give the user a hint if this is
18297 # not set. (We don't define these ourselves, as they can affect
18298 # other portions of the system API in unpredictable ways.)
18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18303 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
18304 AX_PTHREAD_ZOS_MISSING
18308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18309 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
18311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
18312 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
18320 # On Solaris (at least, for some versions), libc contains stubbed
18321 # (non-functional) versions of the pthreads routines, so link-based
18322 # tests will erroneously succeed. (N.B.: The stubs are missing
18323 # pthread_cleanup_push, or rather a function called by this macro,
18324 # so we could check for that, but who knows whether they'll stub
18325 # that too in a future libc.) So we'll check first for the
18326 # standard Solaris way of linking pthreads (-mt -lpthread).
18328 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
18332 # Are we compiling with Clang?
18334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
18335 printf %s "checking whether $CC is Clang... " >&6; }
18336 if test ${ax_cv_PTHREAD_CLANG+y}
18338 printf %s "(cached) " >&6
18340 ax_cv_PTHREAD_CLANG=no
18341 # Note that Autoconf sets GCC=yes for Clang as well as GCC
18342 if test "x$GCC" = "xyes"; then
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18345 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
18346 # if defined(__clang__) && defined(__llvm__)
18347 AX_PTHREAD_CC_IS_CLANG
18351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18352 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
18354 ax_cv_PTHREAD_CLANG=yes
18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
18362 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
18363 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
18366 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
18368 # Note that for GCC and Clang -pthread generally implies -lpthread,
18369 # except when -nostdlib is passed.
18370 # This is problematic using libtool to build C++ shared libraries with pthread:
18371 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
18372 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
18373 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
18374 # To solve this, first try -pthread together with -lpthread for GCC
18376 if test "x$GCC" = "xyes"
18378 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
18381 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
18383 if test "x$ax_pthread_clang" = "xyes"
18385 ax_pthread_flags="-pthread,-lpthread -pthread"
18389 # The presence of a feature test macro requesting re-entrant function
18390 # definitions is, on some systems, a strong hint that pthreads support is
18391 # correctly enabled
18394 darwin* | hpux* | linux* | osf* | solaris*)
18395 ax_pthread_check_macro="_REENTRANT"
18399 ax_pthread_check_macro="_THREAD_SAFE"
18403 ax_pthread_check_macro="--"
18406 if test "x$ax_pthread_check_macro" = "x--"
18408 ax_pthread_check_cond=0
18410 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
18414 if test "x$ax_pthread_ok" = "xno"; then
18415 for ax_pthread_try_flag in $ax_pthread_flags; do
18417 case $ax_pthread_try_flag in
18419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18420 printf %s "checking whether pthreads work without any flags... " >&6; }
18424 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
18425 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
18426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
18427 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
18432 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
18433 PTHREAD_CFLAGS="$ax_pthread_try_flag"
18437 # Extract the first word of "pthread-config", so it can be a program name with args.
18438 set dummy pthread-config; ac_word=$2
18439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18440 printf %s "checking for $ac_word... " >&6; }
18441 if test ${ac_cv_prog_ax_pthread_config+y}
18443 printf %s "(cached) " >&6
18445 if test -n "$ax_pthread_config"; then
18446 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18449 for as_dir in $PATH
18452 case $as_dir in #(((
18455 *) as_dir=$as_dir/ ;;
18457 for ac_exec_ext in '' $ac_executable_extensions; do
18458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18459 ac_cv_prog_ax_pthread_config="yes"
18460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18467 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18470 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18471 if test -n "$ax_pthread_config"; then
18472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18473 printf "%s\n" "$ax_pthread_config" >&6; }
18475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18476 printf "%s\n" "no" >&6; }
18480 if test "x$ax_pthread_config" = "xno"
18484 PTHREAD_CFLAGS="`pthread-config --cflags`"
18485 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
18490 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
18491 PTHREAD_LIBS="-l$ax_pthread_try_flag"
18495 ax_pthread_save_CFLAGS="$CFLAGS"
18496 ax_pthread_save_LIBS="$LIBS"
18497 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18498 LIBS="$PTHREAD_LIBS $LIBS"
18500 # Check for various functions. We must include pthread.h,
18501 # since some functions may be macros. (On the Sequent, we
18502 # need a special flag -Kthread to make this header compile.)
18503 # We check for pthread_join because it is in -lpthread on IRIX
18504 # while pthread_create is in libc. We check for pthread_attr_init
18505 # due to DEC craziness with -lpthreads. We check for
18506 # pthread_cleanup_push because it is one of the few pthread
18507 # functions on Solaris that doesn't have a non-functional libc stub.
18508 # We try pthread_create on general principles.
18510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18512 #include <pthread.h>
18513 # if $ax_pthread_check_cond
18514 # error "$ax_pthread_check_macro must be defined"
18516 static void *some_global = NULL;
18517 static void routine(void *a)
18519 /* To avoid any unused-parameter or
18520 unused-but-set-parameter warning. */
18523 static void *start_routine(void *a) { return a; }
18527 pthread_t th; pthread_attr_t attr;
18528 pthread_create(&th, 0, start_routine, 0);
18529 pthread_join(th, 0);
18530 pthread_attr_init(&attr);
18531 pthread_cleanup_push(routine, 0);
18532 pthread_cleanup_pop(0) /* ; */
18537 if ac_fn_c_try_link "$LINENO"
18541 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18542 conftest$ac_exeext conftest.$ac_ext
18544 CFLAGS="$ax_pthread_save_CFLAGS"
18545 LIBS="$ax_pthread_save_LIBS"
18547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18548 printf "%s\n" "$ax_pthread_ok" >&6; }
18549 if test "x$ax_pthread_ok" = "xyes"
18560 # Clang needs special handling, because older versions handle the -pthread
18561 # option in a rather... idiosyncratic way
18563 if test "x$ax_pthread_clang" = "xyes"; then
18565 # Clang takes -pthread; it has never supported any other flag
18567 # (Note 1: This will need to be revisited if a system that Clang
18568 # supports has POSIX threads in a separate library. This tends not
18569 # to be the way of modern systems, but it's conceivable.)
18571 # (Note 2: On some systems, notably Darwin, -pthread is not needed
18572 # to get POSIX threads support; the API is always present and
18573 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
18574 # -pthread does define _REENTRANT, and while the Darwin headers
18575 # ignore this macro, third-party headers might not.)
18577 # However, older versions of Clang make a point of warning the user
18578 # that, in an invocation where only linking and no compilation is
18579 # taking place, the -pthread option has no effect ("argument unused
18580 # during compilation"). They expect -pthread to be passed in only
18581 # when source code is being compiled.
18583 # Problem is, this is at odds with the way Automake and most other
18584 # C build frameworks function, which is that the same flags used in
18585 # compilation (CFLAGS) are also used in linking. Many systems
18586 # supported by AX_PTHREAD require exactly this for POSIX threads
18587 # support, and in fact it is often not straightforward to specify a
18588 # flag that is used only in the compilation phase and not in
18589 # linking. Such a scenario is extremely rare in practice.
18591 # Even though use of the -pthread flag in linking would only print
18592 # a warning, this can be a nuisance for well-run software projects
18593 # that build with -Werror. So if the active version of Clang has
18594 # this misfeature, we search for an option to squash it.
18596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
18597 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
18598 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
18600 printf %s "(cached) " >&6
18602 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
18603 # Create an alternate version of $ac_link that compiles and
18604 # links in two steps (.c -> .o, .o -> exe) instead of one
18605 # (.c -> exe), because the warning occurs only in the second
18607 ax_pthread_save_ac_link="$ac_link"
18608 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
18609 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
18610 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
18611 ax_pthread_save_CFLAGS="$CFLAGS"
18612 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
18613 if test "x$ax_pthread_try" = "xunknown"
18617 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
18618 ac_link="$ax_pthread_save_ac_link"
18619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h. */
18621 int main(void){return 0;}
18623 if ac_fn_c_try_link "$LINENO"
18625 ac_link="$ax_pthread_2step_ac_link"
18626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h. */
18628 int main(void){return 0;}
18630 if ac_fn_c_try_link "$LINENO"
18634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18635 conftest$ac_exeext conftest.$ac_ext
18638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18639 conftest$ac_exeext conftest.$ac_ext
18641 ac_link="$ax_pthread_save_ac_link"
18642 CFLAGS="$ax_pthread_save_CFLAGS"
18643 if test "x$ax_pthread_try" = "x"
18647 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
18650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
18651 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
18653 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
18655 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
18658 fi # $ax_pthread_clang = yes
18662 # Various other checks:
18663 if test "x$ax_pthread_ok" = "xyes"; then
18664 ax_pthread_save_CFLAGS="$CFLAGS"
18665 ax_pthread_save_LIBS="$LIBS"
18666 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18667 LIBS="$PTHREAD_LIBS $LIBS"
18669 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18671 printf %s "checking for joinable pthread attribute... " >&6; }
18672 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
18674 printf %s "(cached) " >&6
18676 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
18677 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18680 #include <pthread.h>
18684 int attr = $ax_pthread_attr; return attr /* ; */
18689 if ac_fn_c_try_link "$LINENO"
18691 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
18693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18694 conftest$ac_exeext conftest.$ac_ext
18698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
18699 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
18700 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
18701 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
18702 test "x$ax_pthread_joinable_attr_defined" != "xyes"
18705 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
18707 ax_pthread_joinable_attr_defined=yes
18711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
18712 printf %s "checking whether more special flags are required for pthreads... " >&6; }
18713 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
18715 printf %s "(cached) " >&6
18717 ax_cv_PTHREAD_SPECIAL_FLAGS=no
18720 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
18725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
18726 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
18727 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
18728 test "x$ax_pthread_special_flags_added" != "xyes"
18730 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
18731 ax_pthread_special_flags_added=yes
18734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18735 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18736 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
18738 printf %s "(cached) " >&6
18740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18742 #include <pthread.h>
18746 int i = PTHREAD_PRIO_INHERIT;
18752 if ac_fn_c_try_link "$LINENO"
18754 ax_cv_PTHREAD_PRIO_INHERIT=yes
18756 ax_cv_PTHREAD_PRIO_INHERIT=no
18758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18759 conftest$ac_exeext conftest.$ac_ext
18762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18763 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18764 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
18765 test "x$ax_pthread_prio_inherit_defined" != "xyes"
18768 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18770 ax_pthread_prio_inherit_defined=yes
18774 CFLAGS="$ax_pthread_save_CFLAGS"
18775 LIBS="$ax_pthread_save_LIBS"
18777 # More AIX lossage: compile with *_r variant
18778 if test "x$GCC" != "xyes"; then
18782 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18783 #handle absolute path differently from PATH based program lookup
18787 if as_fn_executable_p ${CC}_r
18789 PTHREAD_CC="${CC}_r"
18791 if test "x${CXX}" != "x"
18793 if as_fn_executable_p ${CXX}_r
18795 PTHREAD_CXX="${CXX}_r"
18801 for ac_prog in ${CC}_r
18803 # Extract the first word of "$ac_prog", so it can be a program name with args.
18804 set dummy $ac_prog; ac_word=$2
18805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18806 printf %s "checking for $ac_word... " >&6; }
18807 if test ${ac_cv_prog_PTHREAD_CC+y}
18809 printf %s "(cached) " >&6
18811 if test -n "$PTHREAD_CC"; then
18812 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18815 for as_dir in $PATH
18818 case $as_dir in #(((
18821 *) as_dir=$as_dir/ ;;
18823 for ac_exec_ext in '' $ac_executable_extensions; do
18824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18825 ac_cv_prog_PTHREAD_CC="$ac_prog"
18826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18835 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18836 if test -n "$PTHREAD_CC"; then
18837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18838 printf "%s\n" "$PTHREAD_CC" >&6; }
18840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18841 printf "%s\n" "no" >&6; }
18845 test -n "$PTHREAD_CC" && break
18847 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18849 if test "x${CXX}" != "x"
18851 for ac_prog in ${CXX}_r
18853 # Extract the first word of "$ac_prog", so it can be a program name with args.
18854 set dummy $ac_prog; ac_word=$2
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18856 printf %s "checking for $ac_word... " >&6; }
18857 if test ${ac_cv_prog_PTHREAD_CXX+y}
18859 printf %s "(cached) " >&6
18861 if test -n "$PTHREAD_CXX"; then
18862 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
18864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18865 for as_dir in $PATH
18868 case $as_dir in #(((
18871 *) as_dir=$as_dir/ ;;
18873 for ac_exec_ext in '' $ac_executable_extensions; do
18874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18875 ac_cv_prog_PTHREAD_CXX="$ac_prog"
18876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18885 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
18886 if test -n "$PTHREAD_CXX"; then
18887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
18888 printf "%s\n" "$PTHREAD_CXX" >&6; }
18890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18891 printf "%s\n" "no" >&6; }
18895 test -n "$PTHREAD_CXX" && break
18897 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18912 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18913 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18920 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18921 if test "x$ax_pthread_ok" = "xyes"; then
18923 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
18931 ac_cpp='$CPP $CPPFLAGS'
18932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18938 if test "$ax_pthread_ok" = yes
18942 DEF_THREAD="$PTHREAD_CFLAGS"
18943 CFLAGS="$CFLAGS $DEF_THREAD"
18944 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
18946 if test "$CC" != "$PTHREAD_CC"
18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
18949 printf "%s\n" "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
18952 if test "$CXX" != "$PTHREAD_CXX"
18954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
18955 printf "%s\n" "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
18961 # check if compiler supports SSE2 intrinsics
18963 ac_cpp='$CPP $CPPFLAGS'
18964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports SSE2" >&5
18970 printf %s "checking whether compiler supports SSE2... " >&6; }
18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h. */
18974 #include <emmintrin.h>
18975 int main() { __m128i n = _mm_set1_epi8(42); }
18977 if ac_fn_c_try_compile "$LINENO"
18979 ac_compiler_supports_sse2=yes
18981 ac_compiler_supports_sse2=no
18983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_compiler_supports_sse2" >&5
18985 printf "%s\n" "$ac_compiler_supports_sse2" >&6; }
18986 if test "x$ac_compiler_supports_sse2" != "xyes"
18989 printf "%s\n" "#define CMS_DONT_USE_SSE2 1" >>confdefs.h
18994 ac_cpp='$CPP $CPPFLAGS'
18995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19001 # Find math library
19004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
19005 printf %s "checking for sqrt in -lm... " >&6; }
19006 if test ${ac_cv_lib_m_sqrt+y}
19008 printf %s "(cached) " >&6
19010 ac_check_lib_save_LIBS=$LIBS
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19015 /* Override any GCC internal prototype to avoid an error.
19016 Use char because int might match the return type of a GCC
19017 builtin and then its argument prototype would still apply. */
19027 if ac_fn_c_try_link "$LINENO"
19029 ac_cv_lib_m_sqrt=yes
19031 ac_cv_lib_m_sqrt=no
19033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19034 conftest$ac_exeext conftest.$ac_ext
19035 LIBS=$ac_check_lib_save_LIBS
19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
19038 printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
19039 if test "x$ac_cv_lib_m_sqrt" = xyes
19044 LIBS="$LIB_MATH $LIBS"
19048 # Find Posix threads library
19051 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'
19053 for lib in pthread pthreads
19055 if test "x$PTHREAD_LIBS" = "x" ; then
19056 as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lib""_pthread_mutex_lock" | $as_tr_sh`
19057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -l$lib" >&5
19058 printf %s "checking for pthread_mutex_lock in -l$lib... " >&6; }
19059 if eval test \${$as_ac_Lib+y}
19061 printf %s "(cached) " >&6
19063 ac_check_lib_save_LIBS=$LIBS
19064 LIBS="-l$lib $LIBS"
19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h. */
19068 /* Override any GCC internal prototype to avoid an error.
19069 Use char because int might match the return type of a GCC
19070 builtin and then its argument prototype would still apply. */
19071 char pthread_mutex_lock ();
19075 return pthread_mutex_lock ();
19080 if ac_fn_c_try_link "$LINENO"
19082 eval "$as_ac_Lib=yes"
19084 eval "$as_ac_Lib=no"
19086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19087 conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19090 eval ac_res=\$$as_ac_Lib
19091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19092 printf "%s\n" "$ac_res" >&6; }
19093 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
19095 PTHREAD_LIBS=-l$lib
19101 LIB_THREAD="$PTHREAD_LIBS"
19102 LIBS="$LIBS $LIB_THREAD"
19104 printf "%s\n" "#define HasTHREADS 1" >>confdefs.h
19108 printf "%s\n" "#define HasTHREADS 0" >>confdefs.h
19118 if test ! "$with_jpeg" = 'no'
19120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG support" >&5
19121 printf %s "checking for JPEG support... " >&6; }
19122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19123 printf "%s\n" "" >&6; }
19126 ac_fn_c_check_header_compile "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
19127 if test "x$ac_cv_header_jconfig_h" = xyes
19129 passed=`expr $passed + 1`
19131 failed=`expr $failed + 1`
19134 ac_fn_c_check_header_compile "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
19135 if test "x$ac_cv_header_jerror_h" = xyes
19137 passed=`expr $passed + 1`
19139 failed=`expr $failed + 1`
19142 ac_fn_c_check_header_compile "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "#include <jconfig.h>
19144 if test "x$ac_cv_header_jmorecfg_h" = xyes
19146 passed=`expr $passed + 1`
19148 failed=`expr $failed + 1`
19151 ac_fn_c_check_header_compile "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
19152 if test "x$ac_cv_header_jpeglib_h" = xyes
19154 passed=`expr $passed + 1`
19156 failed=`expr $failed + 1`
19159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
19160 printf %s "checking for jpeg_read_header in -ljpeg... " >&6; }
19161 if test ${ac_cv_lib_jpeg_jpeg_read_header+y}
19163 printf %s "(cached) " >&6
19165 ac_check_lib_save_LIBS=$LIBS
19166 LIBS="-ljpeg $LIBS"
19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h. */
19170 /* Override any GCC internal prototype to avoid an error.
19171 Use char because int might match the return type of a GCC
19172 builtin and then its argument prototype would still apply. */
19173 char jpeg_read_header ();
19177 return jpeg_read_header ();
19182 if ac_fn_c_try_link "$LINENO"
19184 ac_cv_lib_jpeg_jpeg_read_header=yes
19186 ac_cv_lib_jpeg_jpeg_read_header=no
19188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19189 conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19193 printf "%s\n" "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
19194 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes
19196 passed=`expr $passed + 1`
19198 failed=`expr $failed + 1`
19202 # Test for compatible JPEG library
19203 if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
19205 printf %s "checking for JPEG library is version 6b or later... " >&6; }
19206 if test ${ac_cv_jpeg_version_ok+y}
19208 printf %s "(cached) " >&6
19210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19211 /* end confdefs.h. */
19213 #include <stdlib.h>
19214 #include <jpeglib.h>
19220 #if JPEG_LIB_VERSION < 62
19221 #error IJG JPEG library must be version 6b or newer!
19229 if ac_fn_c_try_compile "$LINENO"
19231 ac_cv_jpeg_version_ok='yes'
19233 ac_cv_jpeg_version_ok='no'
19235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
19238 printf "%s\n" "$ac_cv_jpeg_version_ok" >&6; }
19239 if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241 printf "%s\n" "yes" >&6; }
19242 passed=`expr $passed + 1`
19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 printf "%s\n" "no" >&6; }
19246 failed=`expr $failed + 1`
19249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
19250 printf %s "checking if JPEG package is complete... " >&6; }
19251 if test $passed -gt 0
19253 if test $failed -gt 0
19255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
19256 printf "%s\n" "no -- some components failed test" >&6; }
19257 have_jpeg='no (failed tests)'
19260 LIBS="$LIB_JPEG $LIBS"
19262 printf "%s\n" "#define HasJPEG 1" >>confdefs.h
19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 printf "%s\n" "yes" >&6; }
19269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 printf "%s\n" "no" >&6; }
19273 if test "$have_jpeg" = 'yes'; then
19287 if test ! "$with_zlib" = 'no' || test ! "$with_tiff" = 'no'
19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
19291 printf %s "checking for ZLIB support ... " >&6; }
19292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19293 printf "%s\n" "" >&6; }
19296 ac_fn_c_check_header_compile "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
19297 if test "x$ac_cv_header_zconf_h" = xyes
19299 passed=`expr $passed + 1`
19301 failed=`expr $failed + 1`
19304 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19305 if test "x$ac_cv_header_zlib_h" = xyes
19307 passed=`expr $passed + 1`
19309 failed=`expr $failed + 1`
19312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19313 printf %s "checking for compress in -lz... " >&6; }
19314 if test ${ac_cv_lib_z_compress+y}
19316 printf %s "(cached) " >&6
19318 ac_check_lib_save_LIBS=$LIBS
19320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h. */
19323 /* Override any GCC internal prototype to avoid an error.
19324 Use char because int might match the return type of a GCC
19325 builtin and then its argument prototype would still apply. */
19330 return compress ();
19335 if ac_fn_c_try_link "$LINENO"
19337 ac_cv_lib_z_compress=yes
19339 ac_cv_lib_z_compress=no
19341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19342 conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19346 printf "%s\n" "$ac_cv_lib_z_compress" >&6; }
19347 if test "x$ac_cv_lib_z_compress" = xyes
19349 passed=`expr $passed + 1`
19351 failed=`expr $failed + 1`
19354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
19355 printf %s "checking for uncompress in -lz... " >&6; }
19356 if test ${ac_cv_lib_z_uncompress+y}
19358 printf %s "(cached) " >&6
19360 ac_check_lib_save_LIBS=$LIBS
19362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h. */
19365 /* Override any GCC internal prototype to avoid an error.
19366 Use char because int might match the return type of a GCC
19367 builtin and then its argument prototype would still apply. */
19368 char uncompress ();
19372 return uncompress ();
19377 if ac_fn_c_try_link "$LINENO"
19379 ac_cv_lib_z_uncompress=yes
19381 ac_cv_lib_z_uncompress=no
19383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19384 conftest$ac_exeext conftest.$ac_ext
19385 LIBS=$ac_check_lib_save_LIBS
19387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
19388 printf "%s\n" "$ac_cv_lib_z_uncompress" >&6; }
19389 if test "x$ac_cv_lib_z_uncompress" = xyes
19391 passed=`expr $passed + 1`
19393 failed=`expr $failed + 1`
19396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
19397 printf %s "checking for deflate in -lz... " >&6; }
19398 if test ${ac_cv_lib_z_deflate+y}
19400 printf %s "(cached) " >&6
19402 ac_check_lib_save_LIBS=$LIBS
19404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405 /* end confdefs.h. */
19407 /* Override any GCC internal prototype to avoid an error.
19408 Use char because int might match the return type of a GCC
19409 builtin and then its argument prototype would still apply. */
19419 if ac_fn_c_try_link "$LINENO"
19421 ac_cv_lib_z_deflate=yes
19423 ac_cv_lib_z_deflate=no
19425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19426 conftest$ac_exeext conftest.$ac_ext
19427 LIBS=$ac_check_lib_save_LIBS
19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
19430 printf "%s\n" "$ac_cv_lib_z_deflate" >&6; }
19431 if test "x$ac_cv_lib_z_deflate" = xyes
19433 passed=`expr $passed + 1`
19435 failed=`expr $failed + 1`
19438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
19439 printf %s "checking for inflate in -lz... " >&6; }
19440 if test ${ac_cv_lib_z_inflate+y}
19442 printf %s "(cached) " >&6
19444 ac_check_lib_save_LIBS=$LIBS
19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h. */
19449 /* Override any GCC internal prototype to avoid an error.
19450 Use char because int might match the return type of a GCC
19451 builtin and then its argument prototype would still apply. */
19461 if ac_fn_c_try_link "$LINENO"
19463 ac_cv_lib_z_inflate=yes
19465 ac_cv_lib_z_inflate=no
19467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19468 conftest$ac_exeext conftest.$ac_ext
19469 LIBS=$ac_check_lib_save_LIBS
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
19472 printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
19473 if test "x$ac_cv_lib_z_inflate" = xyes
19475 passed=`expr $passed + 1`
19477 failed=`expr $failed + 1`
19480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
19481 printf %s "checking for gzseek in -lz... " >&6; }
19482 if test ${ac_cv_lib_z_gzseek+y}
19484 printf %s "(cached) " >&6
19486 ac_check_lib_save_LIBS=$LIBS
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h. */
19491 /* Override any GCC internal prototype to avoid an error.
19492 Use char because int might match the return type of a GCC
19493 builtin and then its argument prototype would still apply. */
19503 if ac_fn_c_try_link "$LINENO"
19505 ac_cv_lib_z_gzseek=yes
19507 ac_cv_lib_z_gzseek=no
19509 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19510 conftest$ac_exeext conftest.$ac_ext
19511 LIBS=$ac_check_lib_save_LIBS
19513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
19514 printf "%s\n" "$ac_cv_lib_z_gzseek" >&6; }
19515 if test "x$ac_cv_lib_z_gzseek" = xyes
19517 passed=`expr $passed + 1`
19519 failed=`expr $failed + 1`
19522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
19523 printf %s "checking for gztell in -lz... " >&6; }
19524 if test ${ac_cv_lib_z_gztell+y}
19526 printf %s "(cached) " >&6
19528 ac_check_lib_save_LIBS=$LIBS
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h. */
19533 /* Override any GCC internal prototype to avoid an error.
19534 Use char because int might match the return type of a GCC
19535 builtin and then its argument prototype would still apply. */
19545 if ac_fn_c_try_link "$LINENO"
19547 ac_cv_lib_z_gztell=yes
19549 ac_cv_lib_z_gztell=no
19551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19552 conftest$ac_exeext conftest.$ac_ext
19553 LIBS=$ac_check_lib_save_LIBS
19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
19556 printf "%s\n" "$ac_cv_lib_z_gztell" >&6; }
19557 if test "x$ac_cv_lib_z_gztell" = xyes
19559 passed=`expr $passed + 1`
19561 failed=`expr $failed + 1`
19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
19565 printf %s "checking if ZLIB package is complete... " >&6; }
19566 if test $passed -gt 0
19568 if test $failed -gt 0
19570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
19571 printf "%s\n" "no -- some components failed test" >&6; }
19572 have_zlib='no (failed tests)'
19575 LIBS="$LIB_ZLIB $LIBS"
19577 printf "%s\n" "#define HasZLIB 1" >>confdefs.h
19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19580 printf "%s\n" "yes" >&6; }
19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19585 printf "%s\n" "no" >&6; }
19588 if test "$have_zlib" = 'yes'; then
19603 if test ! "$with_tiff" = 'no'
19605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFF support" >&5
19606 printf %s "checking for TIFF support... " >&6; }
19607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19608 printf "%s\n" "" >&6; }
19611 ac_fn_c_check_header_compile "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
19612 if test "x$ac_cv_header_tiff_h" = xyes
19614 passed=`expr $passed + 1`
19616 failed=`expr $failed + 1`
19619 ac_fn_c_check_header_compile "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
19620 if test "x$ac_cv_header_tiffio_h" = xyes
19622 passed=`expr $passed + 1`
19624 failed=`expr $failed + 1`
19627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
19628 printf %s "checking for TIFFOpen in -ltiff... " >&6; }
19629 if test ${ac_cv_lib_tiff_TIFFOpen+y}
19631 printf %s "(cached) " >&6
19633 ac_check_lib_save_LIBS=$LIBS
19634 LIBS="-ltiff $LIBS"
19635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19636 /* end confdefs.h. */
19638 /* Override any GCC internal prototype to avoid an error.
19639 Use char because int might match the return type of a GCC
19640 builtin and then its argument prototype would still apply. */
19645 return TIFFOpen ();
19650 if ac_fn_c_try_link "$LINENO"
19652 ac_cv_lib_tiff_TIFFOpen=yes
19654 ac_cv_lib_tiff_TIFFOpen=no
19656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19657 conftest$ac_exeext conftest.$ac_ext
19658 LIBS=$ac_check_lib_save_LIBS
19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
19661 printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; }
19662 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes
19664 passed=`expr $passed + 1`
19666 failed=`expr $failed + 1`
19669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
19670 printf %s "checking for TIFFClientOpen in -ltiff... " >&6; }
19671 if test ${ac_cv_lib_tiff_TIFFClientOpen+y}
19673 printf %s "(cached) " >&6
19675 ac_check_lib_save_LIBS=$LIBS
19676 LIBS="-ltiff $LIBS"
19677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h. */
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19683 char TIFFClientOpen ();
19687 return TIFFClientOpen ();
19692 if ac_fn_c_try_link "$LINENO"
19694 ac_cv_lib_tiff_TIFFClientOpen=yes
19696 ac_cv_lib_tiff_TIFFClientOpen=no
19698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19699 conftest$ac_exeext conftest.$ac_ext
19700 LIBS=$ac_check_lib_save_LIBS
19702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
19703 printf "%s\n" "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
19704 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes
19706 passed=`expr $passed + 1`
19708 failed=`expr $failed + 1`
19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
19712 printf %s "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
19713 if test ${ac_cv_lib_tiff_TIFFIsByteSwapped+y}
19715 printf %s "(cached) " >&6
19717 ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-ltiff $LIBS"
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19722 /* Override any GCC internal prototype to avoid an error.
19723 Use char because int might match the return type of a GCC
19724 builtin and then its argument prototype would still apply. */
19725 char TIFFIsByteSwapped ();
19729 return TIFFIsByteSwapped ();
19734 if ac_fn_c_try_link "$LINENO"
19736 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
19738 ac_cv_lib_tiff_TIFFIsByteSwapped=no
19740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19741 conftest$ac_exeext conftest.$ac_ext
19742 LIBS=$ac_check_lib_save_LIBS
19744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
19745 printf "%s\n" "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
19746 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes
19748 passed=`expr $passed + 1`
19750 failed=`expr $failed + 1`
19753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
19754 printf %s "checking if TIFF package is complete... " >&6; }
19755 if test $passed -gt 0
19757 if test $failed -gt 0
19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
19760 printf "%s\n" "no -- some components failed test" >&6; }
19761 have_tiff='no (failed tests)'
19764 LIBS="$LIB_TIFF $LIBS"
19766 printf "%s\n" "#define HasTIFF 1" >>confdefs.h
19768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19769 printf "%s\n" "yes" >&6; }
19771 ac_fn_c_check_header_compile "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
19772 if test "x$ac_cv_header_tiffconf_h" = xyes
19774 printf "%s\n" "#define HAVE_TIFFCONF_H 1" >>confdefs.h
19780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19781 printf "%s\n" "no" >&6; }
19784 if test "$have_tiff" = 'yes'; then
19795 # Libraries that the LCMS library depends on
19796 LCMS_LIB_DEPLIBS="$LIB_MATH $LIB_THREAD"
19797 LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/ */ /g'`
19802 # Libraries that the jpegicc program depends on
19803 JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH $LIB_THREAD"
19804 JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/ */ /g'`
19807 # Libraries that the tifficc program depends on
19808 TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH $LIB_THREAD"
19809 TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/ */ /g'`
19815 # Perform substitutions
19817 ac_config_files="$ac_config_files Makefile"
19819 ac_config_files="$ac_config_files lcms2.pc"
19821 ac_config_files="$ac_config_files include/Makefile"
19823 ac_config_files="$ac_config_files src/Makefile"
19825 ac_config_files="$ac_config_files utils/tificc/Makefile"
19827 ac_config_files="$ac_config_files utils/transicc/Makefile"
19829 ac_config_files="$ac_config_files utils/linkicc/Makefile"
19831 ac_config_files="$ac_config_files utils/jpgicc/Makefile"
19833 ac_config_files="$ac_config_files utils/psicc/Makefile"
19835 ac_config_files="$ac_config_files testbed/Makefile"
19837 if test "x$with_fastfloat" = "xyes" ; then
19838 COND_FASTFLOAT_TRUE=
19839 COND_FASTFLOAT_FALSE='#'
19841 COND_FASTFLOAT_TRUE='#'
19842 COND_FASTFLOAT_FALSE=
19845 if test "x$with_threaded" = "xyes" ; then
19846 COND_THREADED_TRUE=
19847 COND_THREADED_FALSE='#'
19849 COND_THREADED_TRUE='#'
19850 COND_THREADED_FALSE=
19853 ac_config_files="$ac_config_files plugins/Makefile"
19855 ac_config_files="$ac_config_files plugins/fast_float/Makefile"
19857 ac_config_files="$ac_config_files plugins/fast_float/src/Makefile"
19859 ac_config_files="$ac_config_files plugins/fast_float/include/Makefile"
19861 ac_config_files="$ac_config_files plugins/fast_float/testbed/Makefile"
19863 ac_config_files="$ac_config_files plugins/threaded/Makefile"
19865 ac_config_files="$ac_config_files plugins/threaded/src/Makefile"
19867 ac_config_files="$ac_config_files plugins/threaded/include/Makefile"
19869 ac_config_files="$ac_config_files plugins/threaded/testbed/Makefile"
19871 cat >confcache <<\_ACEOF
19872 # This file is a shell script that caches the results of configure
19873 # tests run on this system so they can be shared between configure
19874 # scripts and configure runs, see configure's option --config-cache.
19875 # It is not useful on other systems. If it contains results you don't
19876 # want to keep, you may remove or edit it.
19878 # config.status only pays attention to the cache file if you give it
19879 # the --recheck option to rerun configure.
19881 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19882 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19883 # following values.
19887 # The following way of writing the cache mishandles newlines in values,
19888 # but we know of no workaround that is simple, portable, and efficient.
19889 # So, we kill variables containing newlines.
19890 # Ultrix sh set writes to stderr and can't be redirected directly,
19891 # and sets the high bit in the cache file unless we assign to the vars.
19893 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19894 eval ac_val=\$$ac_var
19898 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19899 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19902 _ | IFS | as_nl) ;; #(
19903 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19904 *) { eval $ac_var=; unset $ac_var;} ;;
19910 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19911 *${as_nl}ac_space=\ *)
19912 # `set' does not quote correctly, so add quotes: double-quote
19913 # substitution turns \\\\ into \\, and sed turns \\ into \.
19916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19919 # `set' quotes correctly as required by POSIX, so do not add quotes.
19920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19929 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19931 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19933 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19934 if test -w "$cache_file"; then
19935 if test "x$cache_file" != "x/dev/null"; then
19936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19937 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19938 if test ! -f "$cache_file" || test -h "$cache_file"; then
19939 cat confcache >"$cache_file"
19941 case $cache_file in #(
19943 mv -f confcache "$cache_file"$$ &&
19944 mv -f "$cache_file"$$ "$cache_file" ;; #(
19946 mv -f confcache "$cache_file" ;;
19951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19952 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19958 # Let make expand exec_prefix.
19959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19961 # Transform confdefs.h into DEFS.
19962 # Protect against shell expansion while executing Makefile rules.
19963 # Protect against Makefile macro expansion.
19965 # If the first sed substitution is executed (which looks for macros that
19966 # take arguments), then branch to the quote section. Otherwise,
19967 # look for a macro that doesn't take arguments.
19977 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19979 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19983 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19996 DEFS=`sed -n "$ac_script" confdefs.h`
20002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20003 # 1. Remove the extension, and $U if already installed.
20004 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20005 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20007 # will be set to the directory where LIBOBJS objects are built.
20008 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20009 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20011 LIBOBJS=$ac_libobjs
20013 LTLIBOBJS=$ac_ltlibobjs
20016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20017 printf %s "checking that generated files are newer than configure... " >&6; }
20018 if test -n "$am_sleep_pid"; then
20019 # Hide warnings about reused PIDs.
20020 wait $am_sleep_pid 2>/dev/null
20022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20023 printf "%s\n" "done" >&6; }
20024 if test -n "$EXEEXT"; then
20026 am__EXEEXT_FALSE='#'
20028 am__EXEEXT_TRUE='#'
20032 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20033 as_fn_error $? "conditional \"AMDEP\" was never defined.
20034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20037 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20040 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20041 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20044 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20045 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20049 if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
20050 as_fn_error $? "conditional \"HasJPEG\" was never defined.
20051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20053 if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
20054 as_fn_error $? "conditional \"HasZLIB\" was never defined.
20055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20057 if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
20058 as_fn_error $? "conditional \"HasTIFF\" was never defined.
20059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20061 if test -z "${COND_FASTFLOAT_TRUE}" && test -z "${COND_FASTFLOAT_FALSE}"; then
20062 as_fn_error $? "conditional \"COND_FASTFLOAT\" was never defined.
20063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20065 if test -z "${COND_THREADED_TRUE}" && test -z "${COND_THREADED_FALSE}"; then
20066 as_fn_error $? "conditional \"COND_THREADED\" was never defined.
20067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20070 : "${CONFIG_STATUS=./config.status}"
20072 ac_clean_files_save=$ac_clean_files
20073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20075 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20077 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20079 # Generated by $as_me.
20080 # Run this file to recreate the current configuration.
20081 # Compiler output produced by configure, useful for debugging
20082 # configure, is in config.log if it exists.
20085 ac_cs_recheck=false
20088 SHELL=\${CONFIG_SHELL-$SHELL}
20091 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20092 ## -------------------- ##
20093 ## M4sh Initialization. ##
20094 ## -------------------- ##
20096 # Be more Bourne compatible
20097 DUALCASE=1; export DUALCASE # for MKS sh
20099 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20103 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20104 # is contrary to our usage. Disable this feature.
20105 alias -g '${1+"$@"}'='"$@"'
20106 setopt NO_GLOB_SUBST
20108 case `(set -o) 2>/dev/null` in #(
20118 # Reset variables that may have inherited troublesome values from
20121 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20122 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20123 # side effect of setting IFS to empty, thus disabling word splitting.)
20124 # Quoting is to prevent editors from complaining about space-tab.
20134 # Ensure predictable behavior from utilities with locale-dependent output.
20140 # We cannot yet rely on "unset" to work, but we need these variables
20141 # to be unset--not just set to an empty or harmless value--now, to
20142 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20143 # also avoids known problems related to "unset" and subshell syntax
20144 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20145 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20146 do eval test \${$as_var+y} \
20147 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20150 # Ensure that fds 0, 1, and 2 are open.
20151 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20152 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20153 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20155 # The user is always right.
20156 if ${PATH_SEPARATOR+false} :; then
20158 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20159 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20165 # Find who we are. Look in the path if we contain no directory separator.
20168 *[\\/]* ) as_myself=$0 ;;
20169 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20170 for as_dir in $PATH
20173 case $as_dir in #(((
20176 *) as_dir=$as_dir/ ;;
20178 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20184 # We did not find ourselves, most probably we were run as `sh COMMAND'
20185 # in which case we are not to be found in the path.
20186 if test "x$as_myself" = x; then
20189 if test ! -f "$as_myself"; then
20190 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20196 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20197 # ----------------------------------------
20198 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20199 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20200 # script with STATUS, using 1 if that was 0.
20203 as_status=$1; test $as_status -eq 0 && as_status=1
20205 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20208 printf "%s\n" "$as_me: error: $2" >&2
20209 as_fn_exit $as_status
20214 # as_fn_set_status STATUS
20215 # -----------------------
20216 # Set $? to STATUS, without forking.
20217 as_fn_set_status ()
20220 } # as_fn_set_status
20222 # as_fn_exit STATUS
20223 # -----------------
20224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20228 as_fn_set_status $1
20234 # Portably unset VAR.
20237 { eval $1=; unset $1;}
20239 as_unset=as_fn_unset
20241 # as_fn_append VAR VALUE
20242 # ----------------------
20243 # Append the text in VALUE to the end of the definition contained in VAR. Take
20244 # advantage of any shell optimizations that allow amortized linear growth over
20245 # repeated appends, instead of the typical quadratic growth present in naive
20247 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20249 eval 'as_fn_append ()
20260 # as_fn_arith ARG...
20261 # ------------------
20262 # Perform arithmetic evaluation on the ARGs, and store the result in the
20263 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20264 # must be portable across $(()) and expr.
20265 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20267 eval 'as_fn_arith ()
20274 as_val=`expr "$@" || test $? -eq 1`
20279 if expr a : '\(a\)' >/dev/null 2>&1 &&
20280 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20286 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20287 as_basename=basename
20292 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20298 as_me=`$as_basename -- "$0" ||
20299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20300 X"$0" : 'X\(//\)$' \| \
20301 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20302 printf "%s\n" X/"$0" |
20303 sed '/^.*\/\([^/][^/]*\)\/*$/{
20317 # Avoid depending upon Character Ranges.
20318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20321 as_cr_digits='0123456789'
20322 as_cr_alnum=$as_cr_Letters$as_cr_digits
20325 # Determine whether it's possible to make 'echo' print without a newline.
20326 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20327 # for compatibility with existing Makefiles.
20328 ECHO_C= ECHO_N= ECHO_T=
20329 case `echo -n x` in #(((((
20331 case `echo 'xy\c'` in
20332 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20334 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20341 # For backward compatibility with old third-party macros, we provide
20342 # the shell variables $as_echo and $as_echo_n. New code should use
20343 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20344 as_echo='printf %s\n'
20345 as_echo_n='printf %s'
20347 rm -f conf$$ conf$$.exe conf$$.file
20348 if test -d conf$$.dir; then
20349 rm -f conf$$.dir/conf$$.file
20352 mkdir conf$$.dir 2>/dev/null
20354 if (echo >conf$$.file) 2>/dev/null; then
20355 if ln -s conf$$.file conf$$ 2>/dev/null; then
20357 # ... but there are two gotchas:
20358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20360 # In both cases, we have to default to `cp -pR'.
20361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20363 elif ln conf$$.file conf$$ 2>/dev/null; then
20371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20372 rmdir conf$$.dir 2>/dev/null
20377 # Create "$as_dir" as a directory, including parents if necessary.
20382 -*) as_dir=./$as_dir;;
20384 test -d "$as_dir" || eval $as_mkdir_p || {
20388 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20389 *) as_qdir=$as_dir;;
20391 as_dirs="'$as_qdir' $as_dirs"
20392 as_dir=`$as_dirname -- "$as_dir" ||
20393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20394 X"$as_dir" : 'X\(//\)[^/]' \| \
20395 X"$as_dir" : 'X\(//\)$' \| \
20396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20397 printf "%s\n" X"$as_dir" |
20398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20402 /^X\(\/\/\)[^/].*/{
20415 test -d "$as_dir" && break
20417 test -z "$as_dirs" || eval "mkdir $as_dirs"
20418 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20422 if mkdir -p . 2>/dev/null; then
20423 as_mkdir_p='mkdir -p "$as_dir"'
20425 test -d ./-p && rmdir ./-p
20430 # as_fn_executable_p FILE
20431 # -----------------------
20432 # Test if FILE is an executable regular file.
20433 as_fn_executable_p ()
20435 test -f "$1" && test -x "$1"
20436 } # as_fn_executable_p
20437 as_test_x='test -x'
20438 as_executable_p=as_fn_executable_p
20440 # Sed expression to map a string onto a valid CPP name.
20441 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20443 # Sed expression to map a string onto a valid variable name.
20444 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20448 ## ----------------------------------- ##
20449 ## Main body of $CONFIG_STATUS script. ##
20450 ## ----------------------------------- ##
20452 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20455 # Save the log message, to keep $0 and so on meaningful, and to
20456 # report actual input values of CONFIG_FILES etc. instead of their
20457 # values after options handling.
20459 This file was extended by lcms2 $as_me 2.16, which was
20460 generated by GNU Autoconf 2.71. Invocation command line was
20462 CONFIG_FILES = $CONFIG_FILES
20463 CONFIG_HEADERS = $CONFIG_HEADERS
20464 CONFIG_LINKS = $CONFIG_LINKS
20465 CONFIG_COMMANDS = $CONFIG_COMMANDS
20468 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20473 case $ac_config_files in *"
20474 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20480 # Files that config.status was made for.
20481 config_files="$ac_config_files"
20482 config_commands="$ac_config_commands"
20486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20488 \`$as_me' instantiates files and other configuration actions
20489 from templates according to the current configuration. Unless the files
20490 and actions are specified as TAGs, all are instantiated by default.
20492 Usage: $0 [OPTION]... [TAG]...
20494 -h, --help print this help, then exit
20495 -V, --version print version number and configuration settings, then exit
20496 --config print configuration, then exit
20497 -q, --quiet, --silent
20498 do not print progress messages
20499 -d, --debug don't remove temporary files
20500 --recheck update $as_me by reconfiguring in the same conditions
20501 --file=FILE[:TEMPLATE]
20502 instantiate the configuration file FILE
20504 Configuration files:
20507 Configuration commands:
20510 Report bugs to the package provider."
20513 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20514 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20516 ac_cs_config='$ac_cs_config_escaped'
20518 lcms2 config.status 2.16
20519 configured by $0, generated by GNU Autoconf 2.71,
20520 with options \\"\$ac_cs_config\\"
20522 Copyright (C) 2021 Free Software Foundation, Inc.
20523 This config.status script is free software; the Free Software Foundation
20524 gives unlimited permission to copy, distribute and modify it."
20531 test -n "\$AWK" || AWK=awk
20534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20535 # The default lists apply if the user does not specify any file.
20541 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20546 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20558 # Handling of the options.
20559 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20561 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20562 printf "%s\n" "$ac_cs_version"; exit ;;
20563 --config | --confi | --conf | --con | --co | --c )
20564 printf "%s\n" "$ac_cs_config"; exit ;;
20565 --debug | --debu | --deb | --de | --d | -d )
20567 --file | --fil | --fi | --f )
20570 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20571 '') as_fn_error $? "missing file argument" ;;
20573 as_fn_append CONFIG_FILES " '$ac_optarg'"
20574 ac_need_defaults=false;;
20575 --he | --h | --help | --hel | -h )
20576 printf "%s\n" "$ac_cs_usage"; exit ;;
20577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20578 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20581 # This is an error.
20582 -*) as_fn_error $? "unrecognized option: \`$1'
20583 Try \`$0 --help' for more information." ;;
20585 *) as_fn_append ac_config_targets " $1"
20586 ac_need_defaults=false ;;
20592 ac_configure_extra_args=
20594 if $ac_cs_silent; then
20596 ac_configure_extra_args="$ac_configure_extra_args --silent"
20600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20601 if \$ac_cs_recheck; then
20602 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20604 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20605 CONFIG_SHELL='$SHELL'
20606 export CONFIG_SHELL
20611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20616 ## Running $as_me. ##
20618 printf "%s\n" "$ac_log"
20622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20626 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20629 # The HP-UX ksh and POSIX shell print the target directory to stdout
20630 # if CDPATH is set.
20631 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20633 sed_quote_subst='$sed_quote_subst'
20634 double_quote_subst='$double_quote_subst'
20635 delay_variable_subst='$delay_variable_subst'
20636 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20637 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20638 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20639 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20640 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20641 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20642 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20643 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20644 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20645 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20646 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20647 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20648 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20649 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20650 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20651 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20652 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20653 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20654 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20655 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20656 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20657 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20658 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20659 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20660 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20661 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20662 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20663 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20664 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20665 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20666 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20667 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20668 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20669 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20670 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20671 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20672 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20673 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20674 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20675 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20676 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20677 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20678 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20679 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20680 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20681 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20682 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20683 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20684 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20685 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20686 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20687 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20688 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20689 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20690 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20691 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20692 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20693 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20694 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20695 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20696 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"`'
20697 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20698 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20699 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20700 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20701 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20702 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20703 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20704 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20705 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20706 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20707 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20708 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20709 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20710 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20711 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20712 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20713 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20714 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20715 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20716 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20717 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20718 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20719 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20720 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20721 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20722 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20723 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20724 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20725 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20726 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20727 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20728 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20729 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20730 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20731 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20732 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20733 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20734 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20735 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20736 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20737 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20738 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20739 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20740 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20741 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20742 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20743 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20744 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20745 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20746 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20747 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20748 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20749 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20750 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20751 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20752 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20753 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20754 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20755 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20756 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20757 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20758 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20759 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20760 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20761 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20762 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20763 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20764 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20765 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20766 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20767 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20768 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20769 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20770 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20771 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20772 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20773 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20774 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20775 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20776 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20777 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20778 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20779 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20780 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20781 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20782 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20783 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20784 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20785 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20786 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20787 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20788 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20789 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20790 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20791 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20792 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20793 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20794 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20795 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20796 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20797 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20798 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20799 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20800 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20801 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20802 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20803 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20804 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20805 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20806 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20807 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20808 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20809 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20810 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20811 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20812 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20813 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20814 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20815 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20816 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20817 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20818 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20819 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20820 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20821 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20822 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20823 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20824 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20825 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20826 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20827 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20830 LTCFLAGS='$LTCFLAGS'
20831 compiler='$compiler_DEFAULT'
20833 # A function that is used when there is no print builtin or printf.
20834 func_fallback_echo ()
20836 eval 'cat <<_LTECHO_EOF
20841 # Quote evaled strings.
20857 deplibs_check_method \
20862 sharedlib_from_linklib_cmd \
20864 archiver_list_spec \
20870 lt_cv_sys_global_symbol_pipe \
20871 lt_cv_sys_global_symbol_to_cdecl \
20872 lt_cv_sys_global_symbol_to_import \
20873 lt_cv_sys_global_symbol_to_c_name_address \
20874 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20875 lt_cv_nm_interface \
20876 nm_file_list_spec \
20877 lt_cv_truncate_bin \
20878 lt_prog_compiler_no_builtin_flag \
20879 lt_prog_compiler_pic \
20880 lt_prog_compiler_wl \
20881 lt_prog_compiler_static \
20882 lt_cv_prog_compiler_c_o \
20891 export_dynamic_flag_spec \
20892 whole_archive_flag_spec \
20893 compiler_needs_object \
20895 allow_undefined_flag \
20896 no_undefined_flag \
20897 hardcode_libdir_flag_spec \
20898 hardcode_libdir_separator \
20902 variables_saved_for_relink \
20904 library_names_spec \
20906 install_override_mode \
20910 compiler_lib_search_dirs \
20915 compiler_lib_search_path \
20920 lt_prog_compiler_no_builtin_flag_CXX \
20921 lt_prog_compiler_pic_CXX \
20922 lt_prog_compiler_wl_CXX \
20923 lt_prog_compiler_static_CXX \
20924 lt_cv_prog_compiler_c_o_CXX \
20925 export_dynamic_flag_spec_CXX \
20926 whole_archive_flag_spec_CXX \
20927 compiler_needs_object_CXX \
20929 allow_undefined_flag_CXX \
20930 no_undefined_flag_CXX \
20931 hardcode_libdir_flag_spec_CXX \
20932 hardcode_libdir_separator_CXX \
20933 exclude_expsyms_CXX \
20934 include_expsyms_CXX \
20935 file_list_spec_CXX \
20936 compiler_lib_search_dirs_CXX \
20937 predep_objects_CXX \
20938 postdep_objects_CXX \
20941 compiler_lib_search_path_CXX; do
20942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20943 *[\\\\\\\`\\"\\\$]*)
20944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20952 # Double-quote double-evaled strings.
20953 for var in reload_cmds \
20954 old_postinstall_cmds \
20955 old_postuninstall_cmds \
20957 extract_expsyms_cmds \
20958 old_archive_from_new_cmds \
20959 old_archive_from_expsyms_cmds \
20961 archive_expsym_cmds \
20963 module_expsym_cmds \
20964 export_symbols_cmds \
20968 postuninstall_cmds \
20970 sys_lib_search_path_spec \
20971 configure_time_dlsearch_path \
20972 configure_time_lt_sys_library_path \
20974 old_archive_cmds_CXX \
20975 old_archive_from_new_cmds_CXX \
20976 old_archive_from_expsyms_cmds_CXX \
20978 archive_expsym_cmds_CXX \
20980 module_expsym_cmds_CXX \
20981 export_symbols_cmds_CXX \
20983 postlink_cmds_CXX; do
20984 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20985 *[\\\\\\\`\\"\\\$]*)
20986 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20989 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20994 ac_aux_dir='$ac_aux_dir'
20996 # See if we are running on zsh, and set the options that allow our
20997 # commands through without removal of \ escapes INIT.
20998 if test -n "\${ZSH_VERSION+set}"; then
20999 setopt NO_GLOB_SUBST
21015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21017 # Handling of arguments.
21018 for ac_config_target in $ac_config_targets
21020 case $ac_config_target in
21021 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21022 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21023 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21024 "lcms2.pc") CONFIG_FILES="$CONFIG_FILES lcms2.pc" ;;
21025 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21026 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21027 "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
21028 "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
21029 "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
21030 "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
21031 "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
21032 "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
21033 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
21034 "plugins/fast_float/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/Makefile" ;;
21035 "plugins/fast_float/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/src/Makefile" ;;
21036 "plugins/fast_float/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/include/Makefile" ;;
21037 "plugins/fast_float/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/testbed/Makefile" ;;
21038 "plugins/threaded/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/Makefile" ;;
21039 "plugins/threaded/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/src/Makefile" ;;
21040 "plugins/threaded/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/include/Makefile" ;;
21041 "plugins/threaded/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/testbed/Makefile" ;;
21043 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21048 # If the user did not use the arguments to specify the items to instantiate,
21049 # then the envvar interface is used. Set only those that are not.
21050 # We use the long form for the default assignment because of an extremely
21051 # bizarre bug on SunOS 4.1.3.
21052 if $ac_need_defaults; then
21053 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21054 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21057 # Have a temporary directory for convenience. Make it in the build tree
21058 # simply because there is no reason against having it here, and in addition,
21059 # creating and moving files from /tmp can sometimes cause problems.
21060 # Hook for its removal unless debugging.
21061 # Note that there is a small window in which the directory will not be cleaned:
21062 # after its creation but before its name has been assigned to `$tmp'.
21066 trap 'exit_status=$?
21067 : "${ac_tmp:=$tmp}"
21068 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21070 trap 'as_fn_exit 1' 1 2 13 15
21072 # Create a (secure) tmp directory for tmp files.
21075 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21079 tmp=./conf$$-$RANDOM
21080 (umask 077 && mkdir "$tmp")
21081 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21084 # Set up the scripts for CONFIG_FILES section.
21085 # No need to generate them if there are no CONFIG_FILES.
21086 # This happens for instance with `./config.status config.h'.
21087 if test -n "$CONFIG_FILES"; then
21090 ac_cr=`echo X | tr X '\015'`
21091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21092 # But we know of no other shell where ac_cr would be empty at this
21093 # point, so we can use a bashism as a fallback.
21094 if test "x$ac_cr" = x; then
21095 eval ac_cr=\$\'\\r\'
21097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21101 ac_cs_awk_cr=$ac_cr
21104 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21109 echo "cat >conf$$subs.awk <<_ACEOF" &&
21110 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21112 } >conf$$subs.sh ||
21113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21116 for ac_last_try in false false false false false :; do
21117 . ./conf$$subs.sh ||
21118 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21120 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21121 if test $ac_delim_n = $ac_delim_num; then
21123 elif $ac_last_try; then
21124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21129 rm -f conf$$subs.sh
21131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21132 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21136 s/^/S["/; s/!.*/"]=/
21146 s/\(.\{148\}\)..*/\1/
21148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21160 s/\(.\{148\}\)..*/\1/
21162 s/["\\]/\\&/g; s/^/"/; s/$/"/
21166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21171 ' <conf$$subs.awk | sed '
21176 ' >>$CONFIG_STATUS || ac_write_fail=1
21177 rm -f conf$$subs.awk
21178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21180 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21181 for (key in S) S_is_set[key] = 1
21187 nfields = split(line, field, "@")
21189 len = length(field[1])
21190 for (i = 2; i < nfields; i++) {
21192 keylen = length(key)
21193 if (S_is_set[key]) {
21195 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21196 len += length(value) + length(field[++i])
21207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21209 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21212 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21213 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21216 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21217 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21218 # trailing colons and then remove the whole line if VPATH becomes empty
21219 # (actually we leave an empty line to preserve line numbers).
21220 if test "x$srcdir" = x.; then
21221 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21240 fi # test -n "$CONFIG_FILES"
21243 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21248 :[FHLC]) ac_mode=$ac_tag; continue;;
21250 case $ac_mode$ac_tag in
21252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21253 :[FH]-) ac_tag=-:-;;
21254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21271 -) ac_f="$ac_tmp/stdin";;
21272 *) # Look for the file first in the build tree, then in the source tree
21273 # (if the path is not absolute). The absolute path cannot be DOS-style,
21274 # because $ac_f cannot contain `:'.
21278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21282 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21283 as_fn_append ac_file_inputs " '$ac_f'"
21286 # Let's still pretend it is `configure' which instantiates (i.e., don't
21287 # use $as_me), people would be surprised to read:
21288 # /* config.h. Generated by config.status. */
21289 configure_input='Generated from '`
21290 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21292 if test x"$ac_file" != x-; then
21293 configure_input="$ac_file. $configure_input"
21294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21295 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21297 # Neutralize special characters interpreted by sed in replacement strings.
21298 case $configure_input in #(
21299 *\&* | *\|* | *\\* )
21300 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21302 *) ac_sed_conf_input=$configure_input;;
21306 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21312 ac_dir=`$as_dirname -- "$ac_file" ||
21313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21314 X"$ac_file" : 'X\(//\)[^/]' \| \
21315 X"$ac_file" : 'X\(//\)$' \| \
21316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21317 printf "%s\n" X"$ac_file" |
21318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21322 /^X\(\/\/\)[^/].*/{
21335 as_dir="$ac_dir"; as_fn_mkdir_p
21339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21341 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21342 # A ".." for each directory in $ac_dir_suffix.
21343 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21344 case $ac_top_builddir_sub in
21345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21349 ac_abs_top_builddir=$ac_pwd
21350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21351 # for backward compatibility:
21352 ac_top_builddir=$ac_top_build_prefix
21355 .) # We are building in place.
21357 ac_top_srcdir=$ac_top_builddir_sub
21358 ac_abs_top_srcdir=$ac_pwd ;;
21359 [\\/]* | ?:[\\/]* ) # Absolute name.
21360 ac_srcdir=$srcdir$ac_dir_suffix;
21361 ac_top_srcdir=$srcdir
21362 ac_abs_top_srcdir=$srcdir ;;
21363 *) # Relative name.
21364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21365 ac_top_srcdir=$ac_top_build_prefix$srcdir
21366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21381 ac_MKDIR_P=$MKDIR_P
21383 [\\/$]* | ?:[\\/]* ) ;;
21384 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21389 # If the template does not know about datarootdir, expand it.
21390 # FIXME: This hack should be removed a few years after 2.60.
21391 ac_datarootdir_hack=; ac_datarootdir_seen=
21402 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21403 *datarootdir*) ac_datarootdir_seen=yes;;
21404 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21406 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21409 ac_datarootdir_hack='
21410 s&@datadir@&$datadir&g
21411 s&@docdir@&$docdir&g
21412 s&@infodir@&$infodir&g
21413 s&@localedir@&$localedir&g
21414 s&@mandir@&$mandir&g
21415 s&\\\${datarootdir}&$datarootdir&g' ;;
21419 # Neutralize VPATH when `$srcdir' = `.'.
21420 # Shell code in configure.ac might set extrasub.
21421 # FIXME: do we really want to maintain this feature?
21422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21423 ac_sed_extra="$ac_vpsub
21426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21429 s|@configure_input@|$ac_sed_conf_input|;t t
21430 s&@top_builddir@&$ac_top_builddir_sub&;t t
21431 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21432 s&@srcdir@&$ac_srcdir&;t t
21433 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21434 s&@top_srcdir@&$ac_top_srcdir&;t t
21435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21436 s&@builddir@&$ac_builddir&;t t
21437 s&@abs_builddir@&$ac_abs_builddir&;t t
21438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21439 s&@INSTALL@&$ac_INSTALL&;t t
21440 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21441 $ac_datarootdir_hack
21443 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21444 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21449 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21451 which seems to be undefined. Please make sure it is defined" >&5
21452 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21453 which seems to be undefined. Please make sure it is defined" >&2;}
21455 rm -f "$ac_tmp/stdin"
21457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21464 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21465 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21470 case $ac_file$ac_mode in
21471 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21472 # Older Autoconf quotes --file arguments for eval, but not when files
21473 # are listed without --file. Let's play safe and only enable the eval
21474 # if we detect the quoting.
21475 # TODO: see whether this extra hack can be removed once we start
21476 # requiring Autoconf 2.70 or later.
21477 case $CONFIG_FILES in #(
21479 eval set x "$CONFIG_FILES" ;; #(
21481 set x $CONFIG_FILES ;; #(
21486 # Used to flag and report bootstrapping failures.
21490 # Strip MF so we end up with the name of the file.
21491 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21492 # Check whether this is an Automake generated Makefile which includes
21493 # dependency-tracking related rules and includes.
21494 # Grep'ing the whole file directly is not great: AIX grep has a line
21495 # limit of 2048, but all sed's we know have understand at least 4000.
21496 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21498 am_dirpart=`$as_dirname -- "$am_mf" ||
21499 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21500 X"$am_mf" : 'X\(//\)[^/]' \| \
21501 X"$am_mf" : 'X\(//\)$' \| \
21502 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21503 printf "%s\n" X"$am_mf" |
21504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21508 /^X\(\/\/\)[^/].*/{
21521 am_filepart=`$as_basename -- "$am_mf" ||
21522 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21523 X"$am_mf" : 'X\(//\)$' \| \
21524 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21525 printf "%s\n" X/"$am_mf" |
21526 sed '/^.*\/\([^/][^/]*\)\/*$/{
21539 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21540 && sed -e '/# am--include-marker/d' "$am_filepart" \
21541 | $MAKE -f - am--depfiles" >&5
21542 (cd "$am_dirpart" \
21543 && sed -e '/# am--include-marker/d' "$am_filepart" \
21544 | $MAKE -f - am--depfiles) >&5 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); } || am_rc=$?
21549 if test $am_rc -ne 0; then
21550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21551 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21552 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21553 for automatic dependency tracking. If GNU make was not used, consider
21554 re-running the configure script with MAKE=\"gmake\" (or whatever is
21555 necessary). You can also try re-running configure with the
21556 '--disable-dependency-tracking' option to at least be able to build
21557 the package (albeit without support for automatic dependency tracking).
21558 See \`config.log' for more details" "$LINENO" 5; }
21560 { am_dirpart=; unset am_dirpart;}
21561 { am_filepart=; unset am_filepart;}
21562 { am_mf=; unset am_mf;}
21563 { am_rc=; unset am_rc;}
21564 rm -f conftest-deps.mk
21569 # See if we are running on zsh, and set the options that allow our
21570 # commands through without removal of \ escapes.
21571 if test -n "${ZSH_VERSION+set}"; then
21572 setopt NO_GLOB_SUBST
21576 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21579 cat <<_LT_EOF >> "$cfgfile"
21581 # Generated automatically by $as_me ($PACKAGE) $VERSION
21582 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21584 # Provide generalized library-building support services.
21585 # Written by Gordon Matzigkeit, 1996
21587 # Copyright (C) 2014 Free Software Foundation, Inc.
21588 # This is free software; see the source for copying conditions. There is NO
21589 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21591 # GNU Libtool is free software; you can redistribute it and/or modify
21592 # it under the terms of the GNU General Public License as published by
21593 # the Free Software Foundation; either version 2 of of the License, or
21594 # (at your option) any later version.
21596 # As a special exception to the GNU General Public License, if you
21597 # distribute this file as part of a program or library that is built
21598 # using GNU Libtool, you may include this file under the same
21599 # distribution terms that you use for the rest of that program.
21601 # GNU Libtool is distributed in the hope that it will be useful, but
21602 # WITHOUT ANY WARRANTY; without even the implied warranty of
21603 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21604 # GNU General Public License for more details.
21606 # You should have received a copy of the GNU General Public License
21607 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21610 # The names of the tagged configurations supported by this script.
21611 available_tags='CXX '
21613 # Configured defaults for sys_lib_dlsearch_path munging.
21614 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21616 # ### BEGIN LIBTOOL CONFIG
21618 # Which release of libtool.m4 was used?
21619 macro_version=$macro_version
21620 macro_revision=$macro_revision
21622 # Whether or not to build shared libraries.
21623 build_libtool_libs=$enable_shared
21625 # Whether or not to build static libraries.
21626 build_old_libs=$enable_static
21628 # What type of objects to build.
21631 # Whether or not to optimize for fast installation.
21632 fast_install=$enable_fast_install
21634 # Shared archive member basename,for filename based shared library versioning on AIX.
21635 shared_archive_member_spec=$shared_archive_member_spec
21637 # Shell to use when invoking shell scripts.
21640 # An echo program that protects backslashes.
21643 # The PATH separator for the build system.
21644 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21647 host_alias=$host_alias
21651 # The build system.
21652 build_alias=$build_alias
21656 # A sed program that does not truncate output.
21659 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21660 Xsed="\$SED -e 1s/^X//"
21662 # A grep program that handles long lines.
21668 # A literal string matcher.
21671 # A BSD- or MS-compatible name lister.
21674 # Whether we need soft or hard links.
21677 # What is the maximum length of a command?
21678 max_cmd_len=$max_cmd_len
21680 # Object file suffix (normally "o").
21683 # Executable file suffix (normally "").
21686 # whether the shell understands "unset".
21689 # turn spaces into newlines.
21692 # turn newlines into spaces.
21695 # convert \$build file names to \$host format.
21696 to_host_file_cmd=$lt_cv_to_host_file_cmd
21698 # convert \$build files to toolchain format.
21699 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21701 # A file(cmd) program that detects file types.
21702 FILECMD=$lt_FILECMD
21704 # An object symbol dumper.
21705 OBJDUMP=$lt_OBJDUMP
21707 # Method to check whether dependent libraries are shared objects.
21708 deplibs_check_method=$lt_deplibs_check_method
21710 # Command to use when deplibs_check_method = "file_magic".
21711 file_magic_cmd=$lt_file_magic_cmd
21713 # How to find potential files when deplibs_check_method = "file_magic".
21714 file_magic_glob=$lt_file_magic_glob
21716 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21717 want_nocaseglob=$lt_want_nocaseglob
21719 # DLL creation program.
21720 DLLTOOL=$lt_DLLTOOL
21722 # Command to associate shared and link libraries.
21723 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21728 # Flags to create an archive (by configure).
21729 lt_ar_flags=$lt_ar_flags
21731 # Flags to create an archive.
21732 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21734 # How to feed a file listing to the archiver.
21735 archiver_list_spec=$lt_archiver_list_spec
21737 # A symbol stripping program.
21740 # Commands used to install an old-style archive.
21742 old_postinstall_cmds=$lt_old_postinstall_cmds
21743 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21745 # Whether to use a lock for old archive extraction.
21746 lock_old_archive_extraction=$lock_old_archive_extraction
21751 # LTCC compiler flags.
21752 LTCFLAGS=$lt_CFLAGS
21754 # Take the output of nm and produce a listing of raw symbols and C names.
21755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21757 # Transform the output of nm in a proper C declaration.
21758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21760 # Transform the output of nm into a list of symbols to manually relocate.
21761 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21763 # Transform the output of nm in a C name address pair.
21764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21766 # Transform the output of nm in a C name address pair when lib prefix is needed.
21767 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21769 # The name lister interface.
21770 nm_interface=$lt_lt_cv_nm_interface
21772 # Specify filename containing input files for \$NM.
21773 nm_file_list_spec=$lt_nm_file_list_spec
21775 # The root where to search for dependent libraries,and where our libraries should be installed.
21776 lt_sysroot=$lt_sysroot
21778 # Command to truncate a binary pipe.
21779 lt_truncate_bin=$lt_lt_cv_truncate_bin
21781 # The name of the directory that contains temporary libtool files.
21784 # Used to examine libraries when file_magic_cmd begins with "file".
21785 MAGIC_CMD=$MAGIC_CMD
21787 # Must we lock files when doing compilation?
21788 need_locks=$lt_need_locks
21791 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21793 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21794 DSYMUTIL=$lt_DSYMUTIL
21796 # Tool to change global to local symbols on Mac OS X.
21799 # Tool to manipulate fat objects and archives on Mac OS X.
21802 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21805 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21806 OTOOL64=$lt_OTOOL64
21808 # Old archive suffix (normally "a").
21811 # Shared library suffix (normally ".so").
21812 shrext_cmds=$lt_shrext_cmds
21814 # The commands to extract the exported symbol list from a shared archive.
21815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21817 # Variables whose values should be saved in libtool wrapper scripts and
21818 # restored at link time.
21819 variables_saved_for_relink=$lt_variables_saved_for_relink
21821 # Do we need the "lib" prefix for modules?
21822 need_lib_prefix=$need_lib_prefix
21824 # Do we need a version for libraries?
21825 need_version=$need_version
21827 # Library versioning type.
21828 version_type=$version_type
21830 # Shared library runtime path variable.
21831 runpath_var=$runpath_var
21833 # Shared library path variable.
21834 shlibpath_var=$shlibpath_var
21836 # Is shlibpath searched before the hard-coded library search path?
21837 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21839 # Format of library name prefix.
21840 libname_spec=$lt_libname_spec
21842 # List of archive names. First name is the real one, the rest are links.
21843 # The last name is the one that the linker finds with -lNAME
21844 library_names_spec=$lt_library_names_spec
21846 # The coded name of the library, if different from the real name.
21847 soname_spec=$lt_soname_spec
21849 # Permission mode override for installation of shared libraries.
21850 install_override_mode=$lt_install_override_mode
21852 # Command to use after installation of a shared archive.
21853 postinstall_cmds=$lt_postinstall_cmds
21855 # Command to use after uninstallation of a shared archive.
21856 postuninstall_cmds=$lt_postuninstall_cmds
21858 # Commands used to finish a libtool library installation in a directory.
21859 finish_cmds=$lt_finish_cmds
21861 # As "finish_cmds", except a single script fragment to be evaled but
21863 finish_eval=$lt_finish_eval
21865 # Whether we should hardcode library paths into libraries.
21866 hardcode_into_libs=$hardcode_into_libs
21868 # Compile-time system search path for libraries.
21869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21871 # Detected run-time system search path for libraries.
21872 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21874 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21875 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21877 # Whether dlopen is supported.
21878 dlopen_support=$enable_dlopen
21880 # Whether dlopen of programs is supported.
21881 dlopen_self=$enable_dlopen_self
21883 # Whether dlopen of statically linked programs is supported.
21884 dlopen_self_static=$enable_dlopen_self_static
21886 # Commands to strip libraries.
21887 old_striplib=$lt_old_striplib
21888 striplib=$lt_striplib
21890 # Assembler program.
21894 # The linker used to build libraries.
21897 # How to create reloadable object files.
21898 reload_flag=$lt_reload_flag
21899 reload_cmds=$lt_reload_cmds
21901 # Commands used to build an old-style archive.
21902 old_archive_cmds=$lt_old_archive_cmds
21904 # A language specific compiler.
21907 # Is the compiler the GNU compiler?
21910 # Compiler flag to turn off builtin functions.
21911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21913 # Additional compiler flags for building library objects.
21914 pic_flag=$lt_lt_prog_compiler_pic
21916 # How to pass a linker flag through the compiler.
21917 wl=$lt_lt_prog_compiler_wl
21919 # Compiler flag to prevent dynamic linking.
21920 link_static_flag=$lt_lt_prog_compiler_static
21922 # Does compiler simultaneously support -c and -o options?
21923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21925 # Whether or not to add -lc for building shared libraries.
21926 build_libtool_need_lc=$archive_cmds_need_lc
21928 # Whether or not to disallow shared libs when runtime libs are static.
21929 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21931 # Compiler flag to allow reflexive dlopens.
21932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21934 # Compiler flag to generate shared objects directly from archives.
21935 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21937 # Whether the compiler copes with passing no objects directly.
21938 compiler_needs_object=$lt_compiler_needs_object
21940 # Create an old-style archive from a shared archive.
21941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21943 # Create a temporary old-style archive to link instead of a shared archive.
21944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21946 # Commands used to build a shared archive.
21947 archive_cmds=$lt_archive_cmds
21948 archive_expsym_cmds=$lt_archive_expsym_cmds
21950 # Commands used to build a loadable module if different from building
21951 # a shared archive.
21952 module_cmds=$lt_module_cmds
21953 module_expsym_cmds=$lt_module_expsym_cmds
21955 # Whether we are building with GNU ld or not.
21956 with_gnu_ld=$lt_with_gnu_ld
21958 # Flag that allows shared libraries with undefined symbols to be built.
21959 allow_undefined_flag=$lt_allow_undefined_flag
21961 # Flag that enforces no undefined symbols.
21962 no_undefined_flag=$lt_no_undefined_flag
21964 # Flag to hardcode \$libdir into a binary during linking.
21965 # This must work even if \$libdir does not exist
21966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21968 # Whether we need a single "-rpath" flag with a separated argument.
21969 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21971 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21972 # DIR into the resulting binary.
21973 hardcode_direct=$hardcode_direct
21975 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21976 # DIR into the resulting binary and the resulting library dependency is
21977 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21978 # library is relocated.
21979 hardcode_direct_absolute=$hardcode_direct_absolute
21981 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21982 # into the resulting binary.
21983 hardcode_minus_L=$hardcode_minus_L
21985 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21986 # into the resulting binary.
21987 hardcode_shlibpath_var=$hardcode_shlibpath_var
21989 # Set to "yes" if building a shared library automatically hardcodes DIR
21990 # into the library and all subsequent libraries and executables linked
21992 hardcode_automatic=$hardcode_automatic
21994 # Set to yes if linker adds runtime paths of dependent libraries
21995 # to runtime path list.
21996 inherit_rpath=$inherit_rpath
21998 # Whether libtool must link a program against all its dependency libraries.
21999 link_all_deplibs=$link_all_deplibs
22001 # Set to "yes" if exported symbols are required.
22002 always_export_symbols=$always_export_symbols
22004 # The commands to list exported symbols.
22005 export_symbols_cmds=$lt_export_symbols_cmds
22007 # Symbols that should not be listed in the preloaded symbols.
22008 exclude_expsyms=$lt_exclude_expsyms
22010 # Symbols that must always be exported.
22011 include_expsyms=$lt_include_expsyms
22013 # Commands necessary for linking programs (against libraries) with templates.
22014 prelink_cmds=$lt_prelink_cmds
22016 # Commands necessary for finishing linking programs.
22017 postlink_cmds=$lt_postlink_cmds
22019 # Specify filename containing input files.
22020 file_list_spec=$lt_file_list_spec
22022 # How to hardcode a shared library path into an executable.
22023 hardcode_action=$hardcode_action
22025 # The directories searched by this compiler when creating a shared library.
22026 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22028 # Dependencies to place before and after the objects being linked to
22029 # create a shared library.
22030 predep_objects=$lt_predep_objects
22031 postdep_objects=$lt_postdep_objects
22032 predeps=$lt_predeps
22033 postdeps=$lt_postdeps
22035 # The library search path used internally by the compiler when linking
22036 # a shared library.
22037 compiler_lib_search_path=$lt_compiler_lib_search_path
22039 # ### END LIBTOOL CONFIG
22043 cat <<'_LT_EOF' >> "$cfgfile"
22045 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22047 # func_munge_path_list VARIABLE PATH
22048 # -----------------------------------
22049 # VARIABLE is name of variable containing _space_ separated list of
22050 # directories to be munged by the contents of PATH, which is string
22053 # string "DIR[ DIR]" will be prepended to VARIABLE
22055 # string "DIR[ DIR]" will be appended to VARIABLE
22056 # "DIRP[:DIRP]::[DIRA:]DIRA"
22057 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22058 # "DIRA[ DIRA]" will be appended to VARIABLE
22060 # VARIABLE will be replaced by "DIR[ DIR]"
22061 func_munge_path_list ()
22067 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22070 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22073 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22074 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22077 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22083 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22084 func_cc_basename ()
22086 for cc_temp in $*""; do
22088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22094 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22098 # ### END FUNCTIONS SHARED WITH CONFIGURE
22104 cat <<\_LT_EOF >> "$cfgfile"
22105 # AIX sometimes has problems with the GCC collect2 program. For some
22106 # reason, if we set the COLLECT_NAMES environment variable, the problems
22107 # vanish in a puff of smoke.
22108 if test set != "${COLLECT_NAMES+set}"; then
22110 export COLLECT_NAMES
22118 ltmain=$ac_aux_dir/ltmain.sh
22121 # We use sed instead of cat because bash on DJGPP gets confused if
22122 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22123 # text mode, it properly converts lines to CR/LF. This bash problem
22124 # is reportedly fixed, but why not run on old versions too?
22125 $SED '$q' "$ltmain" >> "$cfgfile" \
22126 || (rm -f "$cfgfile"; exit 1)
22128 mv -f "$cfgfile" "$ofile" ||
22129 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22133 cat <<_LT_EOF >> "$ofile"
22135 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22137 # The linker used to build libraries.
22140 # How to create reloadable object files.
22141 reload_flag=$lt_reload_flag_CXX
22142 reload_cmds=$lt_reload_cmds_CXX
22144 # Commands used to build an old-style archive.
22145 old_archive_cmds=$lt_old_archive_cmds_CXX
22147 # A language specific compiler.
22148 CC=$lt_compiler_CXX
22150 # Is the compiler the GNU compiler?
22153 # Compiler flag to turn off builtin functions.
22154 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22156 # Additional compiler flags for building library objects.
22157 pic_flag=$lt_lt_prog_compiler_pic_CXX
22159 # How to pass a linker flag through the compiler.
22160 wl=$lt_lt_prog_compiler_wl_CXX
22162 # Compiler flag to prevent dynamic linking.
22163 link_static_flag=$lt_lt_prog_compiler_static_CXX
22165 # Does compiler simultaneously support -c and -o options?
22166 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22168 # Whether or not to add -lc for building shared libraries.
22169 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22171 # Whether or not to disallow shared libs when runtime libs are static.
22172 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22174 # Compiler flag to allow reflexive dlopens.
22175 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22177 # Compiler flag to generate shared objects directly from archives.
22178 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22180 # Whether the compiler copes with passing no objects directly.
22181 compiler_needs_object=$lt_compiler_needs_object_CXX
22183 # Create an old-style archive from a shared archive.
22184 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22186 # Create a temporary old-style archive to link instead of a shared archive.
22187 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22189 # Commands used to build a shared archive.
22190 archive_cmds=$lt_archive_cmds_CXX
22191 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22193 # Commands used to build a loadable module if different from building
22194 # a shared archive.
22195 module_cmds=$lt_module_cmds_CXX
22196 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22198 # Whether we are building with GNU ld or not.
22199 with_gnu_ld=$lt_with_gnu_ld_CXX
22201 # Flag that allows shared libraries with undefined symbols to be built.
22202 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22204 # Flag that enforces no undefined symbols.
22205 no_undefined_flag=$lt_no_undefined_flag_CXX
22207 # Flag to hardcode \$libdir into a binary during linking.
22208 # This must work even if \$libdir does not exist
22209 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22211 # Whether we need a single "-rpath" flag with a separated argument.
22212 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22214 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22215 # DIR into the resulting binary.
22216 hardcode_direct=$hardcode_direct_CXX
22218 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22219 # DIR into the resulting binary and the resulting library dependency is
22220 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22221 # library is relocated.
22222 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22224 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22225 # into the resulting binary.
22226 hardcode_minus_L=$hardcode_minus_L_CXX
22228 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22229 # into the resulting binary.
22230 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22232 # Set to "yes" if building a shared library automatically hardcodes DIR
22233 # into the library and all subsequent libraries and executables linked
22235 hardcode_automatic=$hardcode_automatic_CXX
22237 # Set to yes if linker adds runtime paths of dependent libraries
22238 # to runtime path list.
22239 inherit_rpath=$inherit_rpath_CXX
22241 # Whether libtool must link a program against all its dependency libraries.
22242 link_all_deplibs=$link_all_deplibs_CXX
22244 # Set to "yes" if exported symbols are required.
22245 always_export_symbols=$always_export_symbols_CXX
22247 # The commands to list exported symbols.
22248 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22250 # Symbols that should not be listed in the preloaded symbols.
22251 exclude_expsyms=$lt_exclude_expsyms_CXX
22253 # Symbols that must always be exported.
22254 include_expsyms=$lt_include_expsyms_CXX
22256 # Commands necessary for linking programs (against libraries) with templates.
22257 prelink_cmds=$lt_prelink_cmds_CXX
22259 # Commands necessary for finishing linking programs.
22260 postlink_cmds=$lt_postlink_cmds_CXX
22262 # Specify filename containing input files.
22263 file_list_spec=$lt_file_list_spec_CXX
22265 # How to hardcode a shared library path into an executable.
22266 hardcode_action=$hardcode_action_CXX
22268 # The directories searched by this compiler when creating a shared library.
22269 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22271 # Dependencies to place before and after the objects being linked to
22272 # create a shared library.
22273 predep_objects=$lt_predep_objects_CXX
22274 postdep_objects=$lt_postdep_objects_CXX
22275 predeps=$lt_predeps_CXX
22276 postdeps=$lt_postdeps_CXX
22278 # The library search path used internally by the compiler when linking
22279 # a shared library.
22280 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22282 # ### END LIBTOOL TAG CONFIG: CXX
22293 ac_clean_files=$ac_clean_files_save
22295 test $ac_write_fail = 0 ||
22296 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22299 # configure is writing to config.log, and then calls config.status.
22300 # config.status does its own redirection, appending to config.log.
22301 # Unfortunately, on DOS this fails, as config.log is still kept open
22302 # by configure, so config.status won't be able to write to it; its
22303 # output is simply discarded. So we exec the FD to /dev/null,
22304 # effectively closing config.log, so it can be properly (re)opened and
22305 # appended to by config.status. When coming back to configure, we
22306 # need to make the FD available again.
22307 if test "$no_create" != yes; then
22309 ac_config_status_args=
22310 test "$silent" = yes &&
22311 ac_config_status_args="$ac_config_status_args --quiet"
22313 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22316 # would make configure fail if this is the last instruction.
22317 $ac_cs_success || as_fn_exit 1
22319 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22321 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}