2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libsigc++ 2.99.9.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='libsigc++'
593 PACKAGE_TARNAME='libsigc++'
594 PACKAGE_VERSION='2.99.9'
595 PACKAGE_STRING='libsigc++ 2.99.9'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B'
597 PACKAGE_URL='http://libsigc.sourceforge.net/'
599 ac_unique_file="sigc++/sigc++.h"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
644 SIGC_BUILD_BENCHMARK_FALSE
645 SIGC_BUILD_BENCHMARK_TRUE
646 DISABLE_DEPRECATED_API_FALSE
647 DISABLE_DEPRECATED_API_TRUE
654 ENABLE_DOCUMENTATION_FALSE
655 ENABLE_DOCUMENTATION_TRUE
728 MAINTAINER_MODE_FALSE
742 INSTALL_STRIP_PROGRAM
785 program_transform_name
798 enable_option_checking
800 enable_maintainer_mode
801 enable_dependency_tracking
813 enable_deprecated_api
820 ac_precious_vars='build_alias
844 # Initialize some variables set by options.
846 ac_init_version=false
847 ac_unrecognized_opts=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
858 program_transform_name=s,x,x,
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 runstatedir='${localstatedir}/run'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error $? "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
962 eval enable_$ac_useropt=no ;;
964 -docdir | --docdir | --docdi | --doc | --do)
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
988 eval enable_$ac_useropt=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1133 -runstatedir | --runstatedir | --runstatedi | --runstated \
1134 | --runstate | --runstat | --runsta | --runst | --runs \
1135 | --run | --ru | --r)
1136 ac_prev=runstatedir ;;
1137 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1138 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1139 | --run=* | --ru=* | --r=*)
1140 runstatedir=$ac_optarg ;;
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1161 -site=* | --site=* | --sit=*)
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=no ;;
1220 # Obsolete; use --with-x.
1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1224 | --x-incl | --x-inc | --x-in | --x-i)
1225 ac_prev=x_includes ;;
1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1228 x_includes=$ac_optarg ;;
1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1232 ac_prev=x_libraries ;;
1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1235 x_libraries=$ac_optarg ;;
1237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' | [0-9]* | *[!_$as_cr_alnum]* )
1246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 eval $ac_envvar=\$ac_optarg
1249 export $ac_envvar ;;
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 if test -n "$ac_prev"; then
1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $? "missing argument to $ac_option"
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 # Check all directory arguments for consistency.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir runstatedir
1281 eval ac_val=\$$ac_var
1282 # Remove trailing slashes.
1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\$ac_val;;
1288 # Be sure to have absolute directory names.
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $? "working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $? "pwd does not report name of working directory"
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures libsigc++ 2.99.9 to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/libsigc++]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of libsigc++ 2.99.9:";;
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-maintainer-mode
1474 enable make rules and dependencies not useful (and
1475 sometimes confusing) to the casual installer
1476 --enable-dependency-tracking
1477 do not reject slow dependency extractors
1478 --disable-dependency-tracking
1479 speeds up one-time build
1480 --enable-static[=PKGS] build static libraries [default=no]
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --disable-documentation do not build or install the documentation
1486 --enable-warnings[=min|max|fatal|no]
1487 set compiler pedantry level [default=min]
1488 --disable-deprecated-api
1489 omit deprecated API from the library
1490 --enable-benchmark=yes|no
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1499 --with-aix-soname=aix|svr4|both
1500 shared library versioning (aka "SONAME") variant to
1501 provide on AIX, [default=aix].
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1504 compiler's sysroot if not specified).
1505 --with-libstdc-doc=[TAGFILE@]HTMLREFDIR
1506 Link to external libstdc documentation [auto]
1507 --with-boost[=ARG] use Boost library from a standard location
1508 (ARG=yes), from the specified location (ARG=<path>),
1509 or disable it (ARG=no) [ARG=yes]
1510 --with-boost-libdir=LIB_DIR
1511 Force given directory for boost libraries. Note that
1512 this will override library path detection, so use
1513 this parameter only if default library detection
1514 fails and you know exactly where your boost
1515 libraries are located.
1516 --with-boost-system[=special-lib]
1517 use the System library from boost - it is possible
1518 to specify a certain library for the linker e.g.
1519 --with-boost-system=boost_system-gcc-mt
1520 --with-boost-timer[=special-lib]
1521 use the Timer library from boost - it is possible to
1522 specify a certain library for the linker e.g.
1523 --with-boost-timer=boost_timer-gcc-mt
1525 Some influential environment variables:
1527 aclocal flags, e.g. -I <macro dir>
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 CC C compiler command
1536 CFLAGS C compiler flags
1538 User-defined run-time library search path.
1540 CXXCPP C++ preprocessor
1541 PERL path to Perl interpreter
1542 DOT path to dot utility
1543 DOXYGEN path to Doxygen utility
1544 XSLTPROC path to xsltproc utility
1545 PKG_CONFIG path to pkg-config utility
1547 directories to add to pkg-config's search path
1549 path overriding pkg-config's built-in search path
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1554 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B>.
1555 libsigc++ home page: <http://libsigc.sourceforge.net/>.
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1585 .) # We are building in place.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1618 libsigc++ configure 2.99.9
1619 generated by GNU Autoconf 2.69
1621 Copyright (C) 2012 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1632 # ac_fn_cxx_try_compile LINENO
1633 # ----------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_cxx_try_compile ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_cxx_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_cxx_try_compile
1670 # ac_fn_c_try_compile LINENO
1671 # --------------------------
1672 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_compile ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext
1677 if { { ac_try="$ac_compile"
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest.$ac_objext; then :
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1706 } # ac_fn_c_try_compile
1708 # ac_fn_c_try_link LINENO
1709 # -----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 test -x conftest$ac_exeext
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_c_try_link
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1771 if ac_fn_c_try_compile "$LINENO"; then :
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 } # ac_fn_c_check_header_compile
1785 # ac_fn_c_try_cpp LINENO
1786 # ----------------------
1787 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_cpp conftest.$ac_ext"
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } > conftest.i && {
1807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=$ac_status
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1864 # ac_fn_c_check_func LINENO FUNC VAR
1865 # ----------------------------------
1866 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1867 ac_fn_c_check_func ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1877 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1879 #define $2 innocuous_$2
1881 /* System header to define __stub macros and hopefully few prototypes,
1882 which can conflict with char $2 (); below.
1883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1884 <limits.h> exists even on freestanding compilers. */
1887 # include <limits.h>
1889 # include <assert.h>
1894 /* Override any GCC internal prototype to avoid an error.
1895 Use char because int might match the return type of a GCC
1896 builtin and then its argument prototype would still apply. */
1901 /* The GNU C library defines this for functions which it implements
1902 to always fail with ENOSYS. Some functions are actually named
1903 something starting with __ and the normal name is an alias. */
1904 #if defined __stub_$2 || defined __stub___$2
1916 if ac_fn_c_try_link "$LINENO"; then :
1921 rm -f core conftest.err conftest.$ac_objext \
1922 conftest$ac_exeext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_func
1931 # ac_fn_cxx_try_cpp LINENO
1932 # ------------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_cpp ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i && {
1953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.$ac_ext >&5
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status $ac_retval
1966 } # ac_fn_cxx_try_cpp
1968 # ac_fn_cxx_try_link LINENO
1969 # -------------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1971 ac_fn_cxx_try_link ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext conftest$ac_exeext
1975 if { { ac_try="$ac_link"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>conftest.err
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_cxx_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest$ac_exeext && {
1994 test "$cross_compiling" = yes ||
1995 test -x conftest$ac_exeext
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006 # interfere with the next link command; also delete a directory that is
2007 # left behind by Apple's compiler. We do this before executing the actions.
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_cxx_try_link
2013 cat >config.log <<_ACEOF
2014 This file contains any messages produced by compilers while
2015 running configure, to aid debugging if configure makes a mistake.
2017 It was created by libsigc++ $as_me 2.99.9, which was
2018 generated by GNU Autoconf 2.69. Invocation command line was
2030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2042 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 $as_echo "PATH: $as_dir"
2070 # Keep a trace of the command line.
2071 # Strip out --no-create and --no-recursion so they do not pile up.
2072 # Strip out --silent because we don't want to record it for future runs.
2073 # Also quote any args containing shell meta-characters.
2074 # Make two passes to allow for proper duplicate-argument suppression.
2078 ac_must_keep_next=false
2084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2086 | -silent | --silent | --silen | --sile | --sil)
2089 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2092 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2094 as_fn_append ac_configure_args1 " '$ac_arg'"
2095 if test $ac_must_keep_next = true; then
2096 ac_must_keep_next=false # Got value, back to normal.
2099 *=* | --config-cache | -C | -disable-* | --disable-* \
2100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2102 | -with-* | --with-* | -without-* | --without-* | --x)
2103 case "$ac_configure_args0 " in
2104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107 -* ) ac_must_keep_next=true ;;
2110 as_fn_append ac_configure_args " '$ac_arg'"
2115 { ac_configure_args0=; unset ac_configure_args0;}
2116 { ac_configure_args1=; unset ac_configure_args1;}
2118 # When interrupted or exit'd, cleanup temporary files, and complete
2119 # config.log. We remove comments because anyway the quotes in there
2120 # would cause problems or look ugly.
2121 # WARNING: Use '\'' to represent an apostrophe within the trap.
2122 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2123 trap 'exit_status=$?
2124 # Save into config.log some information that might help in debugging.
2128 $as_echo "## ---------------- ##
2129 ## Cache variables. ##
2130 ## ---------------- ##"
2132 # The following way of writing the cache mishandles newlines in values,
2134 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2135 eval ac_val=\$$ac_var
2139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143 _ | IFS | as_nl) ;; #(
2144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2145 *) { eval $ac_var=; unset $ac_var;} ;;
2150 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2151 *${as_nl}ac_space=\ *)
2153 "s/'\''/'\''\\\\'\'''\''/g;
2154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2164 $as_echo "## ----------------- ##
2165 ## Output variables. ##
2166 ## ----------------- ##"
2168 for ac_var in $ac_subst_vars
2170 eval ac_val=\$$ac_var
2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 $as_echo "$ac_var='\''$ac_val'\''"
2178 if test -n "$ac_subst_files"; then
2179 $as_echo "## ------------------- ##
2180 ## File substitutions. ##
2181 ## ------------------- ##"
2183 for ac_var in $ac_subst_files
2185 eval ac_val=\$$ac_var
2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 $as_echo "$ac_var='\''$ac_val'\''"
2194 if test -s confdefs.h; then
2195 $as_echo "## ----------- ##
2202 test "$ac_signal" != 0 &&
2203 $as_echo "$as_me: caught signal $ac_signal"
2204 $as_echo "$as_me: exit $exit_status"
2206 rm -f core *.core core.conftest.* &&
2207 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2210 for ac_signal in 1 2 13 15; do
2211 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2216 rm -f -r conftest* confdefs.h
2218 $as_echo "/* confdefs.h */" > confdefs.h
2220 # Predefined preprocessor variables.
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_NAME "$PACKAGE_NAME"
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_STRING "$PACKAGE_STRING"
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_URL "$PACKAGE_URL"
2247 # Let the site file select an alternate cache file if it wants to.
2248 # Prefer an explicitly selected file to automatically selected ones.
2251 if test -n "$CONFIG_SITE"; then
2252 # We do not want a PATH search for config.site.
2253 case $CONFIG_SITE in #((
2254 -*) ac_site_file1=./$CONFIG_SITE;;
2255 */*) ac_site_file1=$CONFIG_SITE;;
2256 *) ac_site_file1=./$CONFIG_SITE;;
2258 elif test "x$prefix" != xNONE; then
2259 ac_site_file1=$prefix/share/config.site
2260 ac_site_file2=$prefix/etc/config.site
2262 ac_site_file1=$ac_default_prefix/share/config.site
2263 ac_site_file2=$ac_default_prefix/etc/config.site
2265 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2267 test "x$ac_site_file" = xNONE && continue
2268 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2270 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2271 sed 's/^/| /' "$ac_site_file" >&5
2273 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 as_fn_error $? "failed to load site script $ac_site_file
2276 See \`config.log' for more details" "$LINENO" 5; }
2280 if test -r "$cache_file"; then
2281 # Some versions of bash will fail to source /dev/null (special files
2282 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2283 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2285 $as_echo "$as_me: loading cache $cache_file" >&6;}
2287 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288 *) . "./$cache_file";;
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2293 $as_echo "$as_me: creating cache $cache_file" >&6;}
2297 # Check that the precious variables saved in the cache have kept the same
2299 ac_cache_corrupted=false
2300 for ac_var in $ac_precious_vars; do
2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302 eval ac_new_set=\$ac_env_${ac_var}_set
2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304 eval ac_new_val=\$ac_env_${ac_var}_value
2305 case $ac_old_set,$ac_new_set in
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309 ac_cache_corrupted=: ;;
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2316 if test "x$ac_old_val" != "x$ac_new_val"; then
2317 # differences in whitespace do not lead to failure.
2318 ac_old_val_w=`echo x $ac_old_val`
2319 ac_new_val_w=`echo x $ac_new_val`
2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2322 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323 ac_cache_corrupted=:
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327 eval $ac_var=\$ac_old_val
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2330 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2332 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2335 # Pass precious variables to config.status.
2336 if test "$ac_new_set" = set; then
2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 *) ac_arg=$ac_var=$ac_new_val ;;
2341 case " $ac_configure_args " in
2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2343 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2347 if $ac_cache_corrupted; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2351 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354 ## -------------------- ##
2355 ## Main body of script. ##
2356 ## -------------------- ##
2359 ac_cpp='$CPP $CPPFLAGS'
2360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369 for ac_dir in build "$srcdir"/build; do
2370 if test -f "$ac_dir/install-sh"; then
2372 ac_install_sh="$ac_aux_dir/install-sh -c"
2374 elif test -f "$ac_dir/install.sh"; then
2376 ac_install_sh="$ac_aux_dir/install.sh -c"
2378 elif test -f "$ac_dir/shtool"; then
2380 ac_install_sh="$ac_aux_dir/shtool install -c"
2384 if test -z "$ac_aux_dir"; then
2385 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2388 # These three variables are undocumented and unsupported,
2389 # and are intended to be withdrawn in a future Autoconf release.
2390 # They can cause serious problems if a builder's source tree is in a directory
2391 # whose full name contains unusual characters.
2392 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2393 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2394 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2398 ac_config_headers="$ac_config_headers config.h sigc++config.h"
2401 am__api_version='1.15'
2403 # Find a good install program. We prefer a C program (faster),
2404 # so one script is as good as another. But avoid the broken or
2405 # incompatible versions:
2406 # SysV /etc/install, /usr/sbin/install
2407 # SunOS /usr/etc/install
2408 # IRIX /sbin/install
2410 # AmigaOS /C/install, which installs bootblocks on floppy discs
2411 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2412 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2413 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2414 # OS/2's system install, which has a completely different semantic
2415 # ./install, which can be erroneously created by make from ./install.sh.
2416 # Reject install programs that cannot install multiple files.
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2418 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2419 if test -z "$INSTALL"; then
2420 if ${ac_cv_path_install+:} false; then :
2421 $as_echo_n "(cached) " >&6
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 # Account for people who put trailing slashes in PATH elements.
2429 case $as_dir/ in #((
2430 ./ | .// | /[cC]/* | \
2431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2432 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2435 # OSF1 and SCO ODT 3.0 have their own names for install.
2436 # Don't use installbsd from OSF since it installs stuff as root
2438 for ac_prog in ginstall scoinst install; do
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2441 if test $ac_prog = install &&
2442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443 # AIX install. It has an incompatible calling convention.
2445 elif test $ac_prog = install &&
2446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2447 # program-specific install script used by HP pwplus--don't use.
2450 rm -rf conftest.one conftest.two conftest.dir
2451 echo one > conftest.one
2452 echo two > conftest.two
2454 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2455 test -s conftest.one && test -s conftest.two &&
2456 test -s conftest.dir/conftest.one &&
2457 test -s conftest.dir/conftest.two
2459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2472 rm -rf conftest.one conftest.two conftest.dir
2475 if test "${ac_cv_path_install+set}" = set; then
2476 INSTALL=$ac_cv_path_install
2478 # As a last resort, use the slow shell script. Don't cache a
2479 # value for INSTALL within a source directory, because that will
2480 # break other packages using the cache if that directory is
2481 # removed, or if the value is a relative name.
2482 INSTALL=$ac_install_sh
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2486 $as_echo "$INSTALL" >&6; }
2488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2489 # It thinks the first close brace ends the variable substitution.
2490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2497 $as_echo_n "checking whether build environment is sane... " >&6; }
2498 # Reject unsafe characters in $srcdir or the absolute working directory
2499 # name. Accept space and tab only in the latter.
2503 *[\\\"\#\$\&\'\`$am_lf]*)
2504 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2507 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2508 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2511 # Do 'set' in a subshell so we don't clobber the current shell's
2512 # arguments. Must try -L first in case configure is actually a
2513 # symlink; some systems play weird games with the mod time of symlinks
2514 # (eg FreeBSD returns the mod time of the symlink's containing
2518 for am_try in 1 2; do
2519 echo "timestamp, slept: $am_has_slept" > conftest.file
2520 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2521 if test "$*" = "X"; then
2523 set X `ls -t "$srcdir/configure" conftest.file`
2525 if test "$*" != "X $srcdir/configure conftest.file" \
2526 && test "$*" != "X conftest.file $srcdir/configure"; then
2528 # If neither matched, then we have a broken ls. This can happen
2529 # if, for instance, CONFIG_SHELL is bash and it inherits a
2530 # broken ls alias from the environment. This has actually
2531 # happened. Such a system could not be considered "sane".
2532 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2533 alias in your environment" "$LINENO" 5
2535 if test "$2" = conftest.file || test $am_try -eq 2; then
2542 test "$2" = conftest.file
2548 as_fn_error $? "newly created file is older than distributed files!
2549 Check your system clock" "$LINENO" 5
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2552 $as_echo "yes" >&6; }
2553 # If we didn't sleep, we still need to ensure time stamps of config.status and
2554 # generated files are strictly newer.
2556 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2563 test "$program_prefix" != NONE &&
2564 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2565 # Use a double $ so make ignores it.
2566 test "$program_suffix" != NONE &&
2567 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2568 # Double any \ or $.
2569 # By default was `s,x,x', remove it if useless.
2570 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2571 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2573 # Expand $ac_aux_dir to an absolute path.
2574 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2576 if test x"${MISSING+set}" != xset; then
2579 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2581 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2584 # Use eval to expand $SHELL
2585 if eval "$MISSING --is-lightweight"; then
2586 am_missing_run="$MISSING "
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2590 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2593 if test x"${install_sh+set}" != xset; then
2596 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2598 install_sh="\${SHELL} $am_aux_dir/install-sh"
2602 # Installed binaries are usually stripped using 'strip' when the user
2603 # run "make install-strip". However 'strip' might not be the right
2604 # tool to use in cross-compilation environments, therefore Automake
2605 # will honor the 'STRIP' environment variable to overrule this program.
2606 if test "$cross_compiling" != no; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}strip; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_STRIP+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$STRIP"; then
2616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 STRIP=$ac_cv_prog_STRIP
2636 if test -n "$STRIP"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2638 $as_echo "$STRIP" >&6; }
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2646 if test -z "$ac_cv_prog_STRIP"; then
2648 # Extract the first word of "strip", so it can be a program name with args.
2649 set dummy strip; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2653 $as_echo_n "(cached) " >&6
2655 if test -n "$ac_ct_STRIP"; then
2656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665 ac_cv_prog_ac_ct_STRIP="strip"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2676 if test -n "$ac_ct_STRIP"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2678 $as_echo "$ac_ct_STRIP" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2684 if test "x$ac_ct_STRIP" = x; then
2687 case $cross_compiling:$ac_tool_warned in
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2691 ac_tool_warned=yes ;;
2696 STRIP="$ac_cv_prog_STRIP"
2700 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2703 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2704 if test -z "$MKDIR_P"; then
2705 if ${ac_cv_path_mkdir+:} false; then :
2706 $as_echo_n "(cached) " >&6
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2712 test -z "$as_dir" && as_dir=.
2713 for ac_prog in mkdir gmkdir; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2716 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2717 'mkdir (GNU coreutils) '* | \
2718 'mkdir (coreutils) '* | \
2719 'mkdir (fileutils) '4.1*)
2720 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2730 test -d ./--version && rmdir ./--version
2731 if test "${ac_cv_path_mkdir+set}" = set; then
2732 MKDIR_P="$ac_cv_path_mkdir -p"
2734 # As a last resort, use the slow shell script. Don't cache a
2735 # value for MKDIR_P within a source directory, because that will
2736 # break other packages using the cache if that directory is
2737 # removed, or if the value is a relative name.
2738 MKDIR_P="$ac_install_sh -d"
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2742 $as_echo "$MKDIR_P" >&6; }
2744 for ac_prog in gawk mawk nawk awk
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if ${ac_cv_prog_AWK+:} false; then :
2751 $as_echo_n "(cached) " >&6
2753 if test -n "$AWK"; then
2754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_AWK="$ac_prog"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test -n "$AWK"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2776 $as_echo "$AWK" >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2783 test -n "$AWK" && break
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2787 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2789 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2790 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 cat >conftest.make <<\_ACEOF
2796 @echo '@@@%%%=$(MAKE)=@@@%%%'
2798 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2799 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2801 eval ac_cv_prog_make_${ac_make}_set=yes;;
2803 eval ac_cv_prog_make_${ac_make}_set=no;;
2807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2809 $as_echo "yes" >&6; }
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 SET_MAKE="MAKE=${MAKE-make}"
2817 rm -rf .tst 2>/dev/null
2818 mkdir .tst 2>/dev/null
2819 if test -d .tst; then
2824 rmdir .tst 2>/dev/null
2826 # Check whether --enable-silent-rules was given.
2827 if test "${enable_silent_rules+set}" = set; then :
2828 enableval=$enable_silent_rules;
2831 case $enable_silent_rules in # (((
2832 yes) AM_DEFAULT_VERBOSITY=0;;
2833 no) AM_DEFAULT_VERBOSITY=1;;
2834 *) AM_DEFAULT_VERBOSITY=1;;
2836 am_make=${MAKE-make}
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2838 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2839 if ${am_cv_make_support_nested_variables+:} false; then :
2840 $as_echo_n "(cached) " >&6
2842 if $as_echo 'TRUE=$(BAR$(V))
2848 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2849 am_cv_make_support_nested_variables=yes
2851 am_cv_make_support_nested_variables=no
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2855 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2856 if test $am_cv_make_support_nested_variables = yes; then
2858 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2860 AM_V=$AM_DEFAULT_VERBOSITY
2861 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2865 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2866 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2867 # is not polluted with repeated "-I."
2868 am__isrc=' -I$(srcdir)'
2869 # test to see if srcdir already configured
2870 if test -f $srcdir/config.status; then
2871 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2875 # test whether we have cygpath
2876 if test -z "$CYGPATH_W"; then
2877 if (cygpath --version) >/dev/null 2>/dev/null; then
2878 CYGPATH_W='cygpath -w'
2885 # Define the identity of the package.
2890 # Some tools Automake needs.
2892 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2895 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2898 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2901 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2904 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2906 # For better backward compatibility. To be removed once Automake 1.9.x
2907 # dies out for good. For more background, see:
2908 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2909 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2910 mkdir_p='$(MKDIR_P)'
2912 # We need awk for the "check" target (and possibly the TAP driver). The
2913 # system "awk" is bad on some platforms.
2914 # Always define AMTAR for backward compatibility. Yes, it's still used
2915 # in the wild :-( We should find a proper way to deprecate it ...
2919 # We'll loop over all known methods to create a tar archive until one works.
2920 _am_tools='gnutar plaintar pax cpio none'
2922 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2923 # There is notably a 21 bits limit for the UID and the GID. In fact,
2924 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2926 am_max_uid=2097151 # 2^21 - 1
2927 am_max_gid=$am_max_uid
2928 # The $UID and $GID variables are not portable, so we need to resort
2929 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
2930 # below are definitely unexpected, so allow the users to see them
2931 # (that is, avoid stderr redirection).
2932 am_uid=`id -u || echo unknown`
2933 am_gid=`id -g || echo unknown`
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2935 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2936 if test $am_uid -le $am_max_uid; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2938 $as_echo "yes" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2945 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2946 if test $am_gid -le $am_max_gid; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2956 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2958 # Go ahead even if we have the value already cached. We do so because we
2959 # need to set the values for the 'am__tar' and 'am__untar' variables.
2960 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2962 for _am_tool in $_am_tools; do
2965 for _am_tar in tar gnutar gtar; do
2966 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2967 ($_am_tar --version) >&5 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && break
2972 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2973 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2974 am__untar="$_am_tar -xf -"
2977 # Must skip GNU tar: if it does not support --format= it doesn't create
2978 # ustar tarball either.
2979 (tar --version) >/dev/null 2>&1 && continue
2980 am__tar='tar chf - "$$tardir"'
2981 am__tar_='tar chf - "$tardir"'
2982 am__untar='tar xf -'
2985 am__tar='pax -L -x ustar -w "$$tardir"'
2986 am__tar_='pax -L -x ustar -w "$tardir"'
2990 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2991 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2992 am__untar='cpio -i -H ustar -d'
3001 # If the value was cached, stop now. We just wanted to have am__tar
3002 # and am__untar set.
3003 test -n "${am_cv_prog_tar_ustar}" && break
3005 # tar/untar a dummy directory, and stop if the command works.
3008 echo GrepMe > conftest.dir/file
3009 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3010 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3015 if test -s conftest.tar; then
3016 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3017 ($am__untar <conftest.tar) >&5 2>&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }
3021 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3022 (cat conftest.dir/file) >&5 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }
3026 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3031 if ${am_cv_prog_tar_ustar+:} false; then :
3032 $as_echo_n "(cached) " >&6
3034 am_cv_prog_tar_ustar=$_am_tool
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3038 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3045 # POSIX will say in a future version that running "rm -f" with no argument
3046 # is OK; and we want to be able to make that assumption in our Makefile
3047 # recipes. So use an aggressive probe to check that the usage we want is
3048 # actually supported "in the wild" to an acceptable degree.
3049 # See automake bug#10828.
3050 # To make any issue more visible, cause the running configure to be aborted
3051 # by default if the 'rm' program in use doesn't match our expectations; the
3052 # user can still override this though.
3053 if rm -f && rm -fr && rm -rf; then : OK; else
3057 Your 'rm' program seems unable to run without file operands specified
3058 on the command line, even when the '-f' option is present. This is contrary
3059 to the behaviour of most rm programs out there, and not conforming with
3060 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3062 Please tell bug-automake@gnu.org about your system, including the value
3063 of your $PATH and any error possibly output before this message. This
3064 can help us improve future automake versions.
3067 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3068 echo 'Configuration will proceed anyway, since you have set the' >&2
3069 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3073 Aborting the configuration process, to ensure you take notice of the issue.
3075 You can download and install GNU coreutils to get an 'rm' implementation
3076 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3078 If you want to complete the configuration process using your problematic
3079 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3080 to "yes", and re-run configure.
3083 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3087 # Support silent build rules.
3088 # Disable by either passing --disable-silent-rules to configure or passing V=1 to make.
3089 # Check whether --enable-silent-rules was given.
3090 if test "${enable_silent_rules+set}" = set; then :
3091 enableval=$enable_silent_rules;
3094 case $enable_silent_rules in # (((
3095 yes) AM_DEFAULT_VERBOSITY=0;;
3096 no) AM_DEFAULT_VERBOSITY=1;;
3097 *) AM_DEFAULT_VERBOSITY=0;;
3099 am_make=${MAKE-make}
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3101 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3102 if ${am_cv_make_support_nested_variables+:} false; then :
3103 $as_echo_n "(cached) " >&6
3105 if $as_echo 'TRUE=$(BAR$(V))
3111 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3112 am_cv_make_support_nested_variables=yes
3114 am_cv_make_support_nested_variables=no
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3118 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3119 if test $am_cv_make_support_nested_variables = yes; then
3121 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3123 AM_V=$AM_DEFAULT_VERBOSITY
3124 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3130 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3131 # Check whether --enable-maintainer-mode was given.
3132 if test "${enable_maintainer_mode+set}" = set; then :
3133 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3135 USE_MAINTAINER_MODE=no
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3139 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3140 if test $USE_MAINTAINER_MODE = yes; then
3141 MAINTAINER_MODE_TRUE=
3142 MAINTAINER_MODE_FALSE='#'
3144 MAINTAINER_MODE_TRUE='#'
3145 MAINTAINER_MODE_FALSE=
3148 MAINT=$MAINTAINER_MODE_TRUE
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports GNU make features" >&5
3156 $as_echo_n "checking whether ${MAKE-make} supports GNU make features... " >&6; }
3157 cat >conftest.make <<'_MMEOF'
3158 override reverse = $(2)$(subst ,, )$(1)
3159 override result := $(word 2,$(call reverse,success,failure))
3160 all: ; test '$(result)' = success
3163 if ${MAKE-make} -f conftest.make >&5 2>&5; then :
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mm_gnu_make" >&5
3170 $as_echo "$mm_gnu_make" >&6; }
3171 if test "x$mm_gnu_make" != xyes; then :
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error $? "The GNU make program is required to build $PACKAGE_NAME.
3175 See \`config.log' for more details" "$LINENO" 5; }
3178 SIGCXX_MODULE_NAME='sigc++-3.0'
3180 SIGCXX_VERSION='2.99.9'
3182 SIGCXX_API_VERSION='3.0'
3184 SIGCXX_MAJOR_VERSION=2
3187 $as_echo "#define SIGCXX_MAJOR_VERSION 2" >>confdefs.h
3189 SIGCXX_MINOR_VERSION=99
3192 $as_echo "#define SIGCXX_MINOR_VERSION 99" >>confdefs.h
3194 SIGCXX_MICRO_VERSION=9
3197 $as_echo "#define SIGCXX_MICRO_VERSION 9" >>confdefs.h
3200 MMDOCTOOLDIR='${top_srcdir}/docs'
3201 if test 'xdocs' != 'x'; then
3203 DIST_DOCTOOLS_FALSE='#'
3205 DIST_DOCTOOLS_TRUE='#'
3206 DIST_DOCTOOLS_FALSE=
3211 ac_cpp='$CXXCPP $CPPFLAGS'
3212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3215 if test -z "$CXX"; then
3216 if test -n "$CCC"; then
3219 if test -n "$ac_tool_prefix"; then
3220 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_CXX+:} false; then :
3227 $as_echo_n "(cached) " >&6
3229 if test -n "$CXX"; then
3230 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 if test -n "$CXX"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3252 $as_echo "$CXX" >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3259 test -n "$CXX" && break
3262 if test -z "$CXX"; then
3264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$ac_ct_CXX"; then
3274 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_ac_ct_CXX="$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3294 if test -n "$ac_ct_CXX"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3296 $as_echo "$ac_ct_CXX" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3303 test -n "$ac_ct_CXX" && break
3306 if test "x$ac_ct_CXX" = x; then
3309 case $cross_compiling:$ac_tool_warned in
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3313 ac_tool_warned=yes ;;
3321 # Provide some information about the compiler.
3322 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3325 for ac_option in --version -v -V -qversion; do
3326 { { ac_try="$ac_compiler $ac_option >&5"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3335 if test -s conftest.err; then
3337 ... rest of stderr output deleted ...
3338 10q' conftest.err >conftest.er1
3339 cat conftest.er1 >&5
3341 rm -f conftest.er1 conftest.err
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3357 ac_clean_files_save=$ac_clean_files
3358 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3359 # Try to create an executable without -o first, disregard a.out.
3360 # It will help us diagnose broken compilers, and finding out an intuition
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3363 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3364 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3366 # The possible output files:
3367 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3370 for ac_file in $ac_files
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3374 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3379 if { { ac_try="$ac_link_default"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_link_default") 2>&5
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; then :
3390 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3391 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3392 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3393 # so that the user can short-circuit this test for compilers unknown to
3395 for ac_file in $ac_files ''
3397 test -f "$ac_file" || continue
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3402 # We found the default executable, but exeext='' is most
3406 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3408 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3410 # We set ac_cv_exeext here because the later test for it is not
3411 # safe: cross compilers may not add the suffix if given an `-o'
3412 # argument, so we may need to know it at that point already.
3413 # Even if this section looks crufty: it has the advantage of
3420 test "$ac_cv_exeext" = no && ac_cv_exeext=
3425 if test -z "$ac_file"; then :
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error 77 "C++ compiler cannot create executables
3434 See \`config.log' for more details" "$LINENO" 5; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3437 $as_echo "yes" >&6; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3440 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3442 $as_echo "$ac_file" >&6; }
3443 ac_exeext=$ac_cv_exeext
3445 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3446 ac_clean_files=$ac_clean_files_save
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3448 $as_echo_n "checking for suffix of executables... " >&6; }
3449 if { { ac_try="$ac_link"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_link") 2>&5
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; then :
3460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3461 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3462 # work properly (i.e., refer to `conftest.exe'), while it won't with
3464 for ac_file in conftest.exe conftest conftest.*; do
3465 test -f "$ac_file" || continue
3467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3477 See \`config.log' for more details" "$LINENO" 5; }
3479 rm -f conftest conftest$ac_cv_exeext
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3481 $as_echo "$ac_cv_exeext" >&6; }
3483 rm -f conftest.$ac_ext
3484 EXEEXT=$ac_cv_exeext
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3492 FILE *f = fopen ("conftest.out", "w");
3493 return ferror (f) || fclose (f) != 0;
3499 ac_clean_files="$ac_clean_files conftest.out"
3500 # Check that the compiler produces executables we can run. If not, either
3501 # the compiler is broken, or we cross compile.
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3503 $as_echo_n "checking whether we are cross compiling... " >&6; }
3504 if test "$cross_compiling" != yes; then
3505 { { ac_try="$ac_link"
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_link") 2>&5
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }
3516 if { ac_try='./conftest$ac_cv_exeext'
3517 { { case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_try") 2>&5
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; }; then
3529 if test "$cross_compiling" = maybe; then
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot run C++ compiled programs.
3535 If you meant to cross compile, use \`--host'.
3536 See \`config.log' for more details" "$LINENO" 5; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3541 $as_echo "$cross_compiling" >&6; }
3543 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3544 ac_clean_files=$ac_clean_files_save
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3546 $as_echo_n "checking for suffix of object files... " >&6; }
3547 if ${ac_cv_objext+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3561 rm -f conftest.o conftest.obj
3562 if { { ac_try="$ac_compile"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_compile") 2>&5
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; then :
3573 for ac_file in conftest.o conftest.obj conftest.*; do
3574 test -f "$ac_file" || continue;
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3577 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3582 $as_echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 as_fn_error $? "cannot compute suffix of object files: cannot compile
3588 See \`config.log' for more details" "$LINENO" 5; }
3590 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3593 $as_echo "$ac_cv_objext" >&6; }
3594 OBJEXT=$ac_cv_objext
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3597 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3598 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3599 $as_echo_n "(cached) " >&6
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3615 if ac_fn_cxx_try_compile "$LINENO"; then :
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3625 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3626 if test $ac_compiler_gnu = yes; then
3631 ac_test_CXXFLAGS=${CXXFLAGS+set}
3632 ac_save_CXXFLAGS=$CXXFLAGS
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3634 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3635 if ${ac_cv_prog_cxx_g+:} false; then :
3636 $as_echo_n "(cached) " >&6
3638 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3639 ac_cxx_werror_flag=yes
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3653 if ac_fn_cxx_try_compile "$LINENO"; then :
3654 ac_cv_prog_cxx_g=yes
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3668 if ac_fn_cxx_try_compile "$LINENO"; then :
3671 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3684 if ac_fn_cxx_try_compile "$LINENO"; then :
3685 ac_cv_prog_cxx_g=yes
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3695 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3696 if test "$ac_test_CXXFLAGS" = set; then
3697 CXXFLAGS=$ac_save_CXXFLAGS
3698 elif test $ac_cv_prog_cxx_g = yes; then
3699 if test "$GXX" = yes; then
3705 if test "$GXX" = yes; then
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 DEPDIR="${am__leading_dot}deps"
3718 ac_config_commands="$ac_config_commands depfiles"
3721 am_make=${MAKE-make}
3722 cat > confinc << 'END'
3724 @echo this is the am__doit target
3727 # If we don't find an include directive, just comment out the code.
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3729 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3733 # First try GNU make style include.
3734 echo "include confinc" > confmf
3735 # Ignore all kinds of additional output from 'make'.
3736 case `$am_make -s -f confmf 2> /dev/null` in #(
3737 *the\ am__doit\ target*)
3743 # Now try BSD make style include.
3744 if test "$am__include" = "#"; then
3745 echo '.include "confinc"' > confmf
3746 case `$am_make -s -f confmf 2> /dev/null` in #(
3747 *the\ am__doit\ target*)
3748 am__include=.include
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3757 $as_echo "$_am_result" >&6; }
3758 rm -f confinc confmf
3760 # Check whether --enable-dependency-tracking was given.
3761 if test "${enable_dependency_tracking+set}" = set; then :
3762 enableval=$enable_dependency_tracking;
3765 if test "x$enable_dependency_tracking" != xno; then
3766 am_depcomp="$ac_aux_dir/depcomp"
3770 if test "x$enable_dependency_tracking" != xno; then
3780 depcc="$CXX" am_compiler_list=
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3783 $as_echo_n "checking dependency style of $depcc... " >&6; }
3784 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3785 $as_echo_n "(cached) " >&6
3787 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3788 # We make a subdir and do the tests there. Otherwise we can end up
3789 # making bogus files that we don't know about and never remove. For
3790 # instance it was reported that on HP-UX the gcc test will end up
3791 # making a dummy file named 'D' -- because '-MD' means "put the output
3795 # Copy depcomp to subdir because otherwise we won't find it if we're
3796 # using a relative directory.
3797 cp "$am_depcomp" conftest.dir
3799 # We will build objects and dependencies in a subdirectory because
3800 # it helps to detect inapplicable dependency modes. For instance
3801 # both Tru64's cc and ICC support -MD to output dependencies as a
3802 # side effect of compilation, but ICC will put the dependencies in
3803 # the current directory while Tru64 will put them in the object
3807 am_cv_CXX_dependencies_compiler_type=none
3808 if test "$am_compiler_list" = ""; then
3809 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3812 case " $depcc " in #(
3813 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3816 for depmode in $am_compiler_list; do
3817 # Setup a source with many dependencies, because some compilers
3818 # like to wrap large dependency lists on column 80 (with \), and
3819 # we should not choose a depcomp mode which is confused by this.
3821 # We need to recreate these files for each test, as the compiler may
3822 # overwrite some of them when testing with obscure command lines.
3823 # This happens at least with the AIX C compiler.
3825 for i in 1 2 3 4 5 6; do
3826 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3827 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3828 # Solaris 10 /bin/sh.
3829 echo '/* dummy */' > sub/conftst$i.h
3831 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3833 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3834 # mode. It turns out that the SunPro C++ compiler does not properly
3835 # handle '-M -o', and we need to detect this. Also, some Intel
3836 # versions had trouble with output in subdirs.
3837 am__obj=sub/conftest.${OBJEXT-o}
3838 am__minus_obj="-o $am__obj"
3841 # This depmode causes a compiler race in universal mode.
3842 test "$am__universal" = false || continue
3845 # After this tag, mechanisms are not by side-effect, so they'll
3846 # only be used when explicitly requested.
3847 if test "x$enable_dependency_tracking" = xyes; then
3853 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3854 # This compiler won't grok '-c -o', but also, the minuso test has
3855 # not run yet. These depmodes are late enough in the game, and
3856 # so weak that their functioning should not be impacted.
3857 am__obj=conftest.${OBJEXT-o}
3862 if depmode=$depmode \
3863 source=sub/conftest.c object=$am__obj \
3864 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3865 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3866 >/dev/null 2>conftest.err &&
3867 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3868 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3869 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3870 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3871 # icc doesn't choke on unknown options, it will just issue warnings
3872 # or remarks (even with -Werror). So we grep stderr for any message
3873 # that says an option was ignored or not supported.
3874 # When given -MP, icc 7.0 and 7.1 complain thusly:
3875 # icc: Command line warning: ignoring option '-M'; no argument required
3876 # The diagnosis changed in icc 8.0:
3877 # icc: Command line remark: option '-MP' not supported
3878 if (grep 'ignoring option' conftest.err ||
3879 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3880 am_cv_CXX_dependencies_compiler_type=$depmode
3889 am_cv_CXX_dependencies_compiler_type=none
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3894 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3895 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3898 test "x$enable_dependency_tracking" != xno \
3899 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3900 am__fastdepCXX_TRUE=
3901 am__fastdepCXX_FALSE='#'
3903 am__fastdepCXX_TRUE='#'
3904 am__fastdepCXX_FALSE=
3909 ax_cxx_compile_cxx14_required=true
3911 ac_cpp='$CXXCPP $CPPFLAGS'
3912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
3917 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
3918 if ${ax_cv_cxx_compile_cxx14+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3925 // If the compiler admits that it is not ready for C++11, why torture it?
3926 // Hopefully, this will speed up the test.
3930 #error "This is not a C++ compiler"
3932 #elif __cplusplus < 201103L
3934 #error "This is not a C++11 compiler"
3941 namespace test_static_assert
3944 template <typename T>
3947 static_assert(sizeof(int) <= sizeof(T), "not big enough");
3952 namespace test_final_override
3960 struct Derived : public Base
3962 virtual void f() override {}
3967 namespace test_double_right_angle_brackets
3970 template < typename T >
3973 typedef check<void> single_type;
3974 typedef check<check<void>> double_type;
3975 typedef check<check<check<void>>> triple_type;
3976 typedef check<check<check<check<void>>>> quadruple_type;
3980 namespace test_decltype
3993 namespace test_type_deduction
3996 template < typename T1, typename T2 >
3999 static const bool value = false;
4002 template < typename T >
4003 struct is_same<T, T>
4005 static const bool value = true;
4008 template < typename T1, typename T2 >
4010 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4016 test(const int c, volatile int v)
4018 static_assert(is_same<int, decltype(0)>::value == true, "");
4019 static_assert(is_same<int, decltype(c)>::value == false, "");
4020 static_assert(is_same<int, decltype(v)>::value == false, "");
4023 auto sumi = ac + av + 'x';
4024 auto sumf = ac + av + 1.0;
4025 static_assert(is_same<int, decltype(ac)>::value == true, "");
4026 static_assert(is_same<int, decltype(av)>::value == true, "");
4027 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4028 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4029 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4030 return (sumf > 0.0) ? sumi : add(c, v);
4035 namespace test_noexcept
4038 int f() { return 0; }
4039 int g() noexcept { return 0; }
4041 static_assert(noexcept(f()) == false, "");
4042 static_assert(noexcept(g()) == true, "");
4046 namespace test_constexpr
4049 template < typename CharT >
4050 unsigned long constexpr
4051 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4053 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4056 template < typename CharT >
4057 unsigned long constexpr
4058 strlen_c(const CharT *const s) noexcept
4060 return strlen_c_r(s, 0UL);
4063 static_assert(strlen_c("") == 0UL, "");
4064 static_assert(strlen_c("1") == 1UL, "");
4065 static_assert(strlen_c("example") == 7UL, "");
4066 static_assert(strlen_c("another\0example") == 7UL, "");
4070 namespace test_rvalue_references
4076 static constexpr int value = N;
4079 answer<1> f(int&) { return answer<1>(); }
4080 answer<2> f(const int&) { return answer<2>(); }
4081 answer<3> f(int&&) { return answer<3>(); }
4088 static_assert(decltype(f(i))::value == 1, "");
4089 static_assert(decltype(f(c))::value == 2, "");
4090 static_assert(decltype(f(0))::value == 3, "");
4095 namespace test_uniform_initialization
4100 static const int zero {};
4101 static const int one {1};
4104 static_assert(test::zero == 0, "");
4105 static_assert(test::one == 1, "");
4109 namespace test_lambdas
4115 auto lambda1 = [](){};
4116 auto lambda2 = lambda1;
4124 auto a = [](int i, int j){ return i + j; }(1, 2);
4125 auto b = []() -> int { return '0'; }();
4126 auto c = [=](){ return a + b; }();
4127 auto d = [&](){ return c; }();
4128 auto e = [a, &b](int x) mutable {
4129 const auto identity = [](int y){ return y; };
4130 for (auto i = 0; i < a; ++i)
4132 return x + identity(a + b);
4134 return a + b + c + d + e;
4140 const auto nullary = [](){ return 0; };
4141 const auto unary = [](int x){ return x; };
4142 using nullary_t = decltype(nullary);
4143 using unary_t = decltype(unary);
4144 const auto higher1st = [](nullary_t f){ return f(); };
4145 const auto higher2nd = [unary](nullary_t f1){
4146 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4148 return higher1st(nullary) + higher2nd(nullary)(unary);
4153 namespace test_variadic_templates
4159 template <int N0, int... N1toN>
4160 struct sum<N0, N1toN...>
4162 static constexpr auto value = N0 + sum<N1toN...>::value;
4168 static constexpr auto value = 0;
4171 static_assert(sum<>::value == 0, "");
4172 static_assert(sum<1>::value == 1, "");
4173 static_assert(sum<23>::value == 23, "");
4174 static_assert(sum<1, 2>::value == 3, "");
4175 static_assert(sum<5, 5, 11>::value == 21, "");
4176 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
4180 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
4181 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
4183 namespace test_template_alias_sfinae
4188 template<typename T>
4189 using member = typename T::member_type;
4191 template<typename T>
4194 template<typename T>
4195 void func(member<T>*) {}
4199 void test() { func<foo>(0); }
4203 } // namespace cxx11
4205 #endif // __cplusplus >= 201103L
4210 // If the compiler admits that it is not ready for C++14, why torture it?
4211 // Hopefully, this will speed up the test.
4215 #error "This is not a C++ compiler"
4217 #elif __cplusplus < 201402L
4219 #error "This is not a C++14 compiler"
4226 namespace test_polymorphic_lambdas
4232 const auto lambda = [](auto&&... args){
4233 const auto istiny = [](auto x){
4234 return (sizeof(x) == 1UL) ? 1 : 0;
4236 const int aretiny[] = { istiny(args)... };
4239 return lambda(1, 1L, 1.0f, '1');
4244 namespace test_binary_literals
4247 constexpr auto ivii = 0b0000000000101010;
4248 static_assert(ivii == 42, "wrong value");
4252 namespace test_generalized_constexpr
4255 template < typename CharT >
4256 constexpr unsigned long
4257 strlen_c(const CharT *const s) noexcept
4260 for (auto p = s; *p; ++p)
4265 static_assert(strlen_c("") == 0UL, "");
4266 static_assert(strlen_c("x") == 1UL, "");
4267 static_assert(strlen_c("test") == 4UL, "");
4268 static_assert(strlen_c("another\0test") == 7UL, "");
4272 namespace test_lambda_init_capture
4279 const auto lambda1 = [a = x](int b){ return a + b; };
4280 const auto lambda2 = [a = lambda1(x)](){ return a; };
4286 namespace test_digit_seperators
4289 constexpr auto ten_million = 100'000'000;
4290 static_assert(ten_million == 100000000, "");
4294 namespace test_return_type_deduction
4297 auto f(int& x) { return x; }
4298 decltype(auto) g(int& x) { return x; }
4300 template < typename T1, typename T2 >
4303 static constexpr auto value = false;
4306 template < typename T >
4307 struct is_same<T, T>
4309 static constexpr auto value = true;
4316 static_assert(is_same<int, decltype(f(x))>::value, "");
4317 static_assert(is_same<int&, decltype(g(x))>::value, "");
4323 } // namespace cxx14
4325 #endif // __cplusplus >= 201402L
4330 if ac_fn_cxx_try_compile "$LINENO"; then :
4331 ax_cv_cxx_compile_cxx14=yes
4333 ax_cv_cxx_compile_cxx14=no
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
4338 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
4339 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
4345 if test x$ac_success = xno; then
4346 for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
4347 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
4349 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
4350 if eval \${$cachevar+:} false; then :
4351 $as_echo_n "(cached) " >&6
4353 ac_save_CXXFLAGS="$CXXFLAGS"
4354 CXXFLAGS="$CXXFLAGS $switch"
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4359 // If the compiler admits that it is not ready for C++11, why torture it?
4360 // Hopefully, this will speed up the test.
4364 #error "This is not a C++ compiler"
4366 #elif __cplusplus < 201103L
4368 #error "This is not a C++11 compiler"
4375 namespace test_static_assert
4378 template <typename T>
4381 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4386 namespace test_final_override
4394 struct Derived : public Base
4396 virtual void f() override {}
4401 namespace test_double_right_angle_brackets
4404 template < typename T >
4407 typedef check<void> single_type;
4408 typedef check<check<void>> double_type;
4409 typedef check<check<check<void>>> triple_type;
4410 typedef check<check<check<check<void>>>> quadruple_type;
4414 namespace test_decltype
4427 namespace test_type_deduction
4430 template < typename T1, typename T2 >
4433 static const bool value = false;
4436 template < typename T >
4437 struct is_same<T, T>
4439 static const bool value = true;
4442 template < typename T1, typename T2 >
4444 add(T1 a1, T2 a2) -> decltype(a1 + a2)
4450 test(const int c, volatile int v)
4452 static_assert(is_same<int, decltype(0)>::value == true, "");
4453 static_assert(is_same<int, decltype(c)>::value == false, "");
4454 static_assert(is_same<int, decltype(v)>::value == false, "");
4457 auto sumi = ac + av + 'x';
4458 auto sumf = ac + av + 1.0;
4459 static_assert(is_same<int, decltype(ac)>::value == true, "");
4460 static_assert(is_same<int, decltype(av)>::value == true, "");
4461 static_assert(is_same<int, decltype(sumi)>::value == true, "");
4462 static_assert(is_same<int, decltype(sumf)>::value == false, "");
4463 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
4464 return (sumf > 0.0) ? sumi : add(c, v);
4469 namespace test_noexcept
4472 int f() { return 0; }
4473 int g() noexcept { return 0; }
4475 static_assert(noexcept(f()) == false, "");
4476 static_assert(noexcept(g()) == true, "");
4480 namespace test_constexpr
4483 template < typename CharT >
4484 unsigned long constexpr
4485 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
4487 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
4490 template < typename CharT >
4491 unsigned long constexpr
4492 strlen_c(const CharT *const s) noexcept
4494 return strlen_c_r(s, 0UL);
4497 static_assert(strlen_c("") == 0UL, "");
4498 static_assert(strlen_c("1") == 1UL, "");
4499 static_assert(strlen_c("example") == 7UL, "");
4500 static_assert(strlen_c("another\0example") == 7UL, "");
4504 namespace test_rvalue_references
4510 static constexpr int value = N;
4513 answer<1> f(int&) { return answer<1>(); }
4514 answer<2> f(const int&) { return answer<2>(); }
4515 answer<3> f(int&&) { return answer<3>(); }
4522 static_assert(decltype(f(i))::value == 1, "");
4523 static_assert(decltype(f(c))::value == 2, "");
4524 static_assert(decltype(f(0))::value == 3, "");
4529 namespace test_uniform_initialization
4534 static const int zero {};
4535 static const int one {1};
4538 static_assert(test::zero == 0, "");
4539 static_assert(test::one == 1, "");
4543 namespace test_lambdas
4549 auto lambda1 = [](){};
4550 auto lambda2 = lambda1;
4558 auto a = [](int i, int j){ return i + j; }(1, 2);
4559 auto b = []() -> int { return '0'; }();
4560 auto c = [=](){ return a + b; }();
4561 auto d = [&](){ return c; }();
4562 auto e = [a, &b](int x) mutable {
4563 const auto identity = [](int y){ return y; };
4564 for (auto i = 0; i < a; ++i)
4566 return x + identity(a + b);
4568 return a + b + c + d + e;
4574 const auto nullary = [](){ return 0; };
4575 const auto unary = [](int x){ return x; };
4576 using nullary_t = decltype(nullary);
4577 using unary_t = decltype(unary);
4578 const auto higher1st = [](nullary_t f){ return f(); };
4579 const auto higher2nd = [unary](nullary_t f1){
4580 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
4582 return higher1st(nullary) + higher2nd(nullary)(unary);
4587 namespace test_variadic_templates
4593 template <int N0, int... N1toN>
4594 struct sum<N0, N1toN...>
4596 static constexpr auto value = N0 + sum<N1toN...>::value;
4602 static constexpr auto value = 0;
4605 static_assert(sum<>::value == 0, "");
4606 static_assert(sum<1>::value == 1, "");
4607 static_assert(sum<23>::value == 23, "");
4608 static_assert(sum<1, 2>::value == 3, "");
4609 static_assert(sum<5, 5, 11>::value == 21, "");
4610 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
4614 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
4615 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
4617 namespace test_template_alias_sfinae
4622 template<typename T>
4623 using member = typename T::member_type;
4625 template<typename T>
4628 template<typename T>
4629 void func(member<T>*) {}
4633 void test() { func<foo>(0); }
4637 } // namespace cxx11
4639 #endif // __cplusplus >= 201103L
4644 // If the compiler admits that it is not ready for C++14, why torture it?
4645 // Hopefully, this will speed up the test.
4649 #error "This is not a C++ compiler"
4651 #elif __cplusplus < 201402L
4653 #error "This is not a C++14 compiler"
4660 namespace test_polymorphic_lambdas
4666 const auto lambda = [](auto&&... args){
4667 const auto istiny = [](auto x){
4668 return (sizeof(x) == 1UL) ? 1 : 0;
4670 const int aretiny[] = { istiny(args)... };
4673 return lambda(1, 1L, 1.0f, '1');
4678 namespace test_binary_literals
4681 constexpr auto ivii = 0b0000000000101010;
4682 static_assert(ivii == 42, "wrong value");
4686 namespace test_generalized_constexpr
4689 template < typename CharT >
4690 constexpr unsigned long
4691 strlen_c(const CharT *const s) noexcept
4694 for (auto p = s; *p; ++p)
4699 static_assert(strlen_c("") == 0UL, "");
4700 static_assert(strlen_c("x") == 1UL, "");
4701 static_assert(strlen_c("test") == 4UL, "");
4702 static_assert(strlen_c("another\0test") == 7UL, "");
4706 namespace test_lambda_init_capture
4713 const auto lambda1 = [a = x](int b){ return a + b; };
4714 const auto lambda2 = [a = lambda1(x)](){ return a; };
4720 namespace test_digit_seperators
4723 constexpr auto ten_million = 100'000'000;
4724 static_assert(ten_million == 100000000, "");
4728 namespace test_return_type_deduction
4731 auto f(int& x) { return x; }
4732 decltype(auto) g(int& x) { return x; }
4734 template < typename T1, typename T2 >
4737 static constexpr auto value = false;
4740 template < typename T >
4741 struct is_same<T, T>
4743 static constexpr auto value = true;
4750 static_assert(is_same<int, decltype(f(x))>::value, "");
4751 static_assert(is_same<int&, decltype(g(x))>::value, "");
4757 } // namespace cxx14
4759 #endif // __cplusplus >= 201402L
4764 if ac_fn_cxx_try_compile "$LINENO"; then :
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 CXXFLAGS="$ac_save_CXXFLAGS"
4772 eval ac_res=\$$cachevar
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4774 $as_echo "$ac_res" >&6; }
4775 if eval test x\$$cachevar = xyes; then
4776 CXXFLAGS="$CXXFLAGS $switch"
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 if test x$ax_cxx_compile_cxx14_required = xtrue; then
4789 if test x$ac_success = xno; then
4790 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
4793 if test x$ac_success = xno; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
4796 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
4800 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
4808 # Check whether --enable-static was given.
4809 if test "${enable_static+set}" = set; then :
4810 enableval=$enable_static; p=${PACKAGE-default}
4812 yes) enable_static=yes ;;
4813 no) enable_static=no ;;
4816 # Look at the argument we got. We use all the common list separators.
4817 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4818 for pkg in $enableval; do
4820 if test "X$pkg" = "X$p"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4842 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4847 macro_version='2.4.6'
4848 macro_revision='2.4.6'
4862 ltmain=$ac_aux_dir/ltmain.sh
4864 # Make sure we can run config.sub.
4865 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4866 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4869 $as_echo_n "checking build system type... " >&6; }
4870 if ${ac_cv_build+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 ac_build_alias=$build_alias
4874 test "x$ac_build_alias" = x &&
4875 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4876 test "x$ac_build_alias" = x &&
4877 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4878 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4879 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4883 $as_echo "$ac_cv_build" >&6; }
4884 case $ac_cv_build in
4886 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4889 ac_save_IFS=$IFS; IFS='-'
4895 # Remember, the first character of IFS is used to create $*,
4896 # except with old shells:
4899 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4903 $as_echo_n "checking host system type... " >&6; }
4904 if ${ac_cv_host+:} false; then :
4905 $as_echo_n "(cached) " >&6
4907 if test "x$host_alias" = x; then
4908 ac_cv_host=$ac_cv_build
4910 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4911 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4916 $as_echo "$ac_cv_host" >&6; }
4919 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4922 ac_save_IFS=$IFS; IFS='-'
4928 # Remember, the first character of IFS is used to create $*,
4929 # except with old shells:
4932 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4935 # Backslashify metacharacters that are still active within
4936 # double-quoted strings.
4937 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4939 # Same as above, but do not quote variable references.
4940 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4942 # Sed substitution to delay expansion of an escaped shell variable in a
4943 # double_quote_subst'ed string.
4944 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4946 # Sed substitution to delay expansion of an escaped single quote.
4947 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4949 # Sed substitution to avoid accidental globbing in evaled expressions
4950 no_glob_subst='s/\*/\\\*/g'
4952 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4953 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4954 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4957 $as_echo_n "checking how to print strings... " >&6; }
4958 # Test print first, because it will be a builtin if present.
4959 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4960 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4962 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4965 # Use this function as a fallback that always works.
4966 func_fallback_echo ()
4968 eval 'cat <<_LTECHO_EOF
4972 ECHO='func_fallback_echo'
4975 # func_echo_all arg...
4976 # Invoke $ECHO with all args, space-separated.
4983 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4984 $as_echo "printf" >&6; } ;;
4985 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4986 $as_echo "print -r" >&6; } ;;
4987 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4988 $as_echo "cat" >&6; } ;;
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009 if test -n "$ac_tool_prefix"; then
5010 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5011 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_CC+:} false; then :
5015 $as_echo_n "(cached) " >&6
5017 if test -n "$CC"; then
5018 ac_cv_prog_CC="$CC" # Let the user override the test.
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 if test -n "$CC"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5040 $as_echo "$CC" >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5048 if test -z "$ac_cv_prog_CC"; then
5050 # Extract the first word of "gcc", so it can be a program name with args.
5051 set dummy gcc; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$ac_ct_CC"; then
5058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_ac_ct_CC="gcc"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5078 if test -n "$ac_ct_CC"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5080 $as_echo "$ac_ct_CC" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5086 if test "x$ac_ct_CC" = x; then
5089 case $cross_compiling:$ac_tool_warned in
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5101 if test -z "$CC"; then
5102 if test -n "$ac_tool_prefix"; then
5103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5104 set dummy ${ac_tool_prefix}cc; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_CC+:} false; then :
5108 $as_echo_n "(cached) " >&6
5110 if test -n "$CC"; then
5111 ac_cv_prog_CC="$CC" # Let the user override the test.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_CC="${ac_tool_prefix}cc"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 if test -n "$CC"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5133 $as_echo "$CC" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5142 if test -z "$CC"; then
5143 # Extract the first word of "cc", so it can be a program name with args.
5144 set dummy cc; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_CC+:} false; then :
5148 $as_echo_n "(cached) " >&6
5150 if test -n "$CC"; then
5151 ac_cv_prog_CC="$CC" # Let the user override the test.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5162 ac_prog_rejected=yes
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 if test $ac_prog_rejected = yes; then
5174 # We found a bogon in the path, so make sure we never use it.
5175 set dummy $ac_cv_prog_CC
5177 if test $# != 0; then
5178 # We chose a different compiler from the bogus one.
5179 # However, it has the same basename, so the bogon will be chosen
5180 # first if we set CC to just the basename; use the full file name.
5182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5188 if test -n "$CC"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5190 $as_echo "$CC" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5198 if test -z "$CC"; then
5199 if test -n "$ac_tool_prefix"; then
5200 for ac_prog in cl.exe
5202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_prog_CC+:} false; then :
5207 $as_echo_n "(cached) " >&6
5209 if test -n "$CC"; then
5210 ac_cv_prog_CC="$CC" # Let the user override the test.
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 if test -n "$CC"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5232 $as_echo "$CC" >&6; }
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5239 test -n "$CC" && break
5242 if test -z "$CC"; then
5244 for ac_prog in cl.exe
5246 # Extract the first word of "$ac_prog", so it can be a program name with args.
5247 set dummy $ac_prog; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5251 $as_echo_n "(cached) " >&6
5253 if test -n "$ac_ct_CC"; then
5254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_CC="$ac_prog"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5274 if test -n "$ac_ct_CC"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5276 $as_echo "$ac_ct_CC" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 test -n "$ac_ct_CC" && break
5286 if test "x$ac_ct_CC" = x; then
5289 case $cross_compiling:$ac_tool_warned in
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5302 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5304 as_fn_error $? "no acceptable C compiler found in \$PATH
5305 See \`config.log' for more details" "$LINENO" 5; }
5307 # Provide some information about the compiler.
5308 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5311 for ac_option in --version -v -V -qversion; do
5312 { { ac_try="$ac_compiler $ac_option >&5"
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5318 $as_echo "$ac_try_echo"; } >&5
5319 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5321 if test -s conftest.err; then
5323 ... rest of stderr output deleted ...
5324 10q' conftest.err >conftest.er1
5325 cat conftest.er1 >&5
5327 rm -f conftest.er1 conftest.err
5328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5329 test $ac_status = 0; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5333 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5334 if ${ac_cv_c_compiler_gnu+:} false; then :
5335 $as_echo_n "(cached) " >&6
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5351 if ac_fn_c_try_compile "$LINENO"; then :
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5361 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5362 if test $ac_compiler_gnu = yes; then
5367 ac_test_CFLAGS=${CFLAGS+set}
5368 ac_save_CFLAGS=$CFLAGS
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5370 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5371 if ${ac_cv_prog_cc_g+:} false; then :
5372 $as_echo_n "(cached) " >&6
5374 ac_save_c_werror_flag=$ac_c_werror_flag
5375 ac_c_werror_flag=yes
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5389 if ac_fn_c_try_compile "$LINENO"; then :
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5404 if ac_fn_c_try_compile "$LINENO"; then :
5407 ac_c_werror_flag=$ac_save_c_werror_flag
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5420 if ac_fn_c_try_compile "$LINENO"; then :
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 ac_c_werror_flag=$ac_save_c_werror_flag
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5431 $as_echo "$ac_cv_prog_cc_g" >&6; }
5432 if test "$ac_test_CFLAGS" = set; then
5433 CFLAGS=$ac_save_CFLAGS
5434 elif test $ac_cv_prog_cc_g = yes; then
5435 if test "$GCC" = yes; then
5441 if test "$GCC" = yes; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5448 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5449 if ${ac_cv_prog_cc_c89+:} false; then :
5450 $as_echo_n "(cached) " >&6
5452 ac_cv_prog_cc_c89=no
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5460 struct buf { int x; };
5461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5462 static char *e (p, i)
5468 static char *f (char * (*g) (char **, int), char **p, ...)
5473 s = g (p, va_arg (v,int));
5478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5479 function prototypes and stuff, but not '\xHH' hex character constants.
5480 These don't provoke an error unfortunately, instead are silently treated
5481 as 'x'. The following induces an error, until -std is added to get
5482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5483 array size at least. It's necessary to write '\x00'==0 to get something
5484 that's true only with -std. */
5485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5487 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5488 inside strings and character constants. */
5490 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5492 int test (int i, double x);
5493 struct s1 {int (*f) (int a);};
5494 struct s2 {int (*f) (double a);};
5495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5501 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5506 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5507 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5509 CC="$ac_save_CC $ac_arg"
5510 if ac_fn_c_try_compile "$LINENO"; then :
5511 ac_cv_prog_cc_c89=$ac_arg
5513 rm -f core conftest.err conftest.$ac_objext
5514 test "x$ac_cv_prog_cc_c89" != "xno" && break
5516 rm -f conftest.$ac_ext
5521 case "x$ac_cv_prog_cc_c89" in
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5524 $as_echo "none needed" >&6; } ;;
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5527 $as_echo "unsupported" >&6; } ;;
5529 CC="$CC $ac_cv_prog_cc_c89"
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5531 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5533 if test "x$ac_cv_prog_cc_c89" != xno; then :
5538 ac_cpp='$CPP $CPPFLAGS'
5539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544 ac_cpp='$CPP $CPPFLAGS'
5545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5549 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5550 if ${am_cv_prog_cc_c_o+:} false; then :
5551 $as_echo_n "(cached) " >&6
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5564 # Make sure it works both with $CC and with simple cc.
5565 # Following AC_PROG_CC_C_O, we do the test twice because some
5566 # compilers refuse to overwrite an existing .o file with -o,
5567 # though they will create one.
5568 am_cv_prog_cc_c_o=yes
5570 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5571 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } \
5575 && test -f conftest2.$ac_objext; then
5578 am_cv_prog_cc_c_o=no
5582 rm -f core conftest*
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5586 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5587 if test "$am_cv_prog_cc_c_o" != yes; then
5588 # Losing compiler, so override with the script.
5589 # FIXME: It is wrong to rewrite CC.
5590 # But if we don't then we get into trouble of one sort or another.
5591 # A longer-term fix would be to have automake use am__CC in this case,
5592 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5593 CC="$am_aux_dir/compile $CC"
5596 ac_cpp='$CPP $CPPFLAGS'
5597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602 depcc="$CC" am_compiler_list=
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5605 $as_echo_n "checking dependency style of $depcc... " >&6; }
5606 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5610 # We make a subdir and do the tests there. Otherwise we can end up
5611 # making bogus files that we don't know about and never remove. For
5612 # instance it was reported that on HP-UX the gcc test will end up
5613 # making a dummy file named 'D' -- because '-MD' means "put the output
5617 # Copy depcomp to subdir because otherwise we won't find it if we're
5618 # using a relative directory.
5619 cp "$am_depcomp" conftest.dir
5621 # We will build objects and dependencies in a subdirectory because
5622 # it helps to detect inapplicable dependency modes. For instance
5623 # both Tru64's cc and ICC support -MD to output dependencies as a
5624 # side effect of compilation, but ICC will put the dependencies in
5625 # the current directory while Tru64 will put them in the object
5629 am_cv_CC_dependencies_compiler_type=none
5630 if test "$am_compiler_list" = ""; then
5631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5634 case " $depcc " in #(
5635 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5638 for depmode in $am_compiler_list; do
5639 # Setup a source with many dependencies, because some compilers
5640 # like to wrap large dependency lists on column 80 (with \), and
5641 # we should not choose a depcomp mode which is confused by this.
5643 # We need to recreate these files for each test, as the compiler may
5644 # overwrite some of them when testing with obscure command lines.
5645 # This happens at least with the AIX C compiler.
5647 for i in 1 2 3 4 5 6; do
5648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5649 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5650 # Solaris 10 /bin/sh.
5651 echo '/* dummy */' > sub/conftst$i.h
5653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5655 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5656 # mode. It turns out that the SunPro C++ compiler does not properly
5657 # handle '-M -o', and we need to detect this. Also, some Intel
5658 # versions had trouble with output in subdirs.
5659 am__obj=sub/conftest.${OBJEXT-o}
5660 am__minus_obj="-o $am__obj"
5663 # This depmode causes a compiler race in universal mode.
5664 test "$am__universal" = false || continue
5667 # After this tag, mechanisms are not by side-effect, so they'll
5668 # only be used when explicitly requested.
5669 if test "x$enable_dependency_tracking" = xyes; then
5675 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5676 # This compiler won't grok '-c -o', but also, the minuso test has
5677 # not run yet. These depmodes are late enough in the game, and
5678 # so weak that their functioning should not be impacted.
5679 am__obj=conftest.${OBJEXT-o}
5684 if depmode=$depmode \
5685 source=sub/conftest.c object=$am__obj \
5686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5687 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5688 >/dev/null 2>conftest.err &&
5689 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5691 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5693 # icc doesn't choke on unknown options, it will just issue warnings
5694 # or remarks (even with -Werror). So we grep stderr for any message
5695 # that says an option was ignored or not supported.
5696 # When given -MP, icc 7.0 and 7.1 complain thusly:
5697 # icc: Command line warning: ignoring option '-M'; no argument required
5698 # The diagnosis changed in icc 8.0:
5699 # icc: Command line remark: option '-MP' not supported
5700 if (grep 'ignoring option' conftest.err ||
5701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5702 am_cv_CC_dependencies_compiler_type=$depmode
5711 am_cv_CC_dependencies_compiler_type=none
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5716 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5717 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5720 test "x$enable_dependency_tracking" != xno \
5721 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5723 am__fastdepCC_FALSE='#'
5725 am__fastdepCC_TRUE='#'
5726 am__fastdepCC_FALSE=
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5731 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5732 if ${ac_cv_path_SED+:} false; then :
5733 $as_echo_n "(cached) " >&6
5735 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5736 for ac_i in 1 2 3 4 5 6 7; do
5737 ac_script="$ac_script$as_nl$ac_script"
5739 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5740 { ac_script=; unset ac_script;}
5741 if test -z "$SED"; then
5742 ac_path_SED_found=false
5743 # Loop through the user's path and test for each of PROGNAME-LIST
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 test -z "$as_dir" && as_dir=.
5749 for ac_prog in sed gsed; do
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5752 as_fn_executable_p "$ac_path_SED" || continue
5753 # Check for GNU ac_path_SED and select it if it is found.
5754 # Check for GNU $ac_path_SED
5755 case `"$ac_path_SED" --version 2>&1` in
5757 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5760 $as_echo_n 0123456789 >"conftest.in"
5763 cat "conftest.in" "conftest.in" >"conftest.tmp"
5764 mv "conftest.tmp" "conftest.in"
5765 cp "conftest.in" "conftest.nl"
5766 $as_echo '' >> "conftest.nl"
5767 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5769 as_fn_arith $ac_count + 1 && ac_count=$as_val
5770 if test $ac_count -gt ${ac_path_SED_max-0}; then
5771 # Best one so far, save it but keep looking for a better one
5772 ac_cv_path_SED="$ac_path_SED"
5773 ac_path_SED_max=$ac_count
5775 # 10*(2^10) chars as input seems more than enough
5776 test $ac_count -gt 10 && break
5778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5781 $ac_path_SED_found && break 3
5786 if test -z "$ac_cv_path_SED"; then
5787 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5795 $as_echo "$ac_cv_path_SED" >&6; }
5796 SED="$ac_cv_path_SED"
5799 test -z "$SED" && SED=sed
5800 Xsed="$SED -e 1s/^X//"
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5813 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5814 if ${ac_cv_path_GREP+:} false; then :
5815 $as_echo_n "(cached) " >&6
5817 if test -z "$GREP"; then
5818 ac_path_GREP_found=false
5819 # Loop through the user's path and test for each of PROGNAME-LIST
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5824 test -z "$as_dir" && as_dir=.
5825 for ac_prog in grep ggrep; do
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5828 as_fn_executable_p "$ac_path_GREP" || continue
5829 # Check for GNU ac_path_GREP and select it if it is found.
5830 # Check for GNU $ac_path_GREP
5831 case `"$ac_path_GREP" --version 2>&1` in
5833 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5836 $as_echo_n 0123456789 >"conftest.in"
5839 cat "conftest.in" "conftest.in" >"conftest.tmp"
5840 mv "conftest.tmp" "conftest.in"
5841 cp "conftest.in" "conftest.nl"
5842 $as_echo 'GREP' >> "conftest.nl"
5843 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5845 as_fn_arith $ac_count + 1 && ac_count=$as_val
5846 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5847 # Best one so far, save it but keep looking for a better one
5848 ac_cv_path_GREP="$ac_path_GREP"
5849 ac_path_GREP_max=$ac_count
5851 # 10*(2^10) chars as input seems more than enough
5852 test $ac_count -gt 10 && break
5854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5857 $ac_path_GREP_found && break 3
5862 if test -z "$ac_cv_path_GREP"; then
5863 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5866 ac_cv_path_GREP=$GREP
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5871 $as_echo "$ac_cv_path_GREP" >&6; }
5872 GREP="$ac_cv_path_GREP"
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5876 $as_echo_n "checking for egrep... " >&6; }
5877 if ${ac_cv_path_EGREP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5880 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5881 then ac_cv_path_EGREP="$GREP -E"
5883 if test -z "$EGREP"; then
5884 ac_path_EGREP_found=false
5885 # Loop through the user's path and test for each of PROGNAME-LIST
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5890 test -z "$as_dir" && as_dir=.
5891 for ac_prog in egrep; do
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5894 as_fn_executable_p "$ac_path_EGREP" || continue
5895 # Check for GNU ac_path_EGREP and select it if it is found.
5896 # Check for GNU $ac_path_EGREP
5897 case `"$ac_path_EGREP" --version 2>&1` in
5899 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5902 $as_echo_n 0123456789 >"conftest.in"
5905 cat "conftest.in" "conftest.in" >"conftest.tmp"
5906 mv "conftest.tmp" "conftest.in"
5907 cp "conftest.in" "conftest.nl"
5908 $as_echo 'EGREP' >> "conftest.nl"
5909 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5911 as_fn_arith $ac_count + 1 && ac_count=$as_val
5912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5913 # Best one so far, save it but keep looking for a better one
5914 ac_cv_path_EGREP="$ac_path_EGREP"
5915 ac_path_EGREP_max=$ac_count
5917 # 10*(2^10) chars as input seems more than enough
5918 test $ac_count -gt 10 && break
5920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5923 $ac_path_EGREP_found && break 3
5928 if test -z "$ac_cv_path_EGREP"; then
5929 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5932 ac_cv_path_EGREP=$EGREP
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5938 $as_echo "$ac_cv_path_EGREP" >&6; }
5939 EGREP="$ac_cv_path_EGREP"
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5943 $as_echo_n "checking for fgrep... " >&6; }
5944 if ${ac_cv_path_FGREP+:} false; then :
5945 $as_echo_n "(cached) " >&6
5947 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5948 then ac_cv_path_FGREP="$GREP -F"
5950 if test -z "$FGREP"; then
5951 ac_path_FGREP_found=false
5952 # Loop through the user's path and test for each of PROGNAME-LIST
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5957 test -z "$as_dir" && as_dir=.
5958 for ac_prog in fgrep; do
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5961 as_fn_executable_p "$ac_path_FGREP" || continue
5962 # Check for GNU ac_path_FGREP and select it if it is found.
5963 # Check for GNU $ac_path_FGREP
5964 case `"$ac_path_FGREP" --version 2>&1` in
5966 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5969 $as_echo_n 0123456789 >"conftest.in"
5972 cat "conftest.in" "conftest.in" >"conftest.tmp"
5973 mv "conftest.tmp" "conftest.in"
5974 cp "conftest.in" "conftest.nl"
5975 $as_echo 'FGREP' >> "conftest.nl"
5976 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5978 as_fn_arith $ac_count + 1 && ac_count=$as_val
5979 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5980 # Best one so far, save it but keep looking for a better one
5981 ac_cv_path_FGREP="$ac_path_FGREP"
5982 ac_path_FGREP_max=$ac_count
5984 # 10*(2^10) chars as input seems more than enough
5985 test $ac_count -gt 10 && break
5987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5990 $ac_path_FGREP_found && break 3
5995 if test -z "$ac_cv_path_FGREP"; then
5996 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5999 ac_cv_path_FGREP=$FGREP
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6005 $as_echo "$ac_cv_path_FGREP" >&6; }
6006 FGREP="$ac_cv_path_FGREP"
6009 test -z "$GREP" && GREP=grep
6029 # Check whether --with-gnu-ld was given.
6030 if test "${with_gnu_ld+set}" = set; then :
6031 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6037 if test yes = "$GCC"; then
6038 # Check if gcc -print-prog-name=ld gives a path.
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6040 $as_echo_n "checking for ld used by $CC... " >&6; }
6043 # gcc leaves a trailing carriage return, which upsets mingw
6044 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6046 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6049 # Accept absolute paths.
6051 re_direlt='/[^/][^/]*/\.\./'
6052 # Canonicalize the pathname of ld
6053 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6054 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6055 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6057 test -z "$LD" && LD=$ac_prog
6060 # If it fails, then pretend we aren't using GCC.
6064 # If it is relative, then search for the first ld in PATH.
6068 elif test yes = "$with_gnu_ld"; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6070 $as_echo_n "checking for GNU ld... " >&6; }
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6073 $as_echo_n "checking for non-GNU ld... " >&6; }
6075 if ${lt_cv_path_LD+:} false; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -z "$LD"; then
6079 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6080 for ac_dir in $PATH; do
6082 test -z "$ac_dir" && ac_dir=.
6083 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6084 lt_cv_path_LD=$ac_dir/$ac_prog
6085 # Check to see if the program is GNU ld. I'd rather use --version,
6086 # but apparently some variants of GNU ld only accept -v.
6087 # Break only if it was the GNU/non-GNU ld that we prefer.
6088 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6089 *GNU* | *'with BFD'*)
6090 test no != "$with_gnu_ld" && break
6093 test yes != "$with_gnu_ld" && break
6100 lt_cv_path_LD=$LD # Let the user override the test with a path.
6105 if test -n "$LD"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6107 $as_echo "$LD" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6112 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6114 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6115 if ${lt_cv_prog_gnu_ld+:} false; then :
6116 $as_echo_n "(cached) " >&6
6118 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6119 case `$LD -v 2>&1 </dev/null` in
6120 *GNU* | *'with BFD'*)
6121 lt_cv_prog_gnu_ld=yes
6124 lt_cv_prog_gnu_ld=no
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6129 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6130 with_gnu_ld=$lt_cv_prog_gnu_ld
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6141 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6142 if ${lt_cv_path_NM+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$NM"; then
6146 # Let the user override the test.
6149 lt_nm_to_check=${ac_tool_prefix}nm
6150 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6151 lt_nm_to_check="$lt_nm_to_check nm"
6153 for lt_tmp_nm in $lt_nm_to_check; do
6154 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6155 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6157 test -z "$ac_dir" && ac_dir=.
6158 tmp_nm=$ac_dir/$lt_tmp_nm
6159 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6160 # Check to see if the nm accepts a BSD-compat flag.
6161 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6162 # nm: unknown option "B" ignored
6163 # Tru64's nm complains that /dev/null is an invalid object file
6164 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6166 mingw*) lt_bad_file=conftest.nm/nofile ;;
6167 *) lt_bad_file=/dev/null ;;
6169 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6170 *$lt_bad_file* | *'Invalid file or object type'*)
6171 lt_cv_path_NM="$tmp_nm -B"
6175 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6177 lt_cv_path_NM="$tmp_nm -p"
6181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6182 continue # so that we can try to find one that supports BSD flags
6191 : ${lt_cv_path_NM=no}
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6195 $as_echo "$lt_cv_path_NM" >&6; }
6196 if test no != "$lt_cv_path_NM"; then
6199 # Didn't find any BSD compatible name lister, look for dumpbin.
6200 if test -n "$DUMPBIN"; then :
6201 # Let the user override the test.
6203 if test -n "$ac_tool_prefix"; then
6204 for ac_prog in dumpbin "link -dump"
6206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_DUMPBIN+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -n "$DUMPBIN"; then
6214 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 DUMPBIN=$ac_cv_prog_DUMPBIN
6234 if test -n "$DUMPBIN"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6236 $as_echo "$DUMPBIN" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6243 test -n "$DUMPBIN" && break
6246 if test -z "$DUMPBIN"; then
6247 ac_ct_DUMPBIN=$DUMPBIN
6248 for ac_prog in dumpbin "link -dump"
6250 # Extract the first word of "$ac_prog", so it can be a program name with args.
6251 set dummy $ac_prog; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6255 $as_echo_n "(cached) " >&6
6257 if test -n "$ac_ct_DUMPBIN"; then
6258 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6267 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6278 if test -n "$ac_ct_DUMPBIN"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6280 $as_echo "$ac_ct_DUMPBIN" >&6; }
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6287 test -n "$ac_ct_DUMPBIN" && break
6290 if test "x$ac_ct_DUMPBIN" = x; then
6293 case $cross_compiling:$ac_tool_warned in
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297 ac_tool_warned=yes ;;
6299 DUMPBIN=$ac_ct_DUMPBIN
6303 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6305 DUMPBIN="$DUMPBIN -symbols -headers"
6313 if test : != "$DUMPBIN"; then
6317 test -z "$NM" && NM=nm
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6325 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6326 if ${lt_cv_nm_interface+:} false; then :
6327 $as_echo_n "(cached) " >&6
6329 lt_cv_nm_interface="BSD nm"
6330 echo "int some_variable = 0;" > conftest.$ac_ext
6331 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6332 (eval "$ac_compile" 2>conftest.err)
6333 cat conftest.err >&5
6334 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6335 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6336 cat conftest.err >&5
6337 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6338 cat conftest.out >&5
6339 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6340 lt_cv_nm_interface="MS dumpbin"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6345 $as_echo "$lt_cv_nm_interface" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6348 $as_echo_n "checking whether ln -s works... " >&6; }
6350 if test "$LN_S" = "ln -s"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6352 $as_echo "yes" >&6; }
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6355 $as_echo "no, using $LN_S" >&6; }
6358 # find the maximum length of command line arguments
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6360 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6361 if ${lt_cv_sys_max_cmd_len+:} false; then :
6362 $as_echo_n "(cached) " >&6
6369 # On DJGPP, this test can blow up pretty badly due to problems in libc
6370 # (any single argument exceeding 2000 bytes causes a buffer overrun
6371 # during glob expansion). Even if it were fixed, the result of this
6372 # check would be larger than it should be.
6373 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6377 # Under GNU Hurd, this test is not required because there is
6378 # no limit to the length of command line arguments.
6379 # Libtool will interpret -1 as no limit whatsoever
6380 lt_cv_sys_max_cmd_len=-1;
6383 cygwin* | mingw* | cegcc*)
6384 # On Win9x/ME, this test blows up -- it succeeds, but takes
6385 # about 5 minutes as the teststring grows exponentially.
6386 # Worse, since 9x/ME are not pre-emptively multitasking,
6387 # you end up with a "frozen" computer, even though with patience
6388 # the test eventually succeeds (with a max line length of 256k).
6389 # Instead, let's just punt: use the minimum linelength reported by
6390 # all of the supported platforms: 8192 (on NT/2K/XP).
6391 lt_cv_sys_max_cmd_len=8192;
6395 # On MiNT this can take a long time and run out of memory.
6396 lt_cv_sys_max_cmd_len=8192;
6400 # On AmigaOS with pdksh, this test takes hours, literally.
6401 # So we just punt and use a minimum line length of 8192.
6402 lt_cv_sys_max_cmd_len=8192;
6405 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6406 # This has been around since 386BSD, at least. Likely further.
6407 if test -x /sbin/sysctl; then
6408 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6409 elif test -x /usr/sbin/sysctl; then
6410 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6412 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6414 # And add a safety zone
6415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6420 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6421 lt_cv_sys_max_cmd_len=196608
6425 # The test takes a long time on OS/2.
6426 lt_cv_sys_max_cmd_len=8192
6430 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6431 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6432 # nice to cause kernel panics so lets avoid the loop below.
6433 # First set a reasonable default.
6434 lt_cv_sys_max_cmd_len=16384
6436 if test -x /sbin/sysconfig; then
6437 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6438 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6443 lt_cv_sys_max_cmd_len=102400
6445 sysv5* | sco5v6* | sysv4.2uw2*)
6446 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6447 if test -n "$kargmax"; then
6448 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6450 lt_cv_sys_max_cmd_len=32768
6454 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6455 if test -n "$lt_cv_sys_max_cmd_len" && \
6456 test undefined != "$lt_cv_sys_max_cmd_len"; then
6457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6460 # Make teststring a little bigger before we do anything with it.
6461 # a 1K string should be a reasonable start.
6462 for i in 1 2 3 4 5 6 7 8; do
6463 teststring=$teststring$teststring
6465 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6466 # If test is not a shell built-in, we'll probably end up computing a
6467 # maximum length that is only half of the actual maximum length, but
6469 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6470 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6471 test 17 != "$i" # 1/2 MB should be enough
6474 teststring=$teststring$teststring
6476 # Only check the string length outside the loop.
6477 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6479 # Add a significant safety factor because C++ compilers can tack on
6480 # massive amounts of additional arguments before passing them to the
6481 # linker. It appears as though 1/2 is a usable value.
6482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6489 if test -n "$lt_cv_sys_max_cmd_len"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6491 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6494 $as_echo "none" >&6; }
6496 max_cmd_len=$lt_cv_sys_max_cmd_len
6507 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6517 # test EBCDIC or ASCII
6518 case `echo X|tr X '\101'` in
6519 A) # ASCII based system
6520 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6521 lt_SP2NL='tr \040 \012'
6522 lt_NL2SP='tr \015\012 \040\040'
6524 *) # EBCDIC based system
6525 lt_SP2NL='tr \100 \n'
6526 lt_NL2SP='tr \r\n \100\100'
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6539 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6540 if ${lt_cv_to_host_file_cmd+:} false; then :
6541 $as_echo_n "(cached) " >&6
6546 *-*-mingw* ) # actually msys
6547 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6550 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6552 * ) # otherwise, assume *nix
6553 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6559 *-*-mingw* ) # actually msys
6560 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6563 lt_cv_to_host_file_cmd=func_convert_file_noop
6565 * ) # otherwise, assume *nix
6566 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6570 * ) # unhandled hosts (and "normal" native builds)
6571 lt_cv_to_host_file_cmd=func_convert_file_noop
6577 to_host_file_cmd=$lt_cv_to_host_file_cmd
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6579 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6586 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6587 if ${lt_cv_to_tool_file_cmd+:} false; then :
6588 $as_echo_n "(cached) " >&6
6590 #assume ordinary cross tools, or native build.
6591 lt_cv_to_tool_file_cmd=func_convert_file_noop
6595 *-*-mingw* ) # actually msys
6596 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6604 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6606 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6613 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6614 if ${lt_cv_ld_reload_flag+:} false; then :
6615 $as_echo_n "(cached) " >&6
6617 lt_cv_ld_reload_flag='-r'
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6620 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6621 reload_flag=$lt_cv_ld_reload_flag
6622 case $reload_flag in
6624 *) reload_flag=" $reload_flag" ;;
6626 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6628 cygwin* | mingw* | pw32* | cegcc*)
6629 if test yes != "$GCC"; then
6634 if test yes = "$GCC"; then
6635 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6637 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6650 if test -n "$ac_tool_prefix"; then
6651 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_OBJDUMP+:} false; then :
6656 $as_echo_n "(cached) " >&6
6658 if test -n "$OBJDUMP"; then
6659 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 OBJDUMP=$ac_cv_prog_OBJDUMP
6679 if test -n "$OBJDUMP"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6681 $as_echo "$OBJDUMP" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6689 if test -z "$ac_cv_prog_OBJDUMP"; then
6690 ac_ct_OBJDUMP=$OBJDUMP
6691 # Extract the first word of "objdump", so it can be a program name with args.
6692 set dummy objdump; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6696 $as_echo_n "(cached) " >&6
6698 if test -n "$ac_ct_OBJDUMP"; then
6699 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6719 if test -n "$ac_ct_OBJDUMP"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6721 $as_echo "$ac_ct_OBJDUMP" >&6; }
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6727 if test "x$ac_ct_OBJDUMP" = x; then
6730 case $cross_compiling:$ac_tool_warned in
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734 ac_tool_warned=yes ;;
6736 OBJDUMP=$ac_ct_OBJDUMP
6739 OBJDUMP="$ac_cv_prog_OBJDUMP"
6742 test -z "$OBJDUMP" && OBJDUMP=objdump
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6750 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6751 if ${lt_cv_deplibs_check_method+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 lt_cv_file_magic_cmd='$MAGIC_CMD'
6755 lt_cv_file_magic_test_file=
6756 lt_cv_deplibs_check_method='unknown'
6757 # Need to set the preceding variable on all platforms that support
6758 # interlibrary dependencies.
6759 # 'none' -- dependencies not supported.
6760 # 'unknown' -- same as none, but documents that we really don't know.
6761 # 'pass_all' -- all dependencies passed with no checks.
6762 # 'test_compile' -- check by making test program.
6763 # 'file_magic [[regex]]' -- check by looking for files in library path
6764 # that responds to the $file_magic_cmd with a given extended regex.
6765 # If you have 'file' or equivalent on your system and you're not sure
6766 # whether 'pass_all' will *always* work, you probably want this one.
6770 lt_cv_deplibs_check_method=pass_all
6774 lt_cv_deplibs_check_method=pass_all
6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6779 lt_cv_file_magic_cmd='/usr/bin/file -L'
6780 lt_cv_file_magic_test_file=/shlib/libc.so
6784 # func_win32_libid is a shell function defined in ltmain.sh
6785 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6786 lt_cv_file_magic_cmd='func_win32_libid'
6790 # Base MSYS/MinGW do not provide the 'file' command needed by
6791 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6792 # unless we find 'file', for example because we are cross-compiling.
6793 if ( file / ) >/dev/null 2>&1; then
6794 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6795 lt_cv_file_magic_cmd='func_win32_libid'
6797 # Keep this pattern in sync with the one in func_win32_libid.
6798 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6799 lt_cv_file_magic_cmd='$OBJDUMP -f'
6804 # use the weaker test based on 'objdump'. See mingw*.
6805 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6806 lt_cv_file_magic_cmd='$OBJDUMP -f'
6809 darwin* | rhapsody*)
6810 lt_cv_deplibs_check_method=pass_all
6813 freebsd* | dragonfly*)
6814 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6817 # Not sure whether the presence of OpenBSD here was a mistake.
6818 # Let's accept both of them until this is cleared up.
6819 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6820 lt_cv_file_magic_cmd=/usr/bin/file
6821 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6825 lt_cv_deplibs_check_method=pass_all
6830 lt_cv_deplibs_check_method=pass_all
6833 hpux10.20* | hpux11*)
6834 lt_cv_file_magic_cmd=/usr/bin/file
6837 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6838 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6841 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]'
6842 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6845 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6846 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6852 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6856 irix5* | irix6* | nonstopux*)
6858 *-32|*"-32 ") libmagic=32-bit;;
6859 *-n32|*"-n32 ") libmagic=N32;;
6860 *-64|*"-64 ") libmagic=64-bit;;
6861 *) libmagic=never-match;;
6863 lt_cv_deplibs_check_method=pass_all
6866 # This must be glibc/ELF.
6867 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6868 lt_cv_deplibs_check_method=pass_all
6871 netbsd* | netbsdelf*-gnu)
6872 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6873 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6881 lt_cv_file_magic_cmd=/usr/bin/file
6882 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6886 lt_cv_deplibs_check_method=pass_all
6890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6891 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6897 osf3* | osf4* | osf5*)
6898 lt_cv_deplibs_check_method=pass_all
6902 lt_cv_deplibs_check_method=pass_all
6906 lt_cv_deplibs_check_method=pass_all
6909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6910 lt_cv_deplibs_check_method=pass_all
6914 case $host_vendor in
6916 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]'
6917 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6920 lt_cv_deplibs_check_method=pass_all
6923 lt_cv_file_magic_cmd='/bin/file'
6924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6927 lt_cv_file_magic_cmd='/bin/file'
6928 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6929 lt_cv_file_magic_test_file=/lib/libc.so
6932 lt_cv_deplibs_check_method=pass_all
6935 lt_cv_deplibs_check_method=pass_all
6941 lt_cv_deplibs_check_method=pass_all
6944 lt_cv_deplibs_check_method=pass_all
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6950 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6954 if test "$build" = "$host"; then
6957 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6960 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6966 file_magic_cmd=$lt_cv_file_magic_cmd
6967 deplibs_check_method=$lt_cv_deplibs_check_method
6968 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if ${ac_cv_prog_DLLTOOL+:} false; then :
6997 $as_echo_n "(cached) " >&6
6999 if test -n "$DLLTOOL"; then
7000 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 DLLTOOL=$ac_cv_prog_DLLTOOL
7020 if test -n "$DLLTOOL"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7022 $as_echo "$DLLTOOL" >&6; }
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7030 if test -z "$ac_cv_prog_DLLTOOL"; then
7031 ac_ct_DLLTOOL=$DLLTOOL
7032 # Extract the first word of "dlltool", so it can be a program name with args.
7033 set dummy dlltool; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7037 $as_echo_n "(cached) " >&6
7039 if test -n "$ac_ct_DLLTOOL"; then
7040 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7060 if test -n "$ac_ct_DLLTOOL"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7062 $as_echo "$ac_ct_DLLTOOL" >&6; }
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7068 if test "x$ac_ct_DLLTOOL" = x; then
7071 case $cross_compiling:$ac_tool_warned in
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7077 DLLTOOL=$ac_ct_DLLTOOL
7080 DLLTOOL="$ac_cv_prog_DLLTOOL"
7083 test -z "$DLLTOOL" && DLLTOOL=dlltool
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7092 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7093 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7094 $as_echo_n "(cached) " >&6
7096 lt_cv_sharedlib_from_linklib_cmd='unknown'
7099 cygwin* | mingw* | pw32* | cegcc*)
7100 # two different shell functions defined in ltmain.sh;
7101 # decide which one to use based on capabilities of $DLLTOOL
7102 case `$DLLTOOL --help 2>&1` in
7103 *--identify-strict*)
7104 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7107 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7112 # fallback: assume linklib IS sharedlib
7113 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7119 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7120 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7121 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7130 if test -n "$ac_tool_prefix"; then
7133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_AR+:} false; then :
7138 $as_echo_n "(cached) " >&6
7140 if test -n "$AR"; then
7141 ac_cv_prog_AR="$AR" # Let the user override the test.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 if test -n "$AR"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7163 $as_echo "$AR" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7170 test -n "$AR" && break
7173 if test -z "$AR"; then
7177 # Extract the first word of "$ac_prog", so it can be a program name with args.
7178 set dummy $ac_prog; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7182 $as_echo_n "(cached) " >&6
7184 if test -n "$ac_ct_AR"; then
7185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7194 ac_cv_prog_ac_ct_AR="$ac_prog"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7205 if test -n "$ac_ct_AR"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7207 $as_echo "$ac_ct_AR" >&6; }
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7214 test -n "$ac_ct_AR" && break
7217 if test "x$ac_ct_AR" = x; then
7220 case $cross_compiling:$ac_tool_warned in
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7244 $as_echo_n "checking for archiver @FILE support... " >&6; }
7245 if ${lt_cv_ar_at_file+:} false; then :
7246 $as_echo_n "(cached) " >&6
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7260 if ac_fn_c_try_compile "$LINENO"; then :
7261 echo conftest.$ac_objext > conftest.lst
7262 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7264 (eval $lt_ar_try) 2>&5
7266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267 test $ac_status = 0; }
7268 if test 0 -eq "$ac_status"; then
7269 # Ensure the archiver fails upon bogus file names.
7270 rm -f conftest.$ac_objext libconftest.a
7271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7272 (eval $lt_ar_try) 2>&5
7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7275 test $ac_status = 0; }
7276 if test 0 -ne "$ac_status"; then
7280 rm -f conftest.* libconftest.a
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7287 $as_echo "$lt_cv_ar_at_file" >&6; }
7289 if test no = "$lt_cv_ar_at_file"; then
7292 archiver_list_spec=$lt_cv_ar_at_file
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}strip; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_prog_STRIP+:} false; then :
7307 $as_echo_n "(cached) " >&6
7309 if test -n "$STRIP"; then
7310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 STRIP=$ac_cv_prog_STRIP
7330 if test -n "$STRIP"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7332 $as_echo "$STRIP" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7340 if test -z "$ac_cv_prog_STRIP"; then
7342 # Extract the first word of "strip", so it can be a program name with args.
7343 set dummy strip; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7347 $as_echo_n "(cached) " >&6
7349 if test -n "$ac_ct_STRIP"; then
7350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_ac_ct_STRIP="strip"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7370 if test -n "$ac_ct_STRIP"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7372 $as_echo "$ac_ct_STRIP" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7378 if test "x$ac_ct_STRIP" = x; then
7381 case $cross_compiling:$ac_tool_warned in
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7390 STRIP="$ac_cv_prog_STRIP"
7393 test -z "$STRIP" && STRIP=:
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_RANLIB+:} false; then :
7406 $as_echo_n "(cached) " >&6
7408 if test -n "$RANLIB"; then
7409 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 RANLIB=$ac_cv_prog_RANLIB
7429 if test -n "$RANLIB"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7431 $as_echo "$RANLIB" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7439 if test -z "$ac_cv_prog_RANLIB"; then
7440 ac_ct_RANLIB=$RANLIB
7441 # Extract the first word of "ranlib", so it can be a program name with args.
7442 set dummy ranlib; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$ac_ct_RANLIB"; then
7449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_RANLIB="ranlib"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7469 if test -n "$ac_ct_RANLIB"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7471 $as_echo "$ac_ct_RANLIB" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7477 if test "x$ac_ct_RANLIB" = x; then
7480 case $cross_compiling:$ac_tool_warned in
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7486 RANLIB=$ac_ct_RANLIB
7489 RANLIB="$ac_cv_prog_RANLIB"
7492 test -z "$RANLIB" && RANLIB=:
7499 # Determine commands to create old-style static archives.
7500 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7501 old_postinstall_cmds='chmod 644 $oldlib'
7502 old_postuninstall_cmds=
7504 if test -n "$RANLIB"; then
7507 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7513 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7518 lock_old_archive_extraction=yes ;;
7520 lock_old_archive_extraction=no ;;
7561 # If no C compiler was specified, use CC.
7564 # If no C compiler flags were specified, use CFLAGS.
7565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7567 # Allow CC to be a program name with arguments.
7571 # Check for command to grab the raw symbol name followed by C symbol from nm.
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7573 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7574 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7575 $as_echo_n "(cached) " >&6
7578 # These are sane defaults that work on at least a few old systems.
7579 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7581 # Character class describing NM global symbol codes.
7582 symcode='[BCDEGRST]'
7584 # Regexp to match symbols that can be accessed directly from C.
7585 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7587 # Define system-specific variables.
7592 cygwin* | mingw* | pw32* | cegcc*)
7593 symcode='[ABCDGISTW]'
7596 if test ia64 = "$host_cpu"; then
7597 symcode='[ABCDEGRST]'
7601 symcode='[BCDEGRST]'
7604 symcode='[BCDEGQRST]'
7615 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7623 # If we're using GNU nm, then use its standard symbol codes.
7624 case `$NM -V 2>&1` in
7625 *GNU* | *'with BFD'*)
7626 symcode='[ABCDGIRSTW]' ;;
7629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7630 # Gets list of data symbols to import.
7631 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7632 # Adjust the below global symbol transforms to fixup imported variables.
7633 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7634 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7635 lt_c_name_lib_hook="\
7636 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7637 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7639 # Disable hooks by default.
7640 lt_cv_sys_global_symbol_to_import=
7646 # Transform an extracted symbol line into a proper C declaration.
7647 # Some systems (esp. on ia64) link data and code symbols differently,
7648 # so use this general approach.
7649 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7651 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7652 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7654 # Transform an extracted symbol line into symbol name and symbol address
7655 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7657 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7658 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7660 # Transform an extracted symbol line into symbol name with lib prefix and
7662 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7663 $lt_c_name_lib_hook\
7664 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7665 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7666 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7668 # Handle CRLF in mingw tool chain
7672 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7676 # Try without a prefix underscore, then with it.
7677 for ac_symprfx in "" "_"; do
7679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7680 symxfrm="\\1 $ac_symprfx\\2 \\2"
7682 # Write the raw and C identifiers.
7683 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7684 # Fake it for dumpbin and say T for any non-static function,
7685 # D for any global variable and I for any imported variable.
7686 # Also find C++ and __fastcall symbols from MSVC++,
7687 # which start with @ or ?.
7688 lt_cv_sys_global_symbol_pipe="$AWK '"\
7689 " {last_section=section; section=\$ 3};"\
7690 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7691 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7692 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7693 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7694 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7695 " \$ 0!~/External *\|/{next};"\
7696 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7697 " {if(hide[section]) next};"\
7698 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7699 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7700 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7701 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7702 " ' prfx=^$ac_symprfx"
7704 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7706 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7708 # Check to see that the pipe works correctly.
7712 cat > conftest.$ac_ext <<_LT_EOF
7717 void nm_test_func(void);
7718 void nm_test_func(void){}
7722 int main(){nm_test_var='a';nm_test_func();return(0);}
7725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7726 (eval $ac_compile) 2>&5
7728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729 test $ac_status = 0; }; then
7730 # Now try to grab the symbols.
7732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7733 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7736 test $ac_status = 0; } && test -s "$nlist"; then
7737 # Try sorting and uniquifying the output.
7738 if sort "$nlist" | uniq > "$nlist"T; then
7739 mv -f "$nlist"T "$nlist"
7744 # Make sure that we snagged all the symbols we need.
7745 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7746 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7747 cat <<_LT_EOF > conftest.$ac_ext
7748 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7749 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7750 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7751 relocations are performed -- see ld's documentation on pseudo-relocs. */
7752 # define LT_DLSYM_CONST
7753 #elif defined __osf__
7754 /* This system does not cope well with relocations in const data. */
7755 # define LT_DLSYM_CONST
7757 # define LT_DLSYM_CONST const
7765 # Now generate the symbol file.
7766 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7768 cat <<_LT_EOF >> conftest.$ac_ext
7770 /* The mapping between symbol names and symbols. */
7771 LT_DLSYM_CONST struct {
7775 lt__PROGRAM__LTX_preloaded_symbols[] =
7777 { "@PROGRAM@", (void *) 0 },
7779 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7780 cat <<\_LT_EOF >> conftest.$ac_ext
7784 /* This works around a problem in FreeBSD linker */
7785 #ifdef FREEBSD_WORKAROUND
7786 static const void *lt_preloaded_setup() {
7787 return lt__PROGRAM__LTX_preloaded_symbols;
7795 # Now try linking the two files.
7796 mv conftest.$ac_objext conftstm.$ac_objext
7797 lt_globsym_save_LIBS=$LIBS
7798 lt_globsym_save_CFLAGS=$CFLAGS
7799 LIBS=conftstm.$ac_objext
7800 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7802 (eval $ac_link) 2>&5
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7808 LIBS=$lt_globsym_save_LIBS
7809 CFLAGS=$lt_globsym_save_CFLAGS
7811 echo "cannot find nm_test_func in $nlist" >&5
7814 echo "cannot find nm_test_var in $nlist" >&5
7817 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7820 echo "$progname: failed program was:" >&5
7821 cat conftest.$ac_ext >&5
7823 rm -rf conftest* conftst*
7825 # Do not use the global_symbol_pipe unless it works.
7826 if test yes = "$pipe_works"; then
7829 lt_cv_sys_global_symbol_pipe=
7835 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7836 lt_cv_sys_global_symbol_to_cdecl=
7838 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7840 $as_echo "failed" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7843 $as_echo "ok" >&6; }
7846 # Response file support.
7847 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7848 nm_file_list_spec='@'
7849 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7850 nm_file_list_spec='@'
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7890 $as_echo_n "checking for sysroot... " >&6; }
7892 # Check whether --with-sysroot was given.
7893 if test "${with_sysroot+set}" = set; then :
7894 withval=$with_sysroot;
7901 case $with_sysroot in #(
7903 if test yes = "$GCC"; then
7904 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7908 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7914 $as_echo "$with_sysroot" >&6; }
7915 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7920 $as_echo "${lt_sysroot:-no}" >&6; }
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7927 $as_echo_n "checking for a working dd... " >&6; }
7928 if ${ac_cv_path_lt_DD+:} false; then :
7929 $as_echo_n "(cached) " >&6
7931 printf 0123456789abcdef0123456789abcdef >conftest.i
7932 cat conftest.i conftest.i >conftest2.i
7934 if test -z "$lt_DD"; then
7935 ac_path_lt_DD_found=false
7936 # Loop through the user's path and test for each of PROGNAME-LIST
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 test -z "$as_dir" && as_dir=.
7942 for ac_prog in dd; do
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7945 as_fn_executable_p "$ac_path_lt_DD" || continue
7946 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7947 cmp -s conftest.i conftest.out \
7948 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7950 $ac_path_lt_DD_found && break 3
7955 if test -z "$ac_cv_path_lt_DD"; then
7959 ac_cv_path_lt_DD=$lt_DD
7962 rm -f conftest.i conftest2.i conftest.out
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7965 $as_echo "$ac_cv_path_lt_DD" >&6; }
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7969 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7970 if ${lt_cv_truncate_bin+:} false; then :
7971 $as_echo_n "(cached) " >&6
7973 printf 0123456789abcdef0123456789abcdef >conftest.i
7974 cat conftest.i conftest.i >conftest2.i
7976 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7977 cmp -s conftest.i conftest.out \
7978 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7980 rm -f conftest.i conftest2.i conftest.out
7981 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7984 $as_echo "$lt_cv_truncate_bin" >&6; }
7992 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7995 for cc_temp in $*""; do
7997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8003 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8006 # Check whether --enable-libtool-lock was given.
8007 if test "${enable_libtool_lock+set}" = set; then :
8008 enableval=$enable_libtool_lock;
8011 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8013 # Some flags need to be propagated to the compiler or linker for good
8017 # Find out what ABI is being produced by ac_compile, and set mode
8018 # options accordingly.
8019 echo 'int i;' > conftest.$ac_ext
8020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8021 (eval $ac_compile) 2>&5
8023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8024 test $ac_status = 0; }; then
8025 case `/usr/bin/file conftest.$ac_objext` in
8037 # Find out what ABI is being produced by ac_compile, and set linker
8038 # options accordingly.
8039 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8041 (eval $ac_compile) 2>&5
8043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8044 test $ac_status = 0; }; then
8045 if test yes = "$lt_cv_prog_gnu_ld"; then
8046 case `/usr/bin/file conftest.$ac_objext` in
8048 LD="${LD-ld} -melf32bsmip"
8051 LD="${LD-ld} -melf32bmipn32"
8054 LD="${LD-ld} -melf64bmip"
8058 case `/usr/bin/file conftest.$ac_objext` in
8075 # Find out what ABI is being produced by ac_compile, and set linker
8076 # options accordingly.
8077 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8079 (eval $ac_compile) 2>&5
8081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8082 test $ac_status = 0; }; then
8084 case `/usr/bin/file conftest.$ac_objext` in
8092 case `/usr/bin/file conftest.$ac_objext` in
8094 emul="${emul}btsmip"
8097 emul="${emul}ltsmip"
8100 case `/usr/bin/file conftest.$ac_objext` in
8105 LD="${LD-ld} -m $emul"
8110 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8111 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8112 # Find out what ABI is being produced by ac_compile, and set linker
8113 # options accordingly. Note that the listed cases only cover the
8114 # situations where additional linker options are needed (such as when
8115 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8116 # vice versa); the common cases where no linker options are needed do
8117 # not appear in the list.
8118 echo 'int i;' > conftest.$ac_ext
8119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8120 (eval $ac_compile) 2>&5
8122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8123 test $ac_status = 0; }; then
8124 case `/usr/bin/file conftest.o` in
8127 x86_64-*kfreebsd*-gnu)
8128 LD="${LD-ld} -m elf_i386_fbsd"
8131 case `/usr/bin/file conftest.o` in
8133 LD="${LD-ld} -m elf32_x86_64"
8136 LD="${LD-ld} -m elf_i386"
8140 powerpc64le-*linux*)
8141 LD="${LD-ld} -m elf32lppclinux"
8144 LD="${LD-ld} -m elf32ppclinux"
8147 LD="${LD-ld} -m elf_s390"
8150 LD="${LD-ld} -m elf32_sparc"
8156 x86_64-*kfreebsd*-gnu)
8157 LD="${LD-ld} -m elf_x86_64_fbsd"
8160 LD="${LD-ld} -m elf_x86_64"
8163 LD="${LD-ld} -m elf64lppc"
8166 LD="${LD-ld} -m elf64ppc"
8168 s390*-*linux*|s390*-*tpf*)
8169 LD="${LD-ld} -m elf64_s390"
8172 LD="${LD-ld} -m elf64_sparc"
8182 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8184 CFLAGS="$CFLAGS -belf"
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8186 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8187 if ${lt_cv_cc_needs_belf+:} false; then :
8188 $as_echo_n "(cached) " >&6
8191 ac_cpp='$CPP $CPPFLAGS'
8192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8207 if ac_fn_c_try_link "$LINENO"; then :
8208 lt_cv_cc_needs_belf=yes
8210 lt_cv_cc_needs_belf=no
8212 rm -f core conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
8215 ac_cpp='$CPP $CPPFLAGS'
8216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8222 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8223 if test yes != "$lt_cv_cc_needs_belf"; then
8224 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8229 # Find out what ABI is being produced by ac_compile, and set linker
8230 # options accordingly.
8231 echo 'int i;' > conftest.$ac_ext
8232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8233 (eval $ac_compile) 2>&5
8235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8236 test $ac_status = 0; }; then
8237 case `/usr/bin/file conftest.o` in
8239 case $lt_cv_prog_gnu_ld in
8242 i?86-*-solaris*|x86_64-*-solaris*)
8243 LD="${LD-ld} -m elf_x86_64"
8246 LD="${LD-ld} -m elf64_sparc"
8249 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8250 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8255 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8267 need_locks=$enable_libtool_lock
8269 if test -n "$ac_tool_prefix"; then
8270 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8271 set dummy ${ac_tool_prefix}mt; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8275 $as_echo_n "(cached) " >&6
8277 if test -n "$MANIFEST_TOOL"; then
8278 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8298 if test -n "$MANIFEST_TOOL"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8300 $as_echo "$MANIFEST_TOOL" >&6; }
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8308 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8309 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8310 # Extract the first word of "mt", so it can be a program name with args.
8311 set dummy mt; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8315 $as_echo_n "(cached) " >&6
8317 if test -n "$ac_ct_MANIFEST_TOOL"; then
8318 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8327 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8338 if test -n "$ac_ct_MANIFEST_TOOL"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8340 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8346 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8349 case $cross_compiling:$ac_tool_warned in
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8353 ac_tool_warned=yes ;;
8355 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8358 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8361 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8363 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8364 if ${lt_cv_path_mainfest_tool+:} false; then :
8365 $as_echo_n "(cached) " >&6
8367 lt_cv_path_mainfest_tool=no
8368 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8369 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8370 cat conftest.err >&5
8371 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8372 lt_cv_path_mainfest_tool=yes
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8377 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8378 if test yes != "$lt_cv_path_mainfest_tool"; then
8388 rhapsody* | darwin*)
8389 if test -n "$ac_tool_prefix"; then
8390 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8391 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8395 $as_echo_n "(cached) " >&6
8397 if test -n "$DSYMUTIL"; then
8398 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8407 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8418 if test -n "$DSYMUTIL"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8420 $as_echo "$DSYMUTIL" >&6; }
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8428 if test -z "$ac_cv_prog_DSYMUTIL"; then
8429 ac_ct_DSYMUTIL=$DSYMUTIL
8430 # Extract the first word of "dsymutil", so it can be a program name with args.
8431 set dummy dsymutil; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8435 $as_echo_n "(cached) " >&6
8437 if test -n "$ac_ct_DSYMUTIL"; then
8438 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8447 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8458 if test -n "$ac_ct_DSYMUTIL"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8460 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8466 if test "x$ac_ct_DSYMUTIL" = x; then
8469 case $cross_compiling:$ac_tool_warned in
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8473 ac_tool_warned=yes ;;
8475 DSYMUTIL=$ac_ct_DSYMUTIL
8478 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8481 if test -n "$ac_tool_prefix"; then
8482 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8483 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if ${ac_cv_prog_NMEDIT+:} false; then :
8487 $as_echo_n "(cached) " >&6
8489 if test -n "$NMEDIT"; then
8490 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8499 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 NMEDIT=$ac_cv_prog_NMEDIT
8510 if test -n "$NMEDIT"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8512 $as_echo "$NMEDIT" >&6; }
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8520 if test -z "$ac_cv_prog_NMEDIT"; then
8521 ac_ct_NMEDIT=$NMEDIT
8522 # Extract the first word of "nmedit", so it can be a program name with args.
8523 set dummy nmedit; ac_word=$2
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 $as_echo_n "checking for $ac_word... " >&6; }
8526 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8527 $as_echo_n "(cached) " >&6
8529 if test -n "$ac_ct_NMEDIT"; then
8530 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8539 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8550 if test -n "$ac_ct_NMEDIT"; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8552 $as_echo "$ac_ct_NMEDIT" >&6; }
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 $as_echo "no" >&6; }
8558 if test "x$ac_ct_NMEDIT" = x; then
8561 case $cross_compiling:$ac_tool_warned in
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8565 ac_tool_warned=yes ;;
8567 NMEDIT=$ac_ct_NMEDIT
8570 NMEDIT="$ac_cv_prog_NMEDIT"
8573 if test -n "$ac_tool_prefix"; then
8574 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8575 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if ${ac_cv_prog_LIPO+:} false; then :
8579 $as_echo_n "(cached) " >&6
8581 if test -n "$LIPO"; then
8582 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8591 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 LIPO=$ac_cv_prog_LIPO
8602 if test -n "$LIPO"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8604 $as_echo "$LIPO" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8612 if test -z "$ac_cv_prog_LIPO"; then
8614 # Extract the first word of "lipo", so it can be a program name with args.
8615 set dummy lipo; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8619 $as_echo_n "(cached) " >&6
8621 if test -n "$ac_ct_LIPO"; then
8622 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631 ac_cv_prog_ac_ct_LIPO="lipo"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8642 if test -n "$ac_ct_LIPO"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8644 $as_echo "$ac_ct_LIPO" >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8650 if test "x$ac_ct_LIPO" = x; then
8653 case $cross_compiling:$ac_tool_warned in
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8657 ac_tool_warned=yes ;;
8662 LIPO="$ac_cv_prog_LIPO"
8665 if test -n "$ac_tool_prefix"; then
8666 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8667 set dummy ${ac_tool_prefix}otool; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if ${ac_cv_prog_OTOOL+:} false; then :
8671 $as_echo_n "(cached) " >&6
8673 if test -n "$OTOOL"; then
8674 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8683 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 OTOOL=$ac_cv_prog_OTOOL
8694 if test -n "$OTOOL"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8696 $as_echo "$OTOOL" >&6; }
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8704 if test -z "$ac_cv_prog_OTOOL"; then
8706 # Extract the first word of "otool", so it can be a program name with args.
8707 set dummy otool; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8711 $as_echo_n "(cached) " >&6
8713 if test -n "$ac_ct_OTOOL"; then
8714 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 test -z "$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_ac_ct_OTOOL="otool"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8734 if test -n "$ac_ct_OTOOL"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8736 $as_echo "$ac_ct_OTOOL" >&6; }
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8742 if test "x$ac_ct_OTOOL" = x; then
8745 case $cross_compiling:$ac_tool_warned in
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8749 ac_tool_warned=yes ;;
8754 OTOOL="$ac_cv_prog_OTOOL"
8757 if test -n "$ac_tool_prefix"; then
8758 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8759 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if ${ac_cv_prog_OTOOL64+:} false; then :
8763 $as_echo_n "(cached) " >&6
8765 if test -n "$OTOOL64"; then
8766 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 OTOOL64=$ac_cv_prog_OTOOL64
8786 if test -n "$OTOOL64"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8788 $as_echo "$OTOOL64" >&6; }
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8796 if test -z "$ac_cv_prog_OTOOL64"; then
8797 ac_ct_OTOOL64=$OTOOL64
8798 # Extract the first word of "otool64", so it can be a program name with args.
8799 set dummy otool64; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8803 $as_echo_n "(cached) " >&6
8805 if test -n "$ac_ct_OTOOL64"; then
8806 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815 ac_cv_prog_ac_ct_OTOOL64="otool64"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8826 if test -n "$ac_ct_OTOOL64"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8828 $as_echo "$ac_ct_OTOOL64" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8834 if test "x$ac_ct_OTOOL64" = x; then
8837 case $cross_compiling:$ac_tool_warned in
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8841 ac_tool_warned=yes ;;
8843 OTOOL64=$ac_ct_OTOOL64
8846 OTOOL64="$ac_cv_prog_OTOOL64"
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8876 $as_echo_n "checking for -single_module linker flag... " >&6; }
8877 if ${lt_cv_apple_cc_single_mod+:} false; then :
8878 $as_echo_n "(cached) " >&6
8880 lt_cv_apple_cc_single_mod=no
8881 if test -z "$LT_MULTI_MODULE"; then
8882 # By default we will add the -single_module flag. You can override
8883 # by either setting the environment variable LT_MULTI_MODULE
8884 # non-empty at configure time, or by adding -multi_module to the
8886 rm -rf libconftest.dylib*
8887 echo "int foo(void){return 1;}" > conftest.c
8888 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8889 -dynamiclib -Wl,-single_module conftest.c" >&5
8890 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8891 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8893 # If there is a non-empty error log, and "single_module"
8894 # appears in it, assume the flag caused a linker warning
8895 if test -s conftest.err && $GREP single_module conftest.err; then
8896 cat conftest.err >&5
8897 # Otherwise, if the output was created with a 0 exit code from
8898 # the compiler, it worked.
8899 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8900 lt_cv_apple_cc_single_mod=yes
8902 cat conftest.err >&5
8904 rm -rf libconftest.dylib*
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8909 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8912 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8913 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8914 $as_echo_n "(cached) " >&6
8916 lt_cv_ld_exported_symbols_list=no
8917 save_LDFLAGS=$LDFLAGS
8918 echo "_main" > conftest.sym
8919 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8931 if ac_fn_c_try_link "$LINENO"; then :
8932 lt_cv_ld_exported_symbols_list=yes
8934 lt_cv_ld_exported_symbols_list=no
8936 rm -f core conftest.err conftest.$ac_objext \
8937 conftest$ac_exeext conftest.$ac_ext
8938 LDFLAGS=$save_LDFLAGS
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8942 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8945 $as_echo_n "checking for -force_load linker flag... " >&6; }
8946 if ${lt_cv_ld_force_load+:} false; then :
8947 $as_echo_n "(cached) " >&6
8949 lt_cv_ld_force_load=no
8950 cat > conftest.c << _LT_EOF
8951 int forced_loaded() { return 2;}
8953 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8954 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8955 echo "$AR cru libconftest.a conftest.o" >&5
8956 $AR cru libconftest.a conftest.o 2>&5
8957 echo "$RANLIB libconftest.a" >&5
8958 $RANLIB libconftest.a 2>&5
8959 cat > conftest.c << _LT_EOF
8960 int main() { return 0;}
8962 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8963 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8965 if test -s conftest.err && $GREP force_load conftest.err; then
8966 cat conftest.err >&5
8967 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8968 lt_cv_ld_force_load=yes
8970 cat conftest.err >&5
8972 rm -f conftest.err libconftest.a conftest conftest.c
8973 rm -rf conftest.dSYM
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8977 $as_echo "$lt_cv_ld_force_load" >&6; }
8979 rhapsody* | darwin1.[012])
8980 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8982 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8983 darwin*) # darwin 5.x on
8984 # if running on 10.5 or later, the deployment target defaults
8985 # to the OS version, if on x86, and 10.4, the deployment
8986 # target defaults to 10.4. Don't you love it?
8987 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8988 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8989 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8991 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8993 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8997 if test yes = "$lt_cv_apple_cc_single_mod"; then
8998 _lt_dar_single_mod='$single_module'
9000 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9001 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9003 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9005 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9006 _lt_dsymutil='~$DSYMUTIL $lib || :'
9013 # func_munge_path_list VARIABLE PATH
9014 # -----------------------------------
9015 # VARIABLE is name of variable containing _space_ separated list of
9016 # directories to be munged by the contents of PATH, which is string
9019 # string "DIR[ DIR]" will be prepended to VARIABLE
9021 # string "DIR[ DIR]" will be appended to VARIABLE
9022 # "DIRP[:DIRP]::[DIRA:]DIRA"
9023 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9024 # "DIRA[ DIRA]" will be appended to VARIABLE
9026 # VARIABLE will be replaced by "DIR[ DIR]"
9027 func_munge_path_list ()
9033 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9036 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9039 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9040 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9043 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9049 ac_cpp='$CPP $CPPFLAGS'
9050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9055 # On Suns, sometimes $CPP names a directory.
9056 if test -n "$CPP" && test -d "$CPP"; then
9059 if test -z "$CPP"; then
9060 if ${ac_cv_prog_CPP+:} false; then :
9061 $as_echo_n "(cached) " >&6
9063 # Double quotes because CPP needs to be expanded
9064 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9067 for ac_c_preproc_warn_flag in '' yes
9069 # Use a header file that comes with gcc, so configuring glibc
9070 # with a fresh cross-compiler works.
9071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9072 # <limits.h> exists even on freestanding compilers.
9073 # On the NeXT, cc -E runs the code through the compiler's parser,
9074 # not just through cpp. "Syntax error" is here to catch this case.
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9078 # include <limits.h>
9080 # include <assert.h>
9084 if ac_fn_c_try_cpp "$LINENO"; then :
9087 # Broken: fails on valid input.
9090 rm -f conftest.err conftest.i conftest.$ac_ext
9092 # OK, works on sane cases. Now check whether nonexistent headers
9093 # can be detected and how.
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 #include <ac_nonexistent.h>
9098 if ac_fn_c_try_cpp "$LINENO"; then :
9099 # Broken: success on invalid input.
9102 # Passes both tests.
9106 rm -f conftest.err conftest.i conftest.$ac_ext
9109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9110 rm -f conftest.i conftest.err conftest.$ac_ext
9111 if $ac_preproc_ok; then :
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9124 $as_echo "$CPP" >&6; }
9126 for ac_c_preproc_warn_flag in '' yes
9128 # Use a header file that comes with gcc, so configuring glibc
9129 # with a fresh cross-compiler works.
9130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9131 # <limits.h> exists even on freestanding compilers.
9132 # On the NeXT, cc -E runs the code through the compiler's parser,
9133 # not just through cpp. "Syntax error" is here to catch this case.
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9137 # include <limits.h>
9139 # include <assert.h>
9143 if ac_fn_c_try_cpp "$LINENO"; then :
9146 # Broken: fails on valid input.
9149 rm -f conftest.err conftest.i conftest.$ac_ext
9151 # OK, works on sane cases. Now check whether nonexistent headers
9152 # can be detected and how.
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #include <ac_nonexistent.h>
9157 if ac_fn_c_try_cpp "$LINENO"; then :
9158 # Broken: success on invalid input.
9161 # Passes both tests.
9165 rm -f conftest.err conftest.i conftest.$ac_ext
9168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9169 rm -f conftest.i conftest.err conftest.$ac_ext
9170 if $ac_preproc_ok; then :
9173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9175 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9176 See \`config.log' for more details" "$LINENO" 5; }
9180 ac_cpp='$CPP $CPPFLAGS'
9181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9187 $as_echo_n "checking for ANSI C header files... " >&6; }
9188 if ${ac_cv_header_stdc+:} false; then :
9189 $as_echo_n "(cached) " >&6
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9206 if ac_fn_c_try_compile "$LINENO"; then :
9207 ac_cv_header_stdc=yes
9209 ac_cv_header_stdc=no
9211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213 if test $ac_cv_header_stdc = yes; then
9214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9221 $EGREP "memchr" >/dev/null 2>&1; then :
9224 ac_cv_header_stdc=no
9230 if test $ac_cv_header_stdc = yes; then
9231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9238 $EGREP "free" >/dev/null 2>&1; then :
9241 ac_cv_header_stdc=no
9247 if test $ac_cv_header_stdc = yes; then
9248 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9249 if test "$cross_compiling" = yes; then :
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9256 #if ((' ' & 0x0FF) == 0x020)
9257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9260 # define ISLOWER(c) \
9261 (('a' <= (c) && (c) <= 'i') \
9262 || ('j' <= (c) && (c) <= 'r') \
9263 || ('s' <= (c) && (c) <= 'z'))
9264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9272 for (i = 0; i < 256; i++)
9273 if (XOR (islower (i), ISLOWER (i))
9274 || toupper (i) != TOUPPER (i))
9279 if ac_fn_c_try_run "$LINENO"; then :
9282 ac_cv_header_stdc=no
9284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9285 conftest.$ac_objext conftest.beam conftest.$ac_ext
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9291 $as_echo "$ac_cv_header_stdc" >&6; }
9292 if test $ac_cv_header_stdc = yes; then
9294 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9298 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9299 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9300 inttypes.h stdint.h unistd.h
9302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9303 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9306 cat >>confdefs.h <<_ACEOF
9307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9315 for ac_header in dlfcn.h
9317 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9319 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9320 cat >>confdefs.h <<_ACEOF
9321 #define HAVE_DLFCN_H 1
9330 func_stripname_cnf ()
9333 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9334 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9336 } # func_stripname_cnf
9343 enable_win32_dll=yes
9346 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9347 if test -n "$ac_tool_prefix"; then
9348 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9349 set dummy ${ac_tool_prefix}as; ac_word=$2
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351 $as_echo_n "checking for $ac_word... " >&6; }
9352 if ${ac_cv_prog_AS+:} false; then :
9353 $as_echo_n "(cached) " >&6
9355 if test -n "$AS"; then
9356 ac_cv_prog_AS="$AS" # Let the user override the test.
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9365 ac_cv_prog_AS="${ac_tool_prefix}as"
9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9376 if test -n "$AS"; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9378 $as_echo "$AS" >&6; }
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9386 if test -z "$ac_cv_prog_AS"; then
9388 # Extract the first word of "as", so it can be a program name with args.
9389 set dummy as; ac_word=$2
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391 $as_echo_n "checking for $ac_word... " >&6; }
9392 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9393 $as_echo_n "(cached) " >&6
9395 if test -n "$ac_ct_AS"; then
9396 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 test -z "$as_dir" && as_dir=.
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9405 ac_cv_prog_ac_ct_AS="as"
9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9415 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9416 if test -n "$ac_ct_AS"; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9418 $as_echo "$ac_ct_AS" >&6; }
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421 $as_echo "no" >&6; }
9424 if test "x$ac_ct_AS" = x; then
9427 case $cross_compiling:$ac_tool_warned in
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9431 ac_tool_warned=yes ;;
9439 if test -n "$ac_tool_prefix"; then
9440 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9441 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9443 $as_echo_n "checking for $ac_word... " >&6; }
9444 if ${ac_cv_prog_DLLTOOL+:} false; then :
9445 $as_echo_n "(cached) " >&6
9447 if test -n "$DLLTOOL"; then
9448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454 test -z "$as_dir" && as_dir=.
9455 for ac_exec_ext in '' $ac_executable_extensions; do
9456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9457 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 DLLTOOL=$ac_cv_prog_DLLTOOL
9468 if test -n "$DLLTOOL"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9470 $as_echo "$DLLTOOL" >&6; }
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473 $as_echo "no" >&6; }
9478 if test -z "$ac_cv_prog_DLLTOOL"; then
9479 ac_ct_DLLTOOL=$DLLTOOL
9480 # Extract the first word of "dlltool", so it can be a program name with args.
9481 set dummy dlltool; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9485 $as_echo_n "(cached) " >&6
9487 if test -n "$ac_ct_DLLTOOL"; then
9488 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9497 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9508 if test -n "$ac_ct_DLLTOOL"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9510 $as_echo "$ac_ct_DLLTOOL" >&6; }
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9516 if test "x$ac_ct_DLLTOOL" = x; then
9519 case $cross_compiling:$ac_tool_warned in
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9523 ac_tool_warned=yes ;;
9525 DLLTOOL=$ac_ct_DLLTOOL
9528 DLLTOOL="$ac_cv_prog_DLLTOOL"
9531 if test -n "$ac_tool_prefix"; then
9532 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9533 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535 $as_echo_n "checking for $ac_word... " >&6; }
9536 if ${ac_cv_prog_OBJDUMP+:} false; then :
9537 $as_echo_n "(cached) " >&6
9539 if test -n "$OBJDUMP"; then
9540 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9546 test -z "$as_dir" && as_dir=.
9547 for ac_exec_ext in '' $ac_executable_extensions; do
9548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9549 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 OBJDUMP=$ac_cv_prog_OBJDUMP
9560 if test -n "$OBJDUMP"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9562 $as_echo "$OBJDUMP" >&6; }
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 $as_echo "no" >&6; }
9570 if test -z "$ac_cv_prog_OBJDUMP"; then
9571 ac_ct_OBJDUMP=$OBJDUMP
9572 # Extract the first word of "objdump", so it can be a program name with args.
9573 set dummy objdump; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9577 $as_echo_n "(cached) " >&6
9579 if test -n "$ac_ct_OBJDUMP"; then
9580 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9589 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9600 if test -n "$ac_ct_OBJDUMP"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9602 $as_echo "$ac_ct_OBJDUMP" >&6; }
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9608 if test "x$ac_ct_OBJDUMP" = x; then
9611 case $cross_compiling:$ac_tool_warned in
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9615 ac_tool_warned=yes ;;
9617 OBJDUMP=$ac_ct_OBJDUMP
9620 OBJDUMP="$ac_cv_prog_OBJDUMP"
9626 test -z "$AS" && AS=as
9632 test -z "$DLLTOOL" && DLLTOOL=dlltool
9638 test -z "$OBJDUMP" && OBJDUMP=objdump
9650 # Check whether --enable-shared was given.
9651 if test "${enable_shared+set}" = set; then :
9652 enableval=$enable_shared; p=${PACKAGE-default}
9654 yes) enable_shared=yes ;;
9655 no) enable_shared=no ;;
9658 # Look at the argument we got. We use all the common list separators.
9659 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9660 for pkg in $enableval; do
9662 if test "X$pkg" = "X$p"; then
9683 # Check whether --with-pic was given.
9684 if test "${with_pic+set}" = set; then :
9685 withval=$with_pic; lt_p=${PACKAGE-default}
9687 yes|no) pic_mode=$withval ;;
9690 # Look at the argument we got. We use all the common list separators.
9691 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9692 for lt_pkg in $withval; do
9694 if test "X$lt_pkg" = "X$lt_p"; then
9712 # Check whether --enable-fast-install was given.
9713 if test "${enable_fast_install+set}" = set; then :
9714 enableval=$enable_fast_install; p=${PACKAGE-default}
9716 yes) enable_fast_install=yes ;;
9717 no) enable_fast_install=no ;;
9719 enable_fast_install=no
9720 # Look at the argument we got. We use all the common list separators.
9721 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9722 for pkg in $enableval; do
9724 if test "X$pkg" = "X$p"; then
9725 enable_fast_install=yes
9732 enable_fast_install=yes
9742 shared_archive_member_spec=
9743 case $host,$enable_shared in
9744 power*-*-aix[5-9]*,yes)
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9746 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9748 # Check whether --with-aix-soname was given.
9749 if test "${with_aix_soname+set}" = set; then :
9750 withval=$with_aix_soname; case $withval in
9754 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9757 lt_cv_with_aix_soname=$with_aix_soname
9759 if ${lt_cv_with_aix_soname+:} false; then :
9760 $as_echo_n "(cached) " >&6
9762 lt_cv_with_aix_soname=aix
9765 with_aix_soname=$lt_cv_with_aix_soname
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9769 $as_echo "$with_aix_soname" >&6; }
9770 if test aix != "$with_aix_soname"; then
9771 # For the AIX way of multilib, we name the shared archive member
9772 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9773 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9774 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9775 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9776 if test 64 = "${OBJECT_MODE-32}"; then
9777 shared_archive_member_spec=shr_64
9779 shared_archive_member_spec=shr
9797 # This can be used to rebuild libtool when needed
9798 LIBTOOL_DEPS=$ltmain
9800 # Always use our own libtool.
9801 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9832 test -z "$LN_S" && LN_S="ln -s"
9847 if test -n "${ZSH_VERSION+set}"; then
9848 setopt NO_GLOB_SUBST
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9852 $as_echo_n "checking for objdir... " >&6; }
9853 if ${lt_cv_objdir+:} false; then :
9854 $as_echo_n "(cached) " >&6
9856 rm -f .libs 2>/dev/null
9857 mkdir .libs 2>/dev/null
9858 if test -d .libs; then
9861 # MS-DOS does not allow filenames that begin with a dot.
9864 rmdir .libs 2>/dev/null
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9867 $as_echo "$lt_cv_objdir" >&6; }
9868 objdir=$lt_cv_objdir
9874 cat >>confdefs.h <<_ACEOF
9875 #define LT_OBJDIR "$lt_cv_objdir/"
9883 # AIX sometimes has problems with the GCC collect2 program. For some
9884 # reason, if we set the COLLECT_NAMES environment variable, the problems
9885 # vanish in a puff of smoke.
9886 if test set != "${COLLECT_NAMES+set}"; then
9888 export COLLECT_NAMES
9895 can_build_shared=yes
9897 # All known linkers require a '.a' archive for static linking (except MSVC,
9898 # which needs '.lib').
9901 with_gnu_ld=$lt_cv_prog_gnu_ld
9906 # Set sane defaults for various variables
9907 test -z "$CC" && CC=cc
9908 test -z "$LTCC" && LTCC=$CC
9909 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9910 test -z "$LD" && LD=ld
9911 test -z "$ac_objext" && ac_objext=o
9913 func_cc_basename $compiler
9914 cc_basename=$func_cc_basename_result
9917 # Only perform the check for file, if the check method requires it
9918 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9919 case $deplibs_check_method in
9921 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9923 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9924 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9925 $as_echo_n "(cached) " >&6
9929 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9932 lt_save_MAGIC_CMD=$MAGIC_CMD
9933 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9934 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9935 for ac_dir in $ac_dummy; do
9937 test -z "$ac_dir" && ac_dir=.
9938 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9939 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9940 if test -n "$file_magic_test_file"; then
9941 case $deplibs_check_method in
9943 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9944 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9945 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9946 $EGREP "$file_magic_regex" > /dev/null; then
9951 *** Warning: the command libtool uses to detect shared libraries,
9952 *** $file_magic_cmd, produces output that libtool cannot recognize.
9953 *** The result is that libtool may fail to recognize shared libraries
9954 *** as such. This will affect the creation of libtool libraries that
9955 *** depend on shared libraries, but programs linked with such libtool
9956 *** libraries will work regardless of this problem. Nevertheless, you
9957 *** may want to report the problem to your system manager and/or to
9958 *** bug-libtool@gnu.org
9968 MAGIC_CMD=$lt_save_MAGIC_CMD
9973 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9974 if test -n "$MAGIC_CMD"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9976 $as_echo "$MAGIC_CMD" >&6; }
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979 $as_echo "no" >&6; }
9986 if test -z "$lt_cv_path_MAGIC_CMD"; then
9987 if test -n "$ac_tool_prefix"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9989 $as_echo_n "checking for file... " >&6; }
9990 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9991 $as_echo_n "(cached) " >&6
9995 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9998 lt_save_MAGIC_CMD=$MAGIC_CMD
9999 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10000 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10001 for ac_dir in $ac_dummy; do
10003 test -z "$ac_dir" && ac_dir=.
10004 if test -f "$ac_dir/file"; then
10005 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10006 if test -n "$file_magic_test_file"; then
10007 case $deplibs_check_method in
10009 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10010 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10011 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10012 $EGREP "$file_magic_regex" > /dev/null; then
10017 *** Warning: the command libtool uses to detect shared libraries,
10018 *** $file_magic_cmd, produces output that libtool cannot recognize.
10019 *** The result is that libtool may fail to recognize shared libraries
10020 *** as such. This will affect the creation of libtool libraries that
10021 *** depend on shared libraries, but programs linked with such libtool
10022 *** libraries will work regardless of this problem. Nevertheless, you
10023 *** may want to report the problem to your system manager and/or to
10024 *** bug-libtool@gnu.org
10034 MAGIC_CMD=$lt_save_MAGIC_CMD
10039 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10040 if test -n "$MAGIC_CMD"; then
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10042 $as_echo "$MAGIC_CMD" >&6; }
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045 $as_echo "no" >&6; }
10058 # Use C for the default configuration in the libtool script
10062 ac_cpp='$CPP $CPPFLAGS'
10063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10068 # Source file extension for C test sources.
10071 # Object file extension for compiled C test sources.
10075 # Code to be used in simple compile tests
10076 lt_simple_compile_test_code="int some_variable = 0;"
10078 # Code to be used in simple link tests
10079 lt_simple_link_test_code='int main(){return(0);}'
10087 # If no C compiler was specified, use CC.
10090 # If no C compiler flags were specified, use CFLAGS.
10091 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10093 # Allow CC to be a program name with arguments.
10096 # Save the default compiler, since it gets overwritten when the other
10097 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10098 compiler_DEFAULT=$CC
10100 # save warnings/boilerplate of simple test code
10101 ac_outfile=conftest.$ac_objext
10102 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10103 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10104 _lt_compiler_boilerplate=`cat conftest.err`
10107 ac_outfile=conftest.$ac_objext
10108 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10109 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10110 _lt_linker_boilerplate=`cat conftest.err`
10115 ## There is no encapsulation within the following macros, do not change
10116 ## the running order or otherwise move them around unless you know exactly
10117 ## what you are doing...
10118 if test -n "$compiler"; then
10120 lt_prog_compiler_no_builtin_flag=
10122 if test yes = "$GCC"; then
10123 case $cc_basename in
10125 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10127 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10131 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10132 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10133 $as_echo_n "(cached) " >&6
10135 lt_cv_prog_compiler_rtti_exceptions=no
10136 ac_outfile=conftest.$ac_objext
10137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10138 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10139 # Insert the option either (1) after the last *FLAGS variable, or
10140 # (2) before a word containing "conftest.", or (3) at the end.
10141 # Note that $ac_compile itself does not contain backslashes and begins
10142 # with a dollar sign (not a hyphen), so the echo should work correctly.
10143 # The option is referenced via a variable to avoid confusing sed.
10144 lt_compile=`echo "$ac_compile" | $SED \
10145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10147 -e 's:$: $lt_compiler_flag:'`
10148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10149 (eval "$lt_compile" 2>conftest.err)
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 if (exit $ac_status) && test -s "$ac_outfile"; then
10154 # The compiler can only warn and ignore the option if not recognized
10155 # So say no if there are warnings other than the usual output.
10156 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10158 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10159 lt_cv_prog_compiler_rtti_exceptions=yes
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10166 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10168 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10169 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10181 lt_prog_compiler_wl=
10182 lt_prog_compiler_pic=
10183 lt_prog_compiler_static=
10186 if test yes = "$GCC"; then
10187 lt_prog_compiler_wl='-Wl,'
10188 lt_prog_compiler_static='-static'
10192 # All AIX code is PIC.
10193 if test ia64 = "$host_cpu"; then
10194 # AIX 5 now supports IA64 processor
10195 lt_prog_compiler_static='-Bstatic'
10197 lt_prog_compiler_pic='-fPIC'
10203 # see comment about AmigaOS4 .so support
10204 lt_prog_compiler_pic='-fPIC'
10207 # FIXME: we need at least 68020 code to build shared libraries, but
10208 # adding the '-m68020' flag to GCC prevents building anything better,
10210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10216 # PIC is the default for these OSes.
10219 mingw* | cygwin* | pw32* | os2* | cegcc*)
10220 # This hack is so that the source file can tell whether it is being
10221 # built for inclusion in a dll (and should export symbols for example).
10222 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10223 # (--disable-auto-import) libraries
10224 lt_prog_compiler_pic='-DDLL_EXPORT'
10227 lt_prog_compiler_static='$wl-static'
10232 darwin* | rhapsody*)
10233 # PIC is the default on this platform
10234 # Common symbols not allowed in MH_DYLIB files
10235 lt_prog_compiler_pic='-fno-common'
10239 # PIC is the default for Haiku.
10240 # The "-static" flag exists, but is broken.
10241 lt_prog_compiler_static=
10245 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10246 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10247 # sets the default TLS model and affects inlining.
10253 lt_prog_compiler_pic='-fPIC'
10259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10260 # Instead, we relocate shared libraries at runtime.
10264 # Just because we use GCC doesn't mean we suddenly get shared libraries
10265 # on systems that don't support them.
10266 lt_prog_compiler_can_build_shared=no
10271 # QNX uses GNU C++, but need to define -shared option too, otherwise
10272 # it will coredump.
10273 lt_prog_compiler_pic='-fPIC -shared'
10277 if test -d /usr/nec; then
10278 lt_prog_compiler_pic=-Kconform_pic
10283 lt_prog_compiler_pic='-fPIC'
10287 case $cc_basename in
10288 nvcc*) # Cuda Compiler Driver 2.2
10289 lt_prog_compiler_wl='-Xlinker '
10290 if test -n "$lt_prog_compiler_pic"; then
10291 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10296 # PORTME Check for flag to pass linker flags through the system compiler.
10299 lt_prog_compiler_wl='-Wl,'
10300 if test ia64 = "$host_cpu"; then
10301 # AIX 5 now supports IA64 processor
10302 lt_prog_compiler_static='-Bstatic'
10304 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10308 darwin* | rhapsody*)
10309 # PIC is the default on this platform
10310 # Common symbols not allowed in MH_DYLIB files
10311 lt_prog_compiler_pic='-fno-common'
10312 case $cc_basename in
10314 # NAG Fortran compiler
10315 lt_prog_compiler_wl='-Wl,-Wl,,'
10316 lt_prog_compiler_pic='-PIC'
10317 lt_prog_compiler_static='-Bstatic'
10322 mingw* | cygwin* | pw32* | os2* | cegcc*)
10323 # This hack is so that the source file can tell whether it is being
10324 # built for inclusion in a dll (and should export symbols for example).
10325 lt_prog_compiler_pic='-DDLL_EXPORT'
10328 lt_prog_compiler_static='$wl-static'
10333 hpux9* | hpux10* | hpux11*)
10334 lt_prog_compiler_wl='-Wl,'
10335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10336 # not for PA HP-UX.
10342 lt_prog_compiler_pic='+Z'
10345 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10346 lt_prog_compiler_static='$wl-a ${wl}archive'
10349 irix5* | irix6* | nonstopux*)
10350 lt_prog_compiler_wl='-Wl,'
10351 # PIC (with -KPIC) is the default.
10352 lt_prog_compiler_static='-non_shared'
10355 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10356 case $cc_basename in
10357 # old Intel for x86_64, which still supported -KPIC.
10359 lt_prog_compiler_wl='-Wl,'
10360 lt_prog_compiler_pic='-KPIC'
10361 lt_prog_compiler_static='-static'
10363 # icc used to be incompatible with GCC.
10364 # ICC 10 doesn't accept -KPIC any more.
10366 lt_prog_compiler_wl='-Wl,'
10367 lt_prog_compiler_pic='-fPIC'
10368 lt_prog_compiler_static='-static'
10370 # Lahey Fortran 8.1.
10372 lt_prog_compiler_wl='-Wl,'
10373 lt_prog_compiler_pic='--shared'
10374 lt_prog_compiler_static='--static'
10377 # NAG Fortran compiler
10378 lt_prog_compiler_wl='-Wl,-Wl,,'
10379 lt_prog_compiler_pic='-PIC'
10380 lt_prog_compiler_static='-Bstatic'
10383 # Fabrice Bellard et al's Tiny C Compiler
10384 lt_prog_compiler_wl='-Wl,'
10385 lt_prog_compiler_pic='-fPIC'
10386 lt_prog_compiler_static='-static'
10388 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10389 # Portland Group compilers (*not* the Pentium gcc compiler,
10390 # which looks to be a dead project)
10391 lt_prog_compiler_wl='-Wl,'
10392 lt_prog_compiler_pic='-fpic'
10393 lt_prog_compiler_static='-Bstatic'
10396 lt_prog_compiler_wl='-Wl,'
10397 # All Alpha code is PIC.
10398 lt_prog_compiler_static='-non_shared'
10400 xl* | bgxl* | bgf* | mpixl*)
10401 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10402 lt_prog_compiler_wl='-Wl,'
10403 lt_prog_compiler_pic='-qpic'
10404 lt_prog_compiler_static='-qstaticlink'
10407 case `$CC -V 2>&1 | sed 5q` in
10408 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10409 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10410 lt_prog_compiler_pic='-KPIC'
10411 lt_prog_compiler_static='-Bstatic'
10412 lt_prog_compiler_wl=''
10414 *Sun\ F* | *Sun*Fortran*)
10415 lt_prog_compiler_pic='-KPIC'
10416 lt_prog_compiler_static='-Bstatic'
10417 lt_prog_compiler_wl='-Qoption ld '
10421 lt_prog_compiler_pic='-KPIC'
10422 lt_prog_compiler_static='-Bstatic'
10423 lt_prog_compiler_wl='-Wl,'
10425 *Intel*\ [CF]*Compiler*)
10426 lt_prog_compiler_wl='-Wl,'
10427 lt_prog_compiler_pic='-fPIC'
10428 lt_prog_compiler_static='-static'
10431 lt_prog_compiler_wl='-Wl,'
10432 lt_prog_compiler_pic='-fpic'
10433 lt_prog_compiler_static='-Bstatic'
10441 lt_prog_compiler_pic='-KPIC'
10442 lt_prog_compiler_static='-Bstatic'
10446 # QNX uses GNU C++, but need to define -shared option too, otherwise
10447 # it will coredump.
10448 lt_prog_compiler_pic='-fPIC -shared'
10451 osf3* | osf4* | osf5*)
10452 lt_prog_compiler_wl='-Wl,'
10453 # All OSF/1 code is PIC.
10454 lt_prog_compiler_static='-non_shared'
10458 lt_prog_compiler_static='-non_shared'
10462 lt_prog_compiler_pic='-KPIC'
10463 lt_prog_compiler_static='-Bstatic'
10464 case $cc_basename in
10465 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10466 lt_prog_compiler_wl='-Qoption ld ';;
10468 lt_prog_compiler_wl='-Wl,';;
10473 lt_prog_compiler_wl='-Qoption ld '
10474 lt_prog_compiler_pic='-PIC'
10475 lt_prog_compiler_static='-Bstatic'
10478 sysv4 | sysv4.2uw2* | sysv4.3*)
10479 lt_prog_compiler_wl='-Wl,'
10480 lt_prog_compiler_pic='-KPIC'
10481 lt_prog_compiler_static='-Bstatic'
10485 if test -d /usr/nec; then
10486 lt_prog_compiler_pic='-Kconform_pic'
10487 lt_prog_compiler_static='-Bstatic'
10491 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10492 lt_prog_compiler_wl='-Wl,'
10493 lt_prog_compiler_pic='-KPIC'
10494 lt_prog_compiler_static='-Bstatic'
10498 lt_prog_compiler_wl='-Wl,'
10499 lt_prog_compiler_can_build_shared=no
10503 lt_prog_compiler_pic='-pic'
10504 lt_prog_compiler_static='-Bstatic'
10508 lt_prog_compiler_can_build_shared=no
10514 # For platforms that do not support PIC, -DPIC is meaningless:
10516 lt_prog_compiler_pic=
10519 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10524 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10525 if ${lt_cv_prog_compiler_pic+:} false; then :
10526 $as_echo_n "(cached) " >&6
10528 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10531 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10532 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10535 # Check to make sure the PIC flag actually works.
10537 if test -n "$lt_prog_compiler_pic"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10539 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10540 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10541 $as_echo_n "(cached) " >&6
10543 lt_cv_prog_compiler_pic_works=no
10544 ac_outfile=conftest.$ac_objext
10545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10546 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10547 # Insert the option either (1) after the last *FLAGS variable, or
10548 # (2) before a word containing "conftest.", or (3) at the end.
10549 # Note that $ac_compile itself does not contain backslashes and begins
10550 # with a dollar sign (not a hyphen), so the echo should work correctly.
10551 # The option is referenced via a variable to avoid confusing sed.
10552 lt_compile=`echo "$ac_compile" | $SED \
10553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10555 -e 's:$: $lt_compiler_flag:'`
10556 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10557 (eval "$lt_compile" 2>conftest.err)
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 if (exit $ac_status) && test -s "$ac_outfile"; then
10562 # The compiler can only warn and ignore the option if not recognized
10563 # So say no if there are warnings other than the usual output.
10564 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10567 lt_cv_prog_compiler_pic_works=yes
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10574 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10576 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10577 case $lt_prog_compiler_pic in
10579 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10582 lt_prog_compiler_pic=
10583 lt_prog_compiler_can_build_shared=no
10599 # Check to make sure the static flag actually works.
10601 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10603 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10604 if ${lt_cv_prog_compiler_static_works+:} false; then :
10605 $as_echo_n "(cached) " >&6
10607 lt_cv_prog_compiler_static_works=no
10608 save_LDFLAGS=$LDFLAGS
10609 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10610 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10611 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10612 # The linker can only warn and ignore the option if not recognized
10613 # So say no if there are warnings
10614 if test -s conftest.err; then
10615 # Append any errors to the config.log.
10616 cat conftest.err 1>&5
10617 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10619 if diff conftest.exp conftest.er2 >/dev/null; then
10620 lt_cv_prog_compiler_static_works=yes
10623 lt_cv_prog_compiler_static_works=yes
10627 LDFLAGS=$save_LDFLAGS
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10631 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10633 if test yes = "$lt_cv_prog_compiler_static_works"; then
10636 lt_prog_compiler_static=
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10646 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10647 if ${lt_cv_prog_compiler_c_o+:} false; then :
10648 $as_echo_n "(cached) " >&6
10650 lt_cv_prog_compiler_c_o=no
10651 $RM -r conftest 2>/dev/null
10655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10657 lt_compiler_flag="-o out/conftest2.$ac_objext"
10658 # Insert the option either (1) after the last *FLAGS variable, or
10659 # (2) before a word containing "conftest.", or (3) at the end.
10660 # Note that $ac_compile itself does not contain backslashes and begins
10661 # with a dollar sign (not a hyphen), so the echo should work correctly.
10662 lt_compile=`echo "$ac_compile" | $SED \
10663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10665 -e 's:$: $lt_compiler_flag:'`
10666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10667 (eval "$lt_compile" 2>out/conftest.err)
10669 cat out/conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10673 # The compiler can only warn and ignore the option if not recognized
10674 # So say no if there are warnings
10675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10678 lt_cv_prog_compiler_c_o=yes
10683 # SGI C++ compiler will create directory out/ii_files/ for
10684 # template instantiation
10685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10686 $RM out/* && rmdir out
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10693 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10701 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10702 if ${lt_cv_prog_compiler_c_o+:} false; then :
10703 $as_echo_n "(cached) " >&6
10705 lt_cv_prog_compiler_c_o=no
10706 $RM -r conftest 2>/dev/null
10710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10712 lt_compiler_flag="-o out/conftest2.$ac_objext"
10713 # Insert the option either (1) after the last *FLAGS variable, or
10714 # (2) before a word containing "conftest.", or (3) at the end.
10715 # Note that $ac_compile itself does not contain backslashes and begins
10716 # with a dollar sign (not a hyphen), so the echo should work correctly.
10717 lt_compile=`echo "$ac_compile" | $SED \
10718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10720 -e 's:$: $lt_compiler_flag:'`
10721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10722 (eval "$lt_compile" 2>out/conftest.err)
10724 cat out/conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10728 # The compiler can only warn and ignore the option if not recognized
10729 # So say no if there are warnings
10730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10731 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10732 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10733 lt_cv_prog_compiler_c_o=yes
10738 # SGI C++ compiler will create directory out/ii_files/ for
10739 # template instantiation
10740 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10741 $RM out/* && rmdir out
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10748 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10753 hard_links=nottested
10754 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10755 # do not overwrite the value of need_locks provided by the user
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10757 $as_echo_n "checking if we can lock with hard links... " >&6; }
10760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10762 ln conftest.a conftest.b 2>&5 || hard_links=no
10763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10765 $as_echo "$hard_links" >&6; }
10766 if test no = "$hard_links"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10768 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10781 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10784 allow_undefined_flag=
10785 always_export_symbols=no
10787 archive_expsym_cmds=
10788 compiler_needs_object=no
10789 enable_shared_with_static_runtimes=no
10790 export_dynamic_flag_spec=
10791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10792 hardcode_automatic=no
10794 hardcode_direct_absolute=no
10795 hardcode_libdir_flag_spec=
10796 hardcode_libdir_separator=
10797 hardcode_minus_L=no
10798 hardcode_shlibpath_var=unsupported
10800 link_all_deplibs=unknown
10802 module_expsym_cmds=
10803 old_archive_from_new_cmds=
10804 old_archive_from_expsyms_cmds=
10805 thread_safe_flag_spec=
10806 whole_archive_flag_spec=
10807 # include_expsyms should be a list of space-separated symbols to be *always*
10808 # included in the symbol list
10810 # exclude_expsyms can be an extended regexp of symbols to exclude
10811 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10812 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10813 # as well as any symbol that contains 'd'.
10814 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10815 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10816 # platforms (ab)use it in PIC code, but their linkers get confused if
10817 # the symbol is explicitly referenced. Since portable code cannot
10818 # rely on this symbol name, it's probably fine to never include it in
10819 # preloaded symbol tables.
10820 # Exclude shared library initialization/finalization symbols.
10821 extract_expsyms_cmds=
10824 cygwin* | mingw* | pw32* | cegcc*)
10825 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10826 # When not using gcc, we currently assume that we are using
10827 # Microsoft Visual C++.
10828 if test yes != "$GCC"; then
10833 # we just hope/assume this is gcc and not c89 (= MSVC++)
10836 openbsd* | bitrig*)
10839 linux* | k*bsd*-gnu | gnu*)
10840 link_all_deplibs=no
10846 # On some targets, GNU ld is compatible enough with the native linker
10847 # that we're better off using the native interface for both.
10848 lt_use_gnu_ld_interface=no
10849 if test yes = "$with_gnu_ld"; then
10852 # The AIX port of GNU ld has always aspired to compatibility
10853 # with the native linker. However, as the warning in the GNU ld
10854 # block says, versions before 2.19.5* couldn't really create working
10855 # shared libraries, regardless of the interface used.
10856 case `$LD -v 2>&1` in
10857 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10858 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10859 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10861 lt_use_gnu_ld_interface=yes
10866 lt_use_gnu_ld_interface=yes
10871 if test yes = "$lt_use_gnu_ld_interface"; then
10872 # If archive_cmds runs LD, not CC, wlarc should be empty
10875 # Set some defaults for GNU ld with shared library support. These
10876 # are reset later if shared libraries are not supported. Putting them
10877 # here allows them to be overridden if necessary.
10878 runpath_var=LD_RUN_PATH
10879 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10880 export_dynamic_flag_spec='$wl--export-dynamic'
10881 # ancient GNU ld didn't support --whole-archive et. al.
10882 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10883 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10885 whole_archive_flag_spec=
10887 supports_anon_versioning=no
10888 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10889 *GNU\ gold*) supports_anon_versioning=yes ;;
10890 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10891 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10892 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10893 *\ 2.11.*) ;; # other 2.11 versions
10894 *) supports_anon_versioning=yes ;;
10897 # See if GNU ld supports shared libraries.
10900 # On AIX/PPC, the GNU linker is very broken
10901 if test ia64 != "$host_cpu"; then
10905 *** Warning: the GNU linker, at least up to release 2.19, is reported
10906 *** to be unable to reliably create shared libraries on AIX.
10907 *** Therefore, libtool is disabling shared libraries support. If you
10908 *** really care for shared libraries, you may want to install binutils
10909 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10910 *** You will then need to restart the configuration process.
10919 # see comment about AmigaOS4 .so support
10920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10921 archive_expsym_cmds=''
10924 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)'
10925 hardcode_libdir_flag_spec='-L$libdir'
10926 hardcode_minus_L=yes
10932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10933 allow_undefined_flag=unsupported
10934 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10935 # support --undefined. This deserves some investigation. FIXME
10936 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10942 cygwin* | mingw* | pw32* | cegcc*)
10943 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10944 # as there is no search path for DLLs.
10945 hardcode_libdir_flag_spec='-L$libdir'
10946 export_dynamic_flag_spec='$wl--export-all-symbols'
10947 allow_undefined_flag=unsupported
10948 always_export_symbols=no
10949 enable_shared_with_static_runtimes=yes
10950 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'
10951 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10953 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10955 # If the export-symbols file already is a .def file, use it as
10956 # is; otherwise, prepend EXPORTS...
10957 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10958 cp $export_symbols $output_objdir/$soname.def;
10960 echo EXPORTS > $output_objdir/$soname.def;
10961 cat $export_symbols >> $output_objdir/$soname.def;
10963 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10971 link_all_deplibs=yes
10975 hardcode_libdir_flag_spec='-L$libdir'
10976 hardcode_minus_L=yes
10977 allow_undefined_flag=unsupported
10979 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10980 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10981 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10982 $ECHO EXPORTS >> $output_objdir/$libname.def~
10983 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10984 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10985 emximp -o $lib $output_objdir/$libname.def'
10986 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10987 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10988 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10989 $ECHO EXPORTS >> $output_objdir/$libname.def~
10990 prefix_cmds="$SED"~
10991 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10992 prefix_cmds="$prefix_cmds -e 1d";
10994 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10995 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10996 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10997 emximp -o $lib $output_objdir/$libname.def'
10998 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10999 enable_shared_with_static_runtimes=yes
11004 hardcode_shlibpath_var=no
11005 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11006 export_dynamic_flag_spec='$wl-E'
11007 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11008 # Instead, shared libraries are loaded at an image base (0x10000000 by
11009 # default) and relocated if they conflict, which is a slow very memory
11010 # consuming and fragmenting process. To avoid this, we pick a random,
11011 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11012 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11013 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11014 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'
11017 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11019 if test linux-dietlibc = "$host_os"; then
11020 case $cc_basename in
11021 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11024 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11025 && test no = "$tmp_diet"
11027 tmp_addflag=' $pic_flag'
11028 tmp_sharedflag='-shared'
11029 case $cc_basename,$host_cpu in
11030 pgcc*) # Portland Group C compiler
11031 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'
11032 tmp_addflag=' $pic_flag'
11034 pgf77* | pgf90* | pgf95* | pgfortran*)
11035 # Portland Group f77 and f90 compilers
11036 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'
11037 tmp_addflag=' $pic_flag -Mnomain' ;;
11038 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11039 tmp_addflag=' -i_dynamic' ;;
11040 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11041 tmp_addflag=' -i_dynamic -nofor_main' ;;
11042 ifc* | ifort*) # Intel Fortran compiler
11043 tmp_addflag=' -nofor_main' ;;
11044 lf95*) # Lahey Fortran 8.1
11045 whole_archive_flag_spec=
11046 tmp_sharedflag='--shared' ;;
11047 nagfor*) # NAGFOR 5.3
11048 tmp_sharedflag='-Wl,-shared' ;;
11049 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11050 tmp_sharedflag='-qmkshrobj'
11052 nvcc*) # Cuda Compiler Driver 2.2
11053 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'
11054 compiler_needs_object=yes
11057 case `$CC -V 2>&1 | sed 5q` in
11058 *Sun\ C*) # Sun C 5.9
11059 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'
11060 compiler_needs_object=yes
11061 tmp_sharedflag='-G' ;;
11062 *Sun\ F*) # Sun Fortran 8.3
11063 tmp_sharedflag='-G' ;;
11065 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11067 if test yes = "$supports_anon_versioning"; then
11068 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11070 echo "local: *; };" >> $output_objdir/$libname.ver~
11071 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11074 case $cc_basename in
11076 export_dynamic_flag_spec='-rdynamic'
11078 xlf* | bgf* | bgxlf* | mpixlf*)
11079 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11080 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11081 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11082 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11083 if test yes = "$supports_anon_versioning"; then
11084 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11085 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11086 echo "local: *; };" >> $output_objdir/$libname.ver~
11087 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11096 netbsd* | netbsdelf*-gnu)
11097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11098 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11102 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11107 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11111 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11112 *** create shared libraries on Solaris systems. Therefore, libtool
11113 *** is disabling shared libraries support. We urge you to upgrade GNU
11114 *** binutils to release 2.9.1 or newer. Another option is to modify
11115 *** your PATH or compiler configuration so that the native linker is
11116 *** used, and then restart.
11119 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11121 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11128 case `$LD -v 2>&1` in
11129 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11133 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11134 *** reliably create shared libraries on SCO systems. Therefore, libtool
11135 *** is disabling shared libraries support. We urge you to upgrade GNU
11136 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11137 *** your PATH or compiler configuration so that the native linker is
11138 *** used, and then restart.
11143 # For security reasons, it is highly recommended that you always
11144 # use absolute paths for naming shared libraries, and exclude the
11145 # DT_RUNPATH tag from executables and libraries. But doing so
11146 # requires that you compile everything twice, which is a pain.
11147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11159 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11161 hardcode_direct=yes
11162 hardcode_shlibpath_var=no
11166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11168 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11175 if test no = "$ld_shlibs"; then
11177 hardcode_libdir_flag_spec=
11178 export_dynamic_flag_spec=
11179 whole_archive_flag_spec=
11182 # PORTME fill in a description of your system's linker (not GNU ld)
11185 allow_undefined_flag=unsupported
11186 always_export_symbols=yes
11187 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'
11188 # Note: this linker hardcodes the directories in LIBPATH if there
11189 # are no directories specified by -L.
11190 hardcode_minus_L=yes
11191 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11192 # Neither direct hardcoding nor static linking is supported with a
11194 hardcode_direct=unsupported
11199 if test ia64 = "$host_cpu"; then
11200 # On IA64, the linker does run time linking by default, so we don't
11201 # have to do anything special.
11202 aix_use_runtimelinking=no
11203 exp_sym_flag='-Bexport'
11206 # If we're using GNU nm, then we don't want the "-C" option.
11207 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11208 # Without the "-l" option, or with the "-B" option, AIX nm treats
11209 # weak defined symbols like other global defined symbols, whereas
11210 # GNU nm marks them as "W".
11211 # While the 'weak' keyword is ignored in the Export File, we need
11212 # it in the Import File for the 'aix-soname' feature, so we have
11213 # to replace the "-B" option with "-P" for AIX nm.
11214 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11215 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'
11217 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 == "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'
11219 aix_use_runtimelinking=no
11221 # Test if we are trying to use run time linking or normal
11222 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11223 # have runtime linking enabled, and use it for executables.
11224 # For shared libraries, we enable/disable runtime linking
11225 # depending on the kind of the shared library created -
11226 # when "with_aix_soname,aix_use_runtimelinking" is:
11227 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11228 # "aix,yes" lib.so shared, rtl:yes, for executables
11229 # lib.a static archive
11230 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11231 # lib.a(lib.so.V) shared, rtl:no, for executables
11232 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11233 # lib.a(lib.so.V) shared, rtl:no
11234 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11235 # lib.a static archive
11236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11237 for ld_flag in $LDFLAGS; do
11238 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11239 aix_use_runtimelinking=yes
11243 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11244 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11245 # so we don't have lib.a shared libs to link our executables.
11246 # We have to force runtime linking in this case.
11247 aix_use_runtimelinking=yes
11248 LDFLAGS="$LDFLAGS -Wl,-brtl"
11253 exp_sym_flag='-bexport'
11254 no_entry_flag='-bnoentry'
11257 # When large executables or shared objects are built, AIX ld can
11258 # have problems creating the table of contents. If linking a library
11259 # or program results in "error TOC overflow" add -mminimal-toc to
11260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11264 hardcode_direct=yes
11265 hardcode_direct_absolute=yes
11266 hardcode_libdir_separator=':'
11267 link_all_deplibs=yes
11268 file_list_spec='$wl-f,'
11269 case $with_aix_soname,$aix_use_runtimelinking in
11270 aix,*) ;; # traditional, no import file
11271 svr4,* | *,yes) # use import file
11272 # The Import File defines what to hardcode.
11274 hardcode_direct_absolute=no
11278 if test yes = "$GCC"; then
11279 case $host_os in aix4.[012]|aix4.[012].*)
11280 # We only want to do this on AIX 4.2 and lower, the check
11281 # below for broken collect2 doesn't work under 4.3+
11282 collect2name=`$CC -print-prog-name=collect2`
11283 if test -f "$collect2name" &&
11284 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11286 # We have reworked collect2
11289 # We have old collect2
11290 hardcode_direct=unsupported
11291 # It fails to find uninstalled libraries when the uninstalled
11292 # path is not listed in the libpath. Setting hardcode_minus_L
11293 # to unsupported forces relinking
11294 hardcode_minus_L=yes
11295 hardcode_libdir_flag_spec='-L$libdir'
11296 hardcode_libdir_separator=
11300 shared_flag='-shared'
11301 if test yes = "$aix_use_runtimelinking"; then
11302 shared_flag="$shared_flag "'$wl-G'
11304 # Need to ensure runtime linking is disabled for the traditional
11305 # shared library, or the linker may eventually find shared libraries
11306 # /with/ Import File - we do not want to mix them.
11307 shared_flag_aix='-shared'
11308 shared_flag_svr4='-shared $wl-G'
11311 if test ia64 = "$host_cpu"; then
11312 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11313 # chokes on -Wl,-G. The following line is correct:
11316 if test yes = "$aix_use_runtimelinking"; then
11317 shared_flag='$wl-G'
11319 shared_flag='$wl-bM:SRE'
11321 shared_flag_aix='$wl-bM:SRE'
11322 shared_flag_svr4='$wl-G'
11326 export_dynamic_flag_spec='$wl-bexpall'
11327 # It seems that -bexpall does not export symbols beginning with
11328 # underscore (_), so it is better to generate a list of symbols to export.
11329 always_export_symbols=yes
11330 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11331 # Warning - without using the other runtime loading flags (-brtl),
11332 # -berok will link without error, but may produce a broken library.
11333 allow_undefined_flag='-berok'
11334 # Determine the default libpath from the value encoded in an
11335 # empty executable.
11336 if test set = "${lt_cv_aix_libpath+set}"; then
11337 aix_libpath=$lt_cv_aix_libpath
11339 if ${lt_cv_aix_libpath_+:} false; then :
11340 $as_echo_n "(cached) " >&6
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11353 if ac_fn_c_try_link "$LINENO"; then :
11355 lt_aix_libpath_sed='
11356 /Import File Strings/,/^$/ {
11358 s/^0 *\([^ ]*\) *$/\1/
11362 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11363 # Check for a 64-bit object if we didn't find anything.
11364 if test -z "$lt_cv_aix_libpath_"; then
11365 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 if test -z "$lt_cv_aix_libpath_"; then
11371 lt_cv_aix_libpath_=/usr/lib:/lib
11376 aix_libpath=$lt_cv_aix_libpath_
11379 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11380 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
11382 if test ia64 = "$host_cpu"; then
11383 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11384 allow_undefined_flag="-z nodefs"
11385 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"
11387 # Determine the default libpath from the value encoded in an
11388 # empty executable.
11389 if test set = "${lt_cv_aix_libpath+set}"; then
11390 aix_libpath=$lt_cv_aix_libpath
11392 if ${lt_cv_aix_libpath_+:} false; then :
11393 $as_echo_n "(cached) " >&6
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11406 if ac_fn_c_try_link "$LINENO"; then :
11408 lt_aix_libpath_sed='
11409 /Import File Strings/,/^$/ {
11411 s/^0 *\([^ ]*\) *$/\1/
11415 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11416 # Check for a 64-bit object if we didn't find anything.
11417 if test -z "$lt_cv_aix_libpath_"; then
11418 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 if test -z "$lt_cv_aix_libpath_"; then
11424 lt_cv_aix_libpath_=/usr/lib:/lib
11429 aix_libpath=$lt_cv_aix_libpath_
11432 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11433 # Warning - without using the other run time loading flags,
11434 # -berok will link without error, but may produce a broken library.
11435 no_undefined_flag=' $wl-bernotok'
11436 allow_undefined_flag=' $wl-berok'
11437 if test yes = "$with_gnu_ld"; then
11438 # We only use this code for GNU lds that support --whole-archive.
11439 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11441 # Exported symbols can be pulled into shared objects from archives
11442 whole_archive_flag_spec='$convenience'
11444 archive_cmds_need_lc=yes
11445 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11446 # -brtl affects multiple linker settings, -berok does not and is overridden later
11447 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11448 if test svr4 != "$with_aix_soname"; then
11449 # This is similar to how AIX traditionally builds its shared libraries.
11450 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'
11452 if test aix != "$with_aix_soname"; then
11453 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'
11455 # used by -dlpreopen to get the symbols
11456 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11458 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11466 # see comment about AmigaOS4 .so support
11467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11468 archive_expsym_cmds=''
11471 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)'
11472 hardcode_libdir_flag_spec='-L$libdir'
11473 hardcode_minus_L=yes
11479 export_dynamic_flag_spec=-rdynamic
11482 cygwin* | mingw* | pw32* | cegcc*)
11483 # When not using gcc, we currently assume that we are using
11484 # Microsoft Visual C++.
11485 # hardcode_libdir_flag_spec is actually meaningless, as there is
11486 # no search path for DLLs.
11487 case $cc_basename in
11490 hardcode_libdir_flag_spec=' '
11491 allow_undefined_flag=unsupported
11492 always_export_symbols=yes
11494 # Tell ltmain to make .lib files, not .a files.
11496 # Tell ltmain to make .dll files, not .so files.
11498 # FIXME: Setting linknames here is a bad hack.
11499 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11500 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11501 cp "$export_symbols" "$output_objdir/$soname.def";
11502 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11504 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11506 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11508 # The linker will not automatically build a static lib if we build a DLL.
11509 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11510 enable_shared_with_static_runtimes=yes
11511 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11512 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11514 old_postinstall_cmds='chmod 644 $oldlib'
11515 postlink_cmds='lt_outputfile="@OUTPUT@"~
11516 lt_tool_outputfile="@TOOL_OUTPUT@"~
11517 case $lt_outputfile in
11520 lt_outputfile=$lt_outputfile.exe
11521 lt_tool_outputfile=$lt_tool_outputfile.exe
11524 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11525 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11526 $RM "$lt_outputfile.manifest";
11530 # Assume MSVC wrapper
11531 hardcode_libdir_flag_spec=' '
11532 allow_undefined_flag=unsupported
11533 # Tell ltmain to make .lib files, not .a files.
11535 # Tell ltmain to make .dll files, not .so files.
11537 # FIXME: Setting linknames here is a bad hack.
11538 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11539 # The linker will automatically build a .lib file if we build a DLL.
11540 old_archive_from_new_cmds='true'
11541 # FIXME: Should let the user specify the lib program.
11542 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11543 enable_shared_with_static_runtimes=yes
11548 darwin* | rhapsody*)
11551 archive_cmds_need_lc=no
11553 hardcode_automatic=yes
11554 hardcode_shlibpath_var=unsupported
11555 if test yes = "$lt_cv_ld_force_load"; then
11556 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\"`'
11559 whole_archive_flag_spec=''
11561 link_all_deplibs=yes
11562 allow_undefined_flag=$_lt_dar_allow_undefined
11563 case $cc_basename in
11564 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11565 *) _lt_dar_can_shared=$GCC ;;
11567 if test yes = "$_lt_dar_can_shared"; then
11568 output_verbose_link_cmd=func_echo_all
11569 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11570 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11571 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"
11572 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"
11581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11582 hardcode_libdir_flag_spec='-L$libdir'
11583 hardcode_shlibpath_var=no
11586 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11587 # support. Future versions do this automatically, but an explicit c++rt0.o
11588 # does not break anything, and helps significantly (at the cost of a little
11591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11592 hardcode_libdir_flag_spec='-R$libdir'
11593 hardcode_direct=yes
11594 hardcode_shlibpath_var=no
11597 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11600 hardcode_direct=yes
11601 hardcode_minus_L=yes
11602 hardcode_shlibpath_var=no
11605 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11606 freebsd* | dragonfly*)
11607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11608 hardcode_libdir_flag_spec='-R$libdir'
11609 hardcode_direct=yes
11610 hardcode_shlibpath_var=no
11614 if test yes = "$GCC"; then
11615 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'
11617 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'
11619 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11620 hardcode_libdir_separator=:
11621 hardcode_direct=yes
11623 # hardcode_minus_L: Not really in the search PATH,
11624 # but as the default location of the library.
11625 hardcode_minus_L=yes
11626 export_dynamic_flag_spec='$wl-E'
11630 if test yes,no = "$GCC,$with_gnu_ld"; then
11631 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11633 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11635 if test no = "$with_gnu_ld"; then
11636 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11637 hardcode_libdir_separator=:
11638 hardcode_direct=yes
11639 hardcode_direct_absolute=yes
11640 export_dynamic_flag_spec='$wl-E'
11641 # hardcode_minus_L: Not really in the search PATH,
11642 # but as the default location of the library.
11643 hardcode_minus_L=yes
11648 if test yes,no = "$GCC,$with_gnu_ld"; then
11651 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11654 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11657 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11663 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11666 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11670 # Older versions of the 11.00 compiler do not understand -b yet
11671 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11673 $as_echo_n "checking if $CC understands -b... " >&6; }
11674 if ${lt_cv_prog_compiler__b+:} false; then :
11675 $as_echo_n "(cached) " >&6
11677 lt_cv_prog_compiler__b=no
11678 save_LDFLAGS=$LDFLAGS
11679 LDFLAGS="$LDFLAGS -b"
11680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11682 # The linker can only warn and ignore the option if not recognized
11683 # So say no if there are warnings
11684 if test -s conftest.err; then
11685 # Append any errors to the config.log.
11686 cat conftest.err 1>&5
11687 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11689 if diff conftest.exp conftest.er2 >/dev/null; then
11690 lt_cv_prog_compiler__b=yes
11693 lt_cv_prog_compiler__b=yes
11697 LDFLAGS=$save_LDFLAGS
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11701 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11703 if test yes = "$lt_cv_prog_compiler__b"; then
11704 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11706 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11712 if test no = "$with_gnu_ld"; then
11713 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11714 hardcode_libdir_separator=:
11719 hardcode_shlibpath_var=no
11722 hardcode_direct=yes
11723 hardcode_direct_absolute=yes
11724 export_dynamic_flag_spec='$wl-E'
11726 # hardcode_minus_L: Not really in the search PATH,
11727 # but as the default location of the library.
11728 hardcode_minus_L=yes
11734 irix5* | irix6* | nonstopux*)
11735 if test yes = "$GCC"; then
11736 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'
11737 # Try to use the -exported_symbol ld option, if it does not
11738 # work, assume that -exports_file does not work either and
11739 # implicitly export all symbols.
11740 # This should be the same for all languages, so no per-tag cache variable.
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11742 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11743 if ${lt_cv_irix_exported_symbol+:} false; then :
11744 $as_echo_n "(cached) " >&6
11746 save_LDFLAGS=$LDFLAGS
11747 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11750 int foo (void) { return 0; }
11752 if ac_fn_c_try_link "$LINENO"; then :
11753 lt_cv_irix_exported_symbol=yes
11755 lt_cv_irix_exported_symbol=no
11757 rm -f core conftest.err conftest.$ac_objext \
11758 conftest$ac_exeext conftest.$ac_ext
11759 LDFLAGS=$save_LDFLAGS
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11762 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11763 if test yes = "$lt_cv_irix_exported_symbol"; then
11764 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'
11766 link_all_deplibs=no
11768 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'
11769 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'
11771 archive_cmds_need_lc='no'
11772 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11773 hardcode_libdir_separator=:
11775 link_all_deplibs=yes
11779 case $cc_basename in
11781 # Fabrice Bellard et al's Tiny C Compiler
11783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11788 netbsd* | netbsdelf*-gnu)
11789 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11792 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11794 hardcode_libdir_flag_spec='-R$libdir'
11795 hardcode_direct=yes
11796 hardcode_shlibpath_var=no
11800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11801 hardcode_direct=yes
11802 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11803 hardcode_libdir_separator=:
11804 hardcode_shlibpath_var=no
11810 openbsd* | bitrig*)
11811 if test -f /usr/libexec/ld.so; then
11812 hardcode_direct=yes
11813 hardcode_shlibpath_var=no
11814 hardcode_direct_absolute=yes
11815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11816 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11817 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11818 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11819 export_dynamic_flag_spec='$wl-E'
11821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11822 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11830 hardcode_libdir_flag_spec='-L$libdir'
11831 hardcode_minus_L=yes
11832 allow_undefined_flag=unsupported
11834 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11835 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11836 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11837 $ECHO EXPORTS >> $output_objdir/$libname.def~
11838 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11839 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11840 emximp -o $lib $output_objdir/$libname.def'
11841 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11842 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11843 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11844 $ECHO EXPORTS >> $output_objdir/$libname.def~
11845 prefix_cmds="$SED"~
11846 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11847 prefix_cmds="$prefix_cmds -e 1d";
11849 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11850 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11851 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11852 emximp -o $lib $output_objdir/$libname.def'
11853 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11854 enable_shared_with_static_runtimes=yes
11858 if test yes = "$GCC"; then
11859 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11860 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'
11862 allow_undefined_flag=' -expect_unresolved \*'
11863 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'
11865 archive_cmds_need_lc='no'
11866 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11867 hardcode_libdir_separator=:
11870 osf4* | osf5*) # as osf3* with the addition of -msym flag
11871 if test yes = "$GCC"; then
11872 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11873 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'
11874 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11876 allow_undefined_flag=' -expect_unresolved \*'
11877 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'
11878 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~
11879 $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'
11881 # Both c and cxx compiler support -rpath directly
11882 hardcode_libdir_flag_spec='-rpath $libdir'
11884 archive_cmds_need_lc='no'
11885 hardcode_libdir_separator=:
11889 no_undefined_flag=' -z defs'
11890 if test yes = "$GCC"; then
11892 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11894 $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'
11896 case `$CC -V 2>&1` in
11899 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11900 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11901 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11905 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11907 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11911 hardcode_libdir_flag_spec='-R$libdir'
11912 hardcode_shlibpath_var=no
11914 solaris2.[0-5] | solaris2.[0-5].*) ;;
11916 # The compiler driver will combine and reorder linker options,
11917 # but understands '-z linker_flag'. GCC discards it without '$wl',
11918 # but is careful enough not to reorder.
11919 # Supported since Solaris 2.6 (maybe 2.5.1?)
11920 if test yes = "$GCC"; then
11921 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11923 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11927 link_all_deplibs=yes
11931 if test sequent = "$host_vendor"; then
11932 # Use $CC to link under sequent, because it throws in some extra .o
11933 # files that make .init and .fini sections work.
11934 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11936 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11938 hardcode_libdir_flag_spec='-L$libdir'
11939 hardcode_direct=yes
11940 hardcode_minus_L=yes
11941 hardcode_shlibpath_var=no
11945 case $host_vendor in
11947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11948 hardcode_direct=yes # is this really true???
11951 ## LD is ld it makes a PLAMLIB
11952 ## CC just makes a GrossModule.
11953 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11954 reload_cmds='$CC -r -o $output$reload_objs'
11958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11959 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11962 runpath_var='LD_RUN_PATH'
11963 hardcode_shlibpath_var=no
11967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11968 hardcode_shlibpath_var=no
11969 export_dynamic_flag_spec='-Bexport'
11973 if test -d /usr/nec; then
11974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11975 hardcode_shlibpath_var=no
11976 runpath_var=LD_RUN_PATH
11977 hardcode_runpath_var=yes
11982 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11983 no_undefined_flag='$wl-z,text'
11984 archive_cmds_need_lc=no
11985 hardcode_shlibpath_var=no
11986 runpath_var='LD_RUN_PATH'
11988 if test yes = "$GCC"; then
11989 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11990 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11993 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11997 sysv5* | sco3.2v5* | sco5v6*)
11998 # Note: We CANNOT use -z defs as we might desire, because we do not
11999 # link with -lc, and that would cause any symbols used from libc to
12000 # always be unresolved, which means just about no library would
12001 # ever link correctly. If we're not using GNU ld we use -z text
12002 # though, which does catch some bad symbols but isn't as heavy-handed
12004 no_undefined_flag='$wl-z,text'
12005 allow_undefined_flag='$wl-z,nodefs'
12006 archive_cmds_need_lc=no
12007 hardcode_shlibpath_var=no
12008 hardcode_libdir_flag_spec='$wl-R,$libdir'
12009 hardcode_libdir_separator=':'
12010 link_all_deplibs=yes
12011 export_dynamic_flag_spec='$wl-Bexport'
12012 runpath_var='LD_RUN_PATH'
12014 if test yes = "$GCC"; then
12015 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12016 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12018 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12019 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12025 hardcode_libdir_flag_spec='-L$libdir'
12026 hardcode_shlibpath_var=no
12034 if test sni = "$host_vendor"; then
12036 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12037 export_dynamic_flag_spec='$wl-Blargedynsym'
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12044 $as_echo "$ld_shlibs" >&6; }
12045 test no = "$ld_shlibs" && can_build_shared=no
12047 with_gnu_ld=$with_gnu_ld
12064 # Do we need to explicitly link libc?
12066 case "x$archive_cmds_need_lc" in
12068 # Assume -lc should be added
12069 archive_cmds_need_lc=yes
12071 if test yes,yes = "$GCC,$enable_shared"; then
12072 case $archive_cmds in
12074 # FIXME: we may have to deal with multi-command sequences.
12077 # Test whether the compiler implicitly links with -lc since on some
12078 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12079 # to ld, don't add -lc before -lgcc.
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12081 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12082 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12083 $as_echo_n "(cached) " >&6
12086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12089 (eval $ac_compile) 2>&5
12091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12092 test $ac_status = 0; } 2>conftest.err; then
12095 libobjs=conftest.$ac_objext
12097 wl=$lt_prog_compiler_wl
12098 pic_flag=$lt_prog_compiler_pic
12104 lt_save_allow_undefined_flag=$allow_undefined_flag
12105 allow_undefined_flag=
12106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12107 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12110 test $ac_status = 0; }
12112 lt_cv_archive_cmds_need_lc=no
12114 lt_cv_archive_cmds_need_lc=yes
12116 allow_undefined_flag=$lt_save_allow_undefined_flag
12118 cat conftest.err 1>&5
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12124 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12125 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12284 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12286 if test yes = "$GCC"; then
12288 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12289 *) lt_awk_arg='/^libraries:/' ;;
12292 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12293 *) lt_sed_strip_eq='s|=/|/|g' ;;
12295 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12296 case $lt_search_path_spec in
12298 # if the path contains ";" then we assume it to be the separator
12299 # otherwise default to the standard path separator (i.e. ":") - it is
12300 # assumed that no part of a normal pathname contains ";" but that should
12301 # okay in the real world where ";" in dirpaths is itself problematic.
12302 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12308 # Ok, now we have the path, separated by spaces, we can step through it
12309 # and add multilib dir if necessary...
12310 lt_tmp_lt_search_path_spec=
12311 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12312 # ...but if some path component already ends with the multilib dir we assume
12313 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12314 case "$lt_multi_os_dir; $lt_search_path_spec " in
12315 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12319 for lt_sys_path in $lt_search_path_spec; do
12320 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12321 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12322 elif test -n "$lt_multi_os_dir"; then
12323 test -d "$lt_sys_path" && \
12324 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12327 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12328 BEGIN {RS = " "; FS = "/|\n";} {
12331 for (lt_i = NF; lt_i > 0; lt_i--) {
12332 if ($lt_i != "" && $lt_i != ".") {
12333 if ($lt_i == "..") {
12336 if (lt_count == 0) {
12337 lt_foo = "/" $lt_i lt_foo;
12344 if (lt_foo != "") { lt_freq[lt_foo]++; }
12345 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12347 # AWK program above erroneously prepends '/' to C:/dos/paths
12350 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12351 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12353 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12355 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12357 library_names_spec=
12358 libname_spec='lib$name'
12362 postuninstall_cmds=
12366 shlibpath_overrides_runpath=unknown
12368 dynamic_linker="$host_os ld.so"
12369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12370 need_lib_prefix=unknown
12371 hardcode_into_libs=no
12373 # when you set need_version to no, make sure it does not cause -set_version
12374 # flags to be left without arguments
12375 need_version=unknown
12381 version_type=linux # correct to gnu/linux during the next big refactor
12382 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12383 shlibpath_var=LIBPATH
12385 # AIX 3 has no versioning support, so we append a major version to the name.
12386 soname_spec='$libname$release$shared_ext$major'
12390 version_type=linux # correct to gnu/linux during the next big refactor
12393 hardcode_into_libs=yes
12394 if test ia64 = "$host_cpu"; then
12395 # AIX 5 supports IA64
12396 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12397 shlibpath_var=LD_LIBRARY_PATH
12399 # With GCC up to 2.95.x, collect2 would create an import file
12400 # for dependence libraries. The import file would start with
12401 # the line '#! .'. This would cause the generated library to
12402 # depend on '.', always an invalid library. This was fixed in
12403 # development snapshots of GCC prior to 3.0.
12405 aix4 | aix4.[01] | aix4.[01].*)
12406 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12408 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12411 can_build_shared=no
12415 # Using Import Files as archive members, it is possible to support
12416 # filename-based versioning of shared library archives on AIX. While
12417 # this would work for both with and without runtime linking, it will
12418 # prevent static linking of such archives. So we do filename-based
12419 # shared library versioning with .so extension only, which is used
12420 # when both runtime linking and shared linking is enabled.
12421 # Unfortunately, runtime linking may impact performance, so we do
12422 # not want this to be the default eventually. Also, we use the
12423 # versioned .so libs for executables only if there is the -brtl
12424 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12425 # To allow for filename-based versioning support, we need to create
12426 # libNAME.so.V as an archive file, containing:
12427 # *) an Import File, referring to the versioned filename of the
12428 # archive as well as the shared archive member, telling the
12429 # bitwidth (32 or 64) of that shared object, and providing the
12430 # list of exported symbols of that shared object, eventually
12431 # decorated with the 'weak' keyword
12432 # *) the shared object with the F_LOADONLY flag set, to really avoid
12433 # it being seen by the linker.
12434 # At run time we better use the real file rather than another symlink,
12435 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12437 case $with_aix_soname,$aix_use_runtimelinking in
12438 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12439 # soname into executable. Probably we can add versioning support to
12440 # collect2, so additional links can be useful in future.
12441 aix,yes) # traditional libtool
12442 dynamic_linker='AIX unversionable lib.so'
12443 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12444 # instead of lib<name>.a to let people know that these are not
12445 # typical AIX shared libraries.
12446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12448 aix,no) # traditional AIX only
12449 dynamic_linker='AIX lib.a(lib.so.V)'
12450 # We preserve .a as extension for shared libraries through AIX4.2
12451 # and later when we are not doing run time linking.
12452 library_names_spec='$libname$release.a $libname.a'
12453 soname_spec='$libname$release$shared_ext$major'
12455 svr4,*) # full svr4 only
12456 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12457 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12458 # We do not specify a path in Import Files, so LIBPATH fires.
12459 shlibpath_overrides_runpath=yes
12461 *,yes) # both, prefer svr4
12462 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12463 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12464 # unpreferred sharedlib libNAME.a needs extra handling
12465 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"'
12466 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"'
12467 # We do not specify a path in Import Files, so LIBPATH fires.
12468 shlibpath_overrides_runpath=yes
12470 *,no) # both, prefer aix
12471 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12472 library_names_spec='$libname$release.a $libname.a'
12473 soname_spec='$libname$release$shared_ext$major'
12474 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12475 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)'
12476 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"'
12479 shlibpath_var=LIBPATH
12486 # Since July 2007 AmigaOS4 officially supports .so libraries.
12487 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12491 library_names_spec='$libname.ixlibrary $libname.a'
12492 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12493 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'
12499 library_names_spec='$libname$shared_ext'
12500 dynamic_linker="$host_os ld.so"
12501 shlibpath_var=LIBRARY_PATH
12505 version_type=linux # correct to gnu/linux during the next big refactor
12507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12508 soname_spec='$libname$release$shared_ext$major'
12509 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12512 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12513 # the default ld.so.conf also contains /usr/contrib/lib and
12514 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12515 # libtool to hard-code these into programs
12518 cygwin* | mingw* | pw32* | cegcc*)
12519 version_type=windows
12524 case $GCC,$cc_basename in
12527 library_names_spec='$libname.dll.a'
12528 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12529 postinstall_cmds='base_file=`basename \$file`~
12530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12531 dldir=$destdir/`dirname \$dlpath`~
12532 test -d \$dldir || mkdir -p \$dldir~
12533 $install_prog $dir/$dlname \$dldir/$dlname~
12534 chmod a+x \$dldir/$dlname~
12535 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12536 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12539 dlpath=$dir/\$dldll~
12541 shlibpath_overrides_runpath=yes
12545 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12546 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12548 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12551 # MinGW DLLs use traditional 'lib' prefix
12552 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12555 # pw32 DLLs use 'pw' prefix rather than 'lib'
12556 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12559 dynamic_linker='Win32 ld.exe'
12564 libname_spec='$name'
12565 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12566 library_names_spec='$libname.dll.lib'
12570 sys_lib_search_path_spec=
12573 for lt_path in $LIB
12576 # Let DOS variable expansion print the short 8.3 style file name.
12577 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12578 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12581 # Convert to MSYS style.
12582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12585 # Convert to unix form, then to dos form, then back to unix form
12586 # but this time dos style (no spaces!) so that the unix form looks
12587 # like /cygdrive/c/PROGRA~1:/cygdr...
12588 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12589 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12590 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12593 sys_lib_search_path_spec=$LIB
12594 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12595 # It is most probably a Windows format PATH.
12596 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12598 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12600 # FIXME: find the short name or the path components, as spaces are
12601 # common. (e.g. "Program Files" -> "PROGRA~1")
12605 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12606 postinstall_cmds='base_file=`basename \$file`~
12607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12608 dldir=$destdir/`dirname \$dlpath`~
12609 test -d \$dldir || mkdir -p \$dldir~
12610 $install_prog $dir/$dlname \$dldir/$dlname'
12611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12612 dlpath=$dir/\$dldll~
12614 shlibpath_overrides_runpath=yes
12615 dynamic_linker='Win32 link.exe'
12619 # Assume MSVC wrapper
12620 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12621 dynamic_linker='Win32 ld.exe'
12624 # FIXME: first we should search . and the directory the executable is in
12628 darwin* | rhapsody*)
12629 dynamic_linker="$host_os dyld"
12630 version_type=darwin
12633 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12634 soname_spec='$libname$release$major$shared_ext'
12635 shlibpath_overrides_runpath=yes
12636 shlibpath_var=DYLD_LIBRARY_PATH
12637 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12639 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12640 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12644 version_type=linux # correct to gnu/linux during the next big refactor
12647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12648 soname_spec='$libname$release$shared_ext$major'
12649 shlibpath_var=LD_LIBRARY_PATH
12652 freebsd* | dragonfly*)
12653 # DragonFly does not have aout. When/if they implement a new
12654 # versioning mechanism, adjust this.
12655 if test -x /usr/bin/objformat; then
12656 objformat=`/usr/bin/objformat`
12659 freebsd[23].*) objformat=aout ;;
12660 *) objformat=elf ;;
12663 version_type=freebsd-$objformat
12664 case $version_type in
12666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12667 soname_spec='$libname$release$shared_ext$major'
12672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12676 shlibpath_var=LD_LIBRARY_PATH
12679 shlibpath_overrides_runpath=yes
12681 freebsd3.[01]* | freebsdelf3.[01]*)
12682 shlibpath_overrides_runpath=yes
12683 hardcode_into_libs=yes
12685 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12686 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12687 shlibpath_overrides_runpath=no
12688 hardcode_into_libs=yes
12690 *) # from 4.6 on, and DragonFly
12691 shlibpath_overrides_runpath=yes
12692 hardcode_into_libs=yes
12698 version_type=linux # correct to gnu/linux during the next big refactor
12701 dynamic_linker="$host_os runtime_loader"
12702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12703 soname_spec='$libname$release$shared_ext$major'
12704 shlibpath_var=LIBRARY_PATH
12705 shlibpath_overrides_runpath=no
12706 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12707 hardcode_into_libs=yes
12710 hpux9* | hpux10* | hpux11*)
12711 # Give a soname corresponding to the major version so that dld.sl refuses to
12712 # link against other versions.
12719 hardcode_into_libs=yes
12720 dynamic_linker="$host_os dld.so"
12721 shlibpath_var=LD_LIBRARY_PATH
12722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12724 soname_spec='$libname$release$shared_ext$major'
12725 if test 32 = "$HPUX_IA64_MODE"; then
12726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12727 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12729 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12730 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12735 hardcode_into_libs=yes
12736 dynamic_linker="$host_os dld.sl"
12737 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12740 soname_spec='$libname$release$shared_ext$major'
12741 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12746 dynamic_linker="$host_os dld.sl"
12747 shlibpath_var=SHLIB_PATH
12748 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12750 soname_spec='$libname$release$shared_ext$major'
12753 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12754 postinstall_cmds='chmod 555 $lib'
12755 # or fails outright, so override atomically:
12756 install_override_mode=555
12760 version_type=linux # correct to gnu/linux during the next big refactor
12763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12764 soname_spec='$libname$release$shared_ext$major'
12765 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12766 shlibpath_var=LD_LIBRARY_PATH
12767 shlibpath_overrides_runpath=no
12768 hardcode_into_libs=yes
12771 irix5* | irix6* | nonstopux*)
12773 nonstopux*) version_type=nonstopux ;;
12775 if test yes = "$lt_cv_prog_gnu_ld"; then
12776 version_type=linux # correct to gnu/linux during the next big refactor
12783 soname_spec='$libname$release$shared_ext$major'
12784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12786 irix5* | nonstopux*)
12787 libsuff= shlibsuff=
12790 case $LD in # libtool.m4 will add one of these switches to LD
12791 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12792 libsuff= shlibsuff= libmagic=32-bit;;
12793 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12794 libsuff=32 shlibsuff=N32 libmagic=N32;;
12795 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12796 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12797 *) libsuff= shlibsuff= libmagic=never-match;;
12801 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12802 shlibpath_overrides_runpath=no
12803 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12804 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12805 hardcode_into_libs=yes
12808 # No shared lib support for Linux oldld, aout, or coff.
12809 linux*oldld* | linux*aout* | linux*coff*)
12814 version_type=none # Android doesn't support versioned libraries.
12817 library_names_spec='$libname$release$shared_ext'
12818 soname_spec='$libname$release$shared_ext'
12820 shlibpath_var=LD_LIBRARY_PATH
12821 shlibpath_overrides_runpath=yes
12823 # This implies no fast_install, which is unacceptable.
12824 # Some rework will be needed to allow for fast_install
12825 # before this can be enabled.
12826 hardcode_into_libs=yes
12828 dynamic_linker='Android linker'
12829 # Don't embed -rpath directories since the linker doesn't support them.
12830 hardcode_libdir_flag_spec='-L$libdir'
12833 # This must be glibc/ELF.
12834 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12835 version_type=linux # correct to gnu/linux during the next big refactor
12838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12839 soname_spec='$libname$release$shared_ext$major'
12840 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12841 shlibpath_var=LD_LIBRARY_PATH
12842 shlibpath_overrides_runpath=no
12844 # Some binutils ld are patched to set DT_RUNPATH
12845 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12846 $as_echo_n "(cached) " >&6
12848 lt_cv_shlibpath_overrides_runpath=no
12849 save_LDFLAGS=$LDFLAGS
12850 save_libdir=$libdir
12851 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12852 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12864 if ac_fn_c_try_link "$LINENO"; then :
12865 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12866 lt_cv_shlibpath_overrides_runpath=yes
12869 rm -f core conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext conftest.$ac_ext
12871 LDFLAGS=$save_LDFLAGS
12872 libdir=$save_libdir
12876 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12878 # This implies no fast_install, which is unacceptable.
12879 # Some rework will be needed to allow for fast_install
12880 # before this can be enabled.
12881 hardcode_into_libs=yes
12883 # Ideally, we could use ldconfig to report *all* directores which are
12884 # searched for libraries, however this is still not possible. Aside from not
12885 # being certain /sbin/ldconfig is available, command
12886 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12887 # even though it is searched at run-time. Try to do the best guess by
12888 # appending ld.so.conf contents (and includes) to the search path.
12889 if test -f /etc/ld.so.conf; then
12890 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' ' '`
12891 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12894 # We used to test for /lib/ld.so.1 and disable shared libraries on
12895 # powerpc, because MkLinux only supported shared libraries with the
12896 # GNU dynamic linker. Since this was broken with cross compilers,
12897 # most powerpc-linux boxes support dynamic linking these days and
12898 # people can always --disable-shared, the test was removed, and we
12899 # assume the GNU/Linux dynamic linker is in use.
12900 dynamic_linker='GNU/Linux ld.so'
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 shlibpath_overrides_runpath=no
12911 hardcode_into_libs=yes
12912 dynamic_linker='NetBSD ld.elf_so'
12919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12920 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12922 dynamic_linker='NetBSD (a.out) ld.so'
12924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12925 soname_spec='$libname$release$shared_ext$major'
12926 dynamic_linker='NetBSD ld.elf_so'
12928 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=yes
12930 hardcode_into_libs=yes
12934 version_type=linux # correct to gnu/linux during the next big refactor
12935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=yes
12944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12945 soname_spec='$libname$release$shared_ext$major'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=no
12948 hardcode_into_libs=yes
12949 dynamic_linker='ldqnx.so'
12952 openbsd* | bitrig*)
12954 sys_lib_dlsearch_path_spec=/usr/lib
12956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12961 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12963 shlibpath_var=LD_LIBRARY_PATH
12964 shlibpath_overrides_runpath=yes
12968 libname_spec='$name'
12969 version_type=windows
12973 # OS/2 can only load a DLL with a base name of 8 characters or less.
12974 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12975 v=$($ECHO $release$versuffix | tr -d .-);
12976 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12977 $ECHO $n$v`$shared_ext'
12978 library_names_spec='${libname}_dll.$libext'
12979 dynamic_linker='OS/2 ld.exe'
12980 shlibpath_var=BEGINLIBPATH
12981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12983 postinstall_cmds='base_file=`basename \$file`~
12984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12985 dldir=$destdir/`dirname \$dlpath`~
12986 test -d \$dldir || mkdir -p \$dldir~
12987 $install_prog $dir/$dlname \$dldir/$dlname~
12988 chmod a+x \$dldir/$dlname~
12989 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12990 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12993 dlpath=$dir/\$dldll~
12997 osf3* | osf4* | osf5*)
13001 soname_spec='$libname$release$shared_ext$major'
13002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13013 version_type=linux # correct to gnu/linux during the next big refactor
13016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13017 soname_spec='$libname$release$shared_ext$major'
13018 shlibpath_var=LD_LIBRARY_PATH
13019 shlibpath_overrides_runpath=yes
13020 hardcode_into_libs=yes
13021 # ldd complains unless libraries are executable
13022 postinstall_cmds='chmod +x $lib'
13027 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 shlibpath_overrides_runpath=yes
13031 if test yes = "$with_gnu_ld"; then
13038 version_type=linux # correct to gnu/linux during the next big refactor
13039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13040 soname_spec='$libname$release$shared_ext$major'
13041 shlibpath_var=LD_LIBRARY_PATH
13042 case $host_vendor in
13044 shlibpath_overrides_runpath=no
13046 runpath_var=LD_RUN_PATH
13054 shlibpath_overrides_runpath=no
13055 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13061 if test -d /usr/nec; then
13062 version_type=linux # correct to gnu/linux during the next big refactor
13063 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13064 soname_spec='$libname$shared_ext.$major'
13065 shlibpath_var=LD_LIBRARY_PATH
13069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13074 soname_spec='$libname$release$shared_ext$major'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 shlibpath_overrides_runpath=yes
13077 hardcode_into_libs=yes
13078 if test yes = "$with_gnu_ld"; then
13079 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13081 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13088 sys_lib_dlsearch_path_spec='/usr/lib'
13092 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13093 version_type=linux # correct to gnu/linux during the next big refactor
13096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath=no
13099 hardcode_into_libs=yes
13103 version_type=linux # correct to gnu/linux during the next big refactor
13104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13105 soname_spec='$libname$release$shared_ext$major'
13106 shlibpath_var=LD_LIBRARY_PATH
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13114 $as_echo "$dynamic_linker" >&6; }
13115 test no = "$dynamic_linker" && can_build_shared=no
13117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13118 if test yes = "$GCC"; then
13119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13122 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13123 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13126 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13127 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13130 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13131 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13133 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13134 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13136 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13137 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13236 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13238 if test -n "$hardcode_libdir_flag_spec" ||
13239 test -n "$runpath_var" ||
13240 test yes = "$hardcode_automatic"; then
13242 # We can hardcode non-existent directories.
13243 if test no != "$hardcode_direct" &&
13244 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13245 # have to relink, otherwise we might link with an installed library
13246 # when we should be linking with a yet-to-be-installed one
13247 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13248 test no != "$hardcode_minus_L"; then
13249 # Linking always hardcodes the temporary library directory.
13250 hardcode_action=relink
13252 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13253 hardcode_action=immediate
13256 # We cannot hardcode anything, or else we can only hardcode existing
13258 hardcode_action=unsupported
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13261 $as_echo "$hardcode_action" >&6; }
13263 if test relink = "$hardcode_action" ||
13264 test yes = "$inherit_rpath"; then
13265 # Fast installation is not supported
13266 enable_fast_install=no
13267 elif test yes = "$shlibpath_overrides_runpath" ||
13268 test no = "$enable_shared"; then
13269 # Fast installation is not necessary
13270 enable_fast_install=needless
13278 if test yes != "$enable_dlopen"; then
13279 enable_dlopen=unknown
13280 enable_dlopen_self=unknown
13281 enable_dlopen_self_static=unknown
13288 lt_cv_dlopen=load_add_on
13290 lt_cv_dlopen_self=yes
13293 mingw* | pw32* | cegcc*)
13294 lt_cv_dlopen=LoadLibrary
13299 lt_cv_dlopen=dlopen
13304 # if libdl is installed we need to link against it
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13306 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13307 if ${ac_cv_lib_dl_dlopen+:} false; then :
13308 $as_echo_n "(cached) " >&6
13310 ac_check_lib_save_LIBS=$LIBS
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13315 /* Override any GCC internal prototype to avoid an error.
13316 Use char because int might match the return type of a GCC
13317 builtin and then its argument prototype would still apply. */
13330 if ac_fn_c_try_link "$LINENO"; then :
13331 ac_cv_lib_dl_dlopen=yes
13333 ac_cv_lib_dl_dlopen=no
13335 rm -f core conftest.err conftest.$ac_objext \
13336 conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13340 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13341 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13342 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13347 lt_cv_dlopen_self=yes
13354 # Don't try to run any link tests for TPF. We know it's impossible
13355 # because TPF is a cross-compiler, and we know how we open DSOs.
13356 lt_cv_dlopen=dlopen
13358 lt_cv_dlopen_self=no
13362 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13363 if test "x$ac_cv_func_shl_load" = xyes; then :
13364 lt_cv_dlopen=shl_load
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13367 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13368 if ${ac_cv_lib_dld_shl_load+:} false; then :
13369 $as_echo_n "(cached) " >&6
13371 ac_check_lib_save_LIBS=$LIBS
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13376 /* Override any GCC internal prototype to avoid an error.
13377 Use char because int might match the return type of a GCC
13378 builtin and then its argument prototype would still apply. */
13386 return shl_load ();
13391 if ac_fn_c_try_link "$LINENO"; then :
13392 ac_cv_lib_dld_shl_load=yes
13394 ac_cv_lib_dld_shl_load=no
13396 rm -f core conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13398 LIBS=$ac_check_lib_save_LIBS
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13401 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13402 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13403 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13405 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13406 if test "x$ac_cv_func_dlopen" = xyes; then :
13407 lt_cv_dlopen=dlopen
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13410 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13411 if ${ac_cv_lib_dl_dlopen+:} false; then :
13412 $as_echo_n "(cached) " >&6
13414 ac_check_lib_save_LIBS=$LIBS
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13419 /* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply. */
13434 if ac_fn_c_try_link "$LINENO"; then :
13435 ac_cv_lib_dl_dlopen=yes
13437 ac_cv_lib_dl_dlopen=no
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13444 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13445 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13446 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13449 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13450 if ${ac_cv_lib_svld_dlopen+:} false; then :
13451 $as_echo_n "(cached) " >&6
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-lsvld $LIBS"
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13473 if ac_fn_c_try_link "$LINENO"; then :
13474 ac_cv_lib_svld_dlopen=yes
13476 ac_cv_lib_svld_dlopen=no
13478 rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480 LIBS=$ac_check_lib_save_LIBS
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13483 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13484 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13485 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13488 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13489 if ${ac_cv_lib_dld_dld_link+:} false; then :
13490 $as_echo_n "(cached) " >&6
13492 ac_check_lib_save_LIBS=$LIBS
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13507 return dld_link ();
13512 if ac_fn_c_try_link "$LINENO"; then :
13513 ac_cv_lib_dld_dld_link=yes
13515 ac_cv_lib_dld_dld_link=no
13517 rm -f core conftest.err conftest.$ac_objext \
13518 conftest$ac_exeext conftest.$ac_ext
13519 LIBS=$ac_check_lib_save_LIBS
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13522 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13523 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13524 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13545 if test no = "$lt_cv_dlopen"; then
13551 case $lt_cv_dlopen in
13553 save_CPPFLAGS=$CPPFLAGS
13554 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13556 save_LDFLAGS=$LDFLAGS
13557 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13560 LIBS="$lt_cv_dlopen_libs $LIBS"
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13563 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13564 if ${lt_cv_dlopen_self+:} false; then :
13565 $as_echo_n "(cached) " >&6
13567 if test yes = "$cross_compiling"; then :
13568 lt_cv_dlopen_self=cross
13570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13571 lt_status=$lt_dlunknown
13572 cat > conftest.$ac_ext <<_LT_EOF
13573 #line $LINENO "configure"
13574 #include "confdefs.h"
13583 # define LT_DLGLOBAL RTLD_GLOBAL
13586 # define LT_DLGLOBAL DL_GLOBAL
13588 # define LT_DLGLOBAL 0
13592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13593 find out it does not work in some platform. */
13594 #ifndef LT_DLLAZY_OR_NOW
13596 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13599 # define LT_DLLAZY_OR_NOW DL_LAZY
13602 # define LT_DLLAZY_OR_NOW RTLD_NOW
13605 # define LT_DLLAZY_OR_NOW DL_NOW
13607 # define LT_DLLAZY_OR_NOW 0
13614 /* When -fvisibility=hidden is used, assume the code has been annotated
13615 correspondingly for the symbols needed. */
13616 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13617 int fnord () __attribute__((visibility("default")));
13620 int fnord () { return 42; }
13623 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13624 int status = $lt_dlunknown;
13628 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13631 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13632 else puts (dlerror ());
13634 /* dlclose (self); */
13642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13643 (eval $ac_link) 2>&5
13645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13646 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13647 (./conftest; exit; ) >&5 2>/dev/null
13649 case x$lt_status in
13650 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13651 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13652 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13655 # compilation failed
13656 lt_cv_dlopen_self=no
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13664 $as_echo "$lt_cv_dlopen_self" >&6; }
13666 if test yes = "$lt_cv_dlopen_self"; then
13667 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13669 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13670 if ${lt_cv_dlopen_self_static+:} false; then :
13671 $as_echo_n "(cached) " >&6
13673 if test yes = "$cross_compiling"; then :
13674 lt_cv_dlopen_self_static=cross
13676 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13677 lt_status=$lt_dlunknown
13678 cat > conftest.$ac_ext <<_LT_EOF
13679 #line $LINENO "configure"
13680 #include "confdefs.h"
13689 # define LT_DLGLOBAL RTLD_GLOBAL
13692 # define LT_DLGLOBAL DL_GLOBAL
13694 # define LT_DLGLOBAL 0
13698 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13699 find out it does not work in some platform. */
13700 #ifndef LT_DLLAZY_OR_NOW
13702 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13705 # define LT_DLLAZY_OR_NOW DL_LAZY
13708 # define LT_DLLAZY_OR_NOW RTLD_NOW
13711 # define LT_DLLAZY_OR_NOW DL_NOW
13713 # define LT_DLLAZY_OR_NOW 0
13720 /* When -fvisibility=hidden is used, assume the code has been annotated
13721 correspondingly for the symbols needed. */
13722 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13723 int fnord () __attribute__((visibility("default")));
13726 int fnord () { return 42; }
13729 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13730 int status = $lt_dlunknown;
13734 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13737 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13738 else puts (dlerror ());
13740 /* dlclose (self); */
13748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13749 (eval $ac_link) 2>&5
13751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13752 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13753 (./conftest; exit; ) >&5 2>/dev/null
13755 case x$lt_status in
13756 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13757 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13758 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13761 # compilation failed
13762 lt_cv_dlopen_self_static=no
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13770 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13773 CPPFLAGS=$save_CPPFLAGS
13774 LDFLAGS=$save_LDFLAGS
13779 case $lt_cv_dlopen_self in
13780 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13781 *) enable_dlopen_self=unknown ;;
13784 case $lt_cv_dlopen_self_static in
13785 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13786 *) enable_dlopen_self_static=unknown ;;
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13809 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13810 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13811 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13812 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13814 $as_echo "yes" >&6; }
13816 # FIXME - insert some real tests, host_os isn't really good enough
13819 if test -n "$STRIP"; then
13820 striplib="$STRIP -x"
13821 old_striplib="$STRIP -S"
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823 $as_echo "yes" >&6; }
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831 $as_echo "no" >&6; }
13847 # Report what library types will actually be built
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13849 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13851 $as_echo "$can_build_shared" >&6; }
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13854 $as_echo_n "checking whether to build shared libraries... " >&6; }
13855 test no = "$can_build_shared" && enable_shared=no
13857 # On AIX, shared libraries and static libraries use the same namespace, and
13858 # are all built from PIC.
13861 test yes = "$enable_shared" && enable_static=no
13862 if test -n "$RANLIB"; then
13863 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13864 postinstall_cmds='$RANLIB $lib'
13869 if test ia64 != "$host_cpu"; then
13870 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13871 yes,aix,yes) ;; # shared object as lib.so file only
13872 yes,svr4,*) ;; # shared object as lib.so archive member only
13873 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13879 $as_echo "$enable_shared" >&6; }
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13882 $as_echo_n "checking whether to build static libraries... " >&6; }
13883 # Make sure either enable_shared or enable_static is yes.
13884 test yes = "$enable_shared" || enable_static=yes
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13886 $as_echo "$enable_static" >&6; }
13893 ac_cpp='$CPP $CPPFLAGS'
13894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13900 if test -n "$CXX" && ( test no != "$CXX" &&
13901 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13902 (test g++ != "$CXX"))); then
13904 ac_cpp='$CXXCPP $CPPFLAGS'
13905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13909 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13910 if test -z "$CXXCPP"; then
13911 if ${ac_cv_prog_CXXCPP+:} false; then :
13912 $as_echo_n "(cached) " >&6
13914 # Double quotes because CXXCPP needs to be expanded
13915 for CXXCPP in "$CXX -E" "/lib/cpp"
13917 ac_preproc_ok=false
13918 for ac_cxx_preproc_warn_flag in '' yes
13920 # Use a header file that comes with gcc, so configuring glibc
13921 # with a fresh cross-compiler works.
13922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13923 # <limits.h> exists even on freestanding compilers.
13924 # On the NeXT, cc -E runs the code through the compiler's parser,
13925 # not just through cpp. "Syntax error" is here to catch this case.
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13929 # include <limits.h>
13931 # include <assert.h>
13935 if ac_fn_cxx_try_cpp "$LINENO"; then :
13938 # Broken: fails on valid input.
13941 rm -f conftest.err conftest.i conftest.$ac_ext
13943 # OK, works on sane cases. Now check whether nonexistent headers
13944 # can be detected and how.
13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h. */
13947 #include <ac_nonexistent.h>
13949 if ac_fn_cxx_try_cpp "$LINENO"; then :
13950 # Broken: success on invalid input.
13953 # Passes both tests.
13957 rm -f conftest.err conftest.i conftest.$ac_ext
13960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13961 rm -f conftest.i conftest.err conftest.$ac_ext
13962 if $ac_preproc_ok; then :
13967 ac_cv_prog_CXXCPP=$CXXCPP
13970 CXXCPP=$ac_cv_prog_CXXCPP
13972 ac_cv_prog_CXXCPP=$CXXCPP
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13975 $as_echo "$CXXCPP" >&6; }
13976 ac_preproc_ok=false
13977 for ac_cxx_preproc_warn_flag in '' yes
13979 # Use a header file that comes with gcc, so configuring glibc
13980 # with a fresh cross-compiler works.
13981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13982 # <limits.h> exists even on freestanding compilers.
13983 # On the NeXT, cc -E runs the code through the compiler's parser,
13984 # not just through cpp. "Syntax error" is here to catch this case.
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13988 # include <limits.h>
13990 # include <assert.h>
13994 if ac_fn_cxx_try_cpp "$LINENO"; then :
13997 # Broken: fails on valid input.
14000 rm -f conftest.err conftest.i conftest.$ac_ext
14002 # OK, works on sane cases. Now check whether nonexistent headers
14003 # can be detected and how.
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 #include <ac_nonexistent.h>
14008 if ac_fn_cxx_try_cpp "$LINENO"; then :
14009 # Broken: success on invalid input.
14012 # Passes both tests.
14016 rm -f conftest.err conftest.i conftest.$ac_ext
14019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14020 rm -f conftest.i conftest.err conftest.$ac_ext
14021 if $ac_preproc_ok; then :
14024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14026 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14027 See \`config.log' for more details" "$LINENO" 5; }
14031 ac_cpp='$CPP $CPPFLAGS'
14032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14037 _lt_caught_CXX_error=yes
14041 ac_cpp='$CXXCPP $CPPFLAGS'
14042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14046 archive_cmds_need_lc_CXX=no
14047 allow_undefined_flag_CXX=
14048 always_export_symbols_CXX=no
14049 archive_expsym_cmds_CXX=
14050 compiler_needs_object_CXX=no
14051 export_dynamic_flag_spec_CXX=
14052 hardcode_direct_CXX=no
14053 hardcode_direct_absolute_CXX=no
14054 hardcode_libdir_flag_spec_CXX=
14055 hardcode_libdir_separator_CXX=
14056 hardcode_minus_L_CXX=no
14057 hardcode_shlibpath_var_CXX=unsupported
14058 hardcode_automatic_CXX=no
14059 inherit_rpath_CXX=no
14061 module_expsym_cmds_CXX=
14062 link_all_deplibs_CXX=unknown
14063 old_archive_cmds_CXX=$old_archive_cmds
14064 reload_flag_CXX=$reload_flag
14065 reload_cmds_CXX=$reload_cmds
14066 no_undefined_flag_CXX=
14067 whole_archive_flag_spec_CXX=
14068 enable_shared_with_static_runtimes_CXX=no
14070 # Source file extension for C++ test sources.
14073 # Object file extension for compiled C++ test sources.
14077 # No sense in running all these tests if we already determined that
14078 # the CXX compiler isn't working. Some variables (like enable_shared)
14079 # are currently assumed to apply to all compilers on this platform,
14080 # and will be corrupted by setting them based on a non-working compiler.
14081 if test yes != "$_lt_caught_CXX_error"; then
14082 # Code to be used in simple compile tests
14083 lt_simple_compile_test_code="int some_variable = 0;"
14085 # Code to be used in simple link tests
14086 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14095 # If no C compiler was specified, use CC.
14098 # If no C compiler flags were specified, use CFLAGS.
14099 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14101 # Allow CC to be a program name with arguments.
14105 # save warnings/boilerplate of simple test code
14106 ac_outfile=conftest.$ac_objext
14107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14109 _lt_compiler_boilerplate=`cat conftest.err`
14112 ac_outfile=conftest.$ac_objext
14113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14115 _lt_linker_boilerplate=`cat conftest.err`
14119 # Allow CC to be a program name with arguments.
14121 lt_save_CFLAGS=$CFLAGS
14125 lt_save_with_gnu_ld=$with_gnu_ld
14126 lt_save_path_LD=$lt_cv_path_LD
14127 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14128 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14130 $as_unset lt_cv_prog_gnu_ld
14132 if test -n "${lt_cv_path_LDCXX+set}"; then
14133 lt_cv_path_LD=$lt_cv_path_LDCXX
14135 $as_unset lt_cv_path_LD
14137 test -z "${LDCXX+set}" || LD=$LDCXX
14142 func_cc_basename $compiler
14143 cc_basename=$func_cc_basename_result
14146 if test -n "$compiler"; then
14147 # We don't want -fno-exception when compiling C++ code, so set the
14148 # no_builtin_flag separately
14149 if test yes = "$GXX"; then
14150 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14152 lt_prog_compiler_no_builtin_flag_CXX=
14155 if test yes = "$GXX"; then
14156 # Set up default GNU C++ configuration
14160 # Check whether --with-gnu-ld was given.
14161 if test "${with_gnu_ld+set}" = set; then :
14162 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14168 if test yes = "$GCC"; then
14169 # Check if gcc -print-prog-name=ld gives a path.
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14171 $as_echo_n "checking for ld used by $CC... " >&6; }
14174 # gcc leaves a trailing carriage return, which upsets mingw
14175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14180 # Accept absolute paths.
14182 re_direlt='/[^/][^/]*/\.\./'
14183 # Canonicalize the pathname of ld
14184 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14185 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14186 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14188 test -z "$LD" && LD=$ac_prog
14191 # If it fails, then pretend we aren't using GCC.
14195 # If it is relative, then search for the first ld in PATH.
14196 with_gnu_ld=unknown
14199 elif test yes = "$with_gnu_ld"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14201 $as_echo_n "checking for GNU ld... " >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14204 $as_echo_n "checking for non-GNU ld... " >&6; }
14206 if ${lt_cv_path_LD+:} false; then :
14207 $as_echo_n "(cached) " >&6
14209 if test -z "$LD"; then
14210 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14211 for ac_dir in $PATH; do
14213 test -z "$ac_dir" && ac_dir=.
14214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14215 lt_cv_path_LD=$ac_dir/$ac_prog
14216 # Check to see if the program is GNU ld. I'd rather use --version,
14217 # but apparently some variants of GNU ld only accept -v.
14218 # Break only if it was the GNU/non-GNU ld that we prefer.
14219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14220 *GNU* | *'with BFD'*)
14221 test no != "$with_gnu_ld" && break
14224 test yes != "$with_gnu_ld" && break
14231 lt_cv_path_LD=$LD # Let the user override the test with a path.
14236 if test -n "$LD"; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14238 $as_echo "$LD" >&6; }
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14243 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14245 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14246 if ${lt_cv_prog_gnu_ld+:} false; then :
14247 $as_echo_n "(cached) " >&6
14249 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14250 case `$LD -v 2>&1 </dev/null` in
14251 *GNU* | *'with BFD'*)
14252 lt_cv_prog_gnu_ld=yes
14255 lt_cv_prog_gnu_ld=no
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14260 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14261 with_gnu_ld=$lt_cv_prog_gnu_ld
14269 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14270 # archiving commands below assume that GNU ld is being used.
14271 if test yes = "$with_gnu_ld"; then
14272 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14273 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'
14275 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14276 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14278 # If archive_cmds runs LD, not CC, wlarc should be empty
14279 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14280 # investigate it a little bit more. (MM)
14283 # ancient GNU ld didn't support --whole-archive et. al.
14284 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14285 $GREP 'no-whole-archive' > /dev/null; then
14286 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14288 whole_archive_flag_spec_CXX=
14294 # A generic and very simple default shared library creation
14295 # command for GNU C++ for the case where it uses the native
14296 # linker, instead of GNU ld. If possible, this setting should
14297 # overridden to take advantage of the native linker features on
14298 # the platform it is being used on.
14299 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14302 # Commands to make compiler produce verbose output that lists
14303 # what "hidden" libraries, object files and flags are used when
14304 # linking a shared library.
14305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14313 # PORTME: fill in a description of your system's C++ link characteristics
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14315 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14319 # FIXME: insert proper C++ library support
14323 if test ia64 = "$host_cpu"; then
14324 # On IA64, the linker does run time linking by default, so we don't
14325 # have to do anything special.
14326 aix_use_runtimelinking=no
14327 exp_sym_flag='-Bexport'
14330 aix_use_runtimelinking=no
14332 # Test if we are trying to use run time linking or normal
14333 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14334 # have runtime linking enabled, and use it for executables.
14335 # For shared libraries, we enable/disable runtime linking
14336 # depending on the kind of the shared library created -
14337 # when "with_aix_soname,aix_use_runtimelinking" is:
14338 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14339 # "aix,yes" lib.so shared, rtl:yes, for executables
14340 # lib.a static archive
14341 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14342 # lib.a(lib.so.V) shared, rtl:no, for executables
14343 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14344 # lib.a(lib.so.V) shared, rtl:no
14345 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14346 # lib.a static archive
14347 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14348 for ld_flag in $LDFLAGS; do
14351 aix_use_runtimelinking=yes
14356 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14357 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14358 # so we don't have lib.a shared libs to link our executables.
14359 # We have to force runtime linking in this case.
14360 aix_use_runtimelinking=yes
14361 LDFLAGS="$LDFLAGS -Wl,-brtl"
14366 exp_sym_flag='-bexport'
14367 no_entry_flag='-bnoentry'
14370 # When large executables or shared objects are built, AIX ld can
14371 # have problems creating the table of contents. If linking a library
14372 # or program results in "error TOC overflow" add -mminimal-toc to
14373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14376 archive_cmds_CXX=''
14377 hardcode_direct_CXX=yes
14378 hardcode_direct_absolute_CXX=yes
14379 hardcode_libdir_separator_CXX=':'
14380 link_all_deplibs_CXX=yes
14381 file_list_spec_CXX='$wl-f,'
14382 case $with_aix_soname,$aix_use_runtimelinking in
14383 aix,*) ;; # no import file
14384 svr4,* | *,yes) # use import file
14385 # The Import File defines what to hardcode.
14386 hardcode_direct_CXX=no
14387 hardcode_direct_absolute_CXX=no
14391 if test yes = "$GXX"; then
14392 case $host_os in aix4.[012]|aix4.[012].*)
14393 # We only want to do this on AIX 4.2 and lower, the check
14394 # below for broken collect2 doesn't work under 4.3+
14395 collect2name=`$CC -print-prog-name=collect2`
14396 if test -f "$collect2name" &&
14397 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14399 # We have reworked collect2
14402 # We have old collect2
14403 hardcode_direct_CXX=unsupported
14404 # It fails to find uninstalled libraries when the uninstalled
14405 # path is not listed in the libpath. Setting hardcode_minus_L
14406 # to unsupported forces relinking
14407 hardcode_minus_L_CXX=yes
14408 hardcode_libdir_flag_spec_CXX='-L$libdir'
14409 hardcode_libdir_separator_CXX=
14412 shared_flag='-shared'
14413 if test yes = "$aix_use_runtimelinking"; then
14414 shared_flag=$shared_flag' $wl-G'
14416 # Need to ensure runtime linking is disabled for the traditional
14417 # shared library, or the linker may eventually find shared libraries
14418 # /with/ Import File - we do not want to mix them.
14419 shared_flag_aix='-shared'
14420 shared_flag_svr4='-shared $wl-G'
14423 if test ia64 = "$host_cpu"; then
14424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14425 # chokes on -Wl,-G. The following line is correct:
14428 if test yes = "$aix_use_runtimelinking"; then
14429 shared_flag='$wl-G'
14431 shared_flag='$wl-bM:SRE'
14433 shared_flag_aix='$wl-bM:SRE'
14434 shared_flag_svr4='$wl-G'
14438 export_dynamic_flag_spec_CXX='$wl-bexpall'
14439 # It seems that -bexpall does not export symbols beginning with
14440 # underscore (_), so it is better to generate a list of symbols to
14442 always_export_symbols_CXX=yes
14443 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14444 # Warning - without using the other runtime loading flags (-brtl),
14445 # -berok will link without error, but may produce a broken library.
14446 # The "-G" linker flag allows undefined symbols.
14447 no_undefined_flag_CXX='-bernotok'
14448 # Determine the default libpath from the value encoded in an empty
14450 if test set = "${lt_cv_aix_libpath+set}"; then
14451 aix_libpath=$lt_cv_aix_libpath
14453 if ${lt_cv_aix_libpath__CXX+:} false; then :
14454 $as_echo_n "(cached) " >&6
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14467 if ac_fn_cxx_try_link "$LINENO"; then :
14469 lt_aix_libpath_sed='
14470 /Import File Strings/,/^$/ {
14472 s/^0 *\([^ ]*\) *$/\1/
14476 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14477 # Check for a 64-bit object if we didn't find anything.
14478 if test -z "$lt_cv_aix_libpath__CXX"; then
14479 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14482 rm -f core conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
14484 if test -z "$lt_cv_aix_libpath__CXX"; then
14485 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14490 aix_libpath=$lt_cv_aix_libpath__CXX
14493 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14495 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
14497 if test ia64 = "$host_cpu"; then
14498 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14499 allow_undefined_flag_CXX="-z nodefs"
14500 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"
14502 # Determine the default libpath from the value encoded in an
14503 # empty executable.
14504 if test set = "${lt_cv_aix_libpath+set}"; then
14505 aix_libpath=$lt_cv_aix_libpath
14507 if ${lt_cv_aix_libpath__CXX+:} false; then :
14508 $as_echo_n "(cached) " >&6
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14521 if ac_fn_cxx_try_link "$LINENO"; then :
14523 lt_aix_libpath_sed='
14524 /Import File Strings/,/^$/ {
14526 s/^0 *\([^ ]*\) *$/\1/
14530 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14531 # Check for a 64-bit object if we didn't find anything.
14532 if test -z "$lt_cv_aix_libpath__CXX"; then
14533 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14538 if test -z "$lt_cv_aix_libpath__CXX"; then
14539 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14544 aix_libpath=$lt_cv_aix_libpath__CXX
14547 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14548 # Warning - without using the other run time loading flags,
14549 # -berok will link without error, but may produce a broken library.
14550 no_undefined_flag_CXX=' $wl-bernotok'
14551 allow_undefined_flag_CXX=' $wl-berok'
14552 if test yes = "$with_gnu_ld"; then
14553 # We only use this code for GNU lds that support --whole-archive.
14554 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14556 # Exported symbols can be pulled into shared objects from archives
14557 whole_archive_flag_spec_CXX='$convenience'
14559 archive_cmds_need_lc_CXX=yes
14560 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14561 # -brtl affects multiple linker settings, -berok does not and is overridden later
14562 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14563 if test svr4 != "$with_aix_soname"; then
14564 # This is similar to how AIX traditionally builds its shared
14565 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14566 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'
14568 if test aix != "$with_aix_soname"; then
14569 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'
14571 # used by -dlpreopen to get the symbols
14572 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14574 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14581 allow_undefined_flag_CXX=unsupported
14582 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14583 # support --undefined. This deserves some investigation. FIXME
14584 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14591 case $cc_basename in
14593 # FIXME: insert proper C++ library support
14599 cygwin* | mingw* | pw32* | cegcc*)
14600 case $GXX,$cc_basename in
14603 # hardcode_libdir_flag_spec is actually meaningless, as there is
14604 # no search path for DLLs.
14605 hardcode_libdir_flag_spec_CXX=' '
14606 allow_undefined_flag_CXX=unsupported
14607 always_export_symbols_CXX=yes
14608 file_list_spec_CXX='@'
14609 # Tell ltmain to make .lib files, not .a files.
14611 # Tell ltmain to make .dll files, not .so files.
14613 # FIXME: Setting linknames here is a bad hack.
14614 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14615 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14616 cp "$export_symbols" "$output_objdir/$soname.def";
14617 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14619 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14621 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14623 # The linker will not automatically build a static lib if we build a DLL.
14624 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14625 enable_shared_with_static_runtimes_CXX=yes
14627 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14628 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14629 lt_tool_outputfile="@TOOL_OUTPUT@"~
14630 case $lt_outputfile in
14633 lt_outputfile=$lt_outputfile.exe
14634 lt_tool_outputfile=$lt_tool_outputfile.exe
14637 func_to_tool_file "$lt_outputfile"~
14638 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14639 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14640 $RM "$lt_outputfile.manifest";
14645 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14646 # as there is no search path for DLLs.
14647 hardcode_libdir_flag_spec_CXX='-L$libdir'
14648 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14649 allow_undefined_flag_CXX=unsupported
14650 always_export_symbols_CXX=no
14651 enable_shared_with_static_runtimes_CXX=yes
14653 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14654 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'
14655 # If the export-symbols file already is a .def file, use it as
14656 # is; otherwise, prepend EXPORTS...
14657 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14658 cp $export_symbols $output_objdir/$soname.def;
14660 echo EXPORTS > $output_objdir/$soname.def;
14661 cat $export_symbols >> $output_objdir/$soname.def;
14663 $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'
14670 darwin* | rhapsody*)
14673 archive_cmds_need_lc_CXX=no
14674 hardcode_direct_CXX=no
14675 hardcode_automatic_CXX=yes
14676 hardcode_shlibpath_var_CXX=unsupported
14677 if test yes = "$lt_cv_ld_force_load"; then
14678 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\"`'
14681 whole_archive_flag_spec_CXX=''
14683 link_all_deplibs_CXX=yes
14684 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14685 case $cc_basename in
14686 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14687 *) _lt_dar_can_shared=$GCC ;;
14689 if test yes = "$_lt_dar_can_shared"; then
14690 output_verbose_link_cmd=func_echo_all
14691 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"
14692 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14693 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"
14694 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"
14695 if test yes != "$lt_cv_apple_cc_single_mod"; then
14696 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"
14697 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"
14707 hardcode_libdir_flag_spec_CXX='-L$libdir'
14708 hardcode_minus_L_CXX=yes
14709 allow_undefined_flag_CXX=unsupported
14711 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14712 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14713 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14714 $ECHO EXPORTS >> $output_objdir/$libname.def~
14715 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14716 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14717 emximp -o $lib $output_objdir/$libname.def'
14718 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14719 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14720 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14721 $ECHO EXPORTS >> $output_objdir/$libname.def~
14722 prefix_cmds="$SED"~
14723 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14724 prefix_cmds="$prefix_cmds -e 1d";
14726 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14727 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14728 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14729 emximp -o $lib $output_objdir/$libname.def'
14730 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14731 enable_shared_with_static_runtimes_CXX=yes
14735 case $cc_basename in
14737 # FIXME: insert proper C++ library support
14741 # Green Hills C++ Compiler
14742 # FIXME: insert proper C++ library support
14746 # FIXME: insert proper C++ library support
14753 # C++ shared libraries reported to be fairly broken before
14759 archive_cmds_need_lc_CXX=no
14762 freebsd* | dragonfly*)
14763 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14769 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14770 link_all_deplibs_CXX=yes
14774 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14775 hardcode_libdir_separator_CXX=:
14776 export_dynamic_flag_spec_CXX='$wl-E'
14777 hardcode_direct_CXX=yes
14778 hardcode_minus_L_CXX=yes # Not in the search PATH,
14779 # but as the default
14780 # location of the library.
14782 case $cc_basename in
14784 # FIXME: insert proper C++ library support
14788 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'
14789 # Commands to make compiler produce verbose output that lists
14790 # what "hidden" libraries, object files and flags are used when
14791 # linking a shared library.
14793 # There doesn't appear to be a way to prevent this compiler from
14794 # explicitly linking system object files so we need to strip them
14795 # from the output so that they don't get included in the library
14797 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"'
14800 if test yes = "$GXX"; then
14801 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'
14803 # FIXME: insert proper C++ library support
14811 if test no = "$with_gnu_ld"; then
14812 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14813 hardcode_libdir_separator_CXX=:
14819 export_dynamic_flag_spec_CXX='$wl-E'
14825 hardcode_direct_CXX=no
14826 hardcode_shlibpath_var_CXX=no
14829 hardcode_direct_CXX=yes
14830 hardcode_direct_absolute_CXX=yes
14831 hardcode_minus_L_CXX=yes # Not in the search PATH,
14832 # but as the default
14833 # location of the library.
14837 case $cc_basename in
14839 # FIXME: insert proper C++ library support
14845 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14848 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14851 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14854 # Commands to make compiler produce verbose output that lists
14855 # what "hidden" libraries, object files and flags are used when
14856 # linking a shared library.
14858 # There doesn't appear to be a way to prevent this compiler from
14859 # explicitly linking system object files so we need to strip them
14860 # from the output so that they don't get included in the library
14862 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"'
14865 if test yes = "$GXX"; then
14866 if test no = "$with_gnu_ld"; then
14869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14872 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14875 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'
14880 # FIXME: insert proper C++ library support
14888 hardcode_direct_CXX=no
14889 hardcode_shlibpath_var_CXX=no
14890 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14891 export_dynamic_flag_spec_CXX='$wl-E'
14892 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14893 # Instead, shared libraries are loaded at an image base (0x10000000 by
14894 # default) and relocated if they conflict, which is a slow very memory
14895 # consuming and fragmenting process. To avoid this, we pick a random,
14896 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14897 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14898 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'
14899 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'
14902 case $cc_basename in
14905 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'
14907 # Archives containing C++ object files must be created using
14908 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14909 # necessary to make sure instantiated templates are included
14911 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14914 if test yes = "$GXX"; then
14915 if test no = "$with_gnu_ld"; then
14916 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'
14918 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'
14921 link_all_deplibs_CXX=yes
14924 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14925 hardcode_libdir_separator_CXX=:
14926 inherit_rpath_CXX=yes
14929 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14930 case $cc_basename in
14932 # Kuck and Associates, Inc. (KAI) C++ Compiler
14934 # KCC will only create a shared library if the output file
14935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14936 # to its proper name (with version) after linking.
14937 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'
14938 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'
14939 # Commands to make compiler produce verbose output that lists
14940 # what "hidden" libraries, object files and flags are used when
14941 # linking a shared library.
14943 # There doesn't appear to be a way to prevent this compiler from
14944 # explicitly linking system object files so we need to strip them
14945 # from the output so that they don't get included in the library
14947 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"'
14949 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14950 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14952 # Archives containing C++ object files must be created using
14953 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14954 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14959 # version 8.0 and above of icpc choke on multiply defined symbols
14960 # if we add $predep_objects and $postdep_objects, however 7.1 and
14961 # earlier do not add the objects themselves.
14962 case `$CC -V 2>&1` in
14964 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14965 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'
14967 *) # Version 8.0 or newer
14970 ia64*) tmp_idyn=' -i_dynamic';;
14972 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14973 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'
14976 archive_cmds_need_lc_CXX=no
14977 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14978 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14979 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14982 # Portland Group C++ compiler
14984 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14985 prelink_cmds_CXX='tpldir=Template.dir~
14987 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14988 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14989 old_archive_cmds_CXX='tpldir=Template.dir~
14991 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14992 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14994 archive_cmds_CXX='tpldir=Template.dir~
14996 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14997 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14998 archive_expsym_cmds_CXX='tpldir=Template.dir~
15000 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15001 $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'
15003 *) # Version 6 and above use weak symbols
15004 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15005 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'
15009 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15010 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15011 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'
15015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15016 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'
15018 runpath_var=LD_RUN_PATH
15019 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15020 hardcode_libdir_separator_CXX=:
15022 # Commands to make compiler produce verbose output that lists
15023 # what "hidden" libraries, object files and flags are used when
15024 # linking a shared library.
15026 # There doesn't appear to be a way to prevent this compiler from
15027 # explicitly linking system object files so we need to strip them
15028 # from the output so that they don't get included in the library
15030 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'
15032 xl* | mpixl* | bgxl*)
15033 # IBM XL 8.0 on PPC, with GNU ld
15034 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15035 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15036 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15037 if test yes = "$supports_anon_versioning"; then
15038 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15040 echo "local: *; };" >> $output_objdir/$libname.ver~
15041 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15045 case `$CC -V 2>&1 | sed 5q` in
15048 no_undefined_flag_CXX=' -zdefs'
15049 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15050 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'
15051 hardcode_libdir_flag_spec_CXX='-R$libdir'
15052 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'
15053 compiler_needs_object_CXX=yes
15055 # Not sure whether something based on
15056 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15058 output_verbose_link_cmd='func_echo_all'
15060 # Archives containing C++ object files must be created using
15061 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15062 # necessary to make sure instantiated templates are included
15064 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15072 # FIXME: insert proper C++ library support
15077 # FIXME: insert proper C++ library support
15082 case $cc_basename in
15084 # FIXME: insert proper C++ library support
15088 # FIXME: insert proper C++ library support
15095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15096 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15098 hardcode_libdir_flag_spec_CXX='-R$libdir'
15099 hardcode_direct_CXX=yes
15100 hardcode_shlibpath_var_CXX=no
15102 # Workaround some broken pre-1.5 toolchains
15103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15110 openbsd* | bitrig*)
15111 if test -f /usr/libexec/ld.so; then
15112 hardcode_direct_CXX=yes
15113 hardcode_shlibpath_var_CXX=no
15114 hardcode_direct_absolute_CXX=yes
15115 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15116 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15118 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15119 export_dynamic_flag_spec_CXX='$wl-E'
15120 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15122 output_verbose_link_cmd=func_echo_all
15128 osf3* | osf4* | osf5*)
15129 case $cc_basename in
15131 # Kuck and Associates, Inc. (KAI) C++ Compiler
15133 # KCC will only create a shared library if the output file
15134 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15135 # to its proper name (with version) after linking.
15136 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'
15138 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15139 hardcode_libdir_separator_CXX=:
15141 # Archives containing C++ object files must be created using
15142 # the KAI C++ compiler.
15144 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15145 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15149 # Rational C++ 2.4.1
15150 # FIXME: insert proper C++ library support
15156 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15157 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'
15158 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15161 allow_undefined_flag_CXX=' -expect_unresolved \*'
15162 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'
15163 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15164 echo "-hidden">> $lib.exp~
15165 $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~
15167 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15171 hardcode_libdir_separator_CXX=:
15173 # Commands to make compiler produce verbose output that lists
15174 # what "hidden" libraries, object files and flags are used when
15175 # linking a shared library.
15177 # There doesn't appear to be a way to prevent this compiler from
15178 # explicitly linking system object files so we need to strip them
15179 # from the output so that they don't get included in the library
15181 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"'
15184 if test yes,no = "$GXX,$with_gnu_ld"; then
15185 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15188 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'
15191 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'
15195 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15196 hardcode_libdir_separator_CXX=:
15198 # Commands to make compiler produce verbose output that lists
15199 # what "hidden" libraries, object files and flags are used when
15200 # linking a shared library.
15201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15204 # FIXME: insert proper C++ library support
15212 # FIXME: insert proper C++ library support
15217 case $cc_basename in
15220 # FIXME: insert proper C++ library support
15225 # FIXME: insert proper C++ library support
15229 # FIXME: insert proper C++ library support
15236 case $cc_basename in
15238 # Sun C++ 4.2, 5.x and Centerline C++
15239 archive_cmds_need_lc_CXX=yes
15240 no_undefined_flag_CXX=' -zdefs'
15241 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15242 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15243 $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'
15245 hardcode_libdir_flag_spec_CXX='-R$libdir'
15246 hardcode_shlibpath_var_CXX=no
15248 solaris2.[0-5] | solaris2.[0-5].*) ;;
15250 # The compiler driver will combine and reorder linker options,
15251 # but understands '-z linker_flag'.
15252 # Supported since Solaris 2.6 (maybe 2.5.1?)
15253 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15256 link_all_deplibs_CXX=yes
15258 output_verbose_link_cmd='func_echo_all'
15260 # Archives containing C++ object files must be created using
15261 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15262 # necessary to make sure instantiated templates are included
15264 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15267 # Green Hills C++ Compiler
15268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15270 # The C++ compiler must be used to create the archive.
15271 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15274 # GNU C++ compiler with Solaris linker
15275 if test yes,no = "$GXX,$with_gnu_ld"; then
15276 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15277 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15278 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15279 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15280 $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'
15282 # Commands to make compiler produce verbose output that lists
15283 # what "hidden" libraries, object files and flags are used when
15284 # linking a shared library.
15285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15287 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15289 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15290 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15291 $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'
15293 # Commands to make compiler produce verbose output that lists
15294 # what "hidden" libraries, object files and flags are used when
15295 # linking a shared library.
15296 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15299 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15301 solaris2.[0-5] | solaris2.[0-5].*) ;;
15303 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15311 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15312 no_undefined_flag_CXX='$wl-z,text'
15313 archive_cmds_need_lc_CXX=no
15314 hardcode_shlibpath_var_CXX=no
15315 runpath_var='LD_RUN_PATH'
15317 case $cc_basename in
15319 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15320 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15323 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15324 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15329 sysv5* | sco3.2v5* | sco5v6*)
15330 # Note: We CANNOT use -z defs as we might desire, because we do not
15331 # link with -lc, and that would cause any symbols used from libc to
15332 # always be unresolved, which means just about no library would
15333 # ever link correctly. If we're not using GNU ld we use -z text
15334 # though, which does catch some bad symbols but isn't as heavy-handed
15336 no_undefined_flag_CXX='$wl-z,text'
15337 allow_undefined_flag_CXX='$wl-z,nodefs'
15338 archive_cmds_need_lc_CXX=no
15339 hardcode_shlibpath_var_CXX=no
15340 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15341 hardcode_libdir_separator_CXX=':'
15342 link_all_deplibs_CXX=yes
15343 export_dynamic_flag_spec_CXX='$wl-Bexport'
15344 runpath_var='LD_RUN_PATH'
15346 case $cc_basename in
15348 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15349 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15350 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15351 '"$old_archive_cmds_CXX"
15352 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15353 '"$reload_cmds_CXX"
15356 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15357 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15363 case $cc_basename in
15365 # NonStop-UX NCC 3.20
15366 # FIXME: insert proper C++ library support
15370 # FIXME: insert proper C++ library support
15377 # FIXME: insert proper C++ library support
15382 # FIXME: insert proper C++ library support
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15388 $as_echo "$ld_shlibs_CXX" >&6; }
15389 test no = "$ld_shlibs_CXX" && can_build_shared=no
15395 ## There is no encapsulation within the following macros, do not change
15396 ## the running order or otherwise move them around unless you know exactly
15397 ## what you are doing...
15398 # Dependencies to place before and after the object being linked:
15399 predep_objects_CXX=
15400 postdep_objects_CXX=
15403 compiler_lib_search_path_CXX=
15405 cat > conftest.$ac_ext <<_LT_EOF
15409 Foo (void) { a = 0; }
15416 _lt_libdeps_save_CFLAGS=$CFLAGS
15417 case "$CC $CFLAGS " in #(
15418 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15419 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15420 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15424 (eval $ac_compile) 2>&5
15426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15427 test $ac_status = 0; }; then
15428 # Parse the compiler output and extract the necessary
15429 # objects, libraries and library flags.
15431 # Sentinel used to keep track of whether or not we are before
15432 # the conftest object file.
15433 pre_test_object_deps_done=no
15435 for p in `eval "$output_verbose_link_cmd"`; do
15439 # Some compilers place space between "-{L,R}" and the path.
15440 # Remove the space.
15441 if test x-L = "$p" ||
15442 test x-R = "$p"; then
15447 # Expand the sysroot to ease extracting the directories later.
15448 if test -z "$prev"; then
15450 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15451 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15452 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15456 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15458 if test no = "$pre_test_object_deps_done"; then
15461 # Internal compiler library paths should come after those
15462 # provided the user. The postdeps already come after the
15463 # user supplied libs so there is no need to process them.
15464 if test -z "$compiler_lib_search_path_CXX"; then
15465 compiler_lib_search_path_CXX=$prev$p
15467 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15470 # The "-l" case would never come before the object being
15471 # linked, so don't bother handling this case.
15474 if test -z "$postdeps_CXX"; then
15475 postdeps_CXX=$prev$p
15477 postdeps_CXX="${postdeps_CXX} $prev$p"
15483 *.lto.$objext) ;; # Ignore GCC LTO objects
15485 # This assumes that the test object file only shows up
15486 # once in the compiler output.
15487 if test "$p" = "conftest.$objext"; then
15488 pre_test_object_deps_done=yes
15492 if test no = "$pre_test_object_deps_done"; then
15493 if test -z "$predep_objects_CXX"; then
15494 predep_objects_CXX=$p
15496 predep_objects_CXX="$predep_objects_CXX $p"
15499 if test -z "$postdep_objects_CXX"; then
15500 postdep_objects_CXX=$p
15502 postdep_objects_CXX="$postdep_objects_CXX $p"
15507 *) ;; # Ignore the rest.
15515 echo "libtool.m4: error: problem compiling CXX test program"
15518 $RM -f confest.$objext
15519 CFLAGS=$_lt_libdeps_save_CFLAGS
15521 # PORTME: override above test on systems where it is broken
15524 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15525 # hack all around it, let's just trust "g++" to DTRT.
15526 predep_objects_CXX=
15527 postdep_objects_CXX=
15533 case " $postdeps_CXX " in
15534 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15536 compiler_lib_search_dirs_CXX=
15537 if test -n "${compiler_lib_search_path_CXX}"; then
15538 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15571 lt_prog_compiler_wl_CXX=
15572 lt_prog_compiler_pic_CXX=
15573 lt_prog_compiler_static_CXX=
15576 # C++ specific cases for pic, static, wl, etc.
15577 if test yes = "$GXX"; then
15578 lt_prog_compiler_wl_CXX='-Wl,'
15579 lt_prog_compiler_static_CXX='-static'
15583 # All AIX code is PIC.
15584 if test ia64 = "$host_cpu"; then
15585 # AIX 5 now supports IA64 processor
15586 lt_prog_compiler_static_CXX='-Bstatic'
15588 lt_prog_compiler_pic_CXX='-fPIC'
15594 # see comment about AmigaOS4 .so support
15595 lt_prog_compiler_pic_CXX='-fPIC'
15598 # FIXME: we need at least 68020 code to build shared libraries, but
15599 # adding the '-m68020' flag to GCC prevents building anything better,
15601 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15606 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15607 # PIC is the default for these OSes.
15609 mingw* | cygwin* | os2* | pw32* | cegcc*)
15610 # This hack is so that the source file can tell whether it is being
15611 # built for inclusion in a dll (and should export symbols for example).
15612 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15613 # (--disable-auto-import) libraries
15614 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15617 lt_prog_compiler_static_CXX='$wl-static'
15621 darwin* | rhapsody*)
15622 # PIC is the default on this platform
15623 # Common symbols not allowed in MH_DYLIB files
15624 lt_prog_compiler_pic_CXX='-fno-common'
15627 # DJGPP does not support shared libraries at all
15628 lt_prog_compiler_pic_CXX=
15631 # PIC is the default for Haiku.
15632 # The "-static" flag exists, but is broken.
15633 lt_prog_compiler_static_CXX=
15636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15637 # Instead, we relocate shared libraries at runtime.
15640 if test -d /usr/nec; then
15641 lt_prog_compiler_pic_CXX=-Kconform_pic
15645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15647 # sets the default TLS model and affects inlining.
15652 lt_prog_compiler_pic_CXX='-fPIC'
15657 # QNX uses GNU C++, but need to define -shared option too, otherwise
15658 # it will coredump.
15659 lt_prog_compiler_pic_CXX='-fPIC -shared'
15662 lt_prog_compiler_pic_CXX='-fPIC'
15668 # All AIX code is PIC.
15669 if test ia64 = "$host_cpu"; then
15670 # AIX 5 now supports IA64 processor
15671 lt_prog_compiler_static_CXX='-Bstatic'
15673 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15677 case $cc_basename in
15679 # Green Hills C++ Compiler
15680 # _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"
15684 mingw* | cygwin* | os2* | pw32* | cegcc*)
15685 # This hack is so that the source file can tell whether it is being
15686 # built for inclusion in a dll (and should export symbols for example).
15687 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15690 case $cc_basename in
15692 lt_prog_compiler_pic_CXX='-KPIC'
15695 # Green Hills C++ Compiler
15696 lt_prog_compiler_pic_CXX='-pic'
15702 freebsd* | dragonfly*)
15703 # FreeBSD uses GNU C++
15705 hpux9* | hpux10* | hpux11*)
15706 case $cc_basename in
15708 lt_prog_compiler_wl_CXX='-Wl,'
15709 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15710 if test ia64 != "$host_cpu"; then
15711 lt_prog_compiler_pic_CXX='+Z'
15715 lt_prog_compiler_wl_CXX='-Wl,'
15716 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15722 lt_prog_compiler_pic_CXX='+Z'
15731 # This is c89, which is MS Visual C++ (no shared libs)
15732 # Anyone wants to do a port?
15734 irix5* | irix6* | nonstopux*)
15735 case $cc_basename in
15737 lt_prog_compiler_wl_CXX='-Wl,'
15738 lt_prog_compiler_static_CXX='-non_shared'
15739 # CC pic flag -KPIC is the default.
15745 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15746 case $cc_basename in
15749 lt_prog_compiler_wl_CXX='--backend -Wl,'
15750 lt_prog_compiler_pic_CXX='-fPIC'
15753 # old Intel C++ for x86_64, which still supported -KPIC.
15754 lt_prog_compiler_wl_CXX='-Wl,'
15755 lt_prog_compiler_pic_CXX='-KPIC'
15756 lt_prog_compiler_static_CXX='-static'
15759 # Intel C++, used to be incompatible with GCC.
15760 # ICC 10 doesn't accept -KPIC any more.
15761 lt_prog_compiler_wl_CXX='-Wl,'
15762 lt_prog_compiler_pic_CXX='-fPIC'
15763 lt_prog_compiler_static_CXX='-static'
15766 # Portland Group C++ compiler
15767 lt_prog_compiler_wl_CXX='-Wl,'
15768 lt_prog_compiler_pic_CXX='-fpic'
15769 lt_prog_compiler_static_CXX='-Bstatic'
15773 # Make sure the PIC flag is empty. It appears that all Alpha
15774 # Linux and Compaq Tru64 Unix objects are PIC.
15775 lt_prog_compiler_pic_CXX=
15776 lt_prog_compiler_static_CXX='-non_shared'
15778 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15779 # IBM XL 8.0, 9.0 on PPC and BlueGene
15780 lt_prog_compiler_wl_CXX='-Wl,'
15781 lt_prog_compiler_pic_CXX='-qpic'
15782 lt_prog_compiler_static_CXX='-qstaticlink'
15785 case `$CC -V 2>&1 | sed 5q` in
15788 lt_prog_compiler_pic_CXX='-KPIC'
15789 lt_prog_compiler_static_CXX='-Bstatic'
15790 lt_prog_compiler_wl_CXX='-Qoption ld '
15801 case $cc_basename in
15803 lt_prog_compiler_pic_CXX='-W c,exportall'
15809 netbsd* | netbsdelf*-gnu)
15812 # QNX uses GNU C++, but need to define -shared option too, otherwise
15813 # it will coredump.
15814 lt_prog_compiler_pic_CXX='-fPIC -shared'
15816 osf3* | osf4* | osf5*)
15817 case $cc_basename in
15819 lt_prog_compiler_wl_CXX='--backend -Wl,'
15822 # Rational C++ 2.4.1
15823 lt_prog_compiler_pic_CXX='-pic'
15826 # Digital/Compaq C++
15827 lt_prog_compiler_wl_CXX='-Wl,'
15828 # Make sure the PIC flag is empty. It appears that all Alpha
15829 # Linux and Compaq Tru64 Unix objects are PIC.
15830 lt_prog_compiler_pic_CXX=
15831 lt_prog_compiler_static_CXX='-non_shared'
15840 case $cc_basename in
15842 # Sun C++ 4.2, 5.x and Centerline C++
15843 lt_prog_compiler_pic_CXX='-KPIC'
15844 lt_prog_compiler_static_CXX='-Bstatic'
15845 lt_prog_compiler_wl_CXX='-Qoption ld '
15848 # Green Hills C++ Compiler
15849 lt_prog_compiler_pic_CXX='-PIC'
15856 case $cc_basename in
15859 lt_prog_compiler_pic_CXX='-pic'
15860 lt_prog_compiler_static_CXX='-Bstatic'
15864 lt_prog_compiler_pic_CXX='-pic'
15870 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15871 case $cc_basename in
15873 lt_prog_compiler_wl_CXX='-Wl,'
15874 lt_prog_compiler_pic_CXX='-KPIC'
15875 lt_prog_compiler_static_CXX='-Bstatic'
15880 case $cc_basename in
15882 # NonStop-UX NCC 3.20
15883 lt_prog_compiler_pic_CXX='-KPIC'
15892 lt_prog_compiler_can_build_shared_CXX=no
15898 # For platforms that do not support PIC, -DPIC is meaningless:
15900 lt_prog_compiler_pic_CXX=
15903 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15908 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15909 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15910 $as_echo_n "(cached) " >&6
15912 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15915 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15916 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15919 # Check to make sure the PIC flag actually works.
15921 if test -n "$lt_prog_compiler_pic_CXX"; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15923 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15924 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15925 $as_echo_n "(cached) " >&6
15927 lt_cv_prog_compiler_pic_works_CXX=no
15928 ac_outfile=conftest.$ac_objext
15929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15930 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15931 # Insert the option either (1) after the last *FLAGS variable, or
15932 # (2) before a word containing "conftest.", or (3) at the end.
15933 # Note that $ac_compile itself does not contain backslashes and begins
15934 # with a dollar sign (not a hyphen), so the echo should work correctly.
15935 # The option is referenced via a variable to avoid confusing sed.
15936 lt_compile=`echo "$ac_compile" | $SED \
15937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15939 -e 's:$: $lt_compiler_flag:'`
15940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15941 (eval "$lt_compile" 2>conftest.err)
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 if (exit $ac_status) && test -s "$ac_outfile"; then
15946 # The compiler can only warn and ignore the option if not recognized
15947 # So say no if there are warnings other than the usual output.
15948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15950 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15951 lt_cv_prog_compiler_pic_works_CXX=yes
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15958 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15960 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15961 case $lt_prog_compiler_pic_CXX in
15963 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15966 lt_prog_compiler_pic_CXX=
15967 lt_prog_compiler_can_build_shared_CXX=no
15977 # Check to make sure the static flag actually works.
15979 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15981 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15982 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15983 $as_echo_n "(cached) " >&6
15985 lt_cv_prog_compiler_static_works_CXX=no
15986 save_LDFLAGS=$LDFLAGS
15987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15988 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15990 # The linker can only warn and ignore the option if not recognized
15991 # So say no if there are warnings
15992 if test -s conftest.err; then
15993 # Append any errors to the config.log.
15994 cat conftest.err 1>&5
15995 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15997 if diff conftest.exp conftest.er2 >/dev/null; then
15998 lt_cv_prog_compiler_static_works_CXX=yes
16001 lt_cv_prog_compiler_static_works_CXX=yes
16005 LDFLAGS=$save_LDFLAGS
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16009 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16011 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16014 lt_prog_compiler_static_CXX=
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16022 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16023 $as_echo_n "(cached) " >&6
16025 lt_cv_prog_compiler_c_o_CXX=no
16026 $RM -r conftest 2>/dev/null
16030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16032 lt_compiler_flag="-o out/conftest2.$ac_objext"
16033 # Insert the option either (1) after the last *FLAGS variable, or
16034 # (2) before a word containing "conftest.", or (3) at the end.
16035 # Note that $ac_compile itself does not contain backslashes and begins
16036 # with a dollar sign (not a hyphen), so the echo should work correctly.
16037 lt_compile=`echo "$ac_compile" | $SED \
16038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16040 -e 's:$: $lt_compiler_flag:'`
16041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16042 (eval "$lt_compile" 2>out/conftest.err)
16044 cat out/conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16048 # The compiler can only warn and ignore the option if not recognized
16049 # So say no if there are warnings
16050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16053 lt_cv_prog_compiler_c_o_CXX=yes
16058 # SGI C++ compiler will create directory out/ii_files/ for
16059 # template instantiation
16060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16061 $RM out/* && rmdir out
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16068 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16073 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16074 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16075 $as_echo_n "(cached) " >&6
16077 lt_cv_prog_compiler_c_o_CXX=no
16078 $RM -r conftest 2>/dev/null
16082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16084 lt_compiler_flag="-o out/conftest2.$ac_objext"
16085 # Insert the option either (1) after the last *FLAGS variable, or
16086 # (2) before a word containing "conftest.", or (3) at the end.
16087 # Note that $ac_compile itself does not contain backslashes and begins
16088 # with a dollar sign (not a hyphen), so the echo should work correctly.
16089 lt_compile=`echo "$ac_compile" | $SED \
16090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16092 -e 's:$: $lt_compiler_flag:'`
16093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16094 (eval "$lt_compile" 2>out/conftest.err)
16096 cat out/conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16100 # The compiler can only warn and ignore the option if not recognized
16101 # So say no if there are warnings
16102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16105 lt_cv_prog_compiler_c_o_CXX=yes
16110 # SGI C++ compiler will create directory out/ii_files/ for
16111 # template instantiation
16112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16113 $RM out/* && rmdir out
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16120 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16125 hard_links=nottested
16126 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16127 # do not overwrite the value of need_locks provided by the user
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16129 $as_echo_n "checking if we can lock with hard links... " >&6; }
16132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16134 ln conftest.a conftest.b 2>&5 || hard_links=no
16135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16137 $as_echo "$hard_links" >&6; }
16138 if test no = "$hard_links"; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16140 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16152 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16153 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16156 # If we're using GNU nm, then we don't want the "-C" option.
16157 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16158 # Without the "-l" option, or with the "-B" option, AIX nm treats
16159 # weak defined symbols like other global defined symbols, whereas
16160 # GNU nm marks them as "W".
16161 # While the 'weak' keyword is ignored in the Export File, we need
16162 # it in the Import File for the 'aix-soname' feature, so we have
16163 # to replace the "-B" option with "-P" for AIX nm.
16164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16165 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'
16167 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 == "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'
16171 export_symbols_cmds_CXX=$ltdll_cmds
16173 cygwin* | mingw* | cegcc*)
16174 case $cc_basename in
16176 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16179 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'
16180 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16184 linux* | k*bsd*-gnu | gnu*)
16185 link_all_deplibs_CXX=no
16188 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16193 $as_echo "$ld_shlibs_CXX" >&6; }
16194 test no = "$ld_shlibs_CXX" && can_build_shared=no
16196 with_gnu_ld_CXX=$with_gnu_ld
16204 # Do we need to explicitly link libc?
16206 case "x$archive_cmds_need_lc_CXX" in
16208 # Assume -lc should be added
16209 archive_cmds_need_lc_CXX=yes
16211 if test yes,yes = "$GCC,$enable_shared"; then
16212 case $archive_cmds_CXX in
16214 # FIXME: we may have to deal with multi-command sequences.
16217 # Test whether the compiler implicitly links with -lc since on some
16218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16219 # to ld, don't add -lc before -lgcc.
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16221 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16222 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16223 $as_echo_n "(cached) " >&6
16226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16229 (eval $ac_compile) 2>&5
16231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16232 test $ac_status = 0; } 2>conftest.err; then
16235 libobjs=conftest.$ac_objext
16237 wl=$lt_prog_compiler_wl_CXX
16238 pic_flag=$lt_prog_compiler_pic_CXX
16244 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16245 allow_undefined_flag_CXX=
16246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16247 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16250 test $ac_status = 0; }
16252 lt_cv_archive_cmds_need_lc_CXX=no
16254 lt_cv_archive_cmds_need_lc_CXX=yes
16256 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16258 cat conftest.err 1>&5
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16264 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16265 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16334 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16336 library_names_spec=
16337 libname_spec='lib$name'
16341 postuninstall_cmds=
16345 shlibpath_overrides_runpath=unknown
16347 dynamic_linker="$host_os ld.so"
16348 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16349 need_lib_prefix=unknown
16350 hardcode_into_libs=no
16352 # when you set need_version to no, make sure it does not cause -set_version
16353 # flags to be left without arguments
16354 need_version=unknown
16360 version_type=linux # correct to gnu/linux during the next big refactor
16361 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16362 shlibpath_var=LIBPATH
16364 # AIX 3 has no versioning support, so we append a major version to the name.
16365 soname_spec='$libname$release$shared_ext$major'
16369 version_type=linux # correct to gnu/linux during the next big refactor
16372 hardcode_into_libs=yes
16373 if test ia64 = "$host_cpu"; then
16374 # AIX 5 supports IA64
16375 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16376 shlibpath_var=LD_LIBRARY_PATH
16378 # With GCC up to 2.95.x, collect2 would create an import file
16379 # for dependence libraries. The import file would start with
16380 # the line '#! .'. This would cause the generated library to
16381 # depend on '.', always an invalid library. This was fixed in
16382 # development snapshots of GCC prior to 3.0.
16384 aix4 | aix4.[01] | aix4.[01].*)
16385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16387 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16390 can_build_shared=no
16394 # Using Import Files as archive members, it is possible to support
16395 # filename-based versioning of shared library archives on AIX. While
16396 # this would work for both with and without runtime linking, it will
16397 # prevent static linking of such archives. So we do filename-based
16398 # shared library versioning with .so extension only, which is used
16399 # when both runtime linking and shared linking is enabled.
16400 # Unfortunately, runtime linking may impact performance, so we do
16401 # not want this to be the default eventually. Also, we use the
16402 # versioned .so libs for executables only if there is the -brtl
16403 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16404 # To allow for filename-based versioning support, we need to create
16405 # libNAME.so.V as an archive file, containing:
16406 # *) an Import File, referring to the versioned filename of the
16407 # archive as well as the shared archive member, telling the
16408 # bitwidth (32 or 64) of that shared object, and providing the
16409 # list of exported symbols of that shared object, eventually
16410 # decorated with the 'weak' keyword
16411 # *) the shared object with the F_LOADONLY flag set, to really avoid
16412 # it being seen by the linker.
16413 # At run time we better use the real file rather than another symlink,
16414 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16416 case $with_aix_soname,$aix_use_runtimelinking in
16417 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16418 # soname into executable. Probably we can add versioning support to
16419 # collect2, so additional links can be useful in future.
16420 aix,yes) # traditional libtool
16421 dynamic_linker='AIX unversionable lib.so'
16422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16423 # instead of lib<name>.a to let people know that these are not
16424 # typical AIX shared libraries.
16425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16427 aix,no) # traditional AIX only
16428 dynamic_linker='AIX lib.a(lib.so.V)'
16429 # We preserve .a as extension for shared libraries through AIX4.2
16430 # and later when we are not doing run time linking.
16431 library_names_spec='$libname$release.a $libname.a'
16432 soname_spec='$libname$release$shared_ext$major'
16434 svr4,*) # full svr4 only
16435 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16436 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16437 # We do not specify a path in Import Files, so LIBPATH fires.
16438 shlibpath_overrides_runpath=yes
16440 *,yes) # both, prefer svr4
16441 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16442 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16443 # unpreferred sharedlib libNAME.a needs extra handling
16444 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"'
16445 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"'
16446 # We do not specify a path in Import Files, so LIBPATH fires.
16447 shlibpath_overrides_runpath=yes
16449 *,no) # both, prefer aix
16450 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16451 library_names_spec='$libname$release.a $libname.a'
16452 soname_spec='$libname$release$shared_ext$major'
16453 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16454 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)'
16455 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"'
16458 shlibpath_var=LIBPATH
16465 # Since July 2007 AmigaOS4 officially supports .so libraries.
16466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16470 library_names_spec='$libname.ixlibrary $libname.a'
16471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16472 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'
16478 library_names_spec='$libname$shared_ext'
16479 dynamic_linker="$host_os ld.so"
16480 shlibpath_var=LIBRARY_PATH
16484 version_type=linux # correct to gnu/linux during the next big refactor
16486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16487 soname_spec='$libname$release$shared_ext$major'
16488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16489 shlibpath_var=LD_LIBRARY_PATH
16490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16492 # the default ld.so.conf also contains /usr/contrib/lib and
16493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16494 # libtool to hard-code these into programs
16497 cygwin* | mingw* | pw32* | cegcc*)
16498 version_type=windows
16503 case $GCC,$cc_basename in
16506 library_names_spec='$libname.dll.a'
16507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16508 postinstall_cmds='base_file=`basename \$file`~
16509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16510 dldir=$destdir/`dirname \$dlpath`~
16511 test -d \$dldir || mkdir -p \$dldir~
16512 $install_prog $dir/$dlname \$dldir/$dlname~
16513 chmod a+x \$dldir/$dlname~
16514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16518 dlpath=$dir/\$dldll~
16520 shlibpath_overrides_runpath=yes
16524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16525 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16529 # MinGW DLLs use traditional 'lib' prefix
16530 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16533 # pw32 DLLs use 'pw' prefix rather than 'lib'
16534 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16537 dynamic_linker='Win32 ld.exe'
16542 libname_spec='$name'
16543 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16544 library_names_spec='$libname.dll.lib'
16548 sys_lib_search_path_spec=
16551 for lt_path in $LIB
16554 # Let DOS variable expansion print the short 8.3 style file name.
16555 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16556 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16559 # Convert to MSYS style.
16560 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16563 # Convert to unix form, then to dos form, then back to unix form
16564 # but this time dos style (no spaces!) so that the unix form looks
16565 # like /cygdrive/c/PROGRA~1:/cygdr...
16566 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16567 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16568 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16571 sys_lib_search_path_spec=$LIB
16572 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16573 # It is most probably a Windows format PATH.
16574 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16576 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16578 # FIXME: find the short name or the path components, as spaces are
16579 # common. (e.g. "Program Files" -> "PROGRA~1")
16583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16584 postinstall_cmds='base_file=`basename \$file`~
16585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16586 dldir=$destdir/`dirname \$dlpath`~
16587 test -d \$dldir || mkdir -p \$dldir~
16588 $install_prog $dir/$dlname \$dldir/$dlname'
16589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16590 dlpath=$dir/\$dldll~
16592 shlibpath_overrides_runpath=yes
16593 dynamic_linker='Win32 link.exe'
16597 # Assume MSVC wrapper
16598 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16599 dynamic_linker='Win32 ld.exe'
16602 # FIXME: first we should search . and the directory the executable is in
16606 darwin* | rhapsody*)
16607 dynamic_linker="$host_os dyld"
16608 version_type=darwin
16611 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16612 soname_spec='$libname$release$major$shared_ext'
16613 shlibpath_overrides_runpath=yes
16614 shlibpath_var=DYLD_LIBRARY_PATH
16615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16617 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16621 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
16629 freebsd* | dragonfly*)
16630 # DragonFly does not have aout. When/if they implement a new
16631 # versioning mechanism, adjust this.
16632 if test -x /usr/bin/objformat; then
16633 objformat=`/usr/bin/objformat`
16636 freebsd[23].*) objformat=aout ;;
16637 *) objformat=elf ;;
16640 version_type=freebsd-$objformat
16641 case $version_type in
16643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16644 soname_spec='$libname$release$shared_ext$major'
16649 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16653 shlibpath_var=LD_LIBRARY_PATH
16656 shlibpath_overrides_runpath=yes
16658 freebsd3.[01]* | freebsdelf3.[01]*)
16659 shlibpath_overrides_runpath=yes
16660 hardcode_into_libs=yes
16662 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16663 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16664 shlibpath_overrides_runpath=no
16665 hardcode_into_libs=yes
16667 *) # from 4.6 on, and DragonFly
16668 shlibpath_overrides_runpath=yes
16669 hardcode_into_libs=yes
16675 version_type=linux # correct to gnu/linux during the next big refactor
16678 dynamic_linker="$host_os runtime_loader"
16679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16680 soname_spec='$libname$release$shared_ext$major'
16681 shlibpath_var=LIBRARY_PATH
16682 shlibpath_overrides_runpath=no
16683 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16684 hardcode_into_libs=yes
16687 hpux9* | hpux10* | hpux11*)
16688 # Give a soname corresponding to the major version so that dld.sl refuses to
16689 # link against other versions.
16696 hardcode_into_libs=yes
16697 dynamic_linker="$host_os dld.so"
16698 shlibpath_var=LD_LIBRARY_PATH
16699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16701 soname_spec='$libname$release$shared_ext$major'
16702 if test 32 = "$HPUX_IA64_MODE"; then
16703 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16704 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16707 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16712 hardcode_into_libs=yes
16713 dynamic_linker="$host_os dld.sl"
16714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16717 soname_spec='$libname$release$shared_ext$major'
16718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16723 dynamic_linker="$host_os dld.sl"
16724 shlibpath_var=SHLIB_PATH
16725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16727 soname_spec='$libname$release$shared_ext$major'
16730 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16731 postinstall_cmds='chmod 555 $lib'
16732 # or fails outright, so override atomically:
16733 install_override_mode=555
16737 version_type=linux # correct to gnu/linux during the next big refactor
16740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16741 soname_spec='$libname$release$shared_ext$major'
16742 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16743 shlibpath_var=LD_LIBRARY_PATH
16744 shlibpath_overrides_runpath=no
16745 hardcode_into_libs=yes
16748 irix5* | irix6* | nonstopux*)
16750 nonstopux*) version_type=nonstopux ;;
16752 if test yes = "$lt_cv_prog_gnu_ld"; then
16753 version_type=linux # correct to gnu/linux during the next big refactor
16760 soname_spec='$libname$release$shared_ext$major'
16761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16763 irix5* | nonstopux*)
16764 libsuff= shlibsuff=
16767 case $LD in # libtool.m4 will add one of these switches to LD
16768 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16769 libsuff= shlibsuff= libmagic=32-bit;;
16770 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16771 libsuff=32 shlibsuff=N32 libmagic=N32;;
16772 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16773 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16774 *) libsuff= shlibsuff= libmagic=never-match;;
16778 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16779 shlibpath_overrides_runpath=no
16780 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16781 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16782 hardcode_into_libs=yes
16785 # No shared lib support for Linux oldld, aout, or coff.
16786 linux*oldld* | linux*aout* | linux*coff*)
16791 version_type=none # Android doesn't support versioned libraries.
16794 library_names_spec='$libname$release$shared_ext'
16795 soname_spec='$libname$release$shared_ext'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 shlibpath_overrides_runpath=yes
16800 # This implies no fast_install, which is unacceptable.
16801 # Some rework will be needed to allow for fast_install
16802 # before this can be enabled.
16803 hardcode_into_libs=yes
16805 dynamic_linker='Android linker'
16806 # Don't embed -rpath directories since the linker doesn't support them.
16807 hardcode_libdir_flag_spec_CXX='-L$libdir'
16810 # This must be glibc/ELF.
16811 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16812 version_type=linux # correct to gnu/linux during the next big refactor
16815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16816 soname_spec='$libname$release$shared_ext$major'
16817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16818 shlibpath_var=LD_LIBRARY_PATH
16819 shlibpath_overrides_runpath=no
16821 # Some binutils ld are patched to set DT_RUNPATH
16822 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16823 $as_echo_n "(cached) " >&6
16825 lt_cv_shlibpath_overrides_runpath=no
16826 save_LDFLAGS=$LDFLAGS
16827 save_libdir=$libdir
16828 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16829 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831 /* end confdefs.h. */
16841 if ac_fn_cxx_try_link "$LINENO"; then :
16842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16843 lt_cv_shlibpath_overrides_runpath=yes
16846 rm -f core conftest.err conftest.$ac_objext \
16847 conftest$ac_exeext conftest.$ac_ext
16848 LDFLAGS=$save_LDFLAGS
16849 libdir=$save_libdir
16853 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16855 # This implies no fast_install, which is unacceptable.
16856 # Some rework will be needed to allow for fast_install
16857 # before this can be enabled.
16858 hardcode_into_libs=yes
16860 # Ideally, we could use ldconfig to report *all* directores which are
16861 # searched for libraries, however this is still not possible. Aside from not
16862 # being certain /sbin/ldconfig is available, command
16863 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16864 # even though it is searched at run-time. Try to do the best guess by
16865 # appending ld.so.conf contents (and includes) to the search path.
16866 if test -f /etc/ld.so.conf; then
16867 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' ' '`
16868 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16871 # We used to test for /lib/ld.so.1 and disable shared libraries on
16872 # powerpc, because MkLinux only supported shared libraries with the
16873 # GNU dynamic linker. Since this was broken with cross compilers,
16874 # most powerpc-linux boxes support dynamic linking these days and
16875 # people can always --disable-shared, the test was removed, and we
16876 # assume the GNU/Linux dynamic linker is in use.
16877 dynamic_linker='GNU/Linux ld.so'
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16885 soname_spec='${libname}${release}${shared_ext}$major'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 shlibpath_overrides_runpath=no
16888 hardcode_into_libs=yes
16889 dynamic_linker='NetBSD ld.elf_so'
16896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16897 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16899 dynamic_linker='NetBSD (a.out) ld.so'
16901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16902 soname_spec='$libname$release$shared_ext$major'
16903 dynamic_linker='NetBSD ld.elf_so'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 shlibpath_overrides_runpath=yes
16907 hardcode_into_libs=yes
16911 version_type=linux # correct to gnu/linux during the next big refactor
16912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16913 shlibpath_var=LD_LIBRARY_PATH
16914 shlibpath_overrides_runpath=yes
16921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16922 soname_spec='$libname$release$shared_ext$major'
16923 shlibpath_var=LD_LIBRARY_PATH
16924 shlibpath_overrides_runpath=no
16925 hardcode_into_libs=yes
16926 dynamic_linker='ldqnx.so'
16929 openbsd* | bitrig*)
16931 sys_lib_dlsearch_path_spec=/usr/lib
16933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16938 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16940 shlibpath_var=LD_LIBRARY_PATH
16941 shlibpath_overrides_runpath=yes
16945 libname_spec='$name'
16946 version_type=windows
16950 # OS/2 can only load a DLL with a base name of 8 characters or less.
16951 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16952 v=$($ECHO $release$versuffix | tr -d .-);
16953 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16954 $ECHO $n$v`$shared_ext'
16955 library_names_spec='${libname}_dll.$libext'
16956 dynamic_linker='OS/2 ld.exe'
16957 shlibpath_var=BEGINLIBPATH
16958 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16960 postinstall_cmds='base_file=`basename \$file`~
16961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16962 dldir=$destdir/`dirname \$dlpath`~
16963 test -d \$dldir || mkdir -p \$dldir~
16964 $install_prog $dir/$dlname \$dldir/$dlname~
16965 chmod a+x \$dldir/$dlname~
16966 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16967 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16969 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16970 dlpath=$dir/\$dldll~
16974 osf3* | osf4* | osf5*)
16978 soname_spec='$libname$release$shared_ext$major'
16979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16980 shlibpath_var=LD_LIBRARY_PATH
16981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16990 version_type=linux # correct to gnu/linux during the next big refactor
16993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16994 soname_spec='$libname$release$shared_ext$major'
16995 shlibpath_var=LD_LIBRARY_PATH
16996 shlibpath_overrides_runpath=yes
16997 hardcode_into_libs=yes
16998 # ldd complains unless libraries are executable
16999 postinstall_cmds='chmod +x $lib'
17004 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17005 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 shlibpath_overrides_runpath=yes
17008 if test yes = "$with_gnu_ld"; then
17015 version_type=linux # correct to gnu/linux during the next big refactor
17016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17017 soname_spec='$libname$release$shared_ext$major'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 case $host_vendor in
17021 shlibpath_overrides_runpath=no
17023 runpath_var=LD_RUN_PATH
17031 shlibpath_overrides_runpath=no
17032 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17038 if test -d /usr/nec; then
17039 version_type=linux # correct to gnu/linux during the next big refactor
17040 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17041 soname_spec='$libname$shared_ext.$major'
17042 shlibpath_var=LD_LIBRARY_PATH
17046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17051 soname_spec='$libname$release$shared_ext$major'
17052 shlibpath_var=LD_LIBRARY_PATH
17053 shlibpath_overrides_runpath=yes
17054 hardcode_into_libs=yes
17055 if test yes = "$with_gnu_ld"; then
17056 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17058 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17061 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17065 sys_lib_dlsearch_path_spec='/usr/lib'
17069 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17070 version_type=linux # correct to gnu/linux during the next big refactor
17073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17074 shlibpath_var=LD_LIBRARY_PATH
17075 shlibpath_overrides_runpath=no
17076 hardcode_into_libs=yes
17080 version_type=linux # correct to gnu/linux during the next big refactor
17081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17082 soname_spec='$libname$release$shared_ext$major'
17083 shlibpath_var=LD_LIBRARY_PATH
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17091 $as_echo "$dynamic_linker" >&6; }
17092 test no = "$dynamic_linker" && can_build_shared=no
17094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17095 if test yes = "$GCC"; then
17096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17099 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17100 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17103 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17104 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17107 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17108 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17110 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17111 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17113 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17114 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17156 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17157 hardcode_action_CXX=
17158 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17159 test -n "$runpath_var_CXX" ||
17160 test yes = "$hardcode_automatic_CXX"; then
17162 # We can hardcode non-existent directories.
17163 if test no != "$hardcode_direct_CXX" &&
17164 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17165 # have to relink, otherwise we might link with an installed library
17166 # when we should be linking with a yet-to-be-installed one
17167 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17168 test no != "$hardcode_minus_L_CXX"; then
17169 # Linking always hardcodes the temporary library directory.
17170 hardcode_action_CXX=relink
17172 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17173 hardcode_action_CXX=immediate
17176 # We cannot hardcode anything, or else we can only hardcode existing
17178 hardcode_action_CXX=unsupported
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17181 $as_echo "$hardcode_action_CXX" >&6; }
17183 if test relink = "$hardcode_action_CXX" ||
17184 test yes = "$inherit_rpath_CXX"; then
17185 # Fast installation is not supported
17186 enable_fast_install=no
17187 elif test yes = "$shlibpath_overrides_runpath" ||
17188 test no = "$enable_shared"; then
17189 # Fast installation is not necessary
17190 enable_fast_install=needless
17199 fi # test -n "$compiler"
17202 CFLAGS=$lt_save_CFLAGS
17206 with_gnu_ld=$lt_save_with_gnu_ld
17207 lt_cv_path_LDCXX=$lt_cv_path_LD
17208 lt_cv_path_LD=$lt_save_path_LD
17209 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17210 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17211 fi # test yes != "$_lt_caught_CXX_error"
17214 ac_cpp='$CPP $CPPFLAGS'
17215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17233 ac_config_commands="$ac_config_commands libtool"
17238 # Only expand once:
17242 # Extract the first word of "perl", so it can be a program name with args.
17243 set dummy perl; ac_word=$2
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17245 $as_echo_n "checking for $ac_word... " >&6; }
17246 if ${ac_cv_path_PERL+:} false; then :
17247 $as_echo_n "(cached) " >&6
17251 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17255 for as_dir in $PATH
17258 test -z "$as_dir" && as_dir=.
17259 for ac_exec_ext in '' $ac_executable_extensions; do
17260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17261 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
17262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17269 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
17273 PERL=$ac_cv_path_PERL
17274 if test -n "$PERL"; then
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
17276 $as_echo "$PERL" >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17284 # Extract the first word of "dot", so it can be a program name with args.
17285 set dummy dot; ac_word=$2
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17287 $as_echo_n "checking for $ac_word... " >&6; }
17288 if ${ac_cv_path_DOT+:} false; then :
17289 $as_echo_n "(cached) " >&6
17293 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
17296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17297 for as_dir in $PATH
17300 test -z "$as_dir" && as_dir=.
17301 for ac_exec_ext in '' $ac_executable_extensions; do
17302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17303 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
17304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17311 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="dot"
17315 DOT=$ac_cv_path_DOT
17316 if test -n "$DOT"; then
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
17318 $as_echo "$DOT" >&6; }
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321 $as_echo "no" >&6; }
17325 # Extract the first word of "doxygen", so it can be a program name with args.
17326 set dummy doxygen; ac_word=$2
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17328 $as_echo_n "checking for $ac_word... " >&6; }
17329 if ${ac_cv_path_DOXYGEN+:} false; then :
17330 $as_echo_n "(cached) " >&6
17334 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
17337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17338 for as_dir in $PATH
17341 test -z "$as_dir" && as_dir=.
17342 for ac_exec_ext in '' $ac_executable_extensions; do
17343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17344 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
17345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17352 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
17356 DOXYGEN=$ac_cv_path_DOXYGEN
17357 if test -n "$DOXYGEN"; then
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
17359 $as_echo "$DOXYGEN" >&6; }
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17362 $as_echo "no" >&6; }
17366 # Extract the first word of "xsltproc", so it can be a program name with args.
17367 set dummy xsltproc; ac_word=$2
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17369 $as_echo_n "checking for $ac_word... " >&6; }
17370 if ${ac_cv_path_XSLTPROC+:} false; then :
17371 $as_echo_n "(cached) " >&6
17375 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17379 for as_dir in $PATH
17382 test -z "$as_dir" && as_dir=.
17383 for ac_exec_ext in '' $ac_executable_extensions; do
17384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17385 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17393 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="xsltproc"
17397 XSLTPROC=$ac_cv_path_XSLTPROC
17398 if test -n "$XSLTPROC"; then
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17400 $as_echo "$XSLTPROC" >&6; }
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17403 $as_echo "no" >&6; }
17407 # Check whether --enable-documentation was given.
17408 if test "${enable_documentation+set}" = set; then :
17409 enableval=$enable_documentation; ENABLE_DOCUMENTATION=$enableval
17411 ENABLE_DOCUMENTATION=auto
17414 if test "x$ENABLE_DOCUMENTATION" != xno; then :
17417 if test "x$MMDOCTOOLDIR" = x; then :
17418 mm_err='The mm-common-util module is available, but the installation of mm-common on this
17419 machine is missing the shared documentation utilities of the GNOME C++
17420 bindings. It may be necessary to upgrade to a more recent release of
17421 mm-common in order to build '$PACKAGE_NAME' and install the documentation.'
17422 elif test "x$PERL" = xperl; then :
17423 mm_err='Perl is required for installing the documentation.'
17424 elif test "x$USE_MAINTAINER_MODE" != xno; then :
17426 test "x$DOT" != xdot || mm_err=' dot'
17427 test "x$DOXYGEN" != xdoxygen || mm_err="$mm_err doxygen"
17428 test "x$XSLTPROC" != xxsltproc || mm_err="$mm_err xsltproc"
17429 test -z "$mm_err" || mm_err='The documentation cannot be generated because
17430 not all of the required tools are available:'$mm_err
17433 if test -z "$mm_err"; then :
17434 ENABLE_DOCUMENTATION=yes
17435 elif test "x$ENABLE_DOCUMENTATION" = xyes; then :
17436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17438 as_fn_error $? "$mm_err
17439 See \`config.log' for more details" "$LINENO" 5; }
17441 ENABLE_DOCUMENTATION=no; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $mm_err" >&5
17442 $as_echo "$as_me: WARNING: $mm_err" >&2;}
17446 if test "x$ENABLE_DOCUMENTATION" = xyes; then
17447 ENABLE_DOCUMENTATION_TRUE=
17448 ENABLE_DOCUMENTATION_FALSE='#'
17450 ENABLE_DOCUMENTATION_TRUE='#'
17451 ENABLE_DOCUMENTATION_FALSE=
17466 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17467 if test -n "$ac_tool_prefix"; then
17468 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17469 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17471 $as_echo_n "checking for $ac_word... " >&6; }
17472 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17473 $as_echo_n "(cached) " >&6
17475 case $PKG_CONFIG in
17477 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17481 for as_dir in $PATH
17484 test -z "$as_dir" && as_dir=.
17485 for ac_exec_ext in '' $ac_executable_extensions; do
17486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17487 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17498 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17499 if test -n "$PKG_CONFIG"; then
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17501 $as_echo "$PKG_CONFIG" >&6; }
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17504 $as_echo "no" >&6; }
17509 if test -z "$ac_cv_path_PKG_CONFIG"; then
17510 ac_pt_PKG_CONFIG=$PKG_CONFIG
17511 # Extract the first word of "pkg-config", so it can be a program name with args.
17512 set dummy pkg-config; ac_word=$2
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17514 $as_echo_n "checking for $ac_word... " >&6; }
17515 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17516 $as_echo_n "(cached) " >&6
17518 case $ac_pt_PKG_CONFIG in
17520 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17524 for as_dir in $PATH
17527 test -z "$as_dir" && as_dir=.
17528 for ac_exec_ext in '' $ac_executable_extensions; do
17529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17530 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17541 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17542 if test -n "$ac_pt_PKG_CONFIG"; then
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17544 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17547 $as_echo "no" >&6; }
17550 if test "x$ac_pt_PKG_CONFIG" = x; then
17553 case $cross_compiling:$ac_tool_warned in
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17557 ac_tool_warned=yes ;;
17559 PKG_CONFIG=$ac_pt_PKG_CONFIG
17562 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17566 if test -n "$PKG_CONFIG"; then
17567 _pkg_min_version=0.9.0
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17569 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17570 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17572 $as_echo "yes" >&6; }
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17575 $as_echo "no" >&6; }
17579 if test "x$ENABLE_DOCUMENTATION" != xno; then :
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstdc documentation" >&5
17581 $as_echo_n "checking for libstdc documentation... " >&6; }
17583 # Check whether --with-libstdc-doc was given.
17584 if test "${with_libstdc_doc+set}" = set; then :
17585 withval=$with_libstdc_doc;
17586 mm_htmlrefdir=`expr "X@$withval" : '.*@\(.*\)' 2>&5`
17587 mm_tagname=`expr "X/$withval" : '[^@]*[\\/]\([^\\/@]*\)@' 2>&5`
17588 mm_tagpath=`expr "X$withval" : 'X\([^@]*\)@' 2>&5`
17589 test "x$mm_tagname" != x || mm_tagname="libstdc++.tag"
17590 test "x$mm_tagpath" != x || mm_tagpath=$mm_tagname
17594 mm_tagname="libstdc++.tag"
17595 mm_tagpath=$mm_tagname
17598 # Prepend working direcory if the tag file path starts with ./ or ../
17599 case $mm_tagpath in #(
17600 .[\\/]*|..[\\/]*) :
17601 mm_tagpath=`pwd`/$mm_tagpath ;; #(
17606 # If no local directory was specified, get the default from the .pc file
17607 if test "x$mm_htmlrefdir" = x; then :
17609 mm_htmlrefdir=`$PKG_CONFIG --variable=htmlrefdir "mm-common-libstdc++" 2>&5`
17611 # If the user specified a Web URL, allow it to override the public location
17612 case $mm_htmlrefdir in #(
17613 http://*|https://*) :
17614 mm_htmlrefpub=$mm_htmlrefdir ;; #(
17617 mm_htmlrefpub=`$PKG_CONFIG --variable=htmlrefpub "mm-common-libstdc++" 2>&5`
17618 test "x$mm_htmlrefpub" != x || mm_htmlrefpub=$mm_htmlrefdir
17619 test "x$mm_htmlrefdir" != x || mm_htmlrefdir=$mm_htmlrefpub
17622 # The user-supplied tag-file name takes precedence if it includes the path
17623 case $mm_tagpath in #(
17628 mm_doxytagfile=`$PKG_CONFIG --variable=doxytagfile "mm-common-libstdc++" 2>&5`
17629 test "x$mm_doxytagfile" = x || mm_tagpath=$mm_doxytagfile
17632 # Remove trailing slashes and translate to URI
17633 mm_htmlrefpub=`expr "X$mm_htmlrefpub" : 'X\(.*[^\\/]\)[\\/]*' 2>&5 | sed 's|[\\]|/|g;s| |%20|g;s|^/|file:///|;s|^.:/|file:///&|' 2>&5`
17634 mm_htmlrefdir=`expr "X$mm_htmlrefdir" : 'X\(.*[^\\/]\)[\\/]*' 2>&5 | sed 's|[\\]|/|g;s| |%20|g;s|^/|file:///|;s|^.:/|file:///&|' 2>&5`
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mm_tagpath@$mm_htmlrefdir" >&5
17637 $as_echo "$mm_tagpath@$mm_htmlrefdir" >&6; }
17639 if test "x$USE_MAINTAINER_MODE" != xno && test ! -f "$mm_tagpath"; then :
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen tag file libstdc++.tag not found" >&5
17641 $as_echo "$as_me: WARNING: Doxygen tag file libstdc++.tag not found" >&2;}
17643 if test "x$mm_htmlrefdir" = x; then :
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Location of external libstdc documentation not set" >&5
17645 $as_echo "$as_me: WARNING: Location of external libstdc documentation not set" >&2;}
17647 if test "x$DOCINSTALL_FLAGS" = x; then :
17648 DOCINSTALL_FLAGS="-l '$mm_tagname@$mm_htmlrefdir/'"
17650 DOCINSTALL_FLAGS="$DOCINSTALL_FLAGS -l '$mm_tagname@$mm_htmlrefdir/'"
17654 if test "x$mm_htmlrefpub" = x; then :
17657 mm_val="$mm_tagpath=$mm_htmlrefpub"
17659 if test "x$DOXYGEN_TAGFILES" = x; then :
17660 DOXYGEN_TAGFILES=\"$mm_val\"
17662 DOXYGEN_TAGFILES="$DOXYGEN_TAGFILES "\"$mm_val\"
17667 ac_cpp='$CXXCPP $CPPFLAGS'
17668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17673 if test "x$config_error" = xyes; then :
17674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17676 as_fn_error $? "One or more of the required C++ compiler features is missing.
17677 See \`config.log' for more details" "$LINENO" 5; }
17680 # Evaluate the --enable-warnings=level option.
17681 # Check whether --enable-warnings was given.
17682 if test "${enable_warnings+set}" = set; then :
17683 enableval=$enable_warnings; mm_enable_warnings=$enableval
17685 mm_enable_warnings=min
17688 case $ac_compile in #(
17690 mm_lang='C++' mm_cc=$CXX mm_conftest="conftest.${ac_ext-cc}" ;; #(
17692 mm_lang=C mm_cc=$CC mm_conftest="conftest.${ac_ext-c}" ;; #(
17694 as_fn_error $? "current language is neither C nor C++" "$LINENO" 5 ;;
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which $mm_lang compiler warning flags to use" >&5
17697 $as_echo_n "checking which $mm_lang compiler warning flags to use... " >&6; }
17699 case $mm_enable_warnings in #(
17701 mm_warning_flags= ;; #(
17703 mm_warning_flags="-pedantic -Wall -Wextra -Wsuggest-override -Wshadow -Wzero-as-null-pointer-constant -Wformat-security" ;; #(
17705 mm_warning_flags="-pedantic -Wall -Wextra -Wsuggest-override -Wshadow -Wzero-as-null-pointer-constant -Wformat-security -Werror" ;; #(
17707 mm_warning_flags="-Wall" ;;
17709 if test "x$mm_warning_flags" != x; then :
17711 # Keep in mind that the dummy source must be devoid of any
17712 # problems that might cause diagnostics.
17713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h. */
17716 int main(int argc, char** argv) { return !argv ? 0 : argc; }
17719 for mm_flag in $mm_warning_flags
17721 # Test whether the compiler accepts the flag. Look at standard output,
17722 # since GCC only shows a warning message if an option is not supported.
17723 mm_cc_out=`$mm_cc $mm_tested_flags $mm_flag -c "$mm_conftest" 2>&1 || echo failed`
17724 rm -f "conftest.${OBJEXT-o}"
17726 if test "x$mm_cc_out" = x; then :
17727 if test "x$mm_tested_flags" = x; then :
17728 mm_tested_flags=$mm_flag
17730 mm_tested_flags="$mm_tested_flags $mm_flag"
17739 rm -f "$mm_conftest"
17742 mm_all_flags=$mm_tested_flags
17743 SIGC_WXXFLAGS=$mm_all_flags
17745 test "x$mm_all_flags" != x || mm_all_flags=none
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mm_all_flags" >&5
17747 $as_echo "$mm_all_flags" >&6; }
17749 # Offer the ability to omit some API from the library.
17750 # Check whether --enable-deprecated-api was given.
17751 if test "${enable_deprecated_api+set}" = set; then :
17752 enableval=$enable_deprecated_api; mm_enable_deprecated_api=$enableval
17754 mm_enable_deprecated_api=yes
17756 if test "x$mm_enable_deprecated_api" = xno; then :
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Deprecated API will not be built, breaking compatibility.
17758 Do not use this option for distribution packages." >&5
17759 $as_echo "$as_me: WARNING: Deprecated API will not be built, breaking compatibility.
17760 Do not use this option for distribution packages." >&2;}
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: Deprecated API will be built, for backwards-compatibility." >&5
17763 $as_echo "$as_me: Deprecated API will be built, for backwards-compatibility." >&6;}
17765 if test "x$mm_enable_deprecated_api" = xno; then
17766 DISABLE_DEPRECATED_API_TRUE=
17767 DISABLE_DEPRECATED_API_FALSE='#'
17769 DISABLE_DEPRECATED_API_TRUE='#'
17770 DISABLE_DEPRECATED_API_FALSE=
17773 if test "x$mm_enable_deprecated_api" = xno; then :
17775 $as_echo "#define SIGCXX_DISABLE_DEPRECATED 1" >>confdefs.h
17780 # Check whether --enable-benchmark was given.
17781 if test "${enable_benchmark+set}" = set; then :
17782 enableval=$enable_benchmark;
17786 if test "x$enable_benchmark" = xyes; then
17787 SIGC_BUILD_BENCHMARK_TRUE=
17788 SIGC_BUILD_BENCHMARK_FALSE='#'
17790 SIGC_BUILD_BENCHMARK_TRUE='#'
17791 SIGC_BUILD_BENCHMARK_FALSE=
17795 if test "x$enable_benchmark" = xyes; then :
17797 #Use boost::timer for our benchmark, if it's available.
17798 # See http://www.gnu.org/software/autoconf-archive/ax_boost_base.html
17799 # Boost System is needed by Boost Timer
17802 # Check whether --with-boost was given.
17803 if test "${with_boost+set}" = set; then :
17804 withval=$with_boost;
17805 if test "$withval" = "no"; then
17807 elif test "$withval" = "yes"; then
17812 ac_boost_path="$withval"
17822 # Check whether --with-boost-libdir was given.
17823 if test "${with_boost_libdir+set}" = set; then :
17824 withval=$with_boost_libdir;
17825 if test -d "$withval"
17827 ac_boost_lib_path="$withval"
17829 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
17833 ac_boost_lib_path=""
17838 if test "x$want_boost" = "xyes"; then
17839 boost_lib_version_req=1.20.0
17840 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
17841 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
17842 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
17843 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
17844 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
17845 boost_lib_version_req_sub_minor="0"
17847 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
17849 $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
17856 libsubdirs="lib64 libx32 lib lib64"
17858 ppc64|s390x|sparc64|aarch64|ppc64le)
17859 libsubdirs="lib64 lib lib64 ppc64le"
17864 libsubdirs="lib/${host_cpu}-${host_os} $libsubdirs"
17866 case ${host_cpu} in
17868 libsubdirs="lib/i386-${host_os} $libsubdirs"
17872 if test "$ac_boost_path" != ""; then
17873 BOOST_CPPFLAGS="-I$ac_boost_path/include"
17874 for ac_boost_path_tmp in $libsubdirs; do
17875 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
17876 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
17880 elif test "$cross_compiling" != yes; then
17881 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
17882 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
17883 for libsubdir in $libsubdirs ; do
17884 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
17886 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
17887 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
17893 if test "$ac_boost_lib_path" != ""; then
17894 BOOST_LDFLAGS="-L$ac_boost_lib_path"
17897 CPPFLAGS_SAVED="$CPPFLAGS"
17898 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
17901 LDFLAGS_SAVED="$LDFLAGS"
17902 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
17907 ac_cpp='$CXXCPP $CPPFLAGS'
17908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913 /* end confdefs.h. */
17915 #include <boost/version.hpp>
17921 #if BOOST_VERSION >= $WANT_BOOST_VERSION
17922 // Everything is okay
17924 # error Boost version is too old
17931 if ac_fn_cxx_try_compile "$LINENO"; then :
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17934 $as_echo "yes" >&6; }
17939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17941 ac_cpp='$CXXCPP $CPPFLAGS'
17942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17949 if test "x$succeeded" != "xyes"; then
17950 CPPFLAGS="$CPPFLAGS_SAVED"
17951 LDFLAGS="$LDFLAGS_SAVED"
17955 if test "$ac_boost_path" != ""; then
17956 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
17957 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
17958 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
17959 V_CHECK=`expr $_version_tmp \> $_version`
17960 if test "$V_CHECK" = "1" ; then
17961 _version=$_version_tmp
17963 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
17964 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
17966 if test -z "$BOOST_CPPFLAGS"; then
17967 if test -d "$ac_boost_path/boost" && test -r "$ac_boost_path/boost"; then
17968 BOOST_CPPFLAGS="-I$ac_boost_path"
17973 if test "$cross_compiling" != yes; then
17974 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
17975 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
17976 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
17977 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
17978 V_CHECK=`expr $_version_tmp \> $_version`
17979 if test "$V_CHECK" = "1" ; then
17980 _version=$_version_tmp
17981 best_path=$ac_boost_path
17987 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
17988 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
17989 if test "$ac_boost_lib_path" = ""; then
17990 for libsubdir in $libsubdirs ; do
17991 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
17993 BOOST_LDFLAGS="-L$best_path/$libsubdir"
17997 if test "x$BOOST_ROOT" != "x"; then
17998 for libsubdir in $libsubdirs ; do
17999 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
18001 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
18002 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
18003 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
18004 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
18005 V_CHECK=`expr $stage_version_shorten \>\= $_version`
18006 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
18008 $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
18009 BOOST_CPPFLAGS="-I$BOOST_ROOT"
18010 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
18016 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18018 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
18022 ac_cpp='$CXXCPP $CPPFLAGS'
18023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h. */
18030 #include <boost/version.hpp>
18036 #if BOOST_VERSION >= $WANT_BOOST_VERSION
18037 // Everything is okay
18039 # error Boost version is too old
18046 if ac_fn_cxx_try_compile "$LINENO"; then :
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18049 $as_echo "yes" >&6; }
18054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056 ac_cpp='$CXXCPP $CPPFLAGS'
18057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18063 if test "$succeeded" != "yes" ; then
18064 if test "$_version" = "0" ; then
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
18066 $as_echo "$as_me: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;}
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
18069 $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
18071 # execute ACTION-IF-NOT-FOUND (if present):
18077 $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
18079 # execute ACTION-IF-FOUND (if present):
18083 CPPFLAGS="$CPPFLAGS_SAVED"
18084 LDFLAGS="$LDFLAGS_SAVED"
18090 # Check whether --with-boost-system was given.
18091 if test "${with_boost_system+set}" = set; then :
18092 withval=$with_boost_system;
18093 if test "$withval" = "no"; then
18095 elif test "$withval" = "yes"; then
18097 ax_boost_user_system_lib=""
18100 ax_boost_user_system_lib="$withval"
18109 if test "x$want_boost" = "xyes"; then
18112 CPPFLAGS_SAVED="$CPPFLAGS"
18113 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18116 LDFLAGS_SAVED="$LDFLAGS"
18117 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
18121 $as_echo_n "checking whether the Boost::System library is available... " >&6; }
18122 if ${ax_cv_boost_system+:} false; then :
18123 $as_echo_n "(cached) " >&6
18126 ac_cpp='$CXXCPP $CPPFLAGS'
18127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18131 CXXFLAGS_SAVE=$CXXFLAGS
18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134 /* end confdefs.h. */
18135 #include <boost/system/error_code.hpp>
18139 boost::system::system_category
18144 if ac_fn_cxx_try_compile "$LINENO"; then :
18145 ax_cv_boost_system=yes
18147 ax_cv_boost_system=no
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 CXXFLAGS=$CXXFLAGS_SAVE
18152 ac_cpp='$CXXCPP $CPPFLAGS'
18153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
18160 $as_echo "$ax_cv_boost_system" >&6; }
18161 if test "x$ax_cv_boost_system" = "xyes"; then
18165 $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
18167 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
18169 LDFLAGS_SAVE=$LDFLAGS
18170 if test "x$ax_boost_user_system_lib" = "x"; then
18171 for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
18172 ax_lib=${libextension}
18173 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18175 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18176 if eval \${$as_ac_Lib+:} false; then :
18177 $as_echo_n "(cached) " >&6
18179 ac_check_lib_save_LIBS=$LIBS
18180 LIBS="-l$ax_lib $LIBS"
18181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18184 /* Override any GCC internal prototype to avoid an error.
18185 Use char because int might match the return type of a GCC
18186 builtin and then its argument prototype would still apply. */
18199 if ac_fn_cxx_try_link "$LINENO"; then :
18200 eval "$as_ac_Lib=yes"
18202 eval "$as_ac_Lib=no"
18204 rm -f core conftest.err conftest.$ac_objext \
18205 conftest$ac_exeext conftest.$ac_ext
18206 LIBS=$ac_check_lib_save_LIBS
18208 eval ac_res=\$$as_ac_Lib
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18210 $as_echo "$ac_res" >&6; }
18211 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18212 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
18218 if test "x$link_system" != "xyes"; then
18219 for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
18220 ax_lib=${libextension}
18221 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18223 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18224 if eval \${$as_ac_Lib+:} false; then :
18225 $as_echo_n "(cached) " >&6
18227 ac_check_lib_save_LIBS=$LIBS
18228 LIBS="-l$ax_lib $LIBS"
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18247 if ac_fn_cxx_try_link "$LINENO"; then :
18248 eval "$as_ac_Lib=yes"
18250 eval "$as_ac_Lib=no"
18252 rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18256 eval ac_res=\$$as_ac_Lib
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18258 $as_echo "$ac_res" >&6; }
18259 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18260 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
18269 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
18270 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18272 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18273 if eval \${$as_ac_Lib+:} false; then :
18274 $as_echo_n "(cached) " >&6
18276 ac_check_lib_save_LIBS=$LIBS
18277 LIBS="-l$ax_lib $LIBS"
18278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279 /* end confdefs.h. */
18281 /* Override any GCC internal prototype to avoid an error.
18282 Use char because int might match the return type of a GCC
18283 builtin and then its argument prototype would still apply. */
18296 if ac_fn_cxx_try_link "$LINENO"; then :
18297 eval "$as_ac_Lib=yes"
18299 eval "$as_ac_Lib=no"
18301 rm -f core conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext conftest.$ac_ext
18303 LIBS=$ac_check_lib_save_LIBS
18305 eval ac_res=\$$as_ac_Lib
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18307 $as_echo "$ac_res" >&6; }
18308 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18309 BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
18317 if test "x$ax_lib" = "x"; then
18318 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
18320 if test "x$link_system" = "xno"; then
18321 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
18325 CPPFLAGS="$CPPFLAGS_SAVED"
18326 LDFLAGS="$LDFLAGS_SAVED"
18331 # Check whether --with-boost-timer was given.
18332 if test "${with_boost_timer+set}" = set; then :
18333 withval=$with_boost_timer;
18334 if test "$withval" = "no"; then
18336 elif test "$withval" = "yes"; then
18338 ax_boost_user_timer_lib=""
18341 ax_boost_user_timer_lib="$withval"
18350 if test "x$want_boost" = "xyes"; then
18353 CPPFLAGS_SAVED="$CPPFLAGS"
18354 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18357 LDFLAGS_SAVED="$LDFLAGS"
18358 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Timer library is available" >&5
18362 $as_echo_n "checking whether the Boost::Timer library is available... " >&6; }
18363 if ${ax_cv_boost_timer+:} false; then :
18364 $as_echo_n "(cached) " >&6
18367 ac_cpp='$CXXCPP $CPPFLAGS'
18368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18372 CXXFLAGS_SAVE=$CXXFLAGS
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18376 #include <boost/timer/timer.hpp>
18380 boost::timer::cpu_timer().stop();
18385 if ac_fn_cxx_try_compile "$LINENO"; then :
18386 ax_cv_boost_timer=yes
18388 ax_cv_boost_timer=no
18390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18391 CXXFLAGS=$CXXFLAGS_SAVE
18393 ac_cpp='$CXXCPP $CPPFLAGS'
18394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_timer" >&5
18401 $as_echo "$ax_cv_boost_timer" >&6; }
18402 if test "x$ax_cv_boost_timer" = "xyes"; then
18406 $as_echo "#define HAVE_BOOST_TIMER /**/" >>confdefs.h
18408 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
18410 LDFLAGS_SAVE=$LDFLAGS
18411 if test "x$ax_boost_user_timer_lib" = "x"; then
18412 for libextension in `ls $BOOSTLIBDIR/libboost_timer*.so* $BOOSTLIBDIR/libboost_timer*.dylib* $BOOSTLIBDIR/libboost_timer*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_timer.*\)\.so.*$;\1;' -e 's;^lib\(boost_timer.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_timer.*\)\.a.*$;\1;'` ; do
18413 ax_lib=${libextension}
18414 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18416 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18417 if eval \${$as_ac_Lib+:} false; then :
18418 $as_echo_n "(cached) " >&6
18420 ac_check_lib_save_LIBS=$LIBS
18421 LIBS="-l$ax_lib $LIBS"
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18425 /* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18440 if ac_fn_cxx_try_link "$LINENO"; then :
18441 eval "$as_ac_Lib=yes"
18443 eval "$as_ac_Lib=no"
18445 rm -f core conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18449 eval ac_res=\$$as_ac_Lib
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18451 $as_echo "$ac_res" >&6; }
18452 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18453 BOOST_TIMER_LIB="-l$ax_lib"; link_timer="yes"; break
18459 if test "x$link_timer" != "xyes"; then
18460 for libextension in `ls $BOOSTLIBDIR/boost_timer*.dll* $BOOSTLIBDIR/boost_timer*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_timer.*\)\.dll.*$;\1;' -e 's;^\(boost_timer.*\)\.a.*$;\1;'` ; do
18461 ax_lib=${libextension}
18462 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18464 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18465 if eval \${$as_ac_Lib+:} false; then :
18466 $as_echo_n "(cached) " >&6
18468 ac_check_lib_save_LIBS=$LIBS
18469 LIBS="-l$ax_lib $LIBS"
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18473 /* Override any GCC internal prototype to avoid an error.
18474 Use char because int might match the return type of a GCC
18475 builtin and then its argument prototype would still apply. */
18488 if ac_fn_cxx_try_link "$LINENO"; then :
18489 eval "$as_ac_Lib=yes"
18491 eval "$as_ac_Lib=no"
18493 rm -f core conftest.err conftest.$ac_objext \
18494 conftest$ac_exeext conftest.$ac_ext
18495 LIBS=$ac_check_lib_save_LIBS
18497 eval ac_res=\$$as_ac_Lib
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18499 $as_echo "$ac_res" >&6; }
18500 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18501 BOOST_TIMER_LIB="-l$ax_lib"; link_timer="yes"; break
18510 for ax_lib in $ax_boost_user_timer_lib boost_timer-$ax_boost_user_timer_lib; do
18511 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
18513 $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
18514 if eval \${$as_ac_Lib+:} false; then :
18515 $as_echo_n "(cached) " >&6
18517 ac_check_lib_save_LIBS=$LIBS
18518 LIBS="-l$ax_lib $LIBS"
18519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520 /* end confdefs.h. */
18522 /* Override any GCC internal prototype to avoid an error.
18523 Use char because int might match the return type of a GCC
18524 builtin and then its argument prototype would still apply. */
18537 if ac_fn_cxx_try_link "$LINENO"; then :
18538 eval "$as_ac_Lib=yes"
18540 eval "$as_ac_Lib=no"
18542 rm -f core conftest.err conftest.$ac_objext \
18543 conftest$ac_exeext conftest.$ac_ext
18544 LIBS=$ac_check_lib_save_LIBS
18546 eval ac_res=\$$as_ac_Lib
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18548 $as_echo "$ac_res" >&6; }
18549 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18550 BOOST_TIMER_LIB="-l$ax_lib"; link_timer="yes"; break
18558 if test "x$ax_lib" = "x"; then
18559 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
18561 if test "x$link_timer" = "xno"; then
18562 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
18566 CPPFLAGS="$CPPFLAGS_SAVED"
18567 LDFLAGS="$LDFLAGS_SAVED"
18573 ac_config_files="$ac_config_files Makefile ${SIGCXX_MODULE_NAME}.pc:sigc++.pc.in ${SIGCXX_MODULE_NAME}-uninstalled.pc:sigc++-uninstalled.pc.in cmake/Makefile sigc++/Makefile examples/Makefile tests/Makefile docs/Makefile docs/reference/Doxyfile MSVC_Net2017/sigc.rc"
18576 # Copy the generated configuration headers into the MSVC project directories.
18577 ac_config_commands="$ac_config_commands MSVC_Net2017/sigc++config.h"
18579 cat >confcache <<\_ACEOF
18580 # This file is a shell script that caches the results of configure
18581 # tests run on this system so they can be shared between configure
18582 # scripts and configure runs, see configure's option --config-cache.
18583 # It is not useful on other systems. If it contains results you don't
18584 # want to keep, you may remove or edit it.
18586 # config.status only pays attention to the cache file if you give it
18587 # the --recheck option to rerun configure.
18589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18591 # following values.
18595 # The following way of writing the cache mishandles newlines in values,
18596 # but we know of no workaround that is simple, portable, and efficient.
18597 # So, we kill variables containing newlines.
18598 # Ultrix sh set writes to stderr and can't be redirected directly,
18599 # and sets the high bit in the cache file unless we assign to the vars.
18601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18602 eval ac_val=\$$ac_var
18606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18610 _ | IFS | as_nl) ;; #(
18611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18612 *) { eval $ac_var=; unset $ac_var;} ;;
18618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18619 *${as_nl}ac_space=\ *)
18620 # `set' does not quote correctly, so add quotes: double-quote
18621 # substitution turns \\\\ into \\, and sed turns \\ into \.
18624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18627 # `set' quotes correctly as required by POSIX, so do not add quotes.
18628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18642 if test -w "$cache_file"; then
18643 if test "x$cache_file" != "x/dev/null"; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18645 $as_echo "$as_me: updating cache $cache_file" >&6;}
18646 if test ! -f "$cache_file" || test -h "$cache_file"; then
18647 cat confcache >"$cache_file"
18649 case $cache_file in #(
18651 mv -f confcache "$cache_file"$$ &&
18652 mv -f "$cache_file"$$ "$cache_file" ;; #(
18654 mv -f confcache "$cache_file" ;;
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18660 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18666 # Let make expand exec_prefix.
18667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18669 DEFS=-DHAVE_CONFIG_H
18674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18675 # 1. Remove the extension, and $U if already installed.
18676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18679 # will be set to the directory where LIBOBJS objects are built.
18680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18683 LIBOBJS=$ac_libobjs
18685 LTLIBOBJS=$ac_ltlibobjs
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18689 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18690 if test -n "$am_sleep_pid"; then
18691 # Hide warnings about reused PIDs.
18692 wait $am_sleep_pid 2>/dev/null
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18695 $as_echo "done" >&6; }
18696 if test -n "$EXEEXT"; then
18698 am__EXEEXT_FALSE='#'
18700 am__EXEEXT_TRUE='#'
18704 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18705 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18708 if test -z "${DIST_DOCTOOLS_TRUE}" && test -z "${DIST_DOCTOOLS_FALSE}"; then
18709 as_fn_error $? "conditional \"DIST_DOCTOOLS\" was never defined.
18710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18712 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18713 as_fn_error $? "conditional \"AMDEP\" was never defined.
18714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18716 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18717 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18720 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18721 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18724 if test -z "${ENABLE_DOCUMENTATION_TRUE}" && test -z "${ENABLE_DOCUMENTATION_FALSE}"; then
18725 as_fn_error $? "conditional \"ENABLE_DOCUMENTATION\" was never defined.
18726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18728 if test -z "${DISABLE_DEPRECATED_API_TRUE}" && test -z "${DISABLE_DEPRECATED_API_FALSE}"; then
18729 as_fn_error $? "conditional \"DISABLE_DEPRECATED_API\" was never defined.
18730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18732 if test -z "${SIGC_BUILD_BENCHMARK_TRUE}" && test -z "${SIGC_BUILD_BENCHMARK_FALSE}"; then
18733 as_fn_error $? "conditional \"SIGC_BUILD_BENCHMARK\" was never defined.
18734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18737 : "${CONFIG_STATUS=./config.status}"
18739 ac_clean_files_save=$ac_clean_files
18740 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18742 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18744 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18746 # Generated by $as_me.
18747 # Run this file to recreate the current configuration.
18748 # Compiler output produced by configure, useful for debugging
18749 # configure, is in config.log if it exists.
18752 ac_cs_recheck=false
18755 SHELL=\${CONFIG_SHELL-$SHELL}
18758 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18759 ## -------------------- ##
18760 ## M4sh Initialization. ##
18761 ## -------------------- ##
18763 # Be more Bourne compatible
18764 DUALCASE=1; export DUALCASE # for MKS sh
18765 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18768 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18769 # is contrary to our usage. Disable this feature.
18770 alias -g '${1+"$@"}'='"$@"'
18771 setopt NO_GLOB_SUBST
18773 case `(set -o) 2>/dev/null` in #(
18785 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18786 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18787 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18788 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18789 # Prefer a ksh shell builtin over an external printf program on Solaris,
18790 # but without wasting forks for bash or zsh.
18791 if test -z "$BASH_VERSION$ZSH_VERSION" \
18792 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18793 as_echo='print -r --'
18794 as_echo_n='print -rn --'
18795 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18796 as_echo='printf %s\n'
18797 as_echo_n='printf %s'
18799 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18800 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18801 as_echo_n='/usr/ucb/echo -n'
18803 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18804 as_echo_n_body='eval
18808 expr "X$arg" : "X\\(.*\\)$as_nl";
18809 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18811 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18813 export as_echo_n_body
18814 as_echo_n='sh -c $as_echo_n_body as_echo'
18816 export as_echo_body
18817 as_echo='sh -c $as_echo_body as_echo'
18820 # The user is always right.
18821 if test "${PATH_SEPARATOR+set}" != set; then
18823 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18824 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18831 # We need space, tab and new line, in precisely that order. Quoting is
18832 # there to prevent editors from complaining about space-tab.
18833 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18834 # splitting by setting IFS to empty value.)
18837 # Find who we are. Look in the path if we contain no directory separator.
18840 *[\\/]* ) as_myself=$0 ;;
18841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18842 for as_dir in $PATH
18845 test -z "$as_dir" && as_dir=.
18846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18852 # We did not find ourselves, most probably we were run as `sh COMMAND'
18853 # in which case we are not to be found in the path.
18854 if test "x$as_myself" = x; then
18857 if test ! -f "$as_myself"; then
18858 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18862 # Unset variables that we do not need and which cause bugs (e.g. in
18863 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18864 # suppresses any "Segmentation fault" message there. '((' could
18865 # trigger a bug in pdksh 5.2.14.
18866 for as_var in BASH_ENV ENV MAIL MAILPATH
18867 do eval test x\${$as_var+set} = xset \
18868 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18881 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18884 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18885 # ----------------------------------------
18886 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18887 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18888 # script with STATUS, using 1 if that was 0.
18891 as_status=$1; test $as_status -eq 0 && as_status=1
18893 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18894 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18896 $as_echo "$as_me: error: $2" >&2
18897 as_fn_exit $as_status
18901 # as_fn_set_status STATUS
18902 # -----------------------
18903 # Set $? to STATUS, without forking.
18904 as_fn_set_status ()
18907 } # as_fn_set_status
18909 # as_fn_exit STATUS
18910 # -----------------
18911 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18915 as_fn_set_status $1
18921 # Portably unset VAR.
18924 { eval $1=; unset $1;}
18926 as_unset=as_fn_unset
18927 # as_fn_append VAR VALUE
18928 # ----------------------
18929 # Append the text in VALUE to the end of the definition contained in VAR. Take
18930 # advantage of any shell optimizations that allow amortized linear growth over
18931 # repeated appends, instead of the typical quadratic growth present in naive
18933 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18934 eval 'as_fn_append ()
18945 # as_fn_arith ARG...
18946 # ------------------
18947 # Perform arithmetic evaluation on the ARGs, and store the result in the
18948 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18949 # must be portable across $(()) and expr.
18950 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18951 eval 'as_fn_arith ()
18958 as_val=`expr "$@" || test $? -eq 1`
18963 if expr a : '\(a\)' >/dev/null 2>&1 &&
18964 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18970 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18971 as_basename=basename
18976 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18982 as_me=`$as_basename -- "$0" ||
18983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18984 X"$0" : 'X\(//\)$' \| \
18985 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18987 sed '/^.*\/\([^/][^/]*\)\/*$/{
19001 # Avoid depending upon Character Ranges.
19002 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19003 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19004 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19005 as_cr_digits='0123456789'
19006 as_cr_alnum=$as_cr_Letters$as_cr_digits
19008 ECHO_C= ECHO_N= ECHO_T=
19009 case `echo -n x` in #(((((
19011 case `echo 'xy\c'` in
19012 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19014 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19021 rm -f conf$$ conf$$.exe conf$$.file
19022 if test -d conf$$.dir; then
19023 rm -f conf$$.dir/conf$$.file
19026 mkdir conf$$.dir 2>/dev/null
19028 if (echo >conf$$.file) 2>/dev/null; then
19029 if ln -s conf$$.file conf$$ 2>/dev/null; then
19031 # ... but there are two gotchas:
19032 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19033 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19034 # In both cases, we have to default to `cp -pR'.
19035 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19037 elif ln conf$$.file conf$$ 2>/dev/null; then
19045 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19046 rmdir conf$$.dir 2>/dev/null
19051 # Create "$as_dir" as a directory, including parents if necessary.
19056 -*) as_dir=./$as_dir;;
19058 test -d "$as_dir" || eval $as_mkdir_p || {
19062 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19063 *) as_qdir=$as_dir;;
19065 as_dirs="'$as_qdir' $as_dirs"
19066 as_dir=`$as_dirname -- "$as_dir" ||
19067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19068 X"$as_dir" : 'X\(//\)[^/]' \| \
19069 X"$as_dir" : 'X\(//\)$' \| \
19070 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19071 $as_echo X"$as_dir" |
19072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19076 /^X\(\/\/\)[^/].*/{
19089 test -d "$as_dir" && break
19091 test -z "$as_dirs" || eval "mkdir $as_dirs"
19092 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19096 if mkdir -p . 2>/dev/null; then
19097 as_mkdir_p='mkdir -p "$as_dir"'
19099 test -d ./-p && rmdir ./-p
19104 # as_fn_executable_p FILE
19105 # -----------------------
19106 # Test if FILE is an executable regular file.
19107 as_fn_executable_p ()
19109 test -f "$1" && test -x "$1"
19110 } # as_fn_executable_p
19111 as_test_x='test -x'
19112 as_executable_p=as_fn_executable_p
19114 # Sed expression to map a string onto a valid CPP name.
19115 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19117 # Sed expression to map a string onto a valid variable name.
19118 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19122 ## ----------------------------------- ##
19123 ## Main body of $CONFIG_STATUS script. ##
19124 ## ----------------------------------- ##
19126 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19129 # Save the log message, to keep $0 and so on meaningful, and to
19130 # report actual input values of CONFIG_FILES etc. instead of their
19131 # values after options handling.
19133 This file was extended by libsigc++ $as_me 2.99.9, which was
19134 generated by GNU Autoconf 2.69. Invocation command line was
19136 CONFIG_FILES = $CONFIG_FILES
19137 CONFIG_HEADERS = $CONFIG_HEADERS
19138 CONFIG_LINKS = $CONFIG_LINKS
19139 CONFIG_COMMANDS = $CONFIG_COMMANDS
19142 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19147 case $ac_config_files in *"
19148 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19151 case $ac_config_headers in *"
19152 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19157 # Files that config.status was made for.
19158 config_files="$ac_config_files"
19159 config_headers="$ac_config_headers"
19160 config_commands="$ac_config_commands"
19164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19166 \`$as_me' instantiates files and other configuration actions
19167 from templates according to the current configuration. Unless the files
19168 and actions are specified as TAGs, all are instantiated by default.
19170 Usage: $0 [OPTION]... [TAG]...
19172 -h, --help print this help, then exit
19173 -V, --version print version number and configuration settings, then exit
19174 --config print configuration, then exit
19175 -q, --quiet, --silent
19176 do not print progress messages
19177 -d, --debug don't remove temporary files
19178 --recheck update $as_me by reconfiguring in the same conditions
19179 --file=FILE[:TEMPLATE]
19180 instantiate the configuration file FILE
19181 --header=FILE[:TEMPLATE]
19182 instantiate the configuration header FILE
19184 Configuration files:
19187 Configuration headers:
19190 Configuration commands:
19193 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B>.
19194 libsigc++ home page: <http://libsigc.sourceforge.net/>."
19197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19198 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19200 libsigc++ config.status 2.99.9
19201 configured by $0, generated by GNU Autoconf 2.69,
19202 with options \\"\$ac_cs_config\\"
19204 Copyright (C) 2012 Free Software Foundation, Inc.
19205 This config.status script is free software; the Free Software Foundation
19206 gives unlimited permission to copy, distribute and modify it."
19213 test -n "\$AWK" || AWK=awk
19216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19217 # The default lists apply if the user does not specify any file.
19223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19224 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19228 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19240 # Handling of the options.
19241 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19243 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19244 $as_echo "$ac_cs_version"; exit ;;
19245 --config | --confi | --conf | --con | --co | --c )
19246 $as_echo "$ac_cs_config"; exit ;;
19247 --debug | --debu | --deb | --de | --d | -d )
19249 --file | --fil | --fi | --f )
19252 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19253 '') as_fn_error $? "missing file argument" ;;
19255 as_fn_append CONFIG_FILES " '$ac_optarg'"
19256 ac_need_defaults=false;;
19257 --header | --heade | --head | --hea )
19260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19262 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19263 ac_need_defaults=false;;
19265 # Conflict between --help and --header
19266 as_fn_error $? "ambiguous option: \`$1'
19267 Try \`$0 --help' for more information.";;
19268 --help | --hel | -h )
19269 $as_echo "$ac_cs_usage"; exit ;;
19270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19271 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19274 # This is an error.
19275 -*) as_fn_error $? "unrecognized option: \`$1'
19276 Try \`$0 --help' for more information." ;;
19278 *) as_fn_append ac_config_targets " $1"
19279 ac_need_defaults=false ;;
19285 ac_configure_extra_args=
19287 if $ac_cs_silent; then
19289 ac_configure_extra_args="$ac_configure_extra_args --silent"
19293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19294 if \$ac_cs_recheck; then
19295 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19297 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19298 CONFIG_SHELL='$SHELL'
19299 export CONFIG_SHELL
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19309 ## Running $as_me. ##
19315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19319 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19322 # The HP-UX ksh and POSIX shell print the target directory to stdout
19323 # if CDPATH is set.
19324 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19326 sed_quote_subst='$sed_quote_subst'
19327 double_quote_subst='$double_quote_subst'
19328 delay_variable_subst='$delay_variable_subst'
19329 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19330 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19331 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19332 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19333 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19334 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19335 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19336 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19337 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19338 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19339 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19340 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19341 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19342 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19343 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19344 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19345 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19346 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19347 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19348 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19349 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19350 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19351 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19352 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19353 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19354 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19355 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19356 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19357 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19358 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19359 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19360 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19361 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19362 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19363 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19364 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19365 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19366 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19367 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19368 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19369 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19370 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19371 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19372 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19373 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19374 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19375 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19376 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19377 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19378 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19379 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19380 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19381 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19382 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19383 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19384 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19385 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19386 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19387 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19388 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"`'
19389 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19390 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19391 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19392 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19393 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19394 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19395 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19396 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19397 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19398 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19399 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19400 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19401 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19402 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19403 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19404 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19405 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19406 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19407 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19408 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19409 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19410 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19411 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19412 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19413 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19414 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19415 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19416 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19417 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19418 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19419 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19420 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19421 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19422 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19423 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19424 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19425 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19426 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19427 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19428 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19429 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19430 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19431 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19432 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19433 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19434 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19435 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19436 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19437 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19438 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19439 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19440 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19441 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19442 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19443 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19444 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19445 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19446 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19447 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19448 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19449 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19450 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19451 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19452 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19453 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19454 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19455 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19456 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19457 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19458 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19459 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19460 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19461 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19462 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19463 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19464 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19465 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19466 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19467 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19468 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19469 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19470 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19471 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19472 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19473 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19474 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19475 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19476 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19477 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19478 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19479 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19480 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19481 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19482 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19483 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19484 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19485 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19486 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19487 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19488 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19489 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19490 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19491 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19492 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19493 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19494 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19495 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19496 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19497 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19498 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19499 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19500 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19501 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19502 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19503 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19504 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19505 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19506 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19507 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19508 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19509 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19510 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19511 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19512 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19513 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19514 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19515 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19516 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19517 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19518 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19521 LTCFLAGS='$LTCFLAGS'
19522 compiler='$compiler_DEFAULT'
19524 # A function that is used when there is no print builtin or printf.
19525 func_fallback_echo ()
19527 eval 'cat <<_LTECHO_EOF
19532 # Quote evaled strings.
19549 deplibs_check_method \
19553 sharedlib_from_linklib_cmd \
19556 archiver_list_spec \
19562 lt_cv_sys_global_symbol_pipe \
19563 lt_cv_sys_global_symbol_to_cdecl \
19564 lt_cv_sys_global_symbol_to_import \
19565 lt_cv_sys_global_symbol_to_c_name_address \
19566 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19567 lt_cv_nm_interface \
19568 nm_file_list_spec \
19569 lt_cv_truncate_bin \
19570 lt_prog_compiler_no_builtin_flag \
19571 lt_prog_compiler_pic \
19572 lt_prog_compiler_wl \
19573 lt_prog_compiler_static \
19574 lt_cv_prog_compiler_c_o \
19583 export_dynamic_flag_spec \
19584 whole_archive_flag_spec \
19585 compiler_needs_object \
19587 allow_undefined_flag \
19588 no_undefined_flag \
19589 hardcode_libdir_flag_spec \
19590 hardcode_libdir_separator \
19594 variables_saved_for_relink \
19596 library_names_spec \
19598 install_override_mode \
19602 compiler_lib_search_dirs \
19607 compiler_lib_search_path \
19611 lt_prog_compiler_no_builtin_flag_CXX \
19612 lt_prog_compiler_pic_CXX \
19613 lt_prog_compiler_wl_CXX \
19614 lt_prog_compiler_static_CXX \
19615 lt_cv_prog_compiler_c_o_CXX \
19616 export_dynamic_flag_spec_CXX \
19617 whole_archive_flag_spec_CXX \
19618 compiler_needs_object_CXX \
19620 allow_undefined_flag_CXX \
19621 no_undefined_flag_CXX \
19622 hardcode_libdir_flag_spec_CXX \
19623 hardcode_libdir_separator_CXX \
19624 exclude_expsyms_CXX \
19625 include_expsyms_CXX \
19626 file_list_spec_CXX \
19627 compiler_lib_search_dirs_CXX \
19628 predep_objects_CXX \
19629 postdep_objects_CXX \
19632 compiler_lib_search_path_CXX; do
19633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19634 *[\\\\\\\`\\"\\\$]*)
19635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19643 # Double-quote double-evaled strings.
19644 for var in reload_cmds \
19645 old_postinstall_cmds \
19646 old_postuninstall_cmds \
19648 extract_expsyms_cmds \
19649 old_archive_from_new_cmds \
19650 old_archive_from_expsyms_cmds \
19652 archive_expsym_cmds \
19654 module_expsym_cmds \
19655 export_symbols_cmds \
19659 postuninstall_cmds \
19661 sys_lib_search_path_spec \
19662 configure_time_dlsearch_path \
19663 configure_time_lt_sys_library_path \
19665 old_archive_cmds_CXX \
19666 old_archive_from_new_cmds_CXX \
19667 old_archive_from_expsyms_cmds_CXX \
19669 archive_expsym_cmds_CXX \
19671 module_expsym_cmds_CXX \
19672 export_symbols_cmds_CXX \
19674 postlink_cmds_CXX; do
19675 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19676 *[\\\\\\\`\\"\\\$]*)
19677 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19680 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19685 ac_aux_dir='$ac_aux_dir'
19687 # See if we are running on zsh, and set the options that allow our
19688 # commands through without removal of \ escapes INIT.
19689 if test -n "\${ZSH_VERSION+set}"; then
19690 setopt NO_GLOB_SUBST
19706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19708 # Handling of arguments.
19709 for ac_config_target in $ac_config_targets
19711 case $ac_config_target in
19712 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19713 "sigc++config.h") CONFIG_HEADERS="$CONFIG_HEADERS sigc++config.h" ;;
19714 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19715 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19717 "${SIGCXX_MODULE_NAME}.pc") CONFIG_FILES="$CONFIG_FILES ${SIGCXX_MODULE_NAME}.pc:sigc++.pc.in" ;;
19718 "${SIGCXX_MODULE_NAME}-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ${SIGCXX_MODULE_NAME}-uninstalled.pc:sigc++-uninstalled.pc.in" ;;
19719 "cmake/Makefile") CONFIG_FILES="$CONFIG_FILES cmake/Makefile" ;;
19720 "sigc++/Makefile") CONFIG_FILES="$CONFIG_FILES sigc++/Makefile" ;;
19721 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19722 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19723 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19724 "docs/reference/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/reference/Doxyfile" ;;
19725 "MSVC_Net2017/sigc.rc") CONFIG_FILES="$CONFIG_FILES MSVC_Net2017/sigc.rc" ;;
19726 "MSVC_Net2017/sigc++config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MSVC_Net2017/sigc++config.h" ;;
19728 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19733 # If the user did not use the arguments to specify the items to instantiate,
19734 # then the envvar interface is used. Set only those that are not.
19735 # We use the long form for the default assignment because of an extremely
19736 # bizarre bug on SunOS 4.1.3.
19737 if $ac_need_defaults; then
19738 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19739 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19740 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19743 # Have a temporary directory for convenience. Make it in the build tree
19744 # simply because there is no reason against having it here, and in addition,
19745 # creating and moving files from /tmp can sometimes cause problems.
19746 # Hook for its removal unless debugging.
19747 # Note that there is a small window in which the directory will not be cleaned:
19748 # after its creation but before its name has been assigned to `$tmp'.
19752 trap 'exit_status=$?
19753 : "${ac_tmp:=$tmp}"
19754 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19756 trap 'as_fn_exit 1' 1 2 13 15
19758 # Create a (secure) tmp directory for tmp files.
19761 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19765 tmp=./conf$$-$RANDOM
19766 (umask 077 && mkdir "$tmp")
19767 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19770 # Set up the scripts for CONFIG_FILES section.
19771 # No need to generate them if there are no CONFIG_FILES.
19772 # This happens for instance with `./config.status config.h'.
19773 if test -n "$CONFIG_FILES"; then
19776 ac_cr=`echo X | tr X '\015'`
19777 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19778 # But we know of no other shell where ac_cr would be empty at this
19779 # point, so we can use a bashism as a fallback.
19780 if test "x$ac_cr" = x; then
19781 eval ac_cr=\$\'\\r\'
19783 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19784 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19787 ac_cs_awk_cr=$ac_cr
19790 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19795 echo "cat >conf$$subs.awk <<_ACEOF" &&
19796 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19798 } >conf$$subs.sh ||
19799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19800 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19802 for ac_last_try in false false false false false :; do
19803 . ./conf$$subs.sh ||
19804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19806 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19807 if test $ac_delim_n = $ac_delim_num; then
19809 elif $ac_last_try; then
19810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19815 rm -f conf$$subs.sh
19817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19818 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19822 s/^/S["/; s/!.*/"]=/
19832 s/\(.\{148\}\)..*/\1/
19834 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19846 s/\(.\{148\}\)..*/\1/
19848 s/["\\]/\\&/g; s/^/"/; s/$/"/
19852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19857 ' <conf$$subs.awk | sed '
19862 ' >>$CONFIG_STATUS || ac_write_fail=1
19863 rm -f conf$$subs.awk
19864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19866 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19867 for (key in S) S_is_set[key] = 1
19873 nfields = split(line, field, "@")
19875 len = length(field[1])
19876 for (i = 2; i < nfields; i++) {
19878 keylen = length(key)
19879 if (S_is_set[key]) {
19881 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19882 len += length(value) + length(field[++i])
19893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19894 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19895 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19898 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19899 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19902 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19903 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19904 # trailing colons and then remove the whole line if VPATH becomes empty
19905 # (actually we leave an empty line to preserve line numbers).
19906 if test "x$srcdir" = x.; then
19907 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19926 fi # test -n "$CONFIG_FILES"
19928 # Set up the scripts for CONFIG_HEADERS section.
19929 # No need to generate them if there are no CONFIG_HEADERS.
19930 # This happens for instance with `./config.status Makefile'.
19931 if test -n "$CONFIG_HEADERS"; then
19932 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19936 # Transform confdefs.h into an awk script `defines.awk', embedded as
19937 # here-document in config.status, that substitutes the proper values into
19938 # config.h.in to produce config.h.
19940 # Create a delimiter string that does not exist in confdefs.h, to ease
19941 # handling of long lines.
19943 for ac_last_try in false false :; do
19944 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19945 if test -z "$ac_tt"; then
19947 elif $ac_last_try; then
19948 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19954 # For the awk script, D is an array of macro values keyed by name,
19955 # likewise P contains macro parameters if any. Preserve backslash
19956 # newline sequences.
19958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19960 s/.\{148\}/&'"$ac_delim"'/g
19963 s/^[ ]*#[ ]*define[ ][ ]*/ /
19970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19972 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19977 D["\1"]=" \3\\\\\\n"\\/p
19979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19984 s/.\{148\}/&'"$ac_delim"'/g
19989 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19992 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19994 ' <confdefs.h | sed '
19995 s/'"$ac_delim"'/"\\\
19996 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19999 for (key in D) D_is_set[key] = 1
20002 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20004 split(line, arg, " ")
20005 if (arg[1] == "#") {
20009 defundef = substr(arg[1], 2)
20012 split(mac1, mac2, "(") #)
20014 prefix = substr(line, 1, index(line, defundef) - 1)
20015 if (D_is_set[macro]) {
20016 # Preserve the white space surrounding the "#".
20017 print prefix "define", macro P[macro] D[macro]
20020 # Replace #undef with comments. This is necessary, for example,
20021 # in the case of _POSIX_SOURCE, which is predefined and required
20022 # on some systems where configure will not decide to define it.
20023 if (defundef == "undef") {
20024 print "/*", prefix defundef, macro, "*/"
20032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20033 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20034 fi # test -n "$CONFIG_HEADERS"
20037 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20042 :[FHLC]) ac_mode=$ac_tag; continue;;
20044 case $ac_mode$ac_tag in
20046 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20047 :[FH]-) ac_tag=-:-;;
20048 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20065 -) ac_f="$ac_tmp/stdin";;
20066 *) # Look for the file first in the build tree, then in the source tree
20067 # (if the path is not absolute). The absolute path cannot be DOS-style,
20068 # because $ac_f cannot contain `:'.
20072 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20074 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20076 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20077 as_fn_append ac_file_inputs " '$ac_f'"
20080 # Let's still pretend it is `configure' which instantiates (i.e., don't
20081 # use $as_me), people would be surprised to read:
20082 # /* config.h. Generated by config.status. */
20083 configure_input='Generated from '`
20084 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20086 if test x"$ac_file" != x-; then
20087 configure_input="$ac_file. $configure_input"
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20089 $as_echo "$as_me: creating $ac_file" >&6;}
20091 # Neutralize special characters interpreted by sed in replacement strings.
20092 case $configure_input in #(
20093 *\&* | *\|* | *\\* )
20094 ac_sed_conf_input=`$as_echo "$configure_input" |
20095 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20096 *) ac_sed_conf_input=$configure_input;;
20100 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20106 ac_dir=`$as_dirname -- "$ac_file" ||
20107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20108 X"$ac_file" : 'X\(//\)[^/]' \| \
20109 X"$ac_file" : 'X\(//\)$' \| \
20110 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20111 $as_echo X"$ac_file" |
20112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20116 /^X\(\/\/\)[^/].*/{
20129 as_dir="$ac_dir"; as_fn_mkdir_p
20133 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20135 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20136 # A ".." for each directory in $ac_dir_suffix.
20137 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20138 case $ac_top_builddir_sub in
20139 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20140 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20143 ac_abs_top_builddir=$ac_pwd
20144 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20145 # for backward compatibility:
20146 ac_top_builddir=$ac_top_build_prefix
20149 .) # We are building in place.
20151 ac_top_srcdir=$ac_top_builddir_sub
20152 ac_abs_top_srcdir=$ac_pwd ;;
20153 [\\/]* | ?:[\\/]* ) # Absolute name.
20154 ac_srcdir=$srcdir$ac_dir_suffix;
20155 ac_top_srcdir=$srcdir
20156 ac_abs_top_srcdir=$srcdir ;;
20157 *) # Relative name.
20158 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20159 ac_top_srcdir=$ac_top_build_prefix$srcdir
20160 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20162 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20173 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20175 ac_MKDIR_P=$MKDIR_P
20177 [\\/$]* | ?:[\\/]* ) ;;
20178 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20183 # If the template does not know about datarootdir, expand it.
20184 # FIXME: This hack should be removed a few years after 2.60.
20185 ac_datarootdir_hack=; ac_datarootdir_seen=
20196 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20197 *datarootdir*) ac_datarootdir_seen=yes;;
20198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20200 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20203 ac_datarootdir_hack='
20204 s&@datadir@&$datadir&g
20205 s&@docdir@&$docdir&g
20206 s&@infodir@&$infodir&g
20207 s&@localedir@&$localedir&g
20208 s&@mandir@&$mandir&g
20209 s&\\\${datarootdir}&$datarootdir&g' ;;
20213 # Neutralize VPATH when `$srcdir' = `.'.
20214 # Shell code in configure.ac might set extrasub.
20215 # FIXME: do we really want to maintain this feature?
20216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20217 ac_sed_extra="$ac_vpsub
20220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20223 s|@configure_input@|$ac_sed_conf_input|;t t
20224 s&@top_builddir@&$ac_top_builddir_sub&;t t
20225 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20226 s&@srcdir@&$ac_srcdir&;t t
20227 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20228 s&@top_srcdir@&$ac_top_srcdir&;t t
20229 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20230 s&@builddir@&$ac_builddir&;t t
20231 s&@abs_builddir@&$ac_abs_builddir&;t t
20232 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20233 s&@INSTALL@&$ac_INSTALL&;t t
20234 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20235 $ac_datarootdir_hack
20237 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20238 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20240 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20241 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20242 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20243 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20245 which seems to be undefined. Please make sure it is defined" >&5
20246 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20247 which seems to be undefined. Please make sure it is defined" >&2;}
20249 rm -f "$ac_tmp/stdin"
20251 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20252 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20260 if test x"$ac_file" != x-; then
20262 $as_echo "/* $configure_input */" \
20263 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20264 } >"$ac_tmp/config.h" \
20265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20266 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20268 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20271 mv "$ac_tmp/config.h" "$ac_file" \
20272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20275 $as_echo "/* $configure_input */" \
20276 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20277 || as_fn_error $? "could not create -" "$LINENO" 5
20279 # Compute "$ac_file"'s index in $config_headers.
20282 for _am_header in $config_headers :; do
20283 case $_am_header in
20284 $_am_arg | $_am_arg:* )
20287 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20290 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20291 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20292 X"$_am_arg" : 'X\(//\)[^/]' \| \
20293 X"$_am_arg" : 'X\(//\)$' \| \
20294 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20295 $as_echo X"$_am_arg" |
20296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20300 /^X\(\/\/\)[^/].*/{
20312 s/.*/./; q'`/stamp-h$_am_stamp_count
20315 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20316 $as_echo "$as_me: executing $ac_file commands" >&6;}
20321 case $ac_file$ac_mode in
20322 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20323 # Older Autoconf quotes --file arguments for eval, but not when files
20324 # are listed without --file. Let's play safe and only enable the eval
20325 # if we detect the quoting.
20326 case $CONFIG_FILES in
20327 *\'*) eval set x "$CONFIG_FILES" ;;
20328 *) set x $CONFIG_FILES ;;
20333 # Strip MF so we end up with the name of the file.
20334 mf=`echo "$mf" | sed -e 's/:.*$//'`
20335 # Check whether this is an Automake generated Makefile or not.
20336 # We used to match only the files named 'Makefile.in', but
20337 # some people rename them; so instead we look at the file content.
20338 # Grep'ing the first line is not enough: some people post-process
20339 # each Makefile.in and add a new line on top of each file to say so.
20340 # Grep'ing the whole file is not good either: AIX grep has a line
20341 # limit of 2048, but all sed's we know have understand at least 4000.
20342 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20343 dirpart=`$as_dirname -- "$mf" ||
20344 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20345 X"$mf" : 'X\(//\)[^/]' \| \
20346 X"$mf" : 'X\(//\)$' \| \
20347 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20353 /^X\(\/\/\)[^/].*/{
20369 # Extract the definition of DEPDIR, am__include, and am__quote
20370 # from the Makefile without running 'make'.
20371 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20372 test -z "$DEPDIR" && continue
20373 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20374 test -z "$am__include" && continue
20375 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20376 # Find all dependency output files, they are included files with
20377 # $(DEPDIR) in their names. We invoke sed twice because it is the
20378 # simplest approach to changing $(DEPDIR) to its actual value in the
20380 for file in `sed -n "
20381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20383 # Make sure the directory exists.
20384 test -f "$dirpart/$file" && continue
20385 fdir=`$as_dirname -- "$file" ||
20386 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20387 X"$file" : 'X\(//\)[^/]' \| \
20388 X"$file" : 'X\(//\)$' \| \
20389 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20390 $as_echo X"$file" |
20391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20395 /^X\(\/\/\)[^/].*/{
20408 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20409 # echo "creating $dirpart/$file"
20410 echo '# dummy' > "$dirpart/$file"
20417 # See if we are running on zsh, and set the options that allow our
20418 # commands through without removal of \ escapes.
20419 if test -n "${ZSH_VERSION+set}"; then
20420 setopt NO_GLOB_SUBST
20424 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20427 cat <<_LT_EOF >> "$cfgfile"
20429 # Generated automatically by $as_me ($PACKAGE) $VERSION
20430 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20432 # Provide generalized library-building support services.
20433 # Written by Gordon Matzigkeit, 1996
20435 # Copyright (C) 2014 Free Software Foundation, Inc.
20436 # This is free software; see the source for copying conditions. There is NO
20437 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20439 # GNU Libtool is free software; you can redistribute it and/or modify
20440 # it under the terms of the GNU General Public License as published by
20441 # the Free Software Foundation; either version 2 of of the License, or
20442 # (at your option) any later version.
20444 # As a special exception to the GNU General Public License, if you
20445 # distribute this file as part of a program or library that is built
20446 # using GNU Libtool, you may include this file under the same
20447 # distribution terms that you use for the rest of that program.
20449 # GNU Libtool is distributed in the hope that it will be useful, but
20450 # WITHOUT ANY WARRANTY; without even the implied warranty of
20451 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20452 # GNU General Public License for more details.
20454 # You should have received a copy of the GNU General Public License
20455 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20458 # The names of the tagged configurations supported by this script.
20459 available_tags='CXX '
20461 # Configured defaults for sys_lib_dlsearch_path munging.
20462 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20464 # ### BEGIN LIBTOOL CONFIG
20466 # Whether or not to build static libraries.
20467 build_old_libs=$enable_static
20469 # Which release of libtool.m4 was used?
20470 macro_version=$macro_version
20471 macro_revision=$macro_revision
20473 # Assembler program.
20476 # DLL creation program.
20477 DLLTOOL=$lt_DLLTOOL
20479 # Object dumper program.
20480 OBJDUMP=$lt_OBJDUMP
20482 # Whether or not to build shared libraries.
20483 build_libtool_libs=$enable_shared
20485 # What type of objects to build.
20488 # Whether or not to optimize for fast installation.
20489 fast_install=$enable_fast_install
20491 # Shared archive member basename,for filename based shared library versioning on AIX.
20492 shared_archive_member_spec=$shared_archive_member_spec
20494 # Shell to use when invoking shell scripts.
20497 # An echo program that protects backslashes.
20500 # The PATH separator for the build system.
20501 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20504 host_alias=$host_alias
20508 # The build system.
20509 build_alias=$build_alias
20513 # A sed program that does not truncate output.
20516 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20517 Xsed="\$SED -e 1s/^X//"
20519 # A grep program that handles long lines.
20525 # A literal string matcher.
20528 # A BSD- or MS-compatible name lister.
20531 # Whether we need soft or hard links.
20534 # What is the maximum length of a command?
20535 max_cmd_len=$max_cmd_len
20537 # Object file suffix (normally "o").
20540 # Executable file suffix (normally "").
20543 # whether the shell understands "unset".
20546 # turn spaces into newlines.
20549 # turn newlines into spaces.
20552 # convert \$build file names to \$host format.
20553 to_host_file_cmd=$lt_cv_to_host_file_cmd
20555 # convert \$build files to toolchain format.
20556 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20558 # Method to check whether dependent libraries are shared objects.
20559 deplibs_check_method=$lt_deplibs_check_method
20561 # Command to use when deplibs_check_method = "file_magic".
20562 file_magic_cmd=$lt_file_magic_cmd
20564 # How to find potential files when deplibs_check_method = "file_magic".
20565 file_magic_glob=$lt_file_magic_glob
20567 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20568 want_nocaseglob=$lt_want_nocaseglob
20570 # Command to associate shared and link libraries.
20571 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20576 # Flags to create an archive.
20577 AR_FLAGS=$lt_AR_FLAGS
20579 # How to feed a file listing to the archiver.
20580 archiver_list_spec=$lt_archiver_list_spec
20582 # A symbol stripping program.
20585 # Commands used to install an old-style archive.
20587 old_postinstall_cmds=$lt_old_postinstall_cmds
20588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20590 # Whether to use a lock for old archive extraction.
20591 lock_old_archive_extraction=$lock_old_archive_extraction
20596 # LTCC compiler flags.
20597 LTCFLAGS=$lt_CFLAGS
20599 # Take the output of nm and produce a listing of raw symbols and C names.
20600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20602 # Transform the output of nm in a proper C declaration.
20603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20605 # Transform the output of nm into a list of symbols to manually relocate.
20606 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20608 # Transform the output of nm in a C name address pair.
20609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20611 # Transform the output of nm in a C name address pair when lib prefix is needed.
20612 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20614 # The name lister interface.
20615 nm_interface=$lt_lt_cv_nm_interface
20617 # Specify filename containing input files for \$NM.
20618 nm_file_list_spec=$lt_nm_file_list_spec
20620 # The root where to search for dependent libraries,and where our libraries should be installed.
20621 lt_sysroot=$lt_sysroot
20623 # Command to truncate a binary pipe.
20624 lt_truncate_bin=$lt_lt_cv_truncate_bin
20626 # The name of the directory that contains temporary libtool files.
20629 # Used to examine libraries when file_magic_cmd begins with "file".
20630 MAGIC_CMD=$MAGIC_CMD
20632 # Must we lock files when doing compilation?
20633 need_locks=$lt_need_locks
20636 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20638 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20639 DSYMUTIL=$lt_DSYMUTIL
20641 # Tool to change global to local symbols on Mac OS X.
20644 # Tool to manipulate fat objects and archives on Mac OS X.
20647 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20650 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20651 OTOOL64=$lt_OTOOL64
20653 # Old archive suffix (normally "a").
20656 # Shared library suffix (normally ".so").
20657 shrext_cmds=$lt_shrext_cmds
20659 # The commands to extract the exported symbol list from a shared archive.
20660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20662 # Variables whose values should be saved in libtool wrapper scripts and
20663 # restored at link time.
20664 variables_saved_for_relink=$lt_variables_saved_for_relink
20666 # Do we need the "lib" prefix for modules?
20667 need_lib_prefix=$need_lib_prefix
20669 # Do we need a version for libraries?
20670 need_version=$need_version
20672 # Library versioning type.
20673 version_type=$version_type
20675 # Shared library runtime path variable.
20676 runpath_var=$runpath_var
20678 # Shared library path variable.
20679 shlibpath_var=$shlibpath_var
20681 # Is shlibpath searched before the hard-coded library search path?
20682 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20684 # Format of library name prefix.
20685 libname_spec=$lt_libname_spec
20687 # List of archive names. First name is the real one, the rest are links.
20688 # The last name is the one that the linker finds with -lNAME
20689 library_names_spec=$lt_library_names_spec
20691 # The coded name of the library, if different from the real name.
20692 soname_spec=$lt_soname_spec
20694 # Permission mode override for installation of shared libraries.
20695 install_override_mode=$lt_install_override_mode
20697 # Command to use after installation of a shared archive.
20698 postinstall_cmds=$lt_postinstall_cmds
20700 # Command to use after uninstallation of a shared archive.
20701 postuninstall_cmds=$lt_postuninstall_cmds
20703 # Commands used to finish a libtool library installation in a directory.
20704 finish_cmds=$lt_finish_cmds
20706 # As "finish_cmds", except a single script fragment to be evaled but
20708 finish_eval=$lt_finish_eval
20710 # Whether we should hardcode library paths into libraries.
20711 hardcode_into_libs=$hardcode_into_libs
20713 # Compile-time system search path for libraries.
20714 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20716 # Detected run-time system search path for libraries.
20717 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20719 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20720 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20722 # Whether dlopen is supported.
20723 dlopen_support=$enable_dlopen
20725 # Whether dlopen of programs is supported.
20726 dlopen_self=$enable_dlopen_self
20728 # Whether dlopen of statically linked programs is supported.
20729 dlopen_self_static=$enable_dlopen_self_static
20731 # Commands to strip libraries.
20732 old_striplib=$lt_old_striplib
20733 striplib=$lt_striplib
20736 # The linker used to build libraries.
20739 # How to create reloadable object files.
20740 reload_flag=$lt_reload_flag
20741 reload_cmds=$lt_reload_cmds
20743 # Commands used to build an old-style archive.
20744 old_archive_cmds=$lt_old_archive_cmds
20746 # A language specific compiler.
20749 # Is the compiler the GNU compiler?
20752 # Compiler flag to turn off builtin functions.
20753 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20755 # Additional compiler flags for building library objects.
20756 pic_flag=$lt_lt_prog_compiler_pic
20758 # How to pass a linker flag through the compiler.
20759 wl=$lt_lt_prog_compiler_wl
20761 # Compiler flag to prevent dynamic linking.
20762 link_static_flag=$lt_lt_prog_compiler_static
20764 # Does compiler simultaneously support -c and -o options?
20765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20767 # Whether or not to add -lc for building shared libraries.
20768 build_libtool_need_lc=$archive_cmds_need_lc
20770 # Whether or not to disallow shared libs when runtime libs are static.
20771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20773 # Compiler flag to allow reflexive dlopens.
20774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20776 # Compiler flag to generate shared objects directly from archives.
20777 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20779 # Whether the compiler copes with passing no objects directly.
20780 compiler_needs_object=$lt_compiler_needs_object
20782 # Create an old-style archive from a shared archive.
20783 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20785 # Create a temporary old-style archive to link instead of a shared archive.
20786 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20788 # Commands used to build a shared archive.
20789 archive_cmds=$lt_archive_cmds
20790 archive_expsym_cmds=$lt_archive_expsym_cmds
20792 # Commands used to build a loadable module if different from building
20793 # a shared archive.
20794 module_cmds=$lt_module_cmds
20795 module_expsym_cmds=$lt_module_expsym_cmds
20797 # Whether we are building with GNU ld or not.
20798 with_gnu_ld=$lt_with_gnu_ld
20800 # Flag that allows shared libraries with undefined symbols to be built.
20801 allow_undefined_flag=$lt_allow_undefined_flag
20803 # Flag that enforces no undefined symbols.
20804 no_undefined_flag=$lt_no_undefined_flag
20806 # Flag to hardcode \$libdir into a binary during linking.
20807 # This must work even if \$libdir does not exist
20808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20810 # Whether we need a single "-rpath" flag with a separated argument.
20811 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20813 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20814 # DIR into the resulting binary.
20815 hardcode_direct=$hardcode_direct
20817 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20818 # DIR into the resulting binary and the resulting library dependency is
20819 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20820 # library is relocated.
20821 hardcode_direct_absolute=$hardcode_direct_absolute
20823 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20824 # into the resulting binary.
20825 hardcode_minus_L=$hardcode_minus_L
20827 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20828 # into the resulting binary.
20829 hardcode_shlibpath_var=$hardcode_shlibpath_var
20831 # Set to "yes" if building a shared library automatically hardcodes DIR
20832 # into the library and all subsequent libraries and executables linked
20834 hardcode_automatic=$hardcode_automatic
20836 # Set to yes if linker adds runtime paths of dependent libraries
20837 # to runtime path list.
20838 inherit_rpath=$inherit_rpath
20840 # Whether libtool must link a program against all its dependency libraries.
20841 link_all_deplibs=$link_all_deplibs
20843 # Set to "yes" if exported symbols are required.
20844 always_export_symbols=$always_export_symbols
20846 # The commands to list exported symbols.
20847 export_symbols_cmds=$lt_export_symbols_cmds
20849 # Symbols that should not be listed in the preloaded symbols.
20850 exclude_expsyms=$lt_exclude_expsyms
20852 # Symbols that must always be exported.
20853 include_expsyms=$lt_include_expsyms
20855 # Commands necessary for linking programs (against libraries) with templates.
20856 prelink_cmds=$lt_prelink_cmds
20858 # Commands necessary for finishing linking programs.
20859 postlink_cmds=$lt_postlink_cmds
20861 # Specify filename containing input files.
20862 file_list_spec=$lt_file_list_spec
20864 # How to hardcode a shared library path into an executable.
20865 hardcode_action=$hardcode_action
20867 # The directories searched by this compiler when creating a shared library.
20868 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20870 # Dependencies to place before and after the objects being linked to
20871 # create a shared library.
20872 predep_objects=$lt_predep_objects
20873 postdep_objects=$lt_postdep_objects
20874 predeps=$lt_predeps
20875 postdeps=$lt_postdeps
20877 # The library search path used internally by the compiler when linking
20878 # a shared library.
20879 compiler_lib_search_path=$lt_compiler_lib_search_path
20881 # ### END LIBTOOL CONFIG
20885 cat <<'_LT_EOF' >> "$cfgfile"
20887 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20889 # func_munge_path_list VARIABLE PATH
20890 # -----------------------------------
20891 # VARIABLE is name of variable containing _space_ separated list of
20892 # directories to be munged by the contents of PATH, which is string
20895 # string "DIR[ DIR]" will be prepended to VARIABLE
20897 # string "DIR[ DIR]" will be appended to VARIABLE
20898 # "DIRP[:DIRP]::[DIRA:]DIRA"
20899 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20900 # "DIRA[ DIRA]" will be appended to VARIABLE
20902 # VARIABLE will be replaced by "DIR[ DIR]"
20903 func_munge_path_list ()
20909 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20912 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20915 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20916 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20919 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20925 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20926 func_cc_basename ()
20928 for cc_temp in $*""; do
20930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20936 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20940 # ### END FUNCTIONS SHARED WITH CONFIGURE
20946 cat <<\_LT_EOF >> "$cfgfile"
20947 # AIX sometimes has problems with the GCC collect2 program. For some
20948 # reason, if we set the COLLECT_NAMES environment variable, the problems
20949 # vanish in a puff of smoke.
20950 if test set != "${COLLECT_NAMES+set}"; then
20952 export COLLECT_NAMES
20959 ltmain=$ac_aux_dir/ltmain.sh
20962 # We use sed instead of cat because bash on DJGPP gets confused if
20963 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20964 # text mode, it properly converts lines to CR/LF. This bash problem
20965 # is reportedly fixed, but why not run on old versions too?
20966 sed '$q' "$ltmain" >> "$cfgfile" \
20967 || (rm -f "$cfgfile"; exit 1)
20969 mv -f "$cfgfile" "$ofile" ||
20970 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20974 cat <<_LT_EOF >> "$ofile"
20976 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20978 # The linker used to build libraries.
20981 # How to create reloadable object files.
20982 reload_flag=$lt_reload_flag_CXX
20983 reload_cmds=$lt_reload_cmds_CXX
20985 # Commands used to build an old-style archive.
20986 old_archive_cmds=$lt_old_archive_cmds_CXX
20988 # A language specific compiler.
20989 CC=$lt_compiler_CXX
20991 # Is the compiler the GNU compiler?
20994 # Compiler flag to turn off builtin functions.
20995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20997 # Additional compiler flags for building library objects.
20998 pic_flag=$lt_lt_prog_compiler_pic_CXX
21000 # How to pass a linker flag through the compiler.
21001 wl=$lt_lt_prog_compiler_wl_CXX
21003 # Compiler flag to prevent dynamic linking.
21004 link_static_flag=$lt_lt_prog_compiler_static_CXX
21006 # Does compiler simultaneously support -c and -o options?
21007 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21009 # Whether or not to add -lc for building shared libraries.
21010 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21012 # Whether or not to disallow shared libs when runtime libs are static.
21013 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21015 # Compiler flag to allow reflexive dlopens.
21016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21018 # Compiler flag to generate shared objects directly from archives.
21019 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21021 # Whether the compiler copes with passing no objects directly.
21022 compiler_needs_object=$lt_compiler_needs_object_CXX
21024 # Create an old-style archive from a shared archive.
21025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21027 # Create a temporary old-style archive to link instead of a shared archive.
21028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21030 # Commands used to build a shared archive.
21031 archive_cmds=$lt_archive_cmds_CXX
21032 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21034 # Commands used to build a loadable module if different from building
21035 # a shared archive.
21036 module_cmds=$lt_module_cmds_CXX
21037 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21039 # Whether we are building with GNU ld or not.
21040 with_gnu_ld=$lt_with_gnu_ld_CXX
21042 # Flag that allows shared libraries with undefined symbols to be built.
21043 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21045 # Flag that enforces no undefined symbols.
21046 no_undefined_flag=$lt_no_undefined_flag_CXX
21048 # Flag to hardcode \$libdir into a binary during linking.
21049 # This must work even if \$libdir does not exist
21050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21052 # Whether we need a single "-rpath" flag with a separated argument.
21053 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21055 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21056 # DIR into the resulting binary.
21057 hardcode_direct=$hardcode_direct_CXX
21059 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21060 # DIR into the resulting binary and the resulting library dependency is
21061 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21062 # library is relocated.
21063 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21065 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21066 # into the resulting binary.
21067 hardcode_minus_L=$hardcode_minus_L_CXX
21069 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21070 # into the resulting binary.
21071 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21073 # Set to "yes" if building a shared library automatically hardcodes DIR
21074 # into the library and all subsequent libraries and executables linked
21076 hardcode_automatic=$hardcode_automatic_CXX
21078 # Set to yes if linker adds runtime paths of dependent libraries
21079 # to runtime path list.
21080 inherit_rpath=$inherit_rpath_CXX
21082 # Whether libtool must link a program against all its dependency libraries.
21083 link_all_deplibs=$link_all_deplibs_CXX
21085 # Set to "yes" if exported symbols are required.
21086 always_export_symbols=$always_export_symbols_CXX
21088 # The commands to list exported symbols.
21089 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21091 # Symbols that should not be listed in the preloaded symbols.
21092 exclude_expsyms=$lt_exclude_expsyms_CXX
21094 # Symbols that must always be exported.
21095 include_expsyms=$lt_include_expsyms_CXX
21097 # Commands necessary for linking programs (against libraries) with templates.
21098 prelink_cmds=$lt_prelink_cmds_CXX
21100 # Commands necessary for finishing linking programs.
21101 postlink_cmds=$lt_postlink_cmds_CXX
21103 # Specify filename containing input files.
21104 file_list_spec=$lt_file_list_spec_CXX
21106 # How to hardcode a shared library path into an executable.
21107 hardcode_action=$hardcode_action_CXX
21109 # The directories searched by this compiler when creating a shared library.
21110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21112 # Dependencies to place before and after the objects being linked to
21113 # create a shared library.
21114 predep_objects=$lt_predep_objects_CXX
21115 postdep_objects=$lt_postdep_objects_CXX
21116 predeps=$lt_predeps_CXX
21117 postdeps=$lt_postdeps_CXX
21119 # The library search path used internally by the compiler when linking
21120 # a shared library.
21121 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21123 # ### END LIBTOOL TAG CONFIG: CXX
21127 "MSVC_Net2017/sigc++config.h":C) cp -f sigc++config.h MSVC_Net2017/sigc++config.h ;;
21135 ac_clean_files=$ac_clean_files_save
21137 test $ac_write_fail = 0 ||
21138 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21141 # configure is writing to config.log, and then calls config.status.
21142 # config.status does its own redirection, appending to config.log.
21143 # Unfortunately, on DOS this fails, as config.log is still kept open
21144 # by configure, so config.status won't be able to write to it; its
21145 # output is simply discarded. So we exec the FD to /dev/null,
21146 # effectively closing config.log, so it can be properly (re)opened and
21147 # appended to by config.status. When coming back to configure, we
21148 # need to make the FD available again.
21149 if test "$no_create" != yes; then
21151 ac_config_status_args=
21152 test "$silent" = yes &&
21153 ac_config_status_args="$ac_config_status_args --quiet"
21155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21158 # would make configure fail if this is the last instruction.
21159 $ac_cs_success || as_fn_exit 1
21161 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21163 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}