2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for OpenPAM 20230627.
5 # Report bugs to <des@des.no>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and des@des.no about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
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.
325 # Do nothing but, unlike ":", preserve the value of $?.
334 # Create "$as_dir" as a directory, including parents if necessary.
339 -*) as_dir=./$as_dir;;
341 test -d "$as_dir" || eval $as_mkdir_p || {
345 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 as_dirs="'$as_qdir' $as_dirs"
349 as_dir=`$as_dirname -- "$as_dir" ||
350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
351 X"$as_dir" : 'X\(//\)[^/]' \| \
352 X"$as_dir" : 'X\(//\)$' \| \
353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
354 printf "%s\n" X"$as_dir" |
355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
372 test -d "$as_dir" && break
374 test -z "$as_dirs" || eval "mkdir $as_dirs"
375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
380 # as_fn_executable_p FILE
381 # -----------------------
382 # Test if FILE is an executable regular file.
383 as_fn_executable_p ()
385 test -f "$1" && test -x "$1"
386 } # as_fn_executable_p
387 # as_fn_append VAR VALUE
388 # ----------------------
389 # Append the text in VALUE to the end of the definition contained in VAR. Take
390 # advantage of any shell optimizations that allow amortized linear growth over
391 # repeated appends, instead of the typical quadratic growth present in naive
393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 eval 'as_fn_append ()
408 # Perform arithmetic evaluation on the ARGs, and store the result in the
409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
410 # must be portable across $(()) and expr.
411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
420 as_val=`expr "$@" || test $? -eq 1`
426 # Do nothing but, unlike ":", preserve the value of $?.
433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
434 # ----------------------------------------
435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
437 # script with STATUS, using 1 if that was 0.
440 as_status=$1; test $as_status -eq 0 && as_status=1
442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 printf "%s\n" "$as_me: error: $2" >&2
446 as_fn_exit $as_status
449 if expr a : '\(a\)' >/dev/null 2>&1 &&
450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_me=`$as_basename -- "$0" ||
469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
470 X"$0" : 'X\(//\)$' \| \
471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
472 printf "%s\n" X/"$0" |
473 sed '/^.*\/\([^/][^/]*\)\/*$/{
487 # Avoid depending upon Character Ranges.
488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
491 as_cr_digits='0123456789'
492 as_cr_alnum=$as_cr_Letters$as_cr_digits
495 as_lineno_1=$LINENO as_lineno_1a=$LINENO
496 as_lineno_2=$LINENO as_lineno_2a=$LINENO
497 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
498 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
499 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
515 chmod +x "$as_me.lineno" ||
516 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
519 # already done that, so ensure we don't try to do so again and fall
520 # in an infinite loop. This has already happened in practice.
521 _as_can_reexec=no; export _as_can_reexec
522 # Don't try to exec as it changes $[0], causing all sort of problems
523 # (the dirname of $[0] is not the place where we might find the
524 # original and so on. Autoconf is especially sensitive to this).
526 # Exit status is that of the last command.
531 # Determine whether it's possible to make 'echo' print without a newline.
532 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
533 # for compatibility with existing Makefiles.
534 ECHO_C= ECHO_N= ECHO_T=
535 case `echo -n x` in #(((((
537 case `echo 'xy\c'` in
538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
547 # For backward compatibility with old third-party macros, we provide
548 # the shell variables $as_echo and $as_echo_n. New code should use
549 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
550 as_echo='printf %s\n'
551 as_echo_n='printf %s'
554 rm -f conf$$ conf$$.exe conf$$.file
555 if test -d conf$$.dir; then
556 rm -f conf$$.dir/conf$$.file
559 mkdir conf$$.dir 2>/dev/null
561 if (echo >conf$$.file) 2>/dev/null; then
562 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 # ... but there are two gotchas:
565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
567 # In both cases, we have to default to `cp -pR'.
568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 elif ln conf$$.file conf$$ 2>/dev/null; then
578 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
579 rmdir conf$$.dir 2>/dev/null
581 if mkdir -p . 2>/dev/null; then
582 as_mkdir_p='mkdir -p "$as_dir"'
584 test -d ./-p && rmdir ./-p
589 as_executable_p=as_fn_executable_p
591 # Sed expression to map a string onto a valid CPP name.
592 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594 # Sed expression to map a string onto a valid variable name.
595 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597 SHELL=${CONFIG_SHELL-/bin/sh}
600 test -n "$DJDIR" || exec 7<&0 </dev/null
604 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
605 # so uname gets run too.
606 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
611 ac_default_prefix=/usr/local
613 ac_config_libobj_dir=.
620 # Identity of this package.
621 PACKAGE_NAME='OpenPAM'
622 PACKAGE_TARNAME='openpam'
623 PACKAGE_VERSION='20230627'
624 PACKAGE_STRING='OpenPAM 20230627'
625 PACKAGE_BUGREPORT='des@des.no'
626 PACKAGE_URL='https://openpam.org/'
628 ac_unique_file="lib/libpam/pam_start.c"
629 # Factoring default headers for most tests.
630 ac_includes_default="\
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
661 ac_subst_vars='am__EXEEXT_FALSE
665 CLANG_CODE_COVERAGE_FALSE
666 CLANG_CODE_COVERAGE_TRUE
667 WITH_CODE_COVERAGE_FALSE
668 WITH_CODE_COVERAGE_TRUE
679 WITH_SYSTEM_LIBPAM_FALSE
680 WITH_SYSTEM_LIBPAM_TRUE
689 CUSTOM_MODULES_DIR_FALSE
690 CUSTOM_MODULES_DIR_TRUE
767 INSTALL_STRIP_PROGRAM
810 program_transform_name
824 enable_option_checking
826 enable_dependency_tracking
837 enable_unversioned_modules
844 enable_developer_warnings
845 enable_debugging_symbols
849 ac_precious_vars='build_alias
870 # Initialize some variables set by options.
872 ac_init_version=false
873 ac_unrecognized_opts=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name=s,x,x,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 runstatedir='${localstatedir}/run'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 case $ac_dashdash$ac_option in
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
958 cache_file=config.cache ;;
960 -datadir | --datadir | --datadi | --datad)
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: \`$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
986 eval enable_$ac_useropt=no ;;
988 -docdir | --docdir | --docdi | --doc | --do)
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 htmldir=$ac_optarg ;;
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1057 -libdir | --libdir | --libdi | --libd)
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1148 -psdir | --psdir | --psdi | --psd | --ps)
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1157 -runstatedir | --runstatedir | --runstatedi | --runstated \
1158 | --runstate | --runstat | --runsta | --runst | --runs \
1159 | --run | --ru | --r)
1160 ac_prev=runstatedir ;;
1161 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1162 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1163 | --run=* | --ru=* | --r=*)
1164 runstatedir=$ac_optarg ;;
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 sbindir=$ac_optarg ;;
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 sharedstatedir=$ac_optarg ;;
1183 -site | --site | --sit)
1185 -site=* | --site=* | --sit=*)
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: \`$ac_useropt'"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: \`$ac_useropt'"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1241 eval with_$ac_useropt=no ;;
1244 # Obsolete; use --with-x.
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1261 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1276 # FIXME: should be removed in autoconf 3.0.
1277 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $? "missing argument to $ac_option"
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir runstatedir
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1312 # Be sure to have absolute directory names.
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1325 target=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 elif test "x$build_alias" != "x$host_alias"; then
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339 test "$silent" = yes && exec 6>/dev/null
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error $? "pwd does not report name of working directory"
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 printf "%s\n" X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures OpenPAM 20230627 to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1485 if test -n "$ac_init_help"; then
1486 case $ac_init_help in
1487 short | recursive ) echo "Configuration of OpenPAM 20230627:";;
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-silent-rules less verbose build output (undo: "make V=1")
1496 --disable-silent-rules verbose build output (undo: "make V=0")
1497 --enable-dependency-tracking
1498 do not reject slow dependency extractors
1499 --disable-dependency-tracking
1500 speeds up one-time build
1501 --enable-static[=PKGS] build static libraries [default=no]
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-fast-install[=PKGS]
1504 optimize for fast installation [default=yes]
1505 --disable-libtool-lock avoid locking (might break parallel builds)
1506 --enable-debug turn debugging macros on
1507 --disable-unversioned-modules
1508 support loading of unversioned modules
1509 --enable-developer-warnings
1510 enable strict warnings (default is NO)
1511 --enable-debugging-symbols
1512 enable debugging symbols (default is NO)
1513 --enable-werror use -Werror (default is NO)
1514 --enable-code-coverage enable code coverage
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1521 --with-aix-soname=aix|svr4|both
1522 shared library versioning (aka "SONAME") variant to
1523 provide on AIX, [default=aix].
1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1525 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1526 compiler's sysroot if not specified).
1527 --with-pkgconfigdir installation directory for .pc files
1529 --with-modules-dir=DIR OpenPAM modules directory
1530 --without-doc do not build documentation
1531 --with-pam-unix build sample pam_unix(8) module
1532 --with-pamtest build test application
1533 --with-su build sample su(1) implementation
1534 --with-system-libpam use system libpam
1536 Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1545 CXX C++ compiler command
1546 CXXFLAGS C++ compiler flags
1548 User-defined run-time library search path.
1549 CXXCPP C++ preprocessor
1550 PKG_CONFIG path to pkg-config binary
1552 list of directories to prepend to default search path
1554 list of directories to search instead of default search path
1556 C compiler flags for cryb-test
1558 linker flags for cryb-test
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to <des@des.no>.
1564 OpenPAM home page: <https://openpam.org/>.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1594 .) # We are building in place.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for configure.gnu first; this name is used for a wrapper for
1611 # Metaconfig's "Configure" on case-insensitive file systems.
1612 if test -f "$ac_srcdir/configure.gnu"; then
1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615 elif test -f "$ac_srcdir/configure"; then
1617 $SHELL "$ac_srcdir/configure" --help=recursive
1619 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 cd "$ac_pwd" || { ac_status=$?; break; }
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1628 OpenPAM configure 20230627
1629 generated by GNU Autoconf 2.71
1631 Copyright (C) 2021 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext conftest.beam
1649 if { { ac_try="$ac_compile"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 printf "%s\n" "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext
1671 printf "%s\n" "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_c_try_compile
1681 # ac_fn_c_try_cpp LINENO
1682 # ----------------------
1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 printf "%s\n" "$ac_try_echo"; } >&5
1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } > conftest.i && {
1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1709 printf "%s\n" "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1719 # ac_fn_cxx_try_compile LINENO
1720 # ----------------------------
1721 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_cxx_try_compile ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest.beam
1726 if { { ac_try="$ac_compile"
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 printf "%s\n" "$ac_try_echo"; } >&5
1733 (eval "$ac_compile") 2>conftest.err
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_cxx_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest.$ac_objext
1748 printf "%s\n" "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_cxx_try_compile
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 printf %s "checking for $2... " >&6; }
1767 if eval test \${$3+y}
1769 printf %s "(cached) " >&6
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1776 if ac_fn_c_try_compile "$LINENO"
1782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 printf "%s\n" "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 } # ac_fn_c_check_header_compile
1791 # ac_fn_c_try_link LINENO
1792 # -----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1798 if { { ac_try="$ac_link"
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 printf "%s\n" "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>conftest.err
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest$ac_exeext && {
1817 test "$cross_compiling" = yes ||
1818 test -x conftest$ac_exeext
1823 printf "%s\n" "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1836 } # ac_fn_c_try_link
1838 # ac_fn_c_check_func LINENO FUNC VAR
1839 # ----------------------------------
1840 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1841 ac_fn_c_check_func ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 printf %s "checking for $2... " >&6; }
1846 if eval test \${$3+y}
1848 printf %s "(cached) " >&6
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1854 #define $2 innocuous_$2
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char $2 (); below. */
1862 /* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1869 /* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872 #if defined __stub_$2 || defined __stub___$2
1884 if ac_fn_c_try_link "$LINENO"
1890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1891 conftest$ac_exeext conftest.$ac_ext
1894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 printf "%s\n" "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 } # ac_fn_c_check_func
1900 # ac_fn_cxx_try_cpp LINENO
1901 # ------------------------
1902 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_cxx_try_cpp ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_cpp conftest.$ac_ext"
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 printf "%s\n" "$ac_try_echo"; } >&5
1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } > conftest.i && {
1922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1923 test ! -s conftest.err
1928 printf "%s\n" "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_cxx_try_cpp
1938 # ac_fn_cxx_try_link LINENO
1939 # -------------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_link ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1945 if { { ac_try="$ac_link"
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 printf "%s\n" "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>conftest.err
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && {
1961 test -z "$ac_cxx_werror_flag" ||
1962 test ! -s conftest.err
1963 } && test -s conftest$ac_exeext && {
1964 test "$cross_compiling" = yes ||
1965 test -x conftest$ac_exeext
1970 printf "%s\n" "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1975 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977 # interfere with the next link command; also delete a directory that is
1978 # left behind by Apple's compiler. We do this before executing the actions.
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 as_fn_set_status $ac_retval
1983 } # ac_fn_cxx_try_link
1984 ac_configure_args_raw=
1989 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 as_fn_append ac_configure_args_raw " '$ac_arg'"
1994 case $ac_configure_args_raw in
1998 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1999 ac_unsafe_a="$ac_unsafe_z#~"
2000 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2001 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2004 cat >config.log <<_ACEOF
2005 This file contains any messages produced by compilers while
2006 running configure, to aid debugging if configure makes a mistake.
2008 It was created by OpenPAM $as_me 20230627, which was
2009 generated by GNU Autoconf 2.71. Invocation command line was
2011 $ $0$ac_configure_args_raw
2021 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2030 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2031 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2032 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2034 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2035 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2036 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 case $as_dir in #(((
2047 *) as_dir=$as_dir/ ;;
2049 printf "%s\n" "PATH: $as_dir"
2065 # Keep a trace of the command line.
2066 # Strip out --no-create and --no-recursion so they do not pile up.
2067 # Strip out --silent because we don't want to record it for future runs.
2068 # Also quote any args containing shell meta-characters.
2069 # Make two passes to allow for proper duplicate-argument suppression.
2073 ac_must_keep_next=false
2079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2081 | -silent | --silent | --silen | --sile | --sil)
2084 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2089 as_fn_append ac_configure_args1 " '$ac_arg'"
2090 if test $ac_must_keep_next = true; then
2091 ac_must_keep_next=false # Got value, back to normal.
2094 *=* | --config-cache | -C | -disable-* | --disable-* \
2095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2097 | -with-* | --with-* | -without-* | --without-* | --x)
2098 case "$ac_configure_args0 " in
2099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2102 -* ) ac_must_keep_next=true ;;
2105 as_fn_append ac_configure_args " '$ac_arg'"
2110 { ac_configure_args0=; unset ac_configure_args0;}
2111 { ac_configure_args1=; unset ac_configure_args1;}
2113 # When interrupted or exit'd, cleanup temporary files, and complete
2114 # config.log. We remove comments because anyway the quotes in there
2115 # would cause problems or look ugly.
2116 # WARNING: Use '\'' to represent an apostrophe within the trap.
2117 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2118 trap 'exit_status=$?
2121 # Save into config.log some information that might help in debugging.
2125 printf "%s\n" "## ---------------- ##
2126 ## Cache variables. ##
2127 ## ---------------- ##"
2129 # The following way of writing the cache mishandles newlines in values,
2131 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2132 eval ac_val=\$$ac_var
2136 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2137 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2140 _ | IFS | as_nl) ;; #(
2141 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2142 *) { eval $ac_var=; unset $ac_var;} ;;
2147 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2148 *${as_nl}ac_space=\ *)
2150 "s/'\''/'\''\\\\'\'''\''/g;
2151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2161 printf "%s\n" "## ----------------- ##
2162 ## Output variables. ##
2163 ## ----------------- ##"
2165 for ac_var in $ac_subst_vars
2167 eval ac_val=\$$ac_var
2169 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171 printf "%s\n" "$ac_var='\''$ac_val'\''"
2175 if test -n "$ac_subst_files"; then
2176 printf "%s\n" "## ------------------- ##
2177 ## File substitutions. ##
2178 ## ------------------- ##"
2180 for ac_var in $ac_subst_files
2182 eval ac_val=\$$ac_var
2184 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186 printf "%s\n" "$ac_var='\''$ac_val'\''"
2191 if test -s confdefs.h; then
2192 printf "%s\n" "## ----------- ##
2199 test "$ac_signal" != 0 &&
2200 printf "%s\n" "$as_me: caught signal $ac_signal"
2201 printf "%s\n" "$as_me: exit $exit_status"
2203 rm -f core *.core core.conftest.* &&
2204 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2207 for ac_signal in 1 2 13 15; do
2208 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2213 rm -f -r conftest* confdefs.h
2215 printf "%s\n" "/* confdefs.h */" > confdefs.h
2217 # Predefined preprocessor variables.
2219 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2221 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2223 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2225 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2227 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2229 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2232 # Let the site file select an alternate cache file if it wants to.
2233 # Prefer an explicitly selected file to automatically selected ones.
2234 if test -n "$CONFIG_SITE"; then
2235 ac_site_files="$CONFIG_SITE"
2236 elif test "x$prefix" != xNONE; then
2237 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2239 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2242 for ac_site_file in $ac_site_files
2244 case $ac_site_file in #(
2248 ac_site_file=./$ac_site_file ;;
2250 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2252 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2253 sed 's/^/| /' "$ac_site_file" >&5
2255 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2257 as_fn_error $? "failed to load site script $ac_site_file
2258 See \`config.log' for more details" "$LINENO" 5; }
2262 if test -r "$cache_file"; then
2263 # Some versions of bash will fail to source /dev/null (special files
2264 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2265 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2267 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2269 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2270 *) . "./$cache_file";;
2274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2275 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2279 # Test code for whether the C compiler supports C89 (global declarations)
2280 ac_c_conftest_c89_globals='
2281 /* Does the compiler advertise C89 conformance?
2282 Do not test the value of __STDC__, because some compilers set it to 0
2283 while being otherwise adequately conformant. */
2284 #if !defined __STDC__
2285 # error "Compiler does not advertise C89 conformance"
2291 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2292 struct buf { int x; };
2293 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2294 static char *e (p, i)
2300 static char *f (char * (*g) (char **, int), char **p, ...)
2305 s = g (p, va_arg (v,int));
2310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2311 function prototypes and stuff, but not \xHH hex character constants.
2312 These do not provoke an error unfortunately, instead are silently treated
2313 as an "x". The following induces an error, until -std is added to get
2314 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2315 array size at least. It is necessary to write \x00 == 0 to get something
2316 that is true only with -std. */
2317 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2320 inside strings and character constants. */
2321 #define FOO(x) '\''x'\''
2322 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2324 int test (int i, double x);
2325 struct s1 {int (*f) (int a);};
2326 struct s2 {int (*f) (double a);};
2327 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2330 # Test code for whether the C compiler supports C89 (body of main).
2331 ac_c_conftest_c89_main='
2332 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2335 # Test code for whether the C compiler supports C99 (global declarations)
2336 ac_c_conftest_c99_globals='
2337 // Does the compiler advertise C99 conformance?
2338 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2339 # error "Compiler does not advertise C99 conformance"
2342 #include <stdbool.h>
2343 extern int puts (const char *);
2344 extern int printf (const char *, ...);
2345 extern int dprintf (int, const char *, ...);
2346 extern void *malloc (size_t);
2348 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2349 // dprintf is used instead of fprintf to avoid needing to declare
2351 #define debug(...) dprintf (2, __VA_ARGS__)
2352 #define showlist(...) puts (#__VA_ARGS__)
2353 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2355 test_varargs_macros (void)
2360 debug ("X = %d\n", x);
2361 showlist (The first, second, and third items.);
2362 report (x>y, "x is %d but y is %d", x, y);
2365 // Check long long types.
2366 #define BIG64 18446744073709551615ull
2367 #define BIG32 4294967295ul
2368 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2370 #error "your preprocessor is broken"
2374 #error "your preprocessor is broken"
2376 static long long int bignum = -9223372036854775807LL;
2377 static unsigned long long int ubignum = BIG64;
2379 struct incomplete_array
2387 const wchar_t *name;
2391 typedef const char *ccp;
2394 test_restrict (ccp restrict text)
2396 // See if C++-style comments work.
2397 // Iterate through items via the restricted pointer.
2398 // Also check for declarations in for loops.
2399 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2404 // Check varargs and va_copy.
2406 test_varargs (const char *format, ...)
2409 va_start (args, format);
2411 va_copy (args_copy, args);
2413 const char *str = "";
2421 case '\''s'\'': // string
2422 str = va_arg (args_copy, const char *);
2424 case '\''d'\'': // int
2425 number = va_arg (args_copy, int);
2427 case '\''f'\'': // float
2428 fnumber = va_arg (args_copy, double);
2437 return *str && number && fnumber;
2441 # Test code for whether the C compiler supports C99 (body of main).
2442 ac_c_conftest_c99_main='
2444 _Bool success = false;
2445 success |= (argc != 0);
2448 if (test_restrict ("String literal") == 0)
2450 char *restrict newvar = "Another string";
2453 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2454 test_varargs_macros ();
2456 // Check flexible array members.
2457 struct incomplete_array *ia =
2458 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2460 for (int i = 0; i < ia->datasize; ++i)
2461 ia->data[i] = i * 1.234;
2463 // Check named initializers.
2464 struct named_init ni = {
2466 .name = L"Test wide string",
2467 .average = 543.34343,
2472 int dynamic_array[ni.number];
2473 dynamic_array[0] = argv[0][0];
2474 dynamic_array[ni.number - 1] = 543;
2476 // work around unused variable warnings
2477 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2478 || dynamic_array[ni.number - 1] != 543);
2481 # Test code for whether the C compiler supports C11 (global declarations)
2482 ac_c_conftest_c11_globals='
2483 // Does the compiler advertise C11 conformance?
2484 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2485 # error "Compiler does not advertise C11 conformance"
2489 char _Alignas (double) aligned_as_double;
2490 char _Alignas (0) no_special_alignment;
2491 extern char aligned_as_int;
2492 char _Alignas (0) _Alignas (int) aligned_as_int;
2497 int_alignment = _Alignof (int),
2498 int_array_alignment = _Alignof (int[100]),
2499 char_alignment = _Alignof (char)
2501 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2504 int _Noreturn does_not_return (void) { for (;;) continue; }
2506 // Check _Static_assert.
2507 struct test_static_assert
2510 _Static_assert (sizeof (int) <= sizeof (long int),
2511 "_Static_assert does not work in struct");
2515 // Check UTF-8 literals.
2516 #define u8 syntax error!
2517 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2519 // Check duplicate typedefs.
2520 typedef long *long_ptr;
2521 typedef long int *long_ptr;
2522 typedef long_ptr long_ptr;
2524 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2528 struct { int i; int j; };
2529 struct { int k; long int l; } w;
2535 # Test code for whether the C compiler supports C11 (body of main).
2536 ac_c_conftest_c11_main='
2537 _Static_assert ((offsetof (struct anonymous, i)
2538 == offsetof (struct anonymous, w.k)),
2539 "Anonymous union alignment botch");
2545 # Test code for whether the C compiler supports C11 (complete).
2546 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2547 ${ac_c_conftest_c99_globals}
2548 ${ac_c_conftest_c11_globals}
2551 main (int argc, char **argv)
2554 ${ac_c_conftest_c89_main}
2555 ${ac_c_conftest_c99_main}
2556 ${ac_c_conftest_c11_main}
2561 # Test code for whether the C compiler supports C99 (complete).
2562 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2563 ${ac_c_conftest_c99_globals}
2566 main (int argc, char **argv)
2569 ${ac_c_conftest_c89_main}
2570 ${ac_c_conftest_c99_main}
2575 # Test code for whether the C compiler supports C89 (complete).
2576 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2579 main (int argc, char **argv)
2582 ${ac_c_conftest_c89_main}
2587 # Test code for whether the C++ compiler supports C++98 (global declarations)
2588 ac_cxx_conftest_cxx98_globals='
2589 // Does the compiler advertise C++98 conformance?
2590 #if !defined __cplusplus || __cplusplus < 199711L
2591 # error "Compiler does not advertise C++98 conformance"
2594 // These inclusions are to reject old compilers that
2595 // lack the unsuffixed header files.
2597 #include <exception>
2599 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2600 extern void assert (int);
2602 extern int strcmp (const char *, const char *);
2605 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2606 using std::exception;
2611 void test_exception_syntax()
2615 } catch (const char *s) {
2616 // Extra parentheses suppress a warning when building autoconf itself,
2617 // due to lint rules shared with more typical C programs.
2618 assert (!(strcmp) (s, "test"));
2622 template <typename T> struct test_template
2625 explicit test_template(T t) : val(t) {}
2626 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2629 } // anonymous namespace
2632 # Test code for whether the C++ compiler supports C++98 (body of main)
2633 ac_cxx_conftest_cxx98_main='
2637 test_exception_syntax ();
2638 test_template<double> tt (2.0);
2639 assert (tt.add (4) == 6.0);
2640 assert (true && !false);
2644 # Test code for whether the C++ compiler supports C++11 (global declarations)
2645 ac_cxx_conftest_cxx11_globals='
2646 // Does the compiler advertise C++ 2011 conformance?
2647 #if !defined __cplusplus || __cplusplus < 201103L
2648 # error "Compiler does not advertise C++11 conformance"
2653 constexpr int get_val() { return 20; }
2664 delegate(int n) : n(n) {}
2665 delegate(): delegate(2354) {}
2667 virtual int getval() { return this->n; };
2672 class overridden : public delegate
2675 overridden(int n): delegate(n) {}
2676 virtual int getval() override final { return this->n * 2; }
2682 nocopy(int i): i(i) {}
2684 nocopy(const nocopy&) = delete;
2685 nocopy & operator=(const nocopy&) = delete;
2690 // for testing lambda expressions
2691 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2696 // for testing variadic templates and trailing return types
2697 template <typename V> auto sum(V first) -> V
2701 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2703 return first + sum(rest...);
2708 # Test code for whether the C++ compiler supports C++11 (body of main)
2709 ac_cxx_conftest_cxx11_main='
2711 // Test auto and decltype
2713 auto a2 = 48573953.4;
2714 auto a3 = "String literal";
2717 for (auto i = a3; *i; ++i) { total += *i; }
2719 decltype(a2) a4 = 34895.034;
2723 short sa[cxx11test::get_val()] = { 0 };
2726 // Test initializer lists
2727 cxx11test::testinit il = { 4323, 435234.23544 };
2730 // Test range-based for
2731 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2732 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2733 for (auto &x : array) { x += 23; }
2736 // Test lambda expressions
2737 using cxx11test::eval;
2738 assert (eval ([](int x) { return x*2; }, 21) == 42);
2740 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2742 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2746 // Test use of variadic templates
2747 using cxx11test::sum;
2750 auto c = sum(1.0, 2.0, 3.0);
2753 // Test constructor delegation
2754 cxx11test::delegate d1;
2755 cxx11test::delegate d2();
2756 cxx11test::delegate d3(45);
2759 // Test override and final
2760 cxx11test::overridden o1(55464);
2767 // Test template brackets
2768 test_template<::test_template<int>> v(test_template<int>(12));
2772 char const *utf8 = u8"UTF-8 string \u2500";
2773 char16_t const *utf16 = u"UTF-8 string \u2500";
2774 char32_t const *utf32 = U"UTF-32 string \u2500";
2778 # Test code for whether the C compiler supports C++11 (complete).
2779 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2780 ${ac_cxx_conftest_cxx11_globals}
2783 main (int argc, char **argv)
2786 ${ac_cxx_conftest_cxx98_main}
2787 ${ac_cxx_conftest_cxx11_main}
2792 # Test code for whether the C compiler supports C++98 (complete).
2793 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2795 main (int argc, char **argv)
2798 ${ac_cxx_conftest_cxx98_main}
2803 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2804 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2805 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2806 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2807 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2808 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2809 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2810 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2811 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2812 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2813 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2815 # Auxiliary files required by this configure script.
2816 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2818 # Locations in which to look for auxiliary files.
2819 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2821 # Search for a directory containing all of the required auxiliary files,
2822 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2823 # If we don't find one directory that contains all the files we need,
2824 # we report the set of missing files from the *first* directory in
2825 # $ac_aux_dir_candidates and give up.
2826 ac_missing_aux_files=""
2827 ac_first_candidate=:
2828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $ac_aux_dir_candidates
2834 case $as_dir in #(((
2837 *) as_dir=$as_dir/ ;;
2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2842 ac_aux_dir_found=yes
2844 for ac_aux in $ac_aux_files
2846 # As a special case, if "install-sh" is required, that requirement
2847 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2848 # and $ac_install_sh is set appropriately for whichever one is found.
2849 if test x"$ac_aux" = x"install-sh"
2851 if test -f "${as_dir}install-sh"; then
2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2853 ac_install_sh="${as_dir}install-sh -c"
2854 elif test -f "${as_dir}install.sh"; then
2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2856 ac_install_sh="${as_dir}install.sh -c"
2857 elif test -f "${as_dir}shtool"; then
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2859 ac_install_sh="${as_dir}shtool install -c"
2862 if $ac_first_candidate; then
2863 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2869 if test -f "${as_dir}${ac_aux}"; then
2870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2873 if $ac_first_candidate; then
2874 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2881 if test "$ac_aux_dir_found" = yes; then
2882 ac_aux_dir="$as_dir"
2885 ac_first_candidate=false
2894 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2898 # These three variables are undocumented and unsupported,
2899 # and are intended to be withdrawn in a future Autoconf release.
2900 # They can cause serious problems if a builder's source tree is in a directory
2901 # whose full name contains unusual characters.
2902 if test -f "${ac_aux_dir}config.guess"; then
2903 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2905 if test -f "${ac_aux_dir}config.sub"; then
2906 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2908 if test -f "$ac_aux_dir/configure"; then
2909 ac_configure="$SHELL ${ac_aux_dir}configure"
2912 # Check that the precious variables saved in the cache have kept the same
2914 ac_cache_corrupted=false
2915 for ac_var in $ac_precious_vars; do
2916 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2917 eval ac_new_set=\$ac_env_${ac_var}_set
2918 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2919 eval ac_new_val=\$ac_env_${ac_var}_value
2920 case $ac_old_set,$ac_new_set in
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2923 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2924 ac_cache_corrupted=: ;;
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2927 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2928 ac_cache_corrupted=: ;;
2931 if test "x$ac_old_val" != "x$ac_new_val"; then
2932 # differences in whitespace do not lead to failure.
2933 ac_old_val_w=`echo x $ac_old_val`
2934 ac_new_val_w=`echo x $ac_new_val`
2935 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2937 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2938 ac_cache_corrupted=:
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2941 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2942 eval $ac_var=\$ac_old_val
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2945 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2947 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2950 # Pass precious variables to config.status.
2951 if test "$ac_new_set" = set; then
2953 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2954 *) ac_arg=$ac_var=$ac_new_val ;;
2956 case " $ac_configure_args " in
2957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2958 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2962 if $ac_cache_corrupted; then
2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2966 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2967 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2968 and start over" "$LINENO" 5
2970 ## -------------------- ##
2971 ## Main body of script. ##
2972 ## -------------------- ##
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 am__api_version='1.16'
2987 # Find a good install program. We prefer a C program (faster),
2988 # so one script is as good as another. But avoid the broken or
2989 # incompatible versions:
2990 # SysV /etc/install, /usr/sbin/install
2991 # SunOS /usr/etc/install
2992 # IRIX /sbin/install
2994 # AmigaOS /C/install, which installs bootblocks on floppy discs
2995 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2996 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2997 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2998 # OS/2's system install, which has a completely different semantic
2999 # ./install, which can be erroneously created by make from ./install.sh.
3000 # Reject install programs that cannot install multiple files.
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3002 printf %s "checking for a BSD-compatible install... " >&6; }
3003 if test -z "$INSTALL"; then
3004 if test ${ac_cv_path_install+y}
3006 printf %s "(cached) " >&6
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 case $as_dir in #(((
3015 *) as_dir=$as_dir/ ;;
3017 # Account for fact that we put trailing slashes in our PATH walk.
3020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3021 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3024 # OSF1 and SCO ODT 3.0 have their own names for install.
3025 # Don't use installbsd from OSF since it installs stuff as root
3027 for ac_prog in ginstall scoinst install; do
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3030 if test $ac_prog = install &&
3031 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3032 # AIX install. It has an incompatible calling convention.
3034 elif test $ac_prog = install &&
3035 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3036 # program-specific install script used by HP pwplus--don't use.
3039 rm -rf conftest.one conftest.two conftest.dir
3040 echo one > conftest.one
3041 echo two > conftest.two
3043 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3044 test -s conftest.one && test -s conftest.two &&
3045 test -s conftest.dir/conftest.one &&
3046 test -s conftest.dir/conftest.two
3048 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3061 rm -rf conftest.one conftest.two conftest.dir
3064 if test ${ac_cv_path_install+y}; then
3065 INSTALL=$ac_cv_path_install
3067 # As a last resort, use the slow shell script. Don't cache a
3068 # value for INSTALL within a source directory, because that will
3069 # break other packages using the cache if that directory is
3070 # removed, or if the value is a relative name.
3071 INSTALL=$ac_install_sh
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3075 printf "%s\n" "$INSTALL" >&6; }
3077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3078 # It thinks the first close brace ends the variable substitution.
3079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3086 printf %s "checking whether build environment is sane... " >&6; }
3087 # Reject unsafe characters in $srcdir or the absolute working directory
3088 # name. Accept space and tab only in the latter.
3092 *[\\\"\#\$\&\'\`$am_lf]*)
3093 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3096 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3097 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3100 # Do 'set' in a subshell so we don't clobber the current shell's
3101 # arguments. Must try -L first in case configure is actually a
3102 # symlink; some systems play weird games with the mod time of symlinks
3103 # (eg FreeBSD returns the mod time of the symlink's containing
3107 for am_try in 1 2; do
3108 echo "timestamp, slept: $am_has_slept" > conftest.file
3109 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3110 if test "$*" = "X"; then
3112 set X `ls -t "$srcdir/configure" conftest.file`
3114 if test "$*" != "X $srcdir/configure conftest.file" \
3115 && test "$*" != "X conftest.file $srcdir/configure"; then
3117 # If neither matched, then we have a broken ls. This can happen
3118 # if, for instance, CONFIG_SHELL is bash and it inherits a
3119 # broken ls alias from the environment. This has actually
3120 # happened. Such a system could not be considered "sane".
3121 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3122 alias in your environment" "$LINENO" 5
3124 if test "$2" = conftest.file || test $am_try -eq 2; then
3131 test "$2" = conftest.file
3137 as_fn_error $? "newly created file is older than distributed files!
3138 Check your system clock" "$LINENO" 5
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141 printf "%s\n" "yes" >&6; }
3142 # If we didn't sleep, we still need to ensure time stamps of config.status and
3143 # generated files are strictly newer.
3145 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3152 test "$program_prefix" != NONE &&
3153 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE &&
3156 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3157 # Double any \ or $.
3158 # By default was `s,x,x', remove it if useless.
3159 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3160 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3163 # Expand $ac_aux_dir to an absolute path.
3164 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3167 if test x"${MISSING+set}" != xset; then
3168 MISSING="\${SHELL} '$am_aux_dir/missing'"
3170 # Use eval to expand $SHELL
3171 if eval "$MISSING --is-lightweight"; then
3172 am_missing_run="$MISSING "
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3176 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3179 if test x"${install_sh+set}" != xset; then
3182 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3184 install_sh="\${SHELL} $am_aux_dir/install-sh"
3188 # Installed binaries are usually stripped using 'strip' when the user
3189 # run "make install-strip". However 'strip' might not be the right
3190 # tool to use in cross-compilation environments, therefore Automake
3191 # will honor the 'STRIP' environment variable to overrule this program.
3192 if test "$cross_compiling" != no; then
3193 if test -n "$ac_tool_prefix"; then
3194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}strip; ac_word=$2
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 printf %s "checking for $ac_word... " >&6; }
3198 if test ${ac_cv_prog_STRIP+y}
3200 printf %s "(cached) " >&6
3202 if test -n "$STRIP"; then
3203 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 case $as_dir in #(((
3212 *) as_dir=$as_dir/ ;;
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3226 STRIP=$ac_cv_prog_STRIP
3227 if test -n "$STRIP"; then
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3229 printf "%s\n" "$STRIP" >&6; }
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 printf "%s\n" "no" >&6; }
3237 if test -z "$ac_cv_prog_STRIP"; then
3239 # Extract the first word of "strip", so it can be a program name with args.
3240 set dummy strip; ac_word=$2
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 printf %s "checking for $ac_word... " >&6; }
3243 if test ${ac_cv_prog_ac_ct_STRIP+y}
3245 printf %s "(cached) " >&6
3247 if test -n "$ac_ct_STRIP"; then
3248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 case $as_dir in #(((
3257 *) as_dir=$as_dir/ ;;
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_ac_ct_STRIP="strip"
3262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3271 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3272 if test -n "$ac_ct_STRIP"; then
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3274 printf "%s\n" "$ac_ct_STRIP" >&6; }
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 printf "%s\n" "no" >&6; }
3280 if test "x$ac_ct_STRIP" = x; then
3283 case $cross_compiling:$ac_tool_warned in
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3286 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3287 ac_tool_warned=yes ;;
3292 STRIP="$ac_cv_prog_STRIP"
3296 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3300 printf %s "checking for a race-free mkdir -p... " >&6; }
3301 if test -z "$MKDIR_P"; then
3302 if test ${ac_cv_path_mkdir+y}
3304 printf %s "(cached) " >&6
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3310 case $as_dir in #(((
3313 *) as_dir=$as_dir/ ;;
3315 for ac_prog in mkdir gmkdir; do
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3318 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3319 'mkdir ('*'coreutils) '* | \
3321 'mkdir (fileutils) '4.1*)
3322 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3332 test -d ./--version && rmdir ./--version
3333 if test ${ac_cv_path_mkdir+y}; then
3334 MKDIR_P="$ac_cv_path_mkdir -p"
3336 # As a last resort, use the slow shell script. Don't cache a
3337 # value for MKDIR_P within a source directory, because that will
3338 # break other packages using the cache if that directory is
3339 # removed, or if the value is a relative name.
3340 MKDIR_P="$ac_install_sh -d"
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3344 printf "%s\n" "$MKDIR_P" >&6; }
3346 for ac_prog in gawk mawk nawk awk
3348 # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 printf %s "checking for $ac_word... " >&6; }
3352 if test ${ac_cv_prog_AWK+y}
3354 printf %s "(cached) " >&6
3356 if test -n "$AWK"; then
3357 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 case $as_dir in #(((
3366 *) as_dir=$as_dir/ ;;
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_AWK="$ac_prog"
3371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3381 if test -n "$AWK"; then
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3383 printf "%s\n" "$AWK" >&6; }
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 printf "%s\n" "no" >&6; }
3390 test -n "$AWK" && break
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3394 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3396 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3397 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3399 printf %s "(cached) " >&6
3401 cat >conftest.make <<\_ACEOF
3404 @echo '@@@%%%=$(MAKE)=@@@%%%'
3406 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3407 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3409 eval ac_cv_prog_make_${ac_make}_set=yes;;
3411 eval ac_cv_prog_make_${ac_make}_set=no;;
3415 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417 printf "%s\n" "yes" >&6; }
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 printf "%s\n" "no" >&6; }
3422 SET_MAKE="MAKE=${MAKE-make}"
3425 rm -rf .tst 2>/dev/null
3426 mkdir .tst 2>/dev/null
3427 if test -d .tst; then
3432 rmdir .tst 2>/dev/null
3434 # Check whether --enable-silent-rules was given.
3435 if test ${enable_silent_rules+y}
3437 enableval=$enable_silent_rules;
3440 case $enable_silent_rules in # (((
3441 yes) AM_DEFAULT_VERBOSITY=0;;
3442 no) AM_DEFAULT_VERBOSITY=1;;
3443 *) AM_DEFAULT_VERBOSITY=1;;
3445 am_make=${MAKE-make}
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3447 printf %s "checking whether $am_make supports nested variables... " >&6; }
3448 if test ${am_cv_make_support_nested_variables+y}
3450 printf %s "(cached) " >&6
3452 if printf "%s\n" 'TRUE=$(BAR$(V))
3458 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3459 am_cv_make_support_nested_variables=yes
3461 am_cv_make_support_nested_variables=no
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3465 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3466 if test $am_cv_make_support_nested_variables = yes; then
3468 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3470 AM_V=$AM_DEFAULT_VERBOSITY
3471 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3475 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3476 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3477 # is not polluted with repeated "-I."
3478 am__isrc=' -I$(srcdir)'
3479 # test to see if srcdir already configured
3480 if test -f $srcdir/config.status; then
3481 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3485 # test whether we have cygpath
3486 if test -z "$CYGPATH_W"; then
3487 if (cygpath --version) >/dev/null 2>/dev/null; then
3488 CYGPATH_W='cygpath -w'
3495 # Define the identity of the package.
3500 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3503 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3505 # Some tools Automake needs.
3507 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3510 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3513 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3516 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3519 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3521 # For better backward compatibility. To be removed once Automake 1.9.x
3522 # dies out for good. For more background, see:
3523 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3524 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3525 mkdir_p='$(MKDIR_P)'
3527 # We need awk for the "check" target (and possibly the TAP driver). The
3528 # system "awk" is bad on some platforms.
3529 # Always define AMTAR for backward compatibility. Yes, it's still used
3530 # in the wild :-( We should find a proper way to deprecate it ...
3534 # We'll loop over all known methods to create a tar archive until one works.
3535 _am_tools='gnutar pax cpio none'
3537 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3543 # Variables for tags utilities; see am/tags.am
3544 if test -z "$CTAGS"; then
3548 if test -z "$ETAGS"; then
3552 if test -z "$CSCOPE"; then
3558 # POSIX will say in a future version that running "rm -f" with no argument
3559 # is OK; and we want to be able to make that assumption in our Makefile
3560 # recipes. So use an aggressive probe to check that the usage we want is
3561 # actually supported "in the wild" to an acceptable degree.
3562 # See automake bug#10828.
3563 # To make any issue more visible, cause the running configure to be aborted
3564 # by default if the 'rm' program in use doesn't match our expectations; the
3565 # user can still override this though.
3566 if rm -f && rm -fr && rm -rf; then : OK; else
3570 Your 'rm' program seems unable to run without file operands specified
3571 on the command line, even when the '-f' option is present. This is contrary
3572 to the behaviour of most rm programs out there, and not conforming with
3573 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3575 Please tell bug-automake@gnu.org about your system, including the value
3576 of your $PATH and any error possibly output before this message. This
3577 can help us improve future automake versions.
3580 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3581 echo 'Configuration will proceed anyway, since you have set the' >&2
3582 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3586 Aborting the configuration process, to ensure you take notice of the issue.
3588 You can download and install GNU coreutils to get an 'rm' implementation
3589 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3591 If you want to complete the configuration process using your problematic
3592 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3593 to "yes", and re-run configure.
3596 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3600 ac_config_headers="$ac_config_headers config.h"
3603 # C compiler and features
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624 if test -n "$ac_tool_prefix"; then
3625 for ac_prog in clang gcc cc
3627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 printf %s "checking for $ac_word... " >&6; }
3631 if test ${ac_cv_prog_CC+y}
3633 printf %s "(cached) " >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 case $as_dir in #(((
3645 *) as_dir=$as_dir/ ;;
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3660 if test -n "$CC"; then
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 printf "%s\n" "$CC" >&6; }
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 printf "%s\n" "no" >&6; }
3669 test -n "$CC" && break
3672 if test -z "$CC"; then
3674 for ac_prog in clang gcc cc
3676 # Extract the first word of "$ac_prog", so it can be a program name with args.
3677 set dummy $ac_prog; ac_word=$2
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 printf %s "checking for $ac_word... " >&6; }
3680 if test ${ac_cv_prog_ac_ct_CC+y}
3682 printf %s "(cached) " >&6
3684 if test -n "$ac_ct_CC"; then
3685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 case $as_dir in #(((
3694 *) as_dir=$as_dir/ ;;
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_ac_ct_CC="$ac_prog"
3699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3709 if test -n "$ac_ct_CC"; then
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3711 printf "%s\n" "$ac_ct_CC" >&6; }
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 printf "%s\n" "no" >&6; }
3718 test -n "$ac_ct_CC" && break
3721 if test "x$ac_ct_CC" = x; then
3724 case $cross_compiling:$ac_tool_warned in
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3727 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3728 ac_tool_warned=yes ;;
3735 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "no acceptable C compiler found in \$PATH
3738 See \`config.log' for more details" "$LINENO" 5; }
3740 # Provide some information about the compiler.
3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3744 for ac_option in --version -v -V -qversion -version; do
3745 { { ac_try="$ac_compiler $ac_option >&5"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 printf "%s\n" "$ac_try_echo"; } >&5
3752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3754 if test -s conftest.err; then
3756 ... rest of stderr output deleted ...
3757 10q' conftest.err >conftest.er1
3758 cat conftest.er1 >&5
3760 rm -f conftest.er1 conftest.err
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3776 ac_clean_files_save=$ac_clean_files
3777 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3778 # Try to create an executable without -o first, disregard a.out.
3779 # It will help us diagnose broken compilers, and finding out an intuition
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3782 printf %s "checking whether the C compiler works... " >&6; }
3783 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3785 # The possible output files:
3786 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3789 for ac_file in $ac_files
3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3793 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3798 if { { ac_try="$ac_link_default"
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 printf "%s\n" "$ac_try_echo"; } >&5
3805 (eval "$ac_link_default") 2>&5
3807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3810 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3811 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3812 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3813 # so that the user can short-circuit this test for compilers unknown to
3815 for ac_file in $ac_files ''
3817 test -f "$ac_file" || continue
3819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3822 # We found the default executable, but exeext='' is most
3826 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3828 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3830 # We set ac_cv_exeext here because the later test for it is not
3831 # safe: cross compilers may not add the suffix if given an `-o'
3832 # argument, so we may need to know it at that point already.
3833 # Even if this section looks crufty: it has the advantage of
3840 test "$ac_cv_exeext" = no && ac_cv_exeext=
3845 if test -z "$ac_file"
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 printf "%s\n" "no" >&6; }
3849 printf "%s\n" "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error 77 "C compiler cannot create executables
3855 See \`config.log' for more details" "$LINENO" 5; }
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3858 printf "%s\n" "yes" >&6; }
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3861 printf %s "checking for C compiler default output file name... " >&6; }
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3863 printf "%s\n" "$ac_file" >&6; }
3864 ac_exeext=$ac_cv_exeext
3866 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3867 ac_clean_files=$ac_clean_files_save
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3869 printf %s "checking for suffix of executables... " >&6; }
3870 if { { ac_try="$ac_link"
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 printf "%s\n" "$ac_try_echo"; } >&5
3877 (eval "$ac_link") 2>&5
3879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }
3882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3883 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3884 # work properly (i.e., refer to `conftest.exe'), while it won't with
3886 for ac_file in conftest.exe conftest conftest.*; do
3887 test -f "$ac_file" || continue
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3899 See \`config.log' for more details" "$LINENO" 5; }
3901 rm -f conftest conftest$ac_cv_exeext
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3903 printf "%s\n" "$ac_cv_exeext" >&6; }
3905 rm -f conftest.$ac_ext
3906 EXEEXT=$ac_cv_exeext
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3914 FILE *f = fopen ("conftest.out", "w");
3915 return ferror (f) || fclose (f) != 0;
3921 ac_clean_files="$ac_clean_files conftest.out"
3922 # Check that the compiler produces executables we can run. If not, either
3923 # the compiler is broken, or we cross compile.
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3925 printf %s "checking whether we are cross compiling... " >&6; }
3926 if test "$cross_compiling" != yes; then
3927 { { ac_try="$ac_link"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 printf "%s\n" "$ac_try_echo"; } >&5
3934 (eval "$ac_link") 2>&5
3936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }
3938 if { ac_try='./conftest$ac_cv_exeext'
3939 { { case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 printf "%s\n" "$ac_try_echo"; } >&5
3945 (eval "$ac_try") 2>&5
3947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; }; then
3951 if test "$cross_compiling" = maybe; then
3954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error 77 "cannot run C compiled programs.
3957 If you meant to cross compile, use \`--host'.
3958 See \`config.log' for more details" "$LINENO" 5; }
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3963 printf "%s\n" "$cross_compiling" >&6; }
3965 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3966 ac_clean_files=$ac_clean_files_save
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3968 printf %s "checking for suffix of object files... " >&6; }
3969 if test ${ac_cv_objext+y}
3971 printf %s "(cached) " >&6
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3984 rm -f conftest.o conftest.obj
3985 if { { ac_try="$ac_compile"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 printf "%s\n" "$ac_try_echo"; } >&5
3992 (eval "$ac_compile") 2>&5
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3997 for ac_file in conftest.o conftest.obj conftest.*; do
3998 test -f "$ac_file" || continue;
4000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4001 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4006 printf "%s\n" "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "cannot compute suffix of object files: cannot compile
4012 See \`config.log' for more details" "$LINENO" 5; }
4014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4017 printf "%s\n" "$ac_cv_objext" >&6; }
4018 OBJEXT=$ac_cv_objext
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4021 printf %s "checking whether the compiler supports GNU C... " >&6; }
4022 if test ${ac_cv_c_compiler_gnu+y}
4024 printf %s "(cached) " >&6
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4040 if ac_fn_c_try_compile "$LINENO"
4046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4051 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054 if test $ac_compiler_gnu = yes; then
4059 ac_test_CFLAGS=${CFLAGS+y}
4060 ac_save_CFLAGS=$CFLAGS
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4062 printf %s "checking whether $CC accepts -g... " >&6; }
4063 if test ${ac_cv_prog_cc_g+y}
4065 printf %s "(cached) " >&6
4067 ac_save_c_werror_flag=$ac_c_werror_flag
4068 ac_c_werror_flag=yes
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4082 if ac_fn_c_try_compile "$LINENO"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4098 if ac_fn_c_try_compile "$LINENO"
4102 ac_c_werror_flag=$ac_save_c_werror_flag
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4115 if ac_fn_c_try_compile "$LINENO"
4119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4127 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4128 if test $ac_test_CFLAGS; then
4129 CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4137 if test "$GCC" = yes; then
4144 if test x$ac_prog_cc_stdc = xno
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4147 printf %s "checking for $CC option to enable C11 features... " >&6; }
4148 if test ${ac_cv_prog_cc_c11+y}
4150 printf %s "(cached) " >&6
4152 ac_cv_prog_cc_c11=no
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 $ac_c_conftest_c11_program
4158 for ac_arg in '' -std=gnu11
4160 CC="$ac_save_CC $ac_arg"
4161 if ac_fn_c_try_compile "$LINENO"
4163 ac_cv_prog_cc_c11=$ac_arg
4165 rm -f core conftest.err conftest.$ac_objext conftest.beam
4166 test "x$ac_cv_prog_cc_c11" != "xno" && break
4168 rm -f conftest.$ac_ext
4172 if test "x$ac_cv_prog_cc_c11" = xno
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4175 printf "%s\n" "unsupported" >&6; }
4177 if test "x$ac_cv_prog_cc_c11" = x
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4180 printf "%s\n" "none needed" >&6; }
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4183 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4184 CC="$CC $ac_cv_prog_cc_c11"
4186 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4190 if test x$ac_prog_cc_stdc = xno
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4193 printf %s "checking for $CC option to enable C99 features... " >&6; }
4194 if test ${ac_cv_prog_cc_c99+y}
4196 printf %s "(cached) " >&6
4198 ac_cv_prog_cc_c99=no
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 $ac_c_conftest_c99_program
4204 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"
4209 ac_cv_prog_cc_c99=$ac_arg
4211 rm -f core conftest.err conftest.$ac_objext conftest.beam
4212 test "x$ac_cv_prog_cc_c99" != "xno" && break
4214 rm -f conftest.$ac_ext
4218 if test "x$ac_cv_prog_cc_c99" = xno
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4221 printf "%s\n" "unsupported" >&6; }
4223 if test "x$ac_cv_prog_cc_c99" = x
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4226 printf "%s\n" "none needed" >&6; }
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4229 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4230 CC="$CC $ac_cv_prog_cc_c99"
4232 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4236 if test x$ac_prog_cc_stdc = xno
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4239 printf %s "checking for $CC option to enable C89 features... " >&6; }
4240 if test ${ac_cv_prog_cc_c89+y}
4242 printf %s "(cached) " >&6
4244 ac_cv_prog_cc_c89=no
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 $ac_c_conftest_c89_program
4250 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 if ac_fn_c_try_compile "$LINENO"
4255 ac_cv_prog_cc_c89=$ac_arg
4257 rm -f core conftest.err conftest.$ac_objext conftest.beam
4258 test "x$ac_cv_prog_cc_c89" != "xno" && break
4260 rm -f conftest.$ac_ext
4264 if test "x$ac_cv_prog_cc_c89" = xno
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4267 printf "%s\n" "unsupported" >&6; }
4269 if test "x$ac_cv_prog_cc_c89" = x
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272 printf "%s\n" "none needed" >&6; }
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4275 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4276 CC="$CC $ac_cv_prog_cc_c89"
4278 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4284 ac_cpp='$CPP $CPPFLAGS'
4285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4296 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4297 if test ${am_cv_prog_cc_c_o+y}
4299 printf %s "(cached) " >&6
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4312 # Make sure it works both with $CC and with simple cc.
4313 # Following AC_PROG_CC_C_O, we do the test twice because some
4314 # compilers refuse to overwrite an existing .o file with -o,
4315 # though they will create one.
4316 am_cv_prog_cc_c_o=yes
4318 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4319 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } \
4323 && test -f conftest2.$ac_objext; then
4326 am_cv_prog_cc_c_o=no
4330 rm -f core conftest*
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4334 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4335 if test "$am_cv_prog_cc_c_o" != yes; then
4336 # Losing compiler, so override with the script.
4337 # FIXME: It is wrong to rewrite CC.
4338 # But if we don't then we get into trouble of one sort or another.
4339 # A longer-term fix would be to have automake use am__CC in this case,
4340 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4341 CC="$am_aux_dir/compile $CC"
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 DEPDIR="${am__leading_dot}deps"
4351 ac_config_commands="$ac_config_commands depfiles"
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4354 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4355 cat > confinc.mk << 'END'
4357 @echo this is the am__doit target >confinc.out
4362 # BSD make does it like this.
4363 echo '.include "confinc.mk" # ignored' > confmf.BSD
4364 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4365 echo 'include confinc.mk # ignored' > confmf.GNU
4367 for s in GNU BSD; do
4368 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4369 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }
4373 case $?:`cat confinc.out 2>/dev/null` in #(
4374 '0:this is the am__doit target') :
4377 am__include='.include' am__quote='"' ;; #(
4379 am__include='include' am__quote='' ;;
4384 if test "$am__include" != "#"; then
4385 _am_result="yes ($s style)"
4389 rm -f confinc.* confmf.*
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4391 printf "%s\n" "${_am_result}" >&6; }
4393 # Check whether --enable-dependency-tracking was given.
4394 if test ${enable_dependency_tracking+y}
4396 enableval=$enable_dependency_tracking;
4399 if test "x$enable_dependency_tracking" != xno; then
4400 am_depcomp="$ac_aux_dir/depcomp"
4404 if test "x$enable_dependency_tracking" != xno; then
4414 depcc="$CC" am_compiler_list=
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4417 printf %s "checking dependency style of $depcc... " >&6; }
4418 if test ${am_cv_CC_dependencies_compiler_type+y}
4420 printf %s "(cached) " >&6
4422 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4423 # We make a subdir and do the tests there. Otherwise we can end up
4424 # making bogus files that we don't know about and never remove. For
4425 # instance it was reported that on HP-UX the gcc test will end up
4426 # making a dummy file named 'D' -- because '-MD' means "put the output
4430 # Copy depcomp to subdir because otherwise we won't find it if we're
4431 # using a relative directory.
4432 cp "$am_depcomp" conftest.dir
4434 # We will build objects and dependencies in a subdirectory because
4435 # it helps to detect inapplicable dependency modes. For instance
4436 # both Tru64's cc and ICC support -MD to output dependencies as a
4437 # side effect of compilation, but ICC will put the dependencies in
4438 # the current directory while Tru64 will put them in the object
4442 am_cv_CC_dependencies_compiler_type=none
4443 if test "$am_compiler_list" = ""; then
4444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4447 case " $depcc " in #(
4448 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4451 for depmode in $am_compiler_list; do
4452 # Setup a source with many dependencies, because some compilers
4453 # like to wrap large dependency lists on column 80 (with \), and
4454 # we should not choose a depcomp mode which is confused by this.
4456 # We need to recreate these files for each test, as the compiler may
4457 # overwrite some of them when testing with obscure command lines.
4458 # This happens at least with the AIX C compiler.
4460 for i in 1 2 3 4 5 6; do
4461 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4462 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4463 # Solaris 10 /bin/sh.
4464 echo '/* dummy */' > sub/conftst$i.h
4466 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4468 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4469 # mode. It turns out that the SunPro C++ compiler does not properly
4470 # handle '-M -o', and we need to detect this. Also, some Intel
4471 # versions had trouble with output in subdirs.
4472 am__obj=sub/conftest.${OBJEXT-o}
4473 am__minus_obj="-o $am__obj"
4476 # This depmode causes a compiler race in universal mode.
4477 test "$am__universal" = false || continue
4480 # After this tag, mechanisms are not by side-effect, so they'll
4481 # only be used when explicitly requested.
4482 if test "x$enable_dependency_tracking" = xyes; then
4488 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4489 # This compiler won't grok '-c -o', but also, the minuso test has
4490 # not run yet. These depmodes are late enough in the game, and
4491 # so weak that their functioning should not be impacted.
4492 am__obj=conftest.${OBJEXT-o}
4497 if depmode=$depmode \
4498 source=sub/conftest.c object=$am__obj \
4499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4500 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4501 >/dev/null 2>conftest.err &&
4502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4506 # icc doesn't choke on unknown options, it will just issue warnings
4507 # or remarks (even with -Werror). So we grep stderr for any message
4508 # that says an option was ignored or not supported.
4509 # When given -MP, icc 7.0 and 7.1 complain thusly:
4510 # icc: Command line warning: ignoring option '-M'; no argument required
4511 # The diagnosis changed in icc 8.0:
4512 # icc: Command line remark: option '-MP' not supported
4513 if (grep 'ignoring option' conftest.err ||
4514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4515 am_cv_CC_dependencies_compiler_type=$depmode
4524 am_cv_CC_dependencies_compiler_type=none
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4529 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4533 test "x$enable_dependency_tracking" != xno \
4534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4536 am__fastdepCC_FALSE='#'
4538 am__fastdepCC_TRUE='#'
4539 am__fastdepCC_FALSE=
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4550 printf %s "checking how to run the C preprocessor... " >&6; }
4551 # On Suns, sometimes $CPP names a directory.
4552 if test -n "$CPP" && test -d "$CPP"; then
4555 if test -z "$CPP"; then
4556 if test ${ac_cv_prog_CPP+y}
4558 printf %s "(cached) " >&6
4560 # Double quotes because $CC needs to be expanded
4561 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4564 for ac_c_preproc_warn_flag in '' yes
4566 # Use a header file that comes with gcc, so configuring glibc
4567 # with a fresh cross-compiler works.
4568 # On the NeXT, cc -E runs the code through the compiler's parser,
4569 # not just through cpp. "Syntax error" is here to catch this case.
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4575 if ac_fn_c_try_cpp "$LINENO"
4579 # Broken: fails on valid input.
4582 rm -f conftest.err conftest.i conftest.$ac_ext
4584 # OK, works on sane cases. Now check whether nonexistent headers
4585 # can be detected and how.
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588 #include <ac_nonexistent.h>
4590 if ac_fn_c_try_cpp "$LINENO"
4592 # Broken: success on invalid input.
4595 # Passes both tests.
4599 rm -f conftest.err conftest.i conftest.$ac_ext
4602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603 rm -f conftest.i conftest.err conftest.$ac_ext
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4618 printf "%s\n" "$CPP" >&6; }
4620 for ac_c_preproc_warn_flag in '' yes
4622 # Use a header file that comes with gcc, so configuring glibc
4623 # with a fresh cross-compiler works.
4624 # On the NeXT, cc -E runs the code through the compiler's parser,
4625 # not just through cpp. "Syntax error" is here to catch this case.
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4631 if ac_fn_c_try_cpp "$LINENO"
4635 # Broken: fails on valid input.
4638 rm -f conftest.err conftest.i conftest.$ac_ext
4640 # OK, works on sane cases. Now check whether nonexistent headers
4641 # can be detected and how.
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <ac_nonexistent.h>
4646 if ac_fn_c_try_cpp "$LINENO"
4648 # Broken: success on invalid input.
4651 # Passes both tests.
4655 rm -f conftest.err conftest.i conftest.$ac_ext
4658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4659 rm -f conftest.i conftest.err conftest.$ac_ext
4664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4665 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4666 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4667 See \`config.log' for more details" "$LINENO" 5; }
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683 ac_cpp='$CXXCPP $CPPFLAGS'
4684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4687 if test -z "$CXX"; then
4688 if test -n "$CCC"; then
4691 if test -n "$ac_tool_prefix"; then
4692 for ac_prog in clang++ g++ c++
4694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 printf %s "checking for $ac_word... " >&6; }
4698 if test ${ac_cv_prog_CXX+y}
4700 printf %s "(cached) " >&6
4702 if test -n "$CXX"; then
4703 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 case $as_dir in #(((
4712 *) as_dir=$as_dir/ ;;
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4727 if test -n "$CXX"; then
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4729 printf "%s\n" "$CXX" >&6; }
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 printf "%s\n" "no" >&6; }
4736 test -n "$CXX" && break
4739 if test -z "$CXX"; then
4741 for ac_prog in clang++ g++ c++
4743 # Extract the first word of "$ac_prog", so it can be a program name with args.
4744 set dummy $ac_prog; ac_word=$2
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 printf %s "checking for $ac_word... " >&6; }
4747 if test ${ac_cv_prog_ac_ct_CXX+y}
4749 printf %s "(cached) " >&6
4751 if test -n "$ac_ct_CXX"; then
4752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 case $as_dir in #(((
4761 *) as_dir=$as_dir/ ;;
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4765 ac_cv_prog_ac_ct_CXX="$ac_prog"
4766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4775 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4776 if test -n "$ac_ct_CXX"; then
4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4778 printf "%s\n" "$ac_ct_CXX" >&6; }
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 printf "%s\n" "no" >&6; }
4785 test -n "$ac_ct_CXX" && break
4788 if test "x$ac_ct_CXX" = x; then
4791 case $cross_compiling:$ac_tool_warned in
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795 ac_tool_warned=yes ;;
4803 # Provide some information about the compiler.
4804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4807 for ac_option in --version -v -V -qversion; do
4808 { { ac_try="$ac_compiler $ac_option >&5"
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4814 printf "%s\n" "$ac_try_echo"; } >&5
4815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4817 if test -s conftest.err; then
4819 ... rest of stderr output deleted ...
4820 10q' conftest.err >conftest.er1
4821 cat conftest.er1 >&5
4823 rm -f conftest.er1 conftest.err
4824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4825 test $ac_status = 0; }
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4829 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4830 if test ${ac_cv_cxx_compiler_gnu+y}
4832 printf %s "(cached) " >&6
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4848 if ac_fn_cxx_try_compile "$LINENO"
4854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4855 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4859 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4862 if test $ac_compiler_gnu = yes; then
4867 ac_test_CXXFLAGS=${CXXFLAGS+y}
4868 ac_save_CXXFLAGS=$CXXFLAGS
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4870 printf %s "checking whether $CXX accepts -g... " >&6; }
4871 if test ${ac_cv_prog_cxx_g+y}
4873 printf %s "(cached) " >&6
4875 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4876 ac_cxx_werror_flag=yes
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4890 if ac_fn_cxx_try_compile "$LINENO"
4892 ac_cv_prog_cxx_g=yes
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4906 if ac_fn_cxx_try_compile "$LINENO"
4910 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4923 if ac_fn_cxx_try_compile "$LINENO"
4925 ac_cv_prog_cxx_g=yes
4927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4932 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4935 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4936 if test $ac_test_CXXFLAGS; then
4937 CXXFLAGS=$ac_save_CXXFLAGS
4938 elif test $ac_cv_prog_cxx_g = yes; then
4939 if test "$GXX" = yes; then
4945 if test "$GXX" = yes; then
4951 ac_prog_cxx_stdcxx=no
4952 if test x$ac_prog_cxx_stdcxx = xno
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4955 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4956 if test ${ac_cv_prog_cxx_11+y}
4958 printf %s "(cached) " >&6
4960 ac_cv_prog_cxx_11=no
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 $ac_cxx_conftest_cxx11_program
4966 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4968 CXX="$ac_save_CXX $ac_arg"
4969 if ac_fn_cxx_try_compile "$LINENO"
4971 ac_cv_prog_cxx_cxx11=$ac_arg
4973 rm -f core conftest.err conftest.$ac_objext conftest.beam
4974 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4976 rm -f conftest.$ac_ext
4980 if test "x$ac_cv_prog_cxx_cxx11" = xno
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4983 printf "%s\n" "unsupported" >&6; }
4985 if test "x$ac_cv_prog_cxx_cxx11" = x
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4988 printf "%s\n" "none needed" >&6; }
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4991 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4992 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4994 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4995 ac_prog_cxx_stdcxx=cxx11
4998 if test x$ac_prog_cxx_stdcxx = xno
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5001 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5002 if test ${ac_cv_prog_cxx_98+y}
5004 printf %s "(cached) " >&6
5006 ac_cv_prog_cxx_98=no
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 $ac_cxx_conftest_cxx98_program
5012 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5014 CXX="$ac_save_CXX $ac_arg"
5015 if ac_fn_cxx_try_compile "$LINENO"
5017 ac_cv_prog_cxx_cxx98=$ac_arg
5019 rm -f core conftest.err conftest.$ac_objext conftest.beam
5020 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5022 rm -f conftest.$ac_ext
5026 if test "x$ac_cv_prog_cxx_cxx98" = xno
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5029 printf "%s\n" "unsupported" >&6; }
5031 if test "x$ac_cv_prog_cxx_cxx98" = x
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5034 printf "%s\n" "none needed" >&6; }
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5037 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5038 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5040 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5041 ac_prog_cxx_stdcxx=cxx98
5046 ac_cpp='$CPP $CPPFLAGS'
5047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051 depcc="$CXX" am_compiler_list=
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5054 printf %s "checking dependency style of $depcc... " >&6; }
5055 if test ${am_cv_CXX_dependencies_compiler_type+y}
5057 printf %s "(cached) " >&6
5059 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5060 # We make a subdir and do the tests there. Otherwise we can end up
5061 # making bogus files that we don't know about and never remove. For
5062 # instance it was reported that on HP-UX the gcc test will end up
5063 # making a dummy file named 'D' -- because '-MD' means "put the output
5067 # Copy depcomp to subdir because otherwise we won't find it if we're
5068 # using a relative directory.
5069 cp "$am_depcomp" conftest.dir
5071 # We will build objects and dependencies in a subdirectory because
5072 # it helps to detect inapplicable dependency modes. For instance
5073 # both Tru64's cc and ICC support -MD to output dependencies as a
5074 # side effect of compilation, but ICC will put the dependencies in
5075 # the current directory while Tru64 will put them in the object
5079 am_cv_CXX_dependencies_compiler_type=none
5080 if test "$am_compiler_list" = ""; then
5081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5084 case " $depcc " in #(
5085 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5088 for depmode in $am_compiler_list; do
5089 # Setup a source with many dependencies, because some compilers
5090 # like to wrap large dependency lists on column 80 (with \), and
5091 # we should not choose a depcomp mode which is confused by this.
5093 # We need to recreate these files for each test, as the compiler may
5094 # overwrite some of them when testing with obscure command lines.
5095 # This happens at least with the AIX C compiler.
5097 for i in 1 2 3 4 5 6; do
5098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5100 # Solaris 10 /bin/sh.
5101 echo '/* dummy */' > sub/conftst$i.h
5103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5105 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5106 # mode. It turns out that the SunPro C++ compiler does not properly
5107 # handle '-M -o', and we need to detect this. Also, some Intel
5108 # versions had trouble with output in subdirs.
5109 am__obj=sub/conftest.${OBJEXT-o}
5110 am__minus_obj="-o $am__obj"
5113 # This depmode causes a compiler race in universal mode.
5114 test "$am__universal" = false || continue
5117 # After this tag, mechanisms are not by side-effect, so they'll
5118 # only be used when explicitly requested.
5119 if test "x$enable_dependency_tracking" = xyes; then
5125 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5126 # This compiler won't grok '-c -o', but also, the minuso test has
5127 # not run yet. These depmodes are late enough in the game, and
5128 # so weak that their functioning should not be impacted.
5129 am__obj=conftest.${OBJEXT-o}
5134 if depmode=$depmode \
5135 source=sub/conftest.c object=$am__obj \
5136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5138 >/dev/null 2>conftest.err &&
5139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5143 # icc doesn't choke on unknown options, it will just issue warnings
5144 # or remarks (even with -Werror). So we grep stderr for any message
5145 # that says an option was ignored or not supported.
5146 # When given -MP, icc 7.0 and 7.1 complain thusly:
5147 # icc: Command line warning: ignoring option '-M'; no argument required
5148 # The diagnosis changed in icc 8.0:
5149 # icc: Command line remark: option '-MP' not supported
5150 if (grep 'ignoring option' conftest.err ||
5151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5152 am_cv_CXX_dependencies_compiler_type=$depmode
5161 am_cv_CXX_dependencies_compiler_type=none
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5166 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5167 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5170 test "x$enable_dependency_tracking" != xno \
5171 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5172 am__fastdepCXX_TRUE=
5173 am__fastdepCXX_FALSE='#'
5175 am__fastdepCXX_TRUE='#'
5176 am__fastdepCXX_FALSE=
5181 ac_header= ac_cache=
5182 for ac_item in $ac_header_c_list
5184 if test $ac_cache; then
5185 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5186 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5187 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5189 ac_header= ac_cache=
5190 elif test $ac_header; then
5204 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5207 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5217 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5218 if test ${ac_cv_safe_to_define___extensions__+y}
5220 printf %s "(cached) " >&6
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5225 # define __EXTENSIONS__ 1
5226 $ac_includes_default
5235 if ac_fn_c_try_compile "$LINENO"
5237 ac_cv_safe_to_define___extensions__=yes
5239 ac_cv_safe_to_define___extensions__=no
5241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5244 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5247 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5248 if test ${ac_cv_should_define__xopen_source+y}
5250 printf %s "(cached) " >&6
5252 ac_cv_should_define__xopen_source=no
5253 if test $ac_cv_header_wchar_h = yes
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5268 if ac_fn_c_try_compile "$LINENO"
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5275 #define _XOPEN_SOURCE 500
5286 if ac_fn_c_try_compile "$LINENO"
5288 ac_cv_should_define__xopen_source=yes
5290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5296 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5298 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5300 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5302 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5304 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5306 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5308 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5310 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5312 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5314 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5316 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5318 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5320 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5322 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5324 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5326 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5328 if test $ac_cv_header_minix_config_h = yes
5331 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5333 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5335 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5340 if test $ac_cv_safe_to_define___extensions__ = yes
5342 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5345 if test $ac_cv_should_define__xopen_source = yes
5347 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5353 printf %s "checking for an ANSI C-conforming const... " >&6; }
5354 if test ${ac_cv_c_const+y}
5356 printf %s "(cached) " >&6
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5366 /* Ultrix mips cc rejects this sort of thing. */
5367 typedef int charset[2];
5368 const charset cs = { 0, 0 };
5369 /* SunOS 4.1.1 cc rejects this. */
5370 char const *const *pcpcc;
5372 /* NEC SVR4.0.2 mips cc rejects this. */
5373 struct point {int x, y;};
5374 static struct point const zero = {0,0};
5375 /* IBM XL C 1.02.0.0 rejects this.
5376 It does not let you subtract one const X* pointer from another in
5377 an arm of an if-expression whose if-part is not a constant
5379 const char *g = "string";
5380 pcpcc = &g + (g ? g-g : 0);
5381 /* HPUX 7.0 cc rejects these. */
5383 ppc = (char**) pcpcc;
5384 pcpcc = (char const *const *) ppc;
5385 { /* SCO 3.2v4 cc rejects this sort of thing. */
5388 char const *s = 0 ? (char *) 0 : (char const *) 0;
5393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5395 const int *foo = &x[0];
5398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5399 typedef const int *iptr;
5403 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5404 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5405 struct s { int j; const int *ap[3]; } bx;
5406 struct s *b = &bx; b->j = 5;
5408 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5412 return !cs[0] && !zero.x;
5419 if ac_fn_c_try_compile "$LINENO"
5425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5428 printf "%s\n" "$ac_cv_c_const" >&6; }
5429 if test $ac_cv_c_const = no; then
5431 printf "%s\n" "#define const /**/" >>confdefs.h
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5436 printf %s "checking for C/C++ restrict keyword... " >&6; }
5437 if test ${ac_cv_c_restrict+y}
5439 printf %s "(cached) " >&6
5442 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
5443 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
5444 # Put 'restrict' last, because C++ lacks it.
5445 for ac_kw in __restrict__ __restrict _Restrict restrict; do
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 typedef int *int_ptr;
5449 int foo (int_ptr $ac_kw ip) { return ip[0]; }
5450 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
5451 int bar (int ip[$ac_kw]) { return ip[0]; }
5459 return foo (t) + bar (t);
5465 if ac_fn_c_try_compile "$LINENO"
5467 ac_cv_c_restrict=$ac_kw
5469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5470 test "$ac_cv_c_restrict" != no && break
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5475 printf "%s\n" "$ac_cv_c_restrict" >&6; }
5477 case $ac_cv_c_restrict in
5479 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
5481 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5486 printf %s "checking for working volatile... " >&6; }
5487 if test ${ac_cv_c_volatile+y}
5489 printf %s "(cached) " >&6
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5499 int * volatile y = (int *) 0;
5505 if ac_fn_c_try_compile "$LINENO"
5507 ac_cv_c_volatile=yes
5511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5514 printf "%s\n" "$ac_cv_c_volatile" >&6; }
5515 if test $ac_cv_c_volatile = no; then
5517 printf "%s\n" "#define volatile /**/" >>confdefs.h
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
5522 printf %s "checking for C compiler vendor... " >&6; }
5523 if test ${ax_cv_c_compiler_vendor+y}
5525 printf %s "(cached) " >&6
5529 intel: __ICC,__ECC,__INTEL_COMPILER
5530 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__
5531 pathscale: __PATHCC__,__PATHSCALE__
5539 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95
5540 hp: __HP_cc,__HP_aCC
5541 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
5542 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
5548 metrowerks: __MWERKS__
5553 for ventest in $vendors; do
5560 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")"
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5579 if ac_fn_c_try_compile "$LINENO"
5583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5586 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
5590 printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5598 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5603 macro_version='2.4.7'
5604 macro_revision='2.4.7'
5619 ltmain=$ac_aux_dir/ltmain.sh
5623 # Make sure we can run config.sub.
5624 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5625 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5628 printf %s "checking build system type... " >&6; }
5629 if test ${ac_cv_build+y}
5631 printf %s "(cached) " >&6
5633 ac_build_alias=$build_alias
5634 test "x$ac_build_alias" = x &&
5635 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5636 test "x$ac_build_alias" = x &&
5637 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5638 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5639 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5643 printf "%s\n" "$ac_cv_build" >&6; }
5644 case $ac_cv_build in
5646 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5649 ac_save_IFS=$IFS; IFS='-'
5655 # Remember, the first character of IFS is used to create $*,
5656 # except with old shells:
5659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5663 printf %s "checking host system type... " >&6; }
5664 if test ${ac_cv_host+y}
5666 printf %s "(cached) " >&6
5668 if test "x$host_alias" = x; then
5669 ac_cv_host=$ac_cv_build
5671 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5672 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5677 printf "%s\n" "$ac_cv_host" >&6; }
5680 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5683 ac_save_IFS=$IFS; IFS='-'
5689 # Remember, the first character of IFS is used to create $*,
5690 # except with old shells:
5693 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5696 # Backslashify metacharacters that are still active within
5697 # double-quoted strings.
5698 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5700 # Same as above, but do not quote variable references.
5701 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5703 # Sed substitution to delay expansion of an escaped shell variable in a
5704 # double_quote_subst'ed string.
5705 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5707 # Sed substitution to delay expansion of an escaped single quote.
5708 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5710 # Sed substitution to avoid accidental globbing in evaled expressions
5711 no_glob_subst='s/\*/\\\*/g'
5713 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5714 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5715 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5718 printf %s "checking how to print strings... " >&6; }
5719 # Test print first, because it will be a builtin if present.
5720 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5721 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5723 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5726 # Use this function as a fallback that always works.
5727 func_fallback_echo ()
5729 eval 'cat <<_LTECHO_EOF
5733 ECHO='func_fallback_echo'
5736 # func_echo_all arg...
5737 # Invoke $ECHO with all args, space-separated.
5744 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5745 printf "%s\n" "printf" >&6; } ;;
5746 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5747 printf "%s\n" "print -r" >&6; } ;;
5748 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5749 printf "%s\n" "cat" >&6; } ;;
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5766 printf %s "checking for a sed that does not truncate output... " >&6; }
5767 if test ${ac_cv_path_SED+y}
5769 printf %s "(cached) " >&6
5771 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5772 for ac_i in 1 2 3 4 5 6 7; do
5773 ac_script="$ac_script$as_nl$ac_script"
5775 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5776 { ac_script=; unset ac_script;}
5777 if test -z "$SED"; then
5778 ac_path_SED_found=false
5779 # Loop through the user's path and test for each of PROGNAME-LIST
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 case $as_dir in #(((
5787 *) as_dir=$as_dir/ ;;
5789 for ac_prog in sed gsed
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5793 as_fn_executable_p "$ac_path_SED" || continue
5794 # Check for GNU ac_path_SED and select it if it is found.
5795 # Check for GNU $ac_path_SED
5796 case `"$ac_path_SED" --version 2>&1` in
5798 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5801 printf %s 0123456789 >"conftest.in"
5804 cat "conftest.in" "conftest.in" >"conftest.tmp"
5805 mv "conftest.tmp" "conftest.in"
5806 cp "conftest.in" "conftest.nl"
5807 printf "%s\n" '' >> "conftest.nl"
5808 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810 as_fn_arith $ac_count + 1 && ac_count=$as_val
5811 if test $ac_count -gt ${ac_path_SED_max-0}; then
5812 # Best one so far, save it but keep looking for a better one
5813 ac_cv_path_SED="$ac_path_SED"
5814 ac_path_SED_max=$ac_count
5816 # 10*(2^10) chars as input seems more than enough
5817 test $ac_count -gt 10 && break
5819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5822 $ac_path_SED_found && break 3
5827 if test -z "$ac_cv_path_SED"; then
5828 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5836 printf "%s\n" "$ac_cv_path_SED" >&6; }
5837 SED="$ac_cv_path_SED"
5840 test -z "$SED" && SED=sed
5841 Xsed="$SED -e 1s/^X//"
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5854 printf %s "checking for grep that handles long lines and -e... " >&6; }
5855 if test ${ac_cv_path_GREP+y}
5857 printf %s "(cached) " >&6
5859 if test -z "$GREP"; then
5860 ac_path_GREP_found=false
5861 # Loop through the user's path and test for each of PROGNAME-LIST
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5866 case $as_dir in #(((
5869 *) as_dir=$as_dir/ ;;
5871 for ac_prog in grep ggrep
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5875 as_fn_executable_p "$ac_path_GREP" || continue
5876 # Check for GNU ac_path_GREP and select it if it is found.
5877 # Check for GNU $ac_path_GREP
5878 case `"$ac_path_GREP" --version 2>&1` in
5880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5883 printf %s 0123456789 >"conftest.in"
5886 cat "conftest.in" "conftest.in" >"conftest.tmp"
5887 mv "conftest.tmp" "conftest.in"
5888 cp "conftest.in" "conftest.nl"
5889 printf "%s\n" 'GREP' >> "conftest.nl"
5890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5892 as_fn_arith $ac_count + 1 && ac_count=$as_val
5893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5894 # Best one so far, save it but keep looking for a better one
5895 ac_cv_path_GREP="$ac_path_GREP"
5896 ac_path_GREP_max=$ac_count
5898 # 10*(2^10) chars as input seems more than enough
5899 test $ac_count -gt 10 && break
5901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5904 $ac_path_GREP_found && break 3
5909 if test -z "$ac_cv_path_GREP"; then
5910 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5913 ac_cv_path_GREP=$GREP
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5918 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5919 GREP="$ac_cv_path_GREP"
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5923 printf %s "checking for egrep... " >&6; }
5924 if test ${ac_cv_path_EGREP+y}
5926 printf %s "(cached) " >&6
5928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5929 then ac_cv_path_EGREP="$GREP -E"
5931 if test -z "$EGREP"; then
5932 ac_path_EGREP_found=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5938 case $as_dir in #(((
5941 *) as_dir=$as_dir/ ;;
5943 for ac_prog in egrep
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5947 as_fn_executable_p "$ac_path_EGREP" || continue
5948 # Check for GNU ac_path_EGREP and select it if it is found.
5949 # Check for GNU $ac_path_EGREP
5950 case `"$ac_path_EGREP" --version 2>&1` in
5952 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5955 printf %s 0123456789 >"conftest.in"
5958 cat "conftest.in" "conftest.in" >"conftest.tmp"
5959 mv "conftest.tmp" "conftest.in"
5960 cp "conftest.in" "conftest.nl"
5961 printf "%s\n" 'EGREP' >> "conftest.nl"
5962 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5964 as_fn_arith $ac_count + 1 && ac_count=$as_val
5965 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5966 # Best one so far, save it but keep looking for a better one
5967 ac_cv_path_EGREP="$ac_path_EGREP"
5968 ac_path_EGREP_max=$ac_count
5970 # 10*(2^10) chars as input seems more than enough
5971 test $ac_count -gt 10 && break
5973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5976 $ac_path_EGREP_found && break 3
5981 if test -z "$ac_cv_path_EGREP"; then
5982 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5985 ac_cv_path_EGREP=$EGREP
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5991 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5992 EGREP="$ac_cv_path_EGREP"
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5996 printf %s "checking for fgrep... " >&6; }
5997 if test ${ac_cv_path_FGREP+y}
5999 printf %s "(cached) " >&6
6001 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6002 then ac_cv_path_FGREP="$GREP -F"
6004 if test -z "$FGREP"; then
6005 ac_path_FGREP_found=false
6006 # Loop through the user's path and test for each of PROGNAME-LIST
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6011 case $as_dir in #(((
6014 *) as_dir=$as_dir/ ;;
6016 for ac_prog in fgrep
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6020 as_fn_executable_p "$ac_path_FGREP" || continue
6021 # Check for GNU ac_path_FGREP and select it if it is found.
6022 # Check for GNU $ac_path_FGREP
6023 case `"$ac_path_FGREP" --version 2>&1` in
6025 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6028 printf %s 0123456789 >"conftest.in"
6031 cat "conftest.in" "conftest.in" >"conftest.tmp"
6032 mv "conftest.tmp" "conftest.in"
6033 cp "conftest.in" "conftest.nl"
6034 printf "%s\n" 'FGREP' >> "conftest.nl"
6035 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6037 as_fn_arith $ac_count + 1 && ac_count=$as_val
6038 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6039 # Best one so far, save it but keep looking for a better one
6040 ac_cv_path_FGREP="$ac_path_FGREP"
6041 ac_path_FGREP_max=$ac_count
6043 # 10*(2^10) chars as input seems more than enough
6044 test $ac_count -gt 10 && break
6046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6049 $ac_path_FGREP_found && break 3
6054 if test -z "$ac_cv_path_FGREP"; then
6055 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6058 ac_cv_path_FGREP=$FGREP
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6064 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6065 FGREP="$ac_cv_path_FGREP"
6068 test -z "$GREP" && GREP=grep
6088 # Check whether --with-gnu-ld was given.
6089 if test ${with_gnu_ld+y}
6091 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6097 if test yes = "$GCC"; then
6098 # Check if gcc -print-prog-name=ld gives a path.
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6100 printf %s "checking for ld used by $CC... " >&6; }
6103 # gcc leaves a trailing carriage return, which upsets mingw
6104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6109 # Accept absolute paths.
6111 re_direlt='/[^/][^/]*/\.\./'
6112 # Canonicalize the pathname of ld
6113 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6114 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6115 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6117 test -z "$LD" && LD=$ac_prog
6120 # If it fails, then pretend we aren't using GCC.
6124 # If it is relative, then search for the first ld in PATH.
6128 elif test yes = "$with_gnu_ld"; then
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6130 printf %s "checking for GNU ld... " >&6; }
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6133 printf %s "checking for non-GNU ld... " >&6; }
6135 if test ${lt_cv_path_LD+y}
6137 printf %s "(cached) " >&6
6139 if test -z "$LD"; then
6140 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6141 for ac_dir in $PATH; do
6143 test -z "$ac_dir" && ac_dir=.
6144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6145 lt_cv_path_LD=$ac_dir/$ac_prog
6146 # Check to see if the program is GNU ld. I'd rather use --version,
6147 # but apparently some variants of GNU ld only accept -v.
6148 # Break only if it was the GNU/non-GNU ld that we prefer.
6149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6150 *GNU* | *'with BFD'*)
6151 test no != "$with_gnu_ld" && break
6154 test yes != "$with_gnu_ld" && break
6161 lt_cv_path_LD=$LD # Let the user override the test with a path.
6166 if test -n "$LD"; then
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6168 printf "%s\n" "$LD" >&6; }
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 printf "%s\n" "no" >&6; }
6173 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6175 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6176 if test ${lt_cv_prog_gnu_ld+y}
6178 printf %s "(cached) " >&6
6180 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6181 case `$LD -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183 lt_cv_prog_gnu_ld=yes
6186 lt_cv_prog_gnu_ld=no
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6191 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6192 with_gnu_ld=$lt_cv_prog_gnu_ld
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6203 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6204 if test ${lt_cv_path_NM+y}
6206 printf %s "(cached) " >&6
6208 if test -n "$NM"; then
6209 # Let the user override the test.
6212 lt_nm_to_check=${ac_tool_prefix}nm
6213 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6214 lt_nm_to_check="$lt_nm_to_check nm"
6216 for lt_tmp_nm in $lt_nm_to_check; do
6217 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6218 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6220 test -z "$ac_dir" && ac_dir=.
6221 tmp_nm=$ac_dir/$lt_tmp_nm
6222 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6223 # Check to see if the nm accepts a BSD-compat flag.
6224 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6225 # nm: unknown option "B" ignored
6226 # Tru64's nm complains that /dev/null is an invalid object file
6227 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6229 mingw*) lt_bad_file=conftest.nm/nofile ;;
6230 *) lt_bad_file=/dev/null ;;
6232 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6233 *$lt_bad_file* | *'Invalid file or object type'*)
6234 lt_cv_path_NM="$tmp_nm -B"
6238 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6240 lt_cv_path_NM="$tmp_nm -p"
6244 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6245 continue # so that we can try to find one that supports BSD flags
6254 : ${lt_cv_path_NM=no}
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6258 printf "%s\n" "$lt_cv_path_NM" >&6; }
6259 if test no != "$lt_cv_path_NM"; then
6262 # Didn't find any BSD compatible name lister, look for dumpbin.
6263 if test -n "$DUMPBIN"; then :
6264 # Let the user override the test.
6266 if test -n "$ac_tool_prefix"; then
6267 for ac_prog in dumpbin "link -dump"
6269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 printf %s "checking for $ac_word... " >&6; }
6273 if test ${ac_cv_prog_DUMPBIN+y}
6275 printf %s "(cached) " >&6
6277 if test -n "$DUMPBIN"; then
6278 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 case $as_dir in #(((
6287 *) as_dir=$as_dir/ ;;
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6301 DUMPBIN=$ac_cv_prog_DUMPBIN
6302 if test -n "$DUMPBIN"; then
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6304 printf "%s\n" "$DUMPBIN" >&6; }
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 printf "%s\n" "no" >&6; }
6311 test -n "$DUMPBIN" && break
6314 if test -z "$DUMPBIN"; then
6315 ac_ct_DUMPBIN=$DUMPBIN
6316 for ac_prog in dumpbin "link -dump"
6318 # Extract the first word of "$ac_prog", so it can be a program name with args.
6319 set dummy $ac_prog; ac_word=$2
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 printf %s "checking for $ac_word... " >&6; }
6322 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6324 printf %s "(cached) " >&6
6326 if test -n "$ac_ct_DUMPBIN"; then
6327 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 case $as_dir in #(((
6336 *) as_dir=$as_dir/ ;;
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6350 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6351 if test -n "$ac_ct_DUMPBIN"; then
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6353 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 printf "%s\n" "no" >&6; }
6360 test -n "$ac_ct_DUMPBIN" && break
6363 if test "x$ac_ct_DUMPBIN" = x; then
6366 case $cross_compiling:$ac_tool_warned in
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6372 DUMPBIN=$ac_ct_DUMPBIN
6376 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6378 DUMPBIN="$DUMPBIN -symbols -headers"
6386 if test : != "$DUMPBIN"; then
6390 test -z "$NM" && NM=nm
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6398 printf %s "checking the name lister ($NM) interface... " >&6; }
6399 if test ${lt_cv_nm_interface+y}
6401 printf %s "(cached) " >&6
6403 lt_cv_nm_interface="BSD nm"
6404 echo "int some_variable = 0;" > conftest.$ac_ext
6405 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6406 (eval "$ac_compile" 2>conftest.err)
6407 cat conftest.err >&5
6408 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6409 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6410 cat conftest.err >&5
6411 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6412 cat conftest.out >&5
6413 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6414 lt_cv_nm_interface="MS dumpbin"
6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6419 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6422 printf %s "checking whether ln -s works... " >&6; }
6424 if test "$LN_S" = "ln -s"; then
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6426 printf "%s\n" "yes" >&6; }
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6429 printf "%s\n" "no, using $LN_S" >&6; }
6432 # find the maximum length of command line arguments
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6434 printf %s "checking the maximum length of command line arguments... " >&6; }
6435 if test ${lt_cv_sys_max_cmd_len+y}
6437 printf %s "(cached) " >&6
6444 # On DJGPP, this test can blow up pretty badly due to problems in libc
6445 # (any single argument exceeding 2000 bytes causes a buffer overrun
6446 # during glob expansion). Even if it were fixed, the result of this
6447 # check would be larger than it should be.
6448 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6452 # Under GNU Hurd, this test is not required because there is
6453 # no limit to the length of command line arguments.
6454 # Libtool will interpret -1 as no limit whatsoever
6455 lt_cv_sys_max_cmd_len=-1;
6458 cygwin* | mingw* | cegcc*)
6459 # On Win9x/ME, this test blows up -- it succeeds, but takes
6460 # about 5 minutes as the teststring grows exponentially.
6461 # Worse, since 9x/ME are not pre-emptively multitasking,
6462 # you end up with a "frozen" computer, even though with patience
6463 # the test eventually succeeds (with a max line length of 256k).
6464 # Instead, let's just punt: use the minimum linelength reported by
6465 # all of the supported platforms: 8192 (on NT/2K/XP).
6466 lt_cv_sys_max_cmd_len=8192;
6470 # On MiNT this can take a long time and run out of memory.
6471 lt_cv_sys_max_cmd_len=8192;
6475 # On AmigaOS with pdksh, this test takes hours, literally.
6476 # So we just punt and use a minimum line length of 8192.
6477 lt_cv_sys_max_cmd_len=8192;
6480 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6481 # This has been around since 386BSD, at least. Likely further.
6482 if test -x /sbin/sysctl; then
6483 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6484 elif test -x /usr/sbin/sysctl; then
6485 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6487 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6489 # And add a safety zone
6490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6495 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6496 lt_cv_sys_max_cmd_len=196608
6500 # The test takes a long time on OS/2.
6501 lt_cv_sys_max_cmd_len=8192
6505 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6506 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6507 # nice to cause kernel panics so lets avoid the loop below.
6508 # First set a reasonable default.
6509 lt_cv_sys_max_cmd_len=16384
6511 if test -x /sbin/sysconfig; then
6512 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6513 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6518 lt_cv_sys_max_cmd_len=102400
6520 sysv5* | sco5v6* | sysv4.2uw2*)
6521 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6522 if test -n "$kargmax"; then
6523 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6525 lt_cv_sys_max_cmd_len=32768
6529 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6530 if test -n "$lt_cv_sys_max_cmd_len" && \
6531 test undefined != "$lt_cv_sys_max_cmd_len"; then
6532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6535 # Make teststring a little bigger before we do anything with it.
6536 # a 1K string should be a reasonable start.
6537 for i in 1 2 3 4 5 6 7 8; do
6538 teststring=$teststring$teststring
6540 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6541 # If test is not a shell built-in, we'll probably end up computing a
6542 # maximum length that is only half of the actual maximum length, but
6544 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6545 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6546 test 17 != "$i" # 1/2 MB should be enough
6549 teststring=$teststring$teststring
6551 # Only check the string length outside the loop.
6552 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6554 # Add a significant safety factor because C++ compilers can tack on
6555 # massive amounts of additional arguments before passing them to the
6556 # linker. It appears as though 1/2 is a usable value.
6557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6564 if test -n "$lt_cv_sys_max_cmd_len"; then
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6566 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6569 printf "%s\n" "none" >&6; }
6571 max_cmd_len=$lt_cv_sys_max_cmd_len
6582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6592 # test EBCDIC or ASCII
6593 case `echo X|tr X '\101'` in
6594 A) # ASCII based system
6595 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6596 lt_SP2NL='tr \040 \012'
6597 lt_NL2SP='tr \015\012 \040\040'
6599 *) # EBCDIC based system
6600 lt_SP2NL='tr \100 \n'
6601 lt_NL2SP='tr \r\n \100\100'
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6614 printf %s "checking how to convert $build file names to $host format... " >&6; }
6615 if test ${lt_cv_to_host_file_cmd+y}
6617 printf %s "(cached) " >&6
6622 *-*-mingw* ) # actually msys
6623 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6626 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6628 * ) # otherwise, assume *nix
6629 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6635 *-*-mingw* ) # actually msys
6636 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6639 lt_cv_to_host_file_cmd=func_convert_file_noop
6641 * ) # otherwise, assume *nix
6642 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6646 * ) # unhandled hosts (and "normal" native builds)
6647 lt_cv_to_host_file_cmd=func_convert_file_noop
6653 to_host_file_cmd=$lt_cv_to_host_file_cmd
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6655 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6662 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6663 if test ${lt_cv_to_tool_file_cmd+y}
6665 printf %s "(cached) " >&6
6667 #assume ordinary cross tools, or native build.
6668 lt_cv_to_tool_file_cmd=func_convert_file_noop
6672 *-*-mingw* ) # actually msys
6673 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6681 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6683 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6690 printf %s "checking for $LD option to reload object files... " >&6; }
6691 if test ${lt_cv_ld_reload_flag+y}
6693 printf %s "(cached) " >&6
6695 lt_cv_ld_reload_flag='-r'
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6698 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6699 reload_flag=$lt_cv_ld_reload_flag
6700 case $reload_flag in
6702 *) reload_flag=" $reload_flag" ;;
6704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6706 cygwin* | mingw* | pw32* | cegcc*)
6707 if test yes != "$GCC"; then
6712 if test yes = "$GCC"; then
6713 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6715 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}file; ac_word=$2
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 printf %s "checking for $ac_word... " >&6; }
6733 if test ${ac_cv_prog_FILECMD+y}
6735 printf %s "(cached) " >&6
6737 if test -n "$FILECMD"; then
6738 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 case $as_dir in #(((
6747 *) as_dir=$as_dir/ ;;
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6761 FILECMD=$ac_cv_prog_FILECMD
6762 if test -n "$FILECMD"; then
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6764 printf "%s\n" "$FILECMD" >&6; }
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 printf "%s\n" "no" >&6; }
6772 if test -z "$ac_cv_prog_FILECMD"; then
6773 ac_ct_FILECMD=$FILECMD
6774 # Extract the first word of "file", so it can be a program name with args.
6775 set dummy file; ac_word=$2
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 printf %s "checking for $ac_word... " >&6; }
6778 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6780 printf %s "(cached) " >&6
6782 if test -n "$ac_ct_FILECMD"; then
6783 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 case $as_dir in #(((
6792 *) as_dir=$as_dir/ ;;
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_ac_ct_FILECMD="file"
6797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6806 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6807 if test -n "$ac_ct_FILECMD"; then
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6809 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 printf "%s\n" "no" >&6; }
6815 if test "x$ac_ct_FILECMD" = x; then
6818 case $cross_compiling:$ac_tool_warned in
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6824 FILECMD=$ac_ct_FILECMD
6827 FILECMD="$ac_cv_prog_FILECMD"
6836 if test -n "$ac_tool_prefix"; then
6837 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 printf %s "checking for $ac_word... " >&6; }
6841 if test ${ac_cv_prog_OBJDUMP+y}
6843 printf %s "(cached) " >&6
6845 if test -n "$OBJDUMP"; then
6846 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 case $as_dir in #(((
6855 *) as_dir=$as_dir/ ;;
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6869 OBJDUMP=$ac_cv_prog_OBJDUMP
6870 if test -n "$OBJDUMP"; then
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6872 printf "%s\n" "$OBJDUMP" >&6; }
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 printf "%s\n" "no" >&6; }
6880 if test -z "$ac_cv_prog_OBJDUMP"; then
6881 ac_ct_OBJDUMP=$OBJDUMP
6882 # Extract the first word of "objdump", so it can be a program name with args.
6883 set dummy objdump; ac_word=$2
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 printf %s "checking for $ac_word... " >&6; }
6886 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6888 printf %s "(cached) " >&6
6890 if test -n "$ac_ct_OBJDUMP"; then
6891 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 case $as_dir in #(((
6900 *) as_dir=$as_dir/ ;;
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6914 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6915 if test -n "$ac_ct_OBJDUMP"; then
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6917 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 printf "%s\n" "no" >&6; }
6923 if test "x$ac_ct_OBJDUMP" = x; then
6926 case $cross_compiling:$ac_tool_warned in
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930 ac_tool_warned=yes ;;
6932 OBJDUMP=$ac_ct_OBJDUMP
6935 OBJDUMP="$ac_cv_prog_OBJDUMP"
6938 test -z "$OBJDUMP" && OBJDUMP=objdump
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6949 printf %s "checking how to recognize dependent libraries... " >&6; }
6950 if test ${lt_cv_deplibs_check_method+y}
6952 printf %s "(cached) " >&6
6954 lt_cv_file_magic_cmd='$MAGIC_CMD'
6955 lt_cv_file_magic_test_file=
6956 lt_cv_deplibs_check_method='unknown'
6957 # Need to set the preceding variable on all platforms that support
6958 # interlibrary dependencies.
6959 # 'none' -- dependencies not supported.
6960 # 'unknown' -- same as none, but documents that we really don't know.
6961 # 'pass_all' -- all dependencies passed with no checks.
6962 # 'test_compile' -- check by making test program.
6963 # 'file_magic [[regex]]' -- check by looking for files in library path
6964 # that responds to the $file_magic_cmd with a given extended regex.
6965 # If you have 'file' or equivalent on your system and you're not sure
6966 # whether 'pass_all' will *always* work, you probably want this one.
6970 lt_cv_deplibs_check_method=pass_all
6974 lt_cv_deplibs_check_method=pass_all
6978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6979 lt_cv_file_magic_cmd='$FILECMD -L'
6980 lt_cv_file_magic_test_file=/shlib/libc.so
6984 # func_win32_libid is a shell function defined in ltmain.sh
6985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6986 lt_cv_file_magic_cmd='func_win32_libid'
6990 # Base MSYS/MinGW do not provide the 'file' command needed by
6991 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6992 # unless we find 'file', for example because we are cross-compiling.
6993 if ( file / ) >/dev/null 2>&1; then
6994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6995 lt_cv_file_magic_cmd='func_win32_libid'
6997 # Keep this pattern in sync with the one in func_win32_libid.
6998 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6999 lt_cv_file_magic_cmd='$OBJDUMP -f'
7004 # use the weaker test based on 'objdump'. See mingw*.
7005 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7006 lt_cv_file_magic_cmd='$OBJDUMP -f'
7009 darwin* | rhapsody*)
7010 lt_cv_deplibs_check_method=pass_all
7013 freebsd* | dragonfly* | midnightbsd*)
7014 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7017 # Not sure whether the presence of OpenBSD here was a mistake.
7018 # Let's accept both of them until this is cleared up.
7019 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7020 lt_cv_file_magic_cmd=$FILECMD
7021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7025 lt_cv_deplibs_check_method=pass_all
7030 lt_cv_deplibs_check_method=pass_all
7033 hpux10.20* | hpux11*)
7034 lt_cv_file_magic_cmd=$FILECMD
7037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7038 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7041 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]'
7042 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7046 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7056 irix5* | irix6* | nonstopux*)
7058 *-32|*"-32 ") libmagic=32-bit;;
7059 *-n32|*"-n32 ") libmagic=N32;;
7060 *-64|*"-64 ") libmagic=64-bit;;
7061 *) libmagic=never-match;;
7063 lt_cv_deplibs_check_method=pass_all
7066 # This must be glibc/ELF.
7067 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7068 lt_cv_deplibs_check_method=pass_all
7072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7081 lt_cv_file_magic_cmd=$FILECMD
7082 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7086 lt_cv_deplibs_check_method=pass_all
7090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7097 osf3* | osf4* | osf5*)
7098 lt_cv_deplibs_check_method=pass_all
7102 lt_cv_deplibs_check_method=pass_all
7106 lt_cv_deplibs_check_method=pass_all
7109 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7110 lt_cv_deplibs_check_method=pass_all
7114 case $host_vendor in
7116 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]'
7117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7120 lt_cv_deplibs_check_method=pass_all
7123 lt_cv_file_magic_cmd='/bin/file'
7124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7127 lt_cv_file_magic_cmd='/bin/file'
7128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7129 lt_cv_file_magic_test_file=/lib/libc.so
7132 lt_cv_deplibs_check_method=pass_all
7135 lt_cv_deplibs_check_method=pass_all
7141 lt_cv_deplibs_check_method=pass_all
7144 lt_cv_deplibs_check_method=pass_all
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7150 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7154 if test "$build" = "$host"; then
7157 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7160 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7166 file_magic_cmd=$lt_cv_file_magic_cmd
7167 deplibs_check_method=$lt_cv_deplibs_check_method
7168 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7191 if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 printf %s "checking for $ac_word... " >&6; }
7196 if test ${ac_cv_prog_DLLTOOL+y}
7198 printf %s "(cached) " >&6
7200 if test -n "$DLLTOOL"; then
7201 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 case $as_dir in #(((
7210 *) as_dir=$as_dir/ ;;
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7224 DLLTOOL=$ac_cv_prog_DLLTOOL
7225 if test -n "$DLLTOOL"; then
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7227 printf "%s\n" "$DLLTOOL" >&6; }
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 printf "%s\n" "no" >&6; }
7235 if test -z "$ac_cv_prog_DLLTOOL"; then
7236 ac_ct_DLLTOOL=$DLLTOOL
7237 # Extract the first word of "dlltool", so it can be a program name with args.
7238 set dummy dlltool; ac_word=$2
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 printf %s "checking for $ac_word... " >&6; }
7241 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7243 printf %s "(cached) " >&6
7245 if test -n "$ac_ct_DLLTOOL"; then
7246 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 case $as_dir in #(((
7255 *) as_dir=$as_dir/ ;;
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7269 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7270 if test -n "$ac_ct_DLLTOOL"; then
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7272 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 printf "%s\n" "no" >&6; }
7278 if test "x$ac_ct_DLLTOOL" = x; then
7281 case $cross_compiling:$ac_tool_warned in
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7287 DLLTOOL=$ac_ct_DLLTOOL
7290 DLLTOOL="$ac_cv_prog_DLLTOOL"
7293 test -z "$DLLTOOL" && DLLTOOL=dlltool
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7305 printf %s "checking how to associate runtime and link libraries... " >&6; }
7306 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7308 printf %s "(cached) " >&6
7310 lt_cv_sharedlib_from_linklib_cmd='unknown'
7313 cygwin* | mingw* | pw32* | cegcc*)
7314 # two different shell functions defined in ltmain.sh;
7315 # decide which one to use based on capabilities of $DLLTOOL
7316 case `$DLLTOOL --help 2>&1` in
7317 *--identify-strict*)
7318 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7321 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7326 # fallback: assume linklib IS sharedlib
7327 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7333 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7334 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7335 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7343 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 printf %s "checking for $ac_word... " >&6; }
7350 if test ${ac_cv_prog_AR+y}
7352 printf %s "(cached) " >&6
7354 if test -n "$AR"; then
7355 ac_cv_prog_AR="$AR" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 case $as_dir in #(((
7364 *) as_dir=$as_dir/ ;;
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7379 if test -n "$AR"; then
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7381 printf "%s\n" "$AR" >&6; }
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 printf "%s\n" "no" >&6; }
7388 test -n "$AR" && break
7391 if test -z "$AR"; then
7395 # Extract the first word of "$ac_prog", so it can be a program name with args.
7396 set dummy $ac_prog; ac_word=$2
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 printf %s "checking for $ac_word... " >&6; }
7399 if test ${ac_cv_prog_ac_ct_AR+y}
7401 printf %s "(cached) " >&6
7403 if test -n "$ac_ct_AR"; then
7404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 case $as_dir in #(((
7413 *) as_dir=$as_dir/ ;;
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_ac_ct_AR="$ac_prog"
7418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7428 if test -n "$ac_ct_AR"; then
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7430 printf "%s\n" "$ac_ct_AR" >&6; }
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 printf "%s\n" "no" >&6; }
7437 test -n "$ac_ct_AR" && break
7440 if test "x$ac_ct_AR" = x; then
7443 case $cross_compiling:$ac_tool_warned in
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7460 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7461 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7462 # higher priority because thats what people were doing historically (setting
7463 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7464 # variable obsoleted/removed.
7466 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7467 lt_ar_flags=$AR_FLAGS
7474 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7475 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7483 printf %s "checking for archiver @FILE support... " >&6; }
7484 if test ${lt_cv_ar_at_file+y}
7486 printf %s "(cached) " >&6
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7500 if ac_fn_c_try_compile "$LINENO"
7502 echo conftest.$ac_objext > conftest.lst
7503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7505 (eval $lt_ar_try) 2>&5
7507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508 test $ac_status = 0; }
7509 if test 0 -eq "$ac_status"; then
7510 # Ensure the archiver fails upon bogus file names.
7511 rm -f conftest.$ac_objext libconftest.a
7512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7513 (eval $lt_ar_try) 2>&5
7515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }
7517 if test 0 -ne "$ac_status"; then
7521 rm -f conftest.* libconftest.a
7524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7528 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7530 if test no = "$lt_cv_ar_at_file"; then
7533 archiver_list_spec=$lt_cv_ar_at_file
7542 if test -n "$ac_tool_prefix"; then
7543 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7544 set dummy ${ac_tool_prefix}strip; ac_word=$2
7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 printf %s "checking for $ac_word... " >&6; }
7547 if test ${ac_cv_prog_STRIP+y}
7549 printf %s "(cached) " >&6
7551 if test -n "$STRIP"; then
7552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 case $as_dir in #(((
7561 *) as_dir=$as_dir/ ;;
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7575 STRIP=$ac_cv_prog_STRIP
7576 if test -n "$STRIP"; then
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7578 printf "%s\n" "$STRIP" >&6; }
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 printf "%s\n" "no" >&6; }
7586 if test -z "$ac_cv_prog_STRIP"; then
7588 # Extract the first word of "strip", so it can be a program name with args.
7589 set dummy strip; ac_word=$2
7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 printf %s "checking for $ac_word... " >&6; }
7592 if test ${ac_cv_prog_ac_ct_STRIP+y}
7594 printf %s "(cached) " >&6
7596 if test -n "$ac_ct_STRIP"; then
7597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 case $as_dir in #(((
7606 *) as_dir=$as_dir/ ;;
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_ac_ct_STRIP="strip"
7611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7621 if test -n "$ac_ct_STRIP"; then
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7623 printf "%s\n" "$ac_ct_STRIP" >&6; }
7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 printf "%s\n" "no" >&6; }
7629 if test "x$ac_ct_STRIP" = x; then
7632 case $cross_compiling:$ac_tool_warned in
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7641 STRIP="$ac_cv_prog_STRIP"
7644 test -z "$STRIP" && STRIP=:
7651 if test -n "$ac_tool_prefix"; then
7652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7653 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 printf %s "checking for $ac_word... " >&6; }
7656 if test ${ac_cv_prog_RANLIB+y}
7658 printf %s "(cached) " >&6
7660 if test -n "$RANLIB"; then
7661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 case $as_dir in #(((
7670 *) as_dir=$as_dir/ ;;
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7684 RANLIB=$ac_cv_prog_RANLIB
7685 if test -n "$RANLIB"; then
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7687 printf "%s\n" "$RANLIB" >&6; }
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 printf "%s\n" "no" >&6; }
7695 if test -z "$ac_cv_prog_RANLIB"; then
7696 ac_ct_RANLIB=$RANLIB
7697 # Extract the first word of "ranlib", so it can be a program name with args.
7698 set dummy ranlib; ac_word=$2
7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 printf %s "checking for $ac_word... " >&6; }
7701 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7703 printf %s "(cached) " >&6
7705 if test -n "$ac_ct_RANLIB"; then
7706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 case $as_dir in #(((
7715 *) as_dir=$as_dir/ ;;
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7719 ac_cv_prog_ac_ct_RANLIB="ranlib"
7720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7730 if test -n "$ac_ct_RANLIB"; then
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7732 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 printf "%s\n" "no" >&6; }
7738 if test "x$ac_ct_RANLIB" = x; then
7741 case $cross_compiling:$ac_tool_warned in
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7747 RANLIB=$ac_ct_RANLIB
7750 RANLIB="$ac_cv_prog_RANLIB"
7753 test -z "$RANLIB" && RANLIB=:
7760 # Determine commands to create old-style static archives.
7761 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7762 old_postinstall_cmds='chmod 644 $oldlib'
7763 old_postuninstall_cmds=
7765 if test -n "$RANLIB"; then
7768 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7771 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7774 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7779 lock_old_archive_extraction=yes ;;
7781 lock_old_archive_extraction=no ;;
7822 # If no C compiler was specified, use CC.
7825 # If no C compiler flags were specified, use CFLAGS.
7826 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7828 # Allow CC to be a program name with arguments.
7832 # Check for command to grab the raw symbol name followed by C symbol from nm.
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7834 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7835 if test ${lt_cv_sys_global_symbol_pipe+y}
7837 printf %s "(cached) " >&6
7840 # These are sane defaults that work on at least a few old systems.
7841 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7843 # Character class describing NM global symbol codes.
7844 symcode='[BCDEGRST]'
7846 # Regexp to match symbols that can be accessed directly from C.
7847 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7849 # Define system-specific variables.
7854 cygwin* | mingw* | pw32* | cegcc*)
7855 symcode='[ABCDGISTW]'
7858 if test ia64 = "$host_cpu"; then
7859 symcode='[ABCDEGRST]'
7863 symcode='[BCDEGRST]'
7866 symcode='[BCDEGQRST]'
7877 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7885 # If we're using GNU nm, then use its standard symbol codes.
7886 case `$NM -V 2>&1` in
7887 *GNU* | *'with BFD'*)
7888 symcode='[ABCDGIRSTW]' ;;
7891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7892 # Gets list of data symbols to import.
7893 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7894 # Adjust the below global symbol transforms to fixup imported variables.
7895 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7896 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7897 lt_c_name_lib_hook="\
7898 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7899 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7901 # Disable hooks by default.
7902 lt_cv_sys_global_symbol_to_import=
7908 # Transform an extracted symbol line into a proper C declaration.
7909 # Some systems (esp. on ia64) link data and code symbols differently,
7910 # so use this general approach.
7911 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7913 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7914 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7916 # Transform an extracted symbol line into symbol name and symbol address
7917 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7919 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7920 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7922 # Transform an extracted symbol line into symbol name with lib prefix and
7924 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7925 $lt_c_name_lib_hook\
7926 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7927 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7928 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7930 # Handle CRLF in mingw tool chain
7934 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7938 # Try without a prefix underscore, then with it.
7939 for ac_symprfx in "" "_"; do
7941 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7942 symxfrm="\\1 $ac_symprfx\\2 \\2"
7944 # Write the raw and C identifiers.
7945 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7946 # Fake it for dumpbin and say T for any non-static function,
7947 # D for any global variable and I for any imported variable.
7948 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7949 # which start with @ or ?.
7950 lt_cv_sys_global_symbol_pipe="$AWK '"\
7951 " {last_section=section; section=\$ 3};"\
7952 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7953 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7954 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7955 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7956 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7957 " \$ 0!~/External *\|/{next};"\
7958 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7959 " {if(hide[section]) next};"\
7960 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7961 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7962 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7963 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7964 " ' prfx=^$ac_symprfx"
7966 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7968 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7970 # Check to see that the pipe works correctly.
7974 cat > conftest.$ac_ext <<_LT_EOF
7979 void nm_test_func(void);
7980 void nm_test_func(void){}
7984 int main(){nm_test_var='a';nm_test_func();return(0);}
7987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7988 (eval $ac_compile) 2>&5
7990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991 test $ac_status = 0; }; then
7992 # Now try to grab the symbols.
7994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7995 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7998 test $ac_status = 0; } && test -s "$nlist"; then
7999 # Try sorting and uniquifying the output.
8000 if sort "$nlist" | uniq > "$nlist"T; then
8001 mv -f "$nlist"T "$nlist"
8006 # Make sure that we snagged all the symbols we need.
8007 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8008 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8009 cat <<_LT_EOF > conftest.$ac_ext
8010 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8011 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8012 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8013 relocations are performed -- see ld's documentation on pseudo-relocs. */
8014 # define LT_DLSYM_CONST
8015 #elif defined __osf__
8016 /* This system does not cope well with relocations in const data. */
8017 # define LT_DLSYM_CONST
8019 # define LT_DLSYM_CONST const
8027 # Now generate the symbol file.
8028 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8030 cat <<_LT_EOF >> conftest.$ac_ext
8032 /* The mapping between symbol names and symbols. */
8033 LT_DLSYM_CONST struct {
8037 lt__PROGRAM__LTX_preloaded_symbols[] =
8039 { "@PROGRAM@", (void *) 0 },
8041 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8042 cat <<\_LT_EOF >> conftest.$ac_ext
8046 /* This works around a problem in FreeBSD linker */
8047 #ifdef FREEBSD_WORKAROUND
8048 static const void *lt_preloaded_setup() {
8049 return lt__PROGRAM__LTX_preloaded_symbols;
8057 # Now try linking the two files.
8058 mv conftest.$ac_objext conftstm.$ac_objext
8059 lt_globsym_save_LIBS=$LIBS
8060 lt_globsym_save_CFLAGS=$CFLAGS
8061 LIBS=conftstm.$ac_objext
8062 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8064 (eval $ac_link) 2>&5
8066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8067 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8070 LIBS=$lt_globsym_save_LIBS
8071 CFLAGS=$lt_globsym_save_CFLAGS
8073 echo "cannot find nm_test_func in $nlist" >&5
8076 echo "cannot find nm_test_var in $nlist" >&5
8079 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8082 echo "$progname: failed program was:" >&5
8083 cat conftest.$ac_ext >&5
8085 rm -rf conftest* conftst*
8087 # Do not use the global_symbol_pipe unless it works.
8088 if test yes = "$pipe_works"; then
8091 lt_cv_sys_global_symbol_pipe=
8097 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8098 lt_cv_sys_global_symbol_to_cdecl=
8100 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8102 printf "%s\n" "failed" >&6; }
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8105 printf "%s\n" "ok" >&6; }
8108 # Response file support.
8109 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8110 nm_file_list_spec='@'
8111 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8112 nm_file_list_spec='@'
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8152 printf %s "checking for sysroot... " >&6; }
8154 # Check whether --with-sysroot was given.
8155 if test ${with_sysroot+y}
8157 withval=$with_sysroot;
8164 case $with_sysroot in #(
8166 if test yes = "$GCC"; then
8167 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8171 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8177 printf "%s\n" "$with_sysroot" >&6; }
8178 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8183 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8190 printf %s "checking for a working dd... " >&6; }
8191 if test ${ac_cv_path_lt_DD+y}
8193 printf %s "(cached) " >&6
8195 printf 0123456789abcdef0123456789abcdef >conftest.i
8196 cat conftest.i conftest.i >conftest2.i
8198 if test -z "$lt_DD"; then
8199 ac_path_lt_DD_found=false
8200 # Loop through the user's path and test for each of PROGNAME-LIST
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 case $as_dir in #(((
8208 *) as_dir=$as_dir/ ;;
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8214 as_fn_executable_p "$ac_path_lt_DD" || continue
8215 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8216 cmp -s conftest.i conftest.out \
8217 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8219 $ac_path_lt_DD_found && break 3
8224 if test -z "$ac_cv_path_lt_DD"; then
8228 ac_cv_path_lt_DD=$lt_DD
8231 rm -f conftest.i conftest2.i conftest.out
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8234 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8238 printf %s "checking how to truncate binary pipes... " >&6; }
8239 if test ${lt_cv_truncate_bin+y}
8241 printf %s "(cached) " >&6
8243 printf 0123456789abcdef0123456789abcdef >conftest.i
8244 cat conftest.i conftest.i >conftest2.i
8246 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8247 cmp -s conftest.i conftest.out \
8248 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8250 rm -f conftest.i conftest2.i conftest.out
8251 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8254 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8262 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8265 for cc_temp in $*""; do
8267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8273 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8276 # Check whether --enable-libtool-lock was given.
8277 if test ${enable_libtool_lock+y}
8279 enableval=$enable_libtool_lock;
8282 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8284 # Some flags need to be propagated to the compiler or linker for good
8288 # Find out what ABI is being produced by ac_compile, and set mode
8289 # options accordingly.
8290 echo 'int i;' > conftest.$ac_ext
8291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8292 (eval $ac_compile) 2>&5
8294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8295 test $ac_status = 0; }; then
8296 case `$FILECMD conftest.$ac_objext` in
8308 # Find out what ABI is being produced by ac_compile, and set linker
8309 # options accordingly.
8310 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8312 (eval $ac_compile) 2>&5
8314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8315 test $ac_status = 0; }; then
8316 if test yes = "$lt_cv_prog_gnu_ld"; then
8317 case `$FILECMD conftest.$ac_objext` in
8319 LD="${LD-ld} -melf32bsmip"
8322 LD="${LD-ld} -melf32bmipn32"
8325 LD="${LD-ld} -melf64bmip"
8329 case `$FILECMD conftest.$ac_objext` in
8346 # Find out what ABI is being produced by ac_compile, and set linker
8347 # options accordingly.
8348 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8350 (eval $ac_compile) 2>&5
8352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8353 test $ac_status = 0; }; then
8355 case `$FILECMD conftest.$ac_objext` in
8363 case `$FILECMD conftest.$ac_objext` in
8365 emul="${emul}btsmip"
8368 emul="${emul}ltsmip"
8371 case `$FILECMD conftest.$ac_objext` in
8376 LD="${LD-ld} -m $emul"
8381 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8382 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8383 # Find out what ABI is being produced by ac_compile, and set linker
8384 # options accordingly. Note that the listed cases only cover the
8385 # situations where additional linker options are needed (such as when
8386 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8387 # vice versa); the common cases where no linker options are needed do
8388 # not appear in the list.
8389 echo 'int i;' > conftest.$ac_ext
8390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8391 (eval $ac_compile) 2>&5
8393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8394 test $ac_status = 0; }; then
8395 case `$FILECMD conftest.o` in
8398 x86_64-*kfreebsd*-gnu)
8399 LD="${LD-ld} -m elf_i386_fbsd"
8402 case `$FILECMD conftest.o` in
8404 LD="${LD-ld} -m elf32_x86_64"
8407 LD="${LD-ld} -m elf_i386"
8411 powerpc64le-*linux*)
8412 LD="${LD-ld} -m elf32lppclinux"
8415 LD="${LD-ld} -m elf32ppclinux"
8418 LD="${LD-ld} -m elf_s390"
8421 LD="${LD-ld} -m elf32_sparc"
8427 x86_64-*kfreebsd*-gnu)
8428 LD="${LD-ld} -m elf_x86_64_fbsd"
8431 LD="${LD-ld} -m elf_x86_64"
8434 LD="${LD-ld} -m elf64lppc"
8437 LD="${LD-ld} -m elf64ppc"
8439 s390*-*linux*|s390*-*tpf*)
8440 LD="${LD-ld} -m elf64_s390"
8443 LD="${LD-ld} -m elf64_sparc"
8453 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8455 CFLAGS="$CFLAGS -belf"
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8457 printf %s "checking whether the C compiler needs -belf... " >&6; }
8458 if test ${lt_cv_cc_needs_belf+y}
8460 printf %s "(cached) " >&6
8463 ac_cpp='$CPP $CPPFLAGS'
8464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8479 if ac_fn_c_try_link "$LINENO"
8481 lt_cv_cc_needs_belf=yes
8483 lt_cv_cc_needs_belf=no
8485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8486 conftest$ac_exeext conftest.$ac_ext
8488 ac_cpp='$CPP $CPPFLAGS'
8489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8495 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8496 if test yes != "$lt_cv_cc_needs_belf"; then
8497 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8502 # Find out what ABI is being produced by ac_compile, and set linker
8503 # options accordingly.
8504 echo 'int i;' > conftest.$ac_ext
8505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8506 (eval $ac_compile) 2>&5
8508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8509 test $ac_status = 0; }; then
8510 case `$FILECMD conftest.o` in
8512 case $lt_cv_prog_gnu_ld in
8515 i?86-*-solaris*|x86_64-*-solaris*)
8516 LD="${LD-ld} -m elf_x86_64"
8519 LD="${LD-ld} -m elf64_sparc"
8522 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8523 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8528 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8540 need_locks=$enable_libtool_lock
8542 if test -n "$ac_tool_prefix"; then
8543 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8544 set dummy ${ac_tool_prefix}mt; ac_word=$2
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 printf %s "checking for $ac_word... " >&6; }
8547 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8549 printf %s "(cached) " >&6
8551 if test -n "$MANIFEST_TOOL"; then
8552 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 case $as_dir in #(((
8561 *) as_dir=$as_dir/ ;;
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8565 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8575 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8576 if test -n "$MANIFEST_TOOL"; then
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8578 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 printf "%s\n" "no" >&6; }
8586 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8587 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8588 # Extract the first word of "mt", so it can be a program name with args.
8589 set dummy mt; ac_word=$2
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 printf %s "checking for $ac_word... " >&6; }
8592 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8594 printf %s "(cached) " >&6
8596 if test -n "$ac_ct_MANIFEST_TOOL"; then
8597 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 case $as_dir in #(((
8606 *) as_dir=$as_dir/ ;;
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8610 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8620 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8621 if test -n "$ac_ct_MANIFEST_TOOL"; then
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8623 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 printf "%s\n" "no" >&6; }
8629 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8632 case $cross_compiling:$ac_tool_warned in
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8635 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8636 ac_tool_warned=yes ;;
8638 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8641 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8644 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8646 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8647 if test ${lt_cv_path_mainfest_tool+y}
8649 printf %s "(cached) " >&6
8651 lt_cv_path_mainfest_tool=no
8652 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8653 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8654 cat conftest.err >&5
8655 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8656 lt_cv_path_mainfest_tool=yes
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8661 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8662 if test yes != "$lt_cv_path_mainfest_tool"; then
8672 rhapsody* | darwin*)
8673 if test -n "$ac_tool_prefix"; then
8674 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8675 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 printf %s "checking for $ac_word... " >&6; }
8678 if test ${ac_cv_prog_DSYMUTIL+y}
8680 printf %s "(cached) " >&6
8682 if test -n "$DSYMUTIL"; then
8683 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 case $as_dir in #(((
8692 *) as_dir=$as_dir/ ;;
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8696 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8706 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8707 if test -n "$DSYMUTIL"; then
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8709 printf "%s\n" "$DSYMUTIL" >&6; }
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 printf "%s\n" "no" >&6; }
8717 if test -z "$ac_cv_prog_DSYMUTIL"; then
8718 ac_ct_DSYMUTIL=$DSYMUTIL
8719 # Extract the first word of "dsymutil", so it can be a program name with args.
8720 set dummy dsymutil; ac_word=$2
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 printf %s "checking for $ac_word... " >&6; }
8723 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8725 printf %s "(cached) " >&6
8727 if test -n "$ac_ct_DSYMUTIL"; then
8728 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 case $as_dir in #(((
8737 *) as_dir=$as_dir/ ;;
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8741 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8751 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8752 if test -n "$ac_ct_DSYMUTIL"; then
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8754 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 printf "%s\n" "no" >&6; }
8760 if test "x$ac_ct_DSYMUTIL" = x; then
8763 case $cross_compiling:$ac_tool_warned in
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8767 ac_tool_warned=yes ;;
8769 DSYMUTIL=$ac_ct_DSYMUTIL
8772 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8775 if test -n "$ac_tool_prefix"; then
8776 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8777 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779 printf %s "checking for $ac_word... " >&6; }
8780 if test ${ac_cv_prog_NMEDIT+y}
8782 printf %s "(cached) " >&6
8784 if test -n "$NMEDIT"; then
8785 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 case $as_dir in #(((
8794 *) as_dir=$as_dir/ ;;
8796 for ac_exec_ext in '' $ac_executable_extensions; do
8797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8798 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8808 NMEDIT=$ac_cv_prog_NMEDIT
8809 if test -n "$NMEDIT"; then
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8811 printf "%s\n" "$NMEDIT" >&6; }
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 printf "%s\n" "no" >&6; }
8819 if test -z "$ac_cv_prog_NMEDIT"; then
8820 ac_ct_NMEDIT=$NMEDIT
8821 # Extract the first word of "nmedit", so it can be a program name with args.
8822 set dummy nmedit; ac_word=$2
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 printf %s "checking for $ac_word... " >&6; }
8825 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8827 printf %s "(cached) " >&6
8829 if test -n "$ac_ct_NMEDIT"; then
8830 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 case $as_dir in #(((
8839 *) as_dir=$as_dir/ ;;
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8843 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8854 if test -n "$ac_ct_NMEDIT"; then
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8856 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 printf "%s\n" "no" >&6; }
8862 if test "x$ac_ct_NMEDIT" = x; then
8865 case $cross_compiling:$ac_tool_warned in
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8869 ac_tool_warned=yes ;;
8871 NMEDIT=$ac_ct_NMEDIT
8874 NMEDIT="$ac_cv_prog_NMEDIT"
8877 if test -n "$ac_tool_prefix"; then
8878 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8879 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 printf %s "checking for $ac_word... " >&6; }
8882 if test ${ac_cv_prog_LIPO+y}
8884 printf %s "(cached) " >&6
8886 if test -n "$LIPO"; then
8887 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 case $as_dir in #(((
8896 *) as_dir=$as_dir/ ;;
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8900 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8910 LIPO=$ac_cv_prog_LIPO
8911 if test -n "$LIPO"; then
8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8913 printf "%s\n" "$LIPO" >&6; }
8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 printf "%s\n" "no" >&6; }
8921 if test -z "$ac_cv_prog_LIPO"; then
8923 # Extract the first word of "lipo", so it can be a program name with args.
8924 set dummy lipo; ac_word=$2
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8926 printf %s "checking for $ac_word... " >&6; }
8927 if test ${ac_cv_prog_ac_ct_LIPO+y}
8929 printf %s "(cached) " >&6
8931 if test -n "$ac_ct_LIPO"; then
8932 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 case $as_dir in #(((
8941 *) as_dir=$as_dir/ ;;
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8945 ac_cv_prog_ac_ct_LIPO="lipo"
8946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8955 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8956 if test -n "$ac_ct_LIPO"; then
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8958 printf "%s\n" "$ac_ct_LIPO" >&6; }
8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 printf "%s\n" "no" >&6; }
8964 if test "x$ac_ct_LIPO" = x; then
8967 case $cross_compiling:$ac_tool_warned in
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8971 ac_tool_warned=yes ;;
8976 LIPO="$ac_cv_prog_LIPO"
8979 if test -n "$ac_tool_prefix"; then
8980 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8981 set dummy ${ac_tool_prefix}otool; ac_word=$2
8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983 printf %s "checking for $ac_word... " >&6; }
8984 if test ${ac_cv_prog_OTOOL+y}
8986 printf %s "(cached) " >&6
8988 if test -n "$OTOOL"; then
8989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 case $as_dir in #(((
8998 *) as_dir=$as_dir/ ;;
9000 for ac_exec_ext in '' $ac_executable_extensions; do
9001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9002 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9012 OTOOL=$ac_cv_prog_OTOOL
9013 if test -n "$OTOOL"; then
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9015 printf "%s\n" "$OTOOL" >&6; }
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 printf "%s\n" "no" >&6; }
9023 if test -z "$ac_cv_prog_OTOOL"; then
9025 # Extract the first word of "otool", so it can be a program name with args.
9026 set dummy otool; ac_word=$2
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 printf %s "checking for $ac_word... " >&6; }
9029 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9031 printf %s "(cached) " >&6
9033 if test -n "$ac_ct_OTOOL"; then
9034 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 case $as_dir in #(((
9043 *) as_dir=$as_dir/ ;;
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9047 ac_cv_prog_ac_ct_OTOOL="otool"
9048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9057 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9058 if test -n "$ac_ct_OTOOL"; then
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9060 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 printf "%s\n" "no" >&6; }
9066 if test "x$ac_ct_OTOOL" = x; then
9069 case $cross_compiling:$ac_tool_warned in
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9072 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9073 ac_tool_warned=yes ;;
9078 OTOOL="$ac_cv_prog_OTOOL"
9081 if test -n "$ac_tool_prefix"; then
9082 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9083 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 printf %s "checking for $ac_word... " >&6; }
9086 if test ${ac_cv_prog_OTOOL64+y}
9088 printf %s "(cached) " >&6
9090 if test -n "$OTOOL64"; then
9091 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 case $as_dir in #(((
9100 *) as_dir=$as_dir/ ;;
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9104 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9114 OTOOL64=$ac_cv_prog_OTOOL64
9115 if test -n "$OTOOL64"; then
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9117 printf "%s\n" "$OTOOL64" >&6; }
9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 printf "%s\n" "no" >&6; }
9125 if test -z "$ac_cv_prog_OTOOL64"; then
9126 ac_ct_OTOOL64=$OTOOL64
9127 # Extract the first word of "otool64", so it can be a program name with args.
9128 set dummy otool64; ac_word=$2
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 printf %s "checking for $ac_word... " >&6; }
9131 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9133 printf %s "(cached) " >&6
9135 if test -n "$ac_ct_OTOOL64"; then
9136 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142 case $as_dir in #(((
9145 *) as_dir=$as_dir/ ;;
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9149 ac_cv_prog_ac_ct_OTOOL64="otool64"
9150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9159 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9160 if test -n "$ac_ct_OTOOL64"; then
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9162 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165 printf "%s\n" "no" >&6; }
9168 if test "x$ac_ct_OTOOL64" = x; then
9171 case $cross_compiling:$ac_tool_warned in
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9174 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9175 ac_tool_warned=yes ;;
9177 OTOOL64=$ac_ct_OTOOL64
9180 OTOOL64="$ac_cv_prog_OTOOL64"
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9210 printf %s "checking for -single_module linker flag... " >&6; }
9211 if test ${lt_cv_apple_cc_single_mod+y}
9213 printf %s "(cached) " >&6
9215 lt_cv_apple_cc_single_mod=no
9216 if test -z "$LT_MULTI_MODULE"; then
9217 # By default we will add the -single_module flag. You can override
9218 # by either setting the environment variable LT_MULTI_MODULE
9219 # non-empty at configure time, or by adding -multi_module to the
9221 rm -rf libconftest.dylib*
9222 echo "int foo(void){return 1;}" > conftest.c
9223 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9224 -dynamiclib -Wl,-single_module conftest.c" >&5
9225 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9226 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9228 # If there is a non-empty error log, and "single_module"
9229 # appears in it, assume the flag caused a linker warning
9230 if test -s conftest.err && $GREP single_module conftest.err; then
9231 cat conftest.err >&5
9232 # Otherwise, if the output was created with a 0 exit code from
9233 # the compiler, it worked.
9234 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9235 lt_cv_apple_cc_single_mod=yes
9237 cat conftest.err >&5
9239 rm -rf libconftest.dylib*
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9244 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9247 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9248 if test ${lt_cv_ld_exported_symbols_list+y}
9250 printf %s "(cached) " >&6
9252 lt_cv_ld_exported_symbols_list=no
9253 save_LDFLAGS=$LDFLAGS
9254 echo "_main" > conftest.sym
9255 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9267 if ac_fn_c_try_link "$LINENO"
9269 lt_cv_ld_exported_symbols_list=yes
9271 lt_cv_ld_exported_symbols_list=no
9273 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9274 conftest$ac_exeext conftest.$ac_ext
9275 LDFLAGS=$save_LDFLAGS
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9279 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9282 printf %s "checking for -force_load linker flag... " >&6; }
9283 if test ${lt_cv_ld_force_load+y}
9285 printf %s "(cached) " >&6
9287 lt_cv_ld_force_load=no
9288 cat > conftest.c << _LT_EOF
9289 int forced_loaded() { return 2;}
9291 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9292 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9293 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9294 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9295 echo "$RANLIB libconftest.a" >&5
9296 $RANLIB libconftest.a 2>&5
9297 cat > conftest.c << _LT_EOF
9298 int main() { return 0;}
9300 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9301 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9303 if test -s conftest.err && $GREP force_load conftest.err; then
9304 cat conftest.err >&5
9305 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9306 lt_cv_ld_force_load=yes
9308 cat conftest.err >&5
9310 rm -f conftest.err libconftest.a conftest conftest.c
9311 rm -rf conftest.dSYM
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9315 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9317 rhapsody* | darwin1.[012])
9318 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9320 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9322 case $MACOSX_DEPLOYMENT_TARGET,$host in
9323 10.[012],*|,*powerpc*-darwin[5-8]*)
9324 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9326 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9330 if test yes = "$lt_cv_apple_cc_single_mod"; then
9331 _lt_dar_single_mod='$single_module'
9333 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9334 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9336 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9338 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9339 _lt_dsymutil='~$DSYMUTIL $lib || :'
9346 # func_munge_path_list VARIABLE PATH
9347 # -----------------------------------
9348 # VARIABLE is name of variable containing _space_ separated list of
9349 # directories to be munged by the contents of PATH, which is string
9352 # string "DIR[ DIR]" will be prepended to VARIABLE
9354 # string "DIR[ DIR]" will be appended to VARIABLE
9355 # "DIRP[:DIRP]::[DIRA:]DIRA"
9356 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9357 # "DIRA[ DIRA]" will be appended to VARIABLE
9359 # VARIABLE will be replaced by "DIR[ DIR]"
9360 func_munge_path_list ()
9366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9369 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9372 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9373 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9376 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9381 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9383 if test "x$ac_cv_header_dlfcn_h" = xyes
9385 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9392 func_stripname_cnf ()
9395 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9396 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9398 } # func_stripname_cnf
9405 # Check whether --enable-static was given.
9406 if test ${enable_static+y}
9408 enableval=$enable_static; p=${PACKAGE-default}
9410 yes) enable_static=yes ;;
9411 no) enable_static=no ;;
9414 # Look at the argument we got. We use all the common list separators.
9415 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9416 for pkg in $enableval; do
9418 if test "X$pkg" = "X$p"; then
9443 # Check whether --enable-shared was given.
9444 if test ${enable_shared+y}
9446 enableval=$enable_shared; p=${PACKAGE-default}
9448 yes) enable_shared=yes ;;
9449 no) enable_shared=no ;;
9452 # Look at the argument we got. We use all the common list separators.
9453 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9454 for pkg in $enableval; do
9456 if test "X$pkg" = "X$p"; then
9477 # Check whether --with-pic was given.
9478 if test ${with_pic+y}
9480 withval=$with_pic; lt_p=${PACKAGE-default}
9482 yes|no) pic_mode=$withval ;;
9485 # Look at the argument we got. We use all the common list separators.
9486 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9487 for lt_pkg in $withval; do
9489 if test "X$lt_pkg" = "X$lt_p"; then
9507 # Check whether --enable-fast-install was given.
9508 if test ${enable_fast_install+y}
9510 enableval=$enable_fast_install; p=${PACKAGE-default}
9512 yes) enable_fast_install=yes ;;
9513 no) enable_fast_install=no ;;
9515 enable_fast_install=no
9516 # Look at the argument we got. We use all the common list separators.
9517 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9518 for pkg in $enableval; do
9520 if test "X$pkg" = "X$p"; then
9521 enable_fast_install=yes
9528 enable_fast_install=yes
9538 shared_archive_member_spec=
9539 case $host,$enable_shared in
9540 power*-*-aix[5-9]*,yes)
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9542 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9544 # Check whether --with-aix-soname was given.
9545 if test ${with_aix_soname+y}
9547 withval=$with_aix_soname; case $withval in
9551 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9554 lt_cv_with_aix_soname=$with_aix_soname
9556 if test ${lt_cv_with_aix_soname+y}
9558 printf %s "(cached) " >&6
9560 lt_cv_with_aix_soname=aix
9563 with_aix_soname=$lt_cv_with_aix_soname
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9567 printf "%s\n" "$with_aix_soname" >&6; }
9568 if test aix != "$with_aix_soname"; then
9569 # For the AIX way of multilib, we name the shared archive member
9570 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9571 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9572 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9573 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9574 if test 64 = "${OBJECT_MODE-32}"; then
9575 shared_archive_member_spec=shr_64
9577 shared_archive_member_spec=shr
9595 # This can be used to rebuild libtool when needed
9596 LIBTOOL_DEPS=$ltmain
9598 # Always use our own libtool.
9599 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9630 test -z "$LN_S" && LN_S="ln -s"
9645 if test -n "${ZSH_VERSION+set}"; then
9646 setopt NO_GLOB_SUBST
9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9650 printf %s "checking for objdir... " >&6; }
9651 if test ${lt_cv_objdir+y}
9653 printf %s "(cached) " >&6
9655 rm -f .libs 2>/dev/null
9656 mkdir .libs 2>/dev/null
9657 if test -d .libs; then
9660 # MS-DOS does not allow filenames that begin with a dot.
9663 rmdir .libs 2>/dev/null
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9666 printf "%s\n" "$lt_cv_objdir" >&6; }
9667 objdir=$lt_cv_objdir
9673 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9680 # AIX sometimes has problems with the GCC collect2 program. For some
9681 # reason, if we set the COLLECT_NAMES environment variable, the problems
9682 # vanish in a puff of smoke.
9683 if test set != "${COLLECT_NAMES+set}"; then
9685 export COLLECT_NAMES
9692 can_build_shared=yes
9694 # All known linkers require a '.a' archive for static linking (except MSVC and
9695 # ICC, which need '.lib').
9698 with_gnu_ld=$lt_cv_prog_gnu_ld
9703 # Set sane defaults for various variables
9704 test -z "$CC" && CC=cc
9705 test -z "$LTCC" && LTCC=$CC
9706 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9707 test -z "$LD" && LD=ld
9708 test -z "$ac_objext" && ac_objext=o
9710 func_cc_basename $compiler
9711 cc_basename=$func_cc_basename_result
9714 # Only perform the check for file, if the check method requires it
9715 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9716 case $deplibs_check_method in
9718 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9720 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9721 if test ${lt_cv_path_MAGIC_CMD+y}
9723 printf %s "(cached) " >&6
9727 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9730 lt_save_MAGIC_CMD=$MAGIC_CMD
9731 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9732 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9733 for ac_dir in $ac_dummy; do
9735 test -z "$ac_dir" && ac_dir=.
9736 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9737 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9738 if test -n "$file_magic_test_file"; then
9739 case $deplibs_check_method in
9741 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9742 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9743 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9744 $EGREP "$file_magic_regex" > /dev/null; then
9749 *** Warning: the command libtool uses to detect shared libraries,
9750 *** $file_magic_cmd, produces output that libtool cannot recognize.
9751 *** The result is that libtool may fail to recognize shared libraries
9752 *** as such. This will affect the creation of libtool libraries that
9753 *** depend on shared libraries, but programs linked with such libtool
9754 *** libraries will work regardless of this problem. Nevertheless, you
9755 *** may want to report the problem to your system manager and/or to
9756 *** bug-libtool@gnu.org
9766 MAGIC_CMD=$lt_save_MAGIC_CMD
9771 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9772 if test -n "$MAGIC_CMD"; then
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9774 printf "%s\n" "$MAGIC_CMD" >&6; }
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9777 printf "%s\n" "no" >&6; }
9784 if test -z "$lt_cv_path_MAGIC_CMD"; then
9785 if test -n "$ac_tool_prefix"; then
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9787 printf %s "checking for file... " >&6; }
9788 if test ${lt_cv_path_MAGIC_CMD+y}
9790 printf %s "(cached) " >&6
9794 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9797 lt_save_MAGIC_CMD=$MAGIC_CMD
9798 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9800 for ac_dir in $ac_dummy; do
9802 test -z "$ac_dir" && ac_dir=.
9803 if test -f "$ac_dir/file"; then
9804 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9805 if test -n "$file_magic_test_file"; then
9806 case $deplibs_check_method in
9808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9809 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9811 $EGREP "$file_magic_regex" > /dev/null; then
9816 *** Warning: the command libtool uses to detect shared libraries,
9817 *** $file_magic_cmd, produces output that libtool cannot recognize.
9818 *** The result is that libtool may fail to recognize shared libraries
9819 *** as such. This will affect the creation of libtool libraries that
9820 *** depend on shared libraries, but programs linked with such libtool
9821 *** libraries will work regardless of this problem. Nevertheless, you
9822 *** may want to report the problem to your system manager and/or to
9823 *** bug-libtool@gnu.org
9833 MAGIC_CMD=$lt_save_MAGIC_CMD
9838 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9839 if test -n "$MAGIC_CMD"; then
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9841 printf "%s\n" "$MAGIC_CMD" >&6; }
9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 printf "%s\n" "no" >&6; }
9857 # Use C for the default configuration in the libtool script
9861 ac_cpp='$CPP $CPPFLAGS'
9862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9867 # Source file extension for C test sources.
9870 # Object file extension for compiled C test sources.
9874 # Code to be used in simple compile tests
9875 lt_simple_compile_test_code="int some_variable = 0;"
9877 # Code to be used in simple link tests
9878 lt_simple_link_test_code='int main(){return(0);}'
9886 # If no C compiler was specified, use CC.
9889 # If no C compiler flags were specified, use CFLAGS.
9890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9892 # Allow CC to be a program name with arguments.
9895 # Save the default compiler, since it gets overwritten when the other
9896 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9897 compiler_DEFAULT=$CC
9899 # save warnings/boilerplate of simple test code
9900 ac_outfile=conftest.$ac_objext
9901 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9903 _lt_compiler_boilerplate=`cat conftest.err`
9906 ac_outfile=conftest.$ac_objext
9907 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9909 _lt_linker_boilerplate=`cat conftest.err`
9914 ## There is no encapsulation within the following macros, do not change
9915 ## the running order or otherwise move them around unless you know exactly
9916 ## what you are doing...
9917 if test -n "$compiler"; then
9919 lt_prog_compiler_no_builtin_flag=
9921 if test yes = "$GCC"; then
9922 case $cc_basename in
9924 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9926 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9930 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9931 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9933 printf %s "(cached) " >&6
9935 lt_cv_prog_compiler_rtti_exceptions=no
9936 ac_outfile=conftest.$ac_objext
9937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9938 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9939 # Insert the option either (1) after the last *FLAGS variable, or
9940 # (2) before a word containing "conftest.", or (3) at the end.
9941 # Note that $ac_compile itself does not contain backslashes and begins
9942 # with a dollar sign (not a hyphen), so the echo should work correctly.
9943 # The option is referenced via a variable to avoid confusing sed.
9944 lt_compile=`echo "$ac_compile" | $SED \
9945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9947 -e 's:$: $lt_compiler_flag:'`
9948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9949 (eval "$lt_compile" 2>conftest.err)
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 if (exit $ac_status) && test -s "$ac_outfile"; then
9954 # The compiler can only warn and ignore the option if not recognized
9955 # So say no if there are warnings other than the usual output.
9956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9958 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9959 lt_cv_prog_compiler_rtti_exceptions=yes
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9966 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9968 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9969 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9981 lt_prog_compiler_wl=
9982 lt_prog_compiler_pic=
9983 lt_prog_compiler_static=
9986 if test yes = "$GCC"; then
9987 lt_prog_compiler_wl='-Wl,'
9988 lt_prog_compiler_static='-static'
9992 # All AIX code is PIC.
9993 if test ia64 = "$host_cpu"; then
9994 # AIX 5 now supports IA64 processor
9995 lt_prog_compiler_static='-Bstatic'
9997 lt_prog_compiler_pic='-fPIC'
10003 # see comment about AmigaOS4 .so support
10004 lt_prog_compiler_pic='-fPIC'
10007 # FIXME: we need at least 68020 code to build shared libraries, but
10008 # adding the '-m68020' flag to GCC prevents building anything better,
10010 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10015 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10016 # PIC is the default for these OSes.
10019 mingw* | cygwin* | pw32* | os2* | cegcc*)
10020 # This hack is so that the source file can tell whether it is being
10021 # built for inclusion in a dll (and should export symbols for example).
10022 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10023 # (--disable-auto-import) libraries
10024 lt_prog_compiler_pic='-DDLL_EXPORT'
10027 lt_prog_compiler_static='$wl-static'
10032 darwin* | rhapsody*)
10033 # PIC is the default on this platform
10034 # Common symbols not allowed in MH_DYLIB files
10035 lt_prog_compiler_pic='-fno-common'
10039 # PIC is the default for Haiku.
10040 # The "-static" flag exists, but is broken.
10041 lt_prog_compiler_static=
10045 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10046 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10047 # sets the default TLS model and affects inlining.
10053 lt_prog_compiler_pic='-fPIC'
10059 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10060 # Instead, we relocate shared libraries at runtime.
10064 # Just because we use GCC doesn't mean we suddenly get shared libraries
10065 # on systems that don't support them.
10066 lt_prog_compiler_can_build_shared=no
10071 # QNX uses GNU C++, but need to define -shared option too, otherwise
10072 # it will coredump.
10073 lt_prog_compiler_pic='-fPIC -shared'
10077 if test -d /usr/nec; then
10078 lt_prog_compiler_pic=-Kconform_pic
10083 lt_prog_compiler_pic='-fPIC'
10087 case $cc_basename in
10088 nvcc*) # Cuda Compiler Driver 2.2
10089 lt_prog_compiler_wl='-Xlinker '
10090 if test -n "$lt_prog_compiler_pic"; then
10091 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10096 # PORTME Check for flag to pass linker flags through the system compiler.
10099 lt_prog_compiler_wl='-Wl,'
10100 if test ia64 = "$host_cpu"; then
10101 # AIX 5 now supports IA64 processor
10102 lt_prog_compiler_static='-Bstatic'
10104 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10108 darwin* | rhapsody*)
10109 # PIC is the default on this platform
10110 # Common symbols not allowed in MH_DYLIB files
10111 lt_prog_compiler_pic='-fno-common'
10112 case $cc_basename in
10114 # NAG Fortran compiler
10115 lt_prog_compiler_wl='-Wl,-Wl,,'
10116 lt_prog_compiler_pic='-PIC'
10117 lt_prog_compiler_static='-Bstatic'
10122 mingw* | cygwin* | pw32* | os2* | cegcc*)
10123 # This hack is so that the source file can tell whether it is being
10124 # built for inclusion in a dll (and should export symbols for example).
10125 lt_prog_compiler_pic='-DDLL_EXPORT'
10128 lt_prog_compiler_static='$wl-static'
10133 hpux9* | hpux10* | hpux11*)
10134 lt_prog_compiler_wl='-Wl,'
10135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10136 # not for PA HP-UX.
10142 lt_prog_compiler_pic='+Z'
10145 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10146 lt_prog_compiler_static='$wl-a ${wl}archive'
10149 irix5* | irix6* | nonstopux*)
10150 lt_prog_compiler_wl='-Wl,'
10151 # PIC (with -KPIC) is the default.
10152 lt_prog_compiler_static='-non_shared'
10155 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10156 case $cc_basename in
10157 # old Intel for x86_64, which still supported -KPIC.
10159 lt_prog_compiler_wl='-Wl,'
10160 lt_prog_compiler_pic='-KPIC'
10161 lt_prog_compiler_static='-static'
10163 # icc used to be incompatible with GCC.
10164 # ICC 10 doesn't accept -KPIC any more.
10166 lt_prog_compiler_wl='-Wl,'
10167 lt_prog_compiler_pic='-fPIC'
10168 lt_prog_compiler_static='-static'
10170 # Lahey Fortran 8.1.
10172 lt_prog_compiler_wl='-Wl,'
10173 lt_prog_compiler_pic='--shared'
10174 lt_prog_compiler_static='--static'
10177 # NAG Fortran compiler
10178 lt_prog_compiler_wl='-Wl,-Wl,,'
10179 lt_prog_compiler_pic='-PIC'
10180 lt_prog_compiler_static='-Bstatic'
10183 # Fabrice Bellard et al's Tiny C Compiler
10184 lt_prog_compiler_wl='-Wl,'
10185 lt_prog_compiler_pic='-fPIC'
10186 lt_prog_compiler_static='-static'
10188 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10189 # Portland Group compilers (*not* the Pentium gcc compiler,
10190 # which looks to be a dead project)
10191 lt_prog_compiler_wl='-Wl,'
10192 lt_prog_compiler_pic='-fpic'
10193 lt_prog_compiler_static='-Bstatic'
10196 lt_prog_compiler_wl='-Wl,'
10197 # All Alpha code is PIC.
10198 lt_prog_compiler_static='-non_shared'
10200 xl* | bgxl* | bgf* | mpixl*)
10201 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10202 lt_prog_compiler_wl='-Wl,'
10203 lt_prog_compiler_pic='-qpic'
10204 lt_prog_compiler_static='-qstaticlink'
10207 case `$CC -V 2>&1 | $SED 5q` in
10208 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10209 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10210 lt_prog_compiler_pic='-KPIC'
10211 lt_prog_compiler_static='-Bstatic'
10212 lt_prog_compiler_wl=''
10214 *Sun\ F* | *Sun*Fortran*)
10215 lt_prog_compiler_pic='-KPIC'
10216 lt_prog_compiler_static='-Bstatic'
10217 lt_prog_compiler_wl='-Qoption ld '
10221 lt_prog_compiler_pic='-KPIC'
10222 lt_prog_compiler_static='-Bstatic'
10223 lt_prog_compiler_wl='-Wl,'
10225 *Intel*\ [CF]*Compiler*)
10226 lt_prog_compiler_wl='-Wl,'
10227 lt_prog_compiler_pic='-fPIC'
10228 lt_prog_compiler_static='-static'
10231 lt_prog_compiler_wl='-Wl,'
10232 lt_prog_compiler_pic='-fpic'
10233 lt_prog_compiler_static='-Bstatic'
10241 lt_prog_compiler_pic='-KPIC'
10242 lt_prog_compiler_static='-Bstatic'
10246 # QNX uses GNU C++, but need to define -shared option too, otherwise
10247 # it will coredump.
10248 lt_prog_compiler_pic='-fPIC -shared'
10251 osf3* | osf4* | osf5*)
10252 lt_prog_compiler_wl='-Wl,'
10253 # All OSF/1 code is PIC.
10254 lt_prog_compiler_static='-non_shared'
10258 lt_prog_compiler_static='-non_shared'
10262 lt_prog_compiler_pic='-KPIC'
10263 lt_prog_compiler_static='-Bstatic'
10264 case $cc_basename in
10265 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10266 lt_prog_compiler_wl='-Qoption ld ';;
10268 lt_prog_compiler_wl='-Wl,';;
10273 lt_prog_compiler_wl='-Qoption ld '
10274 lt_prog_compiler_pic='-PIC'
10275 lt_prog_compiler_static='-Bstatic'
10278 sysv4 | sysv4.2uw2* | sysv4.3*)
10279 lt_prog_compiler_wl='-Wl,'
10280 lt_prog_compiler_pic='-KPIC'
10281 lt_prog_compiler_static='-Bstatic'
10285 if test -d /usr/nec; then
10286 lt_prog_compiler_pic='-Kconform_pic'
10287 lt_prog_compiler_static='-Bstatic'
10291 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10292 lt_prog_compiler_wl='-Wl,'
10293 lt_prog_compiler_pic='-KPIC'
10294 lt_prog_compiler_static='-Bstatic'
10298 lt_prog_compiler_wl='-Wl,'
10299 lt_prog_compiler_can_build_shared=no
10303 lt_prog_compiler_pic='-pic'
10304 lt_prog_compiler_static='-Bstatic'
10308 lt_prog_compiler_can_build_shared=no
10314 # For platforms that do not support PIC, -DPIC is meaningless:
10316 lt_prog_compiler_pic=
10319 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10324 printf %s "checking for $compiler option to produce PIC... " >&6; }
10325 if test ${lt_cv_prog_compiler_pic+y}
10327 printf %s "(cached) " >&6
10329 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10332 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10333 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10336 # Check to make sure the PIC flag actually works.
10338 if test -n "$lt_prog_compiler_pic"; then
10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10340 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10341 if test ${lt_cv_prog_compiler_pic_works+y}
10343 printf %s "(cached) " >&6
10345 lt_cv_prog_compiler_pic_works=no
10346 ac_outfile=conftest.$ac_objext
10347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10348 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10349 # Insert the option either (1) after the last *FLAGS variable, or
10350 # (2) before a word containing "conftest.", or (3) at the end.
10351 # Note that $ac_compile itself does not contain backslashes and begins
10352 # with a dollar sign (not a hyphen), so the echo should work correctly.
10353 # The option is referenced via a variable to avoid confusing sed.
10354 lt_compile=`echo "$ac_compile" | $SED \
10355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10357 -e 's:$: $lt_compiler_flag:'`
10358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10359 (eval "$lt_compile" 2>conftest.err)
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 if (exit $ac_status) && test -s "$ac_outfile"; then
10364 # The compiler can only warn and ignore the option if not recognized
10365 # So say no if there are warnings other than the usual output.
10366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10368 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10369 lt_cv_prog_compiler_pic_works=yes
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10376 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10378 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10379 case $lt_prog_compiler_pic in
10381 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10384 lt_prog_compiler_pic=
10385 lt_prog_compiler_can_build_shared=no
10401 # Check to make sure the static flag actually works.
10403 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10405 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10406 if test ${lt_cv_prog_compiler_static_works+y}
10408 printf %s "(cached) " >&6
10410 lt_cv_prog_compiler_static_works=no
10411 save_LDFLAGS=$LDFLAGS
10412 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10413 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10414 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10415 # The linker can only warn and ignore the option if not recognized
10416 # So say no if there are warnings
10417 if test -s conftest.err; then
10418 # Append any errors to the config.log.
10419 cat conftest.err 1>&5
10420 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10422 if diff conftest.exp conftest.er2 >/dev/null; then
10423 lt_cv_prog_compiler_static_works=yes
10426 lt_cv_prog_compiler_static_works=yes
10430 LDFLAGS=$save_LDFLAGS
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10434 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10436 if test yes = "$lt_cv_prog_compiler_static_works"; then
10439 lt_prog_compiler_static=
10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10449 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10450 if test ${lt_cv_prog_compiler_c_o+y}
10452 printf %s "(cached) " >&6
10454 lt_cv_prog_compiler_c_o=no
10455 $RM -r conftest 2>/dev/null
10459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10461 lt_compiler_flag="-o out/conftest2.$ac_objext"
10462 # Insert the option either (1) after the last *FLAGS variable, or
10463 # (2) before a word containing "conftest.", or (3) at the end.
10464 # Note that $ac_compile itself does not contain backslashes and begins
10465 # with a dollar sign (not a hyphen), so the echo should work correctly.
10466 lt_compile=`echo "$ac_compile" | $SED \
10467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10469 -e 's:$: $lt_compiler_flag:'`
10470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10471 (eval "$lt_compile" 2>out/conftest.err)
10473 cat out/conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10477 # The compiler can only warn and ignore the option if not recognized
10478 # So say no if there are warnings
10479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10482 lt_cv_prog_compiler_c_o=yes
10487 # SGI C++ compiler will create directory out/ii_files/ for
10488 # template instantiation
10489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10490 $RM out/* && rmdir out
10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10497 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10505 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10506 if test ${lt_cv_prog_compiler_c_o+y}
10508 printf %s "(cached) " >&6
10510 lt_cv_prog_compiler_c_o=no
10511 $RM -r conftest 2>/dev/null
10515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10517 lt_compiler_flag="-o out/conftest2.$ac_objext"
10518 # Insert the option either (1) after the last *FLAGS variable, or
10519 # (2) before a word containing "conftest.", or (3) at the end.
10520 # Note that $ac_compile itself does not contain backslashes and begins
10521 # with a dollar sign (not a hyphen), so the echo should work correctly.
10522 lt_compile=`echo "$ac_compile" | $SED \
10523 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10524 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10525 -e 's:$: $lt_compiler_flag:'`
10526 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10527 (eval "$lt_compile" 2>out/conftest.err)
10529 cat out/conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10533 # The compiler can only warn and ignore the option if not recognized
10534 # So say no if there are warnings
10535 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10536 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10537 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10538 lt_cv_prog_compiler_c_o=yes
10543 # SGI C++ compiler will create directory out/ii_files/ for
10544 # template instantiation
10545 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10546 $RM out/* && rmdir out
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10553 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10558 hard_links=nottested
10559 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10560 # do not overwrite the value of need_locks provided by the user
10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10562 printf %s "checking if we can lock with hard links... " >&6; }
10565 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10567 ln conftest.a conftest.b 2>&5 || hard_links=no
10568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10570 printf "%s\n" "$hard_links" >&6; }
10571 if test no = "$hard_links"; then
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10573 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10586 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10589 allow_undefined_flag=
10590 always_export_symbols=no
10592 archive_expsym_cmds=
10593 compiler_needs_object=no
10594 enable_shared_with_static_runtimes=no
10595 export_dynamic_flag_spec=
10596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10597 hardcode_automatic=no
10599 hardcode_direct_absolute=no
10600 hardcode_libdir_flag_spec=
10601 hardcode_libdir_separator=
10602 hardcode_minus_L=no
10603 hardcode_shlibpath_var=unsupported
10605 link_all_deplibs=unknown
10607 module_expsym_cmds=
10608 old_archive_from_new_cmds=
10609 old_archive_from_expsyms_cmds=
10610 thread_safe_flag_spec=
10611 whole_archive_flag_spec=
10612 # include_expsyms should be a list of space-separated symbols to be *always*
10613 # included in the symbol list
10615 # exclude_expsyms can be an extended regexp of symbols to exclude
10616 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10617 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10618 # as well as any symbol that contains 'd'.
10619 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10621 # platforms (ab)use it in PIC code, but their linkers get confused if
10622 # the symbol is explicitly referenced. Since portable code cannot
10623 # rely on this symbol name, it's probably fine to never include it in
10624 # preloaded symbol tables.
10625 # Exclude shared library initialization/finalization symbols.
10626 extract_expsyms_cmds=
10629 cygwin* | mingw* | pw32* | cegcc*)
10630 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10631 # When not using gcc, we currently assume that we are using
10632 # Microsoft Visual C++ or Intel C++ Compiler.
10633 if test yes != "$GCC"; then
10638 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10641 openbsd* | bitrig*)
10648 # On some targets, GNU ld is compatible enough with the native linker
10649 # that we're better off using the native interface for both.
10650 lt_use_gnu_ld_interface=no
10651 if test yes = "$with_gnu_ld"; then
10654 # The AIX port of GNU ld has always aspired to compatibility
10655 # with the native linker. However, as the warning in the GNU ld
10656 # block says, versions before 2.19.5* couldn't really create working
10657 # shared libraries, regardless of the interface used.
10658 case `$LD -v 2>&1` in
10659 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10660 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10661 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10663 lt_use_gnu_ld_interface=yes
10668 lt_use_gnu_ld_interface=yes
10673 if test yes = "$lt_use_gnu_ld_interface"; then
10674 # If archive_cmds runs LD, not CC, wlarc should be empty
10677 # Set some defaults for GNU ld with shared library support. These
10678 # are reset later if shared libraries are not supported. Putting them
10679 # here allows them to be overridden if necessary.
10680 runpath_var=LD_RUN_PATH
10681 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10682 export_dynamic_flag_spec='$wl--export-dynamic'
10683 # ancient GNU ld didn't support --whole-archive et. al.
10684 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10685 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10687 whole_archive_flag_spec=
10689 supports_anon_versioning=no
10690 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10691 *GNU\ gold*) supports_anon_versioning=yes ;;
10692 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10693 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10694 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10695 *\ 2.11.*) ;; # other 2.11 versions
10696 *) supports_anon_versioning=yes ;;
10699 # See if GNU ld supports shared libraries.
10702 # On AIX/PPC, the GNU linker is very broken
10703 if test ia64 != "$host_cpu"; then
10707 *** Warning: the GNU linker, at least up to release 2.19, is reported
10708 *** to be unable to reliably create shared libraries on AIX.
10709 *** Therefore, libtool is disabling shared libraries support. If you
10710 *** really care for shared libraries, you may want to install binutils
10711 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10712 *** You will then need to restart the configuration process.
10721 # see comment about AmigaOS4 .so support
10722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10723 archive_expsym_cmds=''
10726 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)'
10727 hardcode_libdir_flag_spec='-L$libdir'
10728 hardcode_minus_L=yes
10734 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10735 allow_undefined_flag=unsupported
10736 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10737 # support --undefined. This deserves some investigation. FIXME
10738 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10744 cygwin* | mingw* | pw32* | cegcc*)
10745 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10746 # as there is no search path for DLLs.
10747 hardcode_libdir_flag_spec='-L$libdir'
10748 export_dynamic_flag_spec='$wl--export-all-symbols'
10749 allow_undefined_flag=unsupported
10750 always_export_symbols=no
10751 enable_shared_with_static_runtimes=yes
10752 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'
10753 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10755 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10757 # If the export-symbols file already is a .def file, use it as
10758 # is; otherwise, prepend EXPORTS...
10759 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10760 cp $export_symbols $output_objdir/$soname.def;
10762 echo EXPORTS > $output_objdir/$soname.def;
10763 cat $export_symbols >> $output_objdir/$soname.def;
10765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10773 link_all_deplibs=yes
10777 hardcode_libdir_flag_spec='-L$libdir'
10778 hardcode_minus_L=yes
10779 allow_undefined_flag=unsupported
10781 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10782 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10783 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10784 $ECHO EXPORTS >> $output_objdir/$libname.def~
10785 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10786 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10787 emximp -o $lib $output_objdir/$libname.def'
10788 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10789 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10790 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10791 $ECHO EXPORTS >> $output_objdir/$libname.def~
10792 prefix_cmds="$SED"~
10793 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10794 prefix_cmds="$prefix_cmds -e 1d";
10796 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10797 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10798 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10799 emximp -o $lib $output_objdir/$libname.def'
10800 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10801 enable_shared_with_static_runtimes=yes
10807 hardcode_shlibpath_var=no
10808 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10809 export_dynamic_flag_spec='$wl-E'
10810 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10811 # Instead, shared libraries are loaded at an image base (0x10000000 by
10812 # default) and relocated if they conflict, which is a slow very memory
10813 # consuming and fragmenting process. To avoid this, we pick a random,
10814 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10815 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10816 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10817 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'
10820 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10822 if test linux-dietlibc = "$host_os"; then
10823 case $cc_basename in
10824 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10827 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10828 && test no = "$tmp_diet"
10830 tmp_addflag=' $pic_flag'
10831 tmp_sharedflag='-shared'
10832 case $cc_basename,$host_cpu in
10833 pgcc*) # Portland Group C compiler
10834 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'
10835 tmp_addflag=' $pic_flag'
10837 pgf77* | pgf90* | pgf95* | pgfortran*)
10838 # Portland Group f77 and f90 compilers
10839 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'
10840 tmp_addflag=' $pic_flag -Mnomain' ;;
10841 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10842 tmp_addflag=' -i_dynamic' ;;
10843 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10844 tmp_addflag=' -i_dynamic -nofor_main' ;;
10845 ifc* | ifort*) # Intel Fortran compiler
10846 tmp_addflag=' -nofor_main' ;;
10847 lf95*) # Lahey Fortran 8.1
10848 whole_archive_flag_spec=
10849 tmp_sharedflag='--shared' ;;
10850 nagfor*) # NAGFOR 5.3
10851 tmp_sharedflag='-Wl,-shared' ;;
10852 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10853 tmp_sharedflag='-qmkshrobj'
10855 nvcc*) # Cuda Compiler Driver 2.2
10856 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'
10857 compiler_needs_object=yes
10860 case `$CC -V 2>&1 | $SED 5q` in
10861 *Sun\ C*) # Sun C 5.9
10862 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'
10863 compiler_needs_object=yes
10864 tmp_sharedflag='-G' ;;
10865 *Sun\ F*) # Sun Fortran 8.3
10866 tmp_sharedflag='-G' ;;
10868 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10870 if test yes = "$supports_anon_versioning"; then
10871 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10872 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10873 echo "local: *; };" >> $output_objdir/$libname.ver~
10874 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10877 case $cc_basename in
10879 export_dynamic_flag_spec='-rdynamic'
10881 xlf* | bgf* | bgxlf* | mpixlf*)
10882 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10883 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10884 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10885 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10886 if test yes = "$supports_anon_versioning"; then
10887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10888 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10889 echo "local: *; };" >> $output_objdir/$libname.ver~
10890 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10901 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10905 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10910 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10914 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10915 *** create shared libraries on Solaris systems. Therefore, libtool
10916 *** is disabling shared libraries support. We urge you to upgrade GNU
10917 *** binutils to release 2.9.1 or newer. Another option is to modify
10918 *** your PATH or compiler configuration so that the native linker is
10919 *** used, and then restart.
10922 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10924 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10931 case `$LD -v 2>&1` in
10932 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10936 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10937 *** reliably create shared libraries on SCO systems. Therefore, libtool
10938 *** is disabling shared libraries support. We urge you to upgrade GNU
10939 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10940 *** your PATH or compiler configuration so that the native linker is
10941 *** used, and then restart.
10946 # For security reasons, it is highly recommended that you always
10947 # use absolute paths for naming shared libraries, and exclude the
10948 # DT_RUNPATH tag from executables and libraries. But doing so
10949 # requires that you compile everything twice, which is a pain.
10950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10951 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10962 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10964 hardcode_direct=yes
10965 hardcode_shlibpath_var=no
10969 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10970 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10971 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10978 if test no = "$ld_shlibs"; then
10980 hardcode_libdir_flag_spec=
10981 export_dynamic_flag_spec=
10982 whole_archive_flag_spec=
10985 # PORTME fill in a description of your system's linker (not GNU ld)
10988 allow_undefined_flag=unsupported
10989 always_export_symbols=yes
10990 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'
10991 # Note: this linker hardcodes the directories in LIBPATH if there
10992 # are no directories specified by -L.
10993 hardcode_minus_L=yes
10994 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10995 # Neither direct hardcoding nor static linking is supported with a
10997 hardcode_direct=unsupported
11002 if test ia64 = "$host_cpu"; then
11003 # On IA64, the linker does run time linking by default, so we don't
11004 # have to do anything special.
11005 aix_use_runtimelinking=no
11006 exp_sym_flag='-Bexport'
11009 # If we're using GNU nm, then we don't want the "-C" option.
11010 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11011 # Without the "-l" option, or with the "-B" option, AIX nm treats
11012 # weak defined symbols like other global defined symbols, whereas
11013 # GNU nm marks them as "W".
11014 # While the 'weak' keyword is ignored in the Export File, we need
11015 # it in the Import File for the 'aix-soname' feature, so we have
11016 # to replace the "-B" option with "-P" for AIX nm.
11017 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11018 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'
11020 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11022 aix_use_runtimelinking=no
11024 # Test if we are trying to use run time linking or normal
11025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11026 # have runtime linking enabled, and use it for executables.
11027 # For shared libraries, we enable/disable runtime linking
11028 # depending on the kind of the shared library created -
11029 # when "with_aix_soname,aix_use_runtimelinking" is:
11030 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11031 # "aix,yes" lib.so shared, rtl:yes, for executables
11032 # lib.a static archive
11033 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11034 # lib.a(lib.so.V) shared, rtl:no, for executables
11035 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11036 # lib.a(lib.so.V) shared, rtl:no
11037 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11038 # lib.a static archive
11039 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11040 for ld_flag in $LDFLAGS; do
11041 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11042 aix_use_runtimelinking=yes
11046 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11047 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11048 # so we don't have lib.a shared libs to link our executables.
11049 # We have to force runtime linking in this case.
11050 aix_use_runtimelinking=yes
11051 LDFLAGS="$LDFLAGS -Wl,-brtl"
11056 exp_sym_flag='-bexport'
11057 no_entry_flag='-bnoentry'
11060 # When large executables or shared objects are built, AIX ld can
11061 # have problems creating the table of contents. If linking a library
11062 # or program results in "error TOC overflow" add -mminimal-toc to
11063 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11064 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11067 hardcode_direct=yes
11068 hardcode_direct_absolute=yes
11069 hardcode_libdir_separator=':'
11070 link_all_deplibs=yes
11071 file_list_spec='$wl-f,'
11072 case $with_aix_soname,$aix_use_runtimelinking in
11073 aix,*) ;; # traditional, no import file
11074 svr4,* | *,yes) # use import file
11075 # The Import File defines what to hardcode.
11077 hardcode_direct_absolute=no
11081 if test yes = "$GCC"; then
11082 case $host_os in aix4.[012]|aix4.[012].*)
11083 # We only want to do this on AIX 4.2 and lower, the check
11084 # below for broken collect2 doesn't work under 4.3+
11085 collect2name=`$CC -print-prog-name=collect2`
11086 if test -f "$collect2name" &&
11087 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11089 # We have reworked collect2
11092 # We have old collect2
11093 hardcode_direct=unsupported
11094 # It fails to find uninstalled libraries when the uninstalled
11095 # path is not listed in the libpath. Setting hardcode_minus_L
11096 # to unsupported forces relinking
11097 hardcode_minus_L=yes
11098 hardcode_libdir_flag_spec='-L$libdir'
11099 hardcode_libdir_separator=
11103 shared_flag='-shared'
11104 if test yes = "$aix_use_runtimelinking"; then
11105 shared_flag="$shared_flag "'$wl-G'
11107 # Need to ensure runtime linking is disabled for the traditional
11108 # shared library, or the linker may eventually find shared libraries
11109 # /with/ Import File - we do not want to mix them.
11110 shared_flag_aix='-shared'
11111 shared_flag_svr4='-shared $wl-G'
11114 if test ia64 = "$host_cpu"; then
11115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11116 # chokes on -Wl,-G. The following line is correct:
11119 if test yes = "$aix_use_runtimelinking"; then
11120 shared_flag='$wl-G'
11122 shared_flag='$wl-bM:SRE'
11124 shared_flag_aix='$wl-bM:SRE'
11125 shared_flag_svr4='$wl-G'
11129 export_dynamic_flag_spec='$wl-bexpall'
11130 # It seems that -bexpall does not export symbols beginning with
11131 # underscore (_), so it is better to generate a list of symbols to export.
11132 always_export_symbols=yes
11133 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11134 # Warning - without using the other runtime loading flags (-brtl),
11135 # -berok will link without error, but may produce a broken library.
11136 allow_undefined_flag='-berok'
11137 # Determine the default libpath from the value encoded in an
11138 # empty executable.
11139 if test set = "${lt_cv_aix_libpath+set}"; then
11140 aix_libpath=$lt_cv_aix_libpath
11142 if test ${lt_cv_aix_libpath_+y}
11144 printf %s "(cached) " >&6
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11157 if ac_fn_c_try_link "$LINENO"
11160 lt_aix_libpath_sed='
11161 /Import File Strings/,/^$/ {
11163 s/^0 *\([^ ]*\) *$/\1/
11167 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11168 # Check for a 64-bit object if we didn't find anything.
11169 if test -z "$lt_cv_aix_libpath_"; then
11170 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11174 conftest$ac_exeext conftest.$ac_ext
11175 if test -z "$lt_cv_aix_libpath_"; then
11176 lt_cv_aix_libpath_=/usr/lib:/lib
11181 aix_libpath=$lt_cv_aix_libpath_
11184 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11185 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
11187 if test ia64 = "$host_cpu"; then
11188 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11189 allow_undefined_flag="-z nodefs"
11190 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"
11192 # Determine the default libpath from the value encoded in an
11193 # empty executable.
11194 if test set = "${lt_cv_aix_libpath+set}"; then
11195 aix_libpath=$lt_cv_aix_libpath
11197 if test ${lt_cv_aix_libpath_+y}
11199 printf %s "(cached) " >&6
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11212 if ac_fn_c_try_link "$LINENO"
11215 lt_aix_libpath_sed='
11216 /Import File Strings/,/^$/ {
11218 s/^0 *\([^ ]*\) *$/\1/
11222 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11223 # Check for a 64-bit object if we didn't find anything.
11224 if test -z "$lt_cv_aix_libpath_"; then
11225 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11229 conftest$ac_exeext conftest.$ac_ext
11230 if test -z "$lt_cv_aix_libpath_"; then
11231 lt_cv_aix_libpath_=/usr/lib:/lib
11236 aix_libpath=$lt_cv_aix_libpath_
11239 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11240 # Warning - without using the other run time loading flags,
11241 # -berok will link without error, but may produce a broken library.
11242 no_undefined_flag=' $wl-bernotok'
11243 allow_undefined_flag=' $wl-berok'
11244 if test yes = "$with_gnu_ld"; then
11245 # We only use this code for GNU lds that support --whole-archive.
11246 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11248 # Exported symbols can be pulled into shared objects from archives
11249 whole_archive_flag_spec='$convenience'
11251 archive_cmds_need_lc=yes
11252 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11253 # -brtl affects multiple linker settings, -berok does not and is overridden later
11254 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11255 if test svr4 != "$with_aix_soname"; then
11256 # This is similar to how AIX traditionally builds its shared libraries.
11257 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'
11259 if test aix != "$with_aix_soname"; then
11260 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'
11262 # used by -dlpreopen to get the symbols
11263 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11265 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11273 # see comment about AmigaOS4 .so support
11274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11275 archive_expsym_cmds=''
11278 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)'
11279 hardcode_libdir_flag_spec='-L$libdir'
11280 hardcode_minus_L=yes
11286 export_dynamic_flag_spec=-rdynamic
11289 cygwin* | mingw* | pw32* | cegcc*)
11290 # When not using gcc, we currently assume that we are using
11291 # Microsoft Visual C++ or Intel C++ Compiler.
11292 # hardcode_libdir_flag_spec is actually meaningless, as there is
11293 # no search path for DLLs.
11294 case $cc_basename in
11296 # Native MSVC or ICC
11297 hardcode_libdir_flag_spec=' '
11298 allow_undefined_flag=unsupported
11299 always_export_symbols=yes
11301 # Tell ltmain to make .lib files, not .a files.
11303 # Tell ltmain to make .dll files, not .so files.
11305 # FIXME: Setting linknames here is a bad hack.
11306 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11307 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11308 cp "$export_symbols" "$output_objdir/$soname.def";
11309 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11311 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11313 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11315 # The linker will not automatically build a static lib if we build a DLL.
11316 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11317 enable_shared_with_static_runtimes=yes
11318 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11321 old_postinstall_cmds='chmod 644 $oldlib'
11322 postlink_cmds='lt_outputfile="@OUTPUT@"~
11323 lt_tool_outputfile="@TOOL_OUTPUT@"~
11324 case $lt_outputfile in
11327 lt_outputfile=$lt_outputfile.exe
11328 lt_tool_outputfile=$lt_tool_outputfile.exe
11331 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11332 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11333 $RM "$lt_outputfile.manifest";
11337 # Assume MSVC and ICC wrapper
11338 hardcode_libdir_flag_spec=' '
11339 allow_undefined_flag=unsupported
11340 # Tell ltmain to make .lib files, not .a files.
11342 # Tell ltmain to make .dll files, not .so files.
11344 # FIXME: Setting linknames here is a bad hack.
11345 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11346 # The linker will automatically build a .lib file if we build a DLL.
11347 old_archive_from_new_cmds='true'
11348 # FIXME: Should let the user specify the lib program.
11349 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11350 enable_shared_with_static_runtimes=yes
11355 darwin* | rhapsody*)
11358 archive_cmds_need_lc=no
11360 hardcode_automatic=yes
11361 hardcode_shlibpath_var=unsupported
11362 if test yes = "$lt_cv_ld_force_load"; then
11363 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\"`'
11366 whole_archive_flag_spec=''
11368 link_all_deplibs=yes
11369 allow_undefined_flag=$_lt_dar_allow_undefined
11370 case $cc_basename in
11371 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11372 *) _lt_dar_can_shared=$GCC ;;
11374 if test yes = "$_lt_dar_can_shared"; then
11375 output_verbose_link_cmd=func_echo_all
11376 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11377 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11378 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"
11379 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"
11388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11389 hardcode_libdir_flag_spec='-L$libdir'
11390 hardcode_shlibpath_var=no
11393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11394 # support. Future versions do this automatically, but an explicit c++rt0.o
11395 # does not break anything, and helps significantly (at the cost of a little
11398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11399 hardcode_libdir_flag_spec='-R$libdir'
11400 hardcode_direct=yes
11401 hardcode_shlibpath_var=no
11404 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11407 hardcode_direct=yes
11408 hardcode_minus_L=yes
11409 hardcode_shlibpath_var=no
11412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11413 freebsd* | dragonfly* | midnightbsd*)
11414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11415 hardcode_libdir_flag_spec='-R$libdir'
11416 hardcode_direct=yes
11417 hardcode_shlibpath_var=no
11421 if test yes = "$GCC"; then
11422 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'
11424 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'
11426 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11427 hardcode_libdir_separator=:
11428 hardcode_direct=yes
11430 # hardcode_minus_L: Not really in the search PATH,
11431 # but as the default location of the library.
11432 hardcode_minus_L=yes
11433 export_dynamic_flag_spec='$wl-E'
11437 if test yes,no = "$GCC,$with_gnu_ld"; then
11438 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11442 if test no = "$with_gnu_ld"; then
11443 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11444 hardcode_libdir_separator=:
11445 hardcode_direct=yes
11446 hardcode_direct_absolute=yes
11447 export_dynamic_flag_spec='$wl-E'
11448 # hardcode_minus_L: Not really in the search PATH,
11449 # but as the default location of the library.
11450 hardcode_minus_L=yes
11455 if test yes,no = "$GCC,$with_gnu_ld"; then
11458 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11461 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11464 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11470 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11477 # Older versions of the 11.00 compiler do not understand -b yet
11478 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11480 printf %s "checking if $CC understands -b... " >&6; }
11481 if test ${lt_cv_prog_compiler__b+y}
11483 printf %s "(cached) " >&6
11485 lt_cv_prog_compiler__b=no
11486 save_LDFLAGS=$LDFLAGS
11487 LDFLAGS="$LDFLAGS -b"
11488 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11490 # The linker can only warn and ignore the option if not recognized
11491 # So say no if there are warnings
11492 if test -s conftest.err; then
11493 # Append any errors to the config.log.
11494 cat conftest.err 1>&5
11495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11497 if diff conftest.exp conftest.er2 >/dev/null; then
11498 lt_cv_prog_compiler__b=yes
11501 lt_cv_prog_compiler__b=yes
11505 LDFLAGS=$save_LDFLAGS
11508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11509 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11511 if test yes = "$lt_cv_prog_compiler__b"; then
11512 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11514 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11520 if test no = "$with_gnu_ld"; then
11521 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11522 hardcode_libdir_separator=:
11527 hardcode_shlibpath_var=no
11530 hardcode_direct=yes
11531 hardcode_direct_absolute=yes
11532 export_dynamic_flag_spec='$wl-E'
11534 # hardcode_minus_L: Not really in the search PATH,
11535 # but as the default location of the library.
11536 hardcode_minus_L=yes
11542 irix5* | irix6* | nonstopux*)
11543 if test yes = "$GCC"; then
11544 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'
11545 # Try to use the -exported_symbol ld option, if it does not
11546 # work, assume that -exports_file does not work either and
11547 # implicitly export all symbols.
11548 # This should be the same for all languages, so no per-tag cache variable.
11549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11550 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11551 if test ${lt_cv_irix_exported_symbol+y}
11553 printf %s "(cached) " >&6
11555 save_LDFLAGS=$LDFLAGS
11556 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 int foo (void) { return 0; }
11561 if ac_fn_c_try_link "$LINENO"
11563 lt_cv_irix_exported_symbol=yes
11565 lt_cv_irix_exported_symbol=no
11567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11568 conftest$ac_exeext conftest.$ac_ext
11569 LDFLAGS=$save_LDFLAGS
11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11572 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11573 if test yes = "$lt_cv_irix_exported_symbol"; then
11574 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'
11577 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'
11578 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'
11580 archive_cmds_need_lc='no'
11581 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11582 hardcode_libdir_separator=:
11584 link_all_deplibs=yes
11588 case $cc_basename in
11590 # Fabrice Bellard et al's Tiny C Compiler
11592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11601 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11603 hardcode_libdir_flag_spec='-R$libdir'
11604 hardcode_direct=yes
11605 hardcode_shlibpath_var=no
11609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11610 hardcode_direct=yes
11611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11612 hardcode_libdir_separator=:
11613 hardcode_shlibpath_var=no
11619 openbsd* | bitrig*)
11620 if test -f /usr/libexec/ld.so; then
11621 hardcode_direct=yes
11622 hardcode_shlibpath_var=no
11623 hardcode_direct_absolute=yes
11624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11626 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11627 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11628 export_dynamic_flag_spec='$wl-E'
11630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11631 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11639 hardcode_libdir_flag_spec='-L$libdir'
11640 hardcode_minus_L=yes
11641 allow_undefined_flag=unsupported
11643 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11644 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11645 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11646 $ECHO EXPORTS >> $output_objdir/$libname.def~
11647 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11648 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11649 emximp -o $lib $output_objdir/$libname.def'
11650 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11651 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11652 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11653 $ECHO EXPORTS >> $output_objdir/$libname.def~
11654 prefix_cmds="$SED"~
11655 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11656 prefix_cmds="$prefix_cmds -e 1d";
11658 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11659 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11660 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11661 emximp -o $lib $output_objdir/$libname.def'
11662 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11663 enable_shared_with_static_runtimes=yes
11668 if test yes = "$GCC"; then
11669 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11670 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'
11672 allow_undefined_flag=' -expect_unresolved \*'
11673 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'
11675 archive_cmds_need_lc='no'
11676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11677 hardcode_libdir_separator=:
11680 osf4* | osf5*) # as osf3* with the addition of -msym flag
11681 if test yes = "$GCC"; then
11682 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11683 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'
11684 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11686 allow_undefined_flag=' -expect_unresolved \*'
11687 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'
11688 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~
11689 $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'
11691 # Both c and cxx compiler support -rpath directly
11692 hardcode_libdir_flag_spec='-rpath $libdir'
11694 archive_cmds_need_lc='no'
11695 hardcode_libdir_separator=:
11699 no_undefined_flag=' -z defs'
11700 if test yes = "$GCC"; then
11702 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11703 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11704 $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'
11706 case `$CC -V 2>&1` in
11709 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11710 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11711 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11715 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11716 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11717 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11721 hardcode_libdir_flag_spec='-R$libdir'
11722 hardcode_shlibpath_var=no
11724 solaris2.[0-5] | solaris2.[0-5].*) ;;
11726 # The compiler driver will combine and reorder linker options,
11727 # but understands '-z linker_flag'. GCC discards it without '$wl',
11728 # but is careful enough not to reorder.
11729 # Supported since Solaris 2.6 (maybe 2.5.1?)
11730 if test yes = "$GCC"; then
11731 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11733 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11737 link_all_deplibs=yes
11741 if test sequent = "$host_vendor"; then
11742 # Use $CC to link under sequent, because it throws in some extra .o
11743 # files that make .init and .fini sections work.
11744 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11746 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11748 hardcode_libdir_flag_spec='-L$libdir'
11749 hardcode_direct=yes
11750 hardcode_minus_L=yes
11751 hardcode_shlibpath_var=no
11755 case $host_vendor in
11757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11758 hardcode_direct=yes # is this really true???
11761 ## LD is ld it makes a PLAMLIB
11762 ## CC just makes a GrossModule.
11763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11764 reload_cmds='$CC -r -o $output$reload_objs'
11768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11769 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11772 runpath_var='LD_RUN_PATH'
11773 hardcode_shlibpath_var=no
11777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11778 hardcode_shlibpath_var=no
11779 export_dynamic_flag_spec='-Bexport'
11783 if test -d /usr/nec; then
11784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11785 hardcode_shlibpath_var=no
11786 runpath_var=LD_RUN_PATH
11787 hardcode_runpath_var=yes
11792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11793 no_undefined_flag='$wl-z,text'
11794 archive_cmds_need_lc=no
11795 hardcode_shlibpath_var=no
11796 runpath_var='LD_RUN_PATH'
11798 if test yes = "$GCC"; then
11799 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11802 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11803 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11807 sysv5* | sco3.2v5* | sco5v6*)
11808 # Note: We CANNOT use -z defs as we might desire, because we do not
11809 # link with -lc, and that would cause any symbols used from libc to
11810 # always be unresolved, which means just about no library would
11811 # ever link correctly. If we're not using GNU ld we use -z text
11812 # though, which does catch some bad symbols but isn't as heavy-handed
11814 no_undefined_flag='$wl-z,text'
11815 allow_undefined_flag='$wl-z,nodefs'
11816 archive_cmds_need_lc=no
11817 hardcode_shlibpath_var=no
11818 hardcode_libdir_flag_spec='$wl-R,$libdir'
11819 hardcode_libdir_separator=':'
11820 link_all_deplibs=yes
11821 export_dynamic_flag_spec='$wl-Bexport'
11822 runpath_var='LD_RUN_PATH'
11824 if test yes = "$GCC"; then
11825 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11828 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11829 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11835 hardcode_libdir_flag_spec='-L$libdir'
11836 hardcode_shlibpath_var=no
11844 if test sni = "$host_vendor"; then
11846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11847 export_dynamic_flag_spec='$wl-Blargedynsym'
11853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11854 printf "%s\n" "$ld_shlibs" >&6; }
11855 test no = "$ld_shlibs" && can_build_shared=no
11857 with_gnu_ld=$with_gnu_ld
11874 # Do we need to explicitly link libc?
11876 case "x$archive_cmds_need_lc" in
11878 # Assume -lc should be added
11879 archive_cmds_need_lc=yes
11881 if test yes,yes = "$GCC,$enable_shared"; then
11882 case $archive_cmds in
11884 # FIXME: we may have to deal with multi-command sequences.
11887 # Test whether the compiler implicitly links with -lc since on some
11888 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11889 # to ld, don't add -lc before -lgcc.
11890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11891 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11892 if test ${lt_cv_archive_cmds_need_lc+y}
11894 printf %s "(cached) " >&6
11897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11900 (eval $ac_compile) 2>&5
11902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11903 test $ac_status = 0; } 2>conftest.err; then
11906 libobjs=conftest.$ac_objext
11908 wl=$lt_prog_compiler_wl
11909 pic_flag=$lt_prog_compiler_pic
11915 lt_save_allow_undefined_flag=$allow_undefined_flag
11916 allow_undefined_flag=
11917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11918 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11921 test $ac_status = 0; }
11923 lt_cv_archive_cmds_need_lc=no
11925 lt_cv_archive_cmds_need_lc=yes
11927 allow_undefined_flag=$lt_save_allow_undefined_flag
11929 cat conftest.err 1>&5
11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11935 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11936 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12095 printf %s "checking dynamic linker characteristics... " >&6; }
12097 if test yes = "$GCC"; then
12099 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12100 *) lt_awk_arg='/^libraries:/' ;;
12103 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12104 *) lt_sed_strip_eq='s|=/|/|g' ;;
12106 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12107 case $lt_search_path_spec in
12109 # if the path contains ";" then we assume it to be the separator
12110 # otherwise default to the standard path separator (i.e. ":") - it is
12111 # assumed that no part of a normal pathname contains ";" but that should
12112 # okay in the real world where ";" in dirpaths is itself problematic.
12113 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12116 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12119 # Ok, now we have the path, separated by spaces, we can step through it
12120 # and add multilib dir if necessary...
12121 lt_tmp_lt_search_path_spec=
12122 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12123 # ...but if some path component already ends with the multilib dir we assume
12124 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12125 case "$lt_multi_os_dir; $lt_search_path_spec " in
12126 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12130 for lt_sys_path in $lt_search_path_spec; do
12131 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12132 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12133 elif test -n "$lt_multi_os_dir"; then
12134 test -d "$lt_sys_path" && \
12135 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12138 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12139 BEGIN {RS = " "; FS = "/|\n";} {
12142 for (lt_i = NF; lt_i > 0; lt_i--) {
12143 if ($lt_i != "" && $lt_i != ".") {
12144 if ($lt_i == "..") {
12147 if (lt_count == 0) {
12148 lt_foo = "/" $lt_i lt_foo;
12155 if (lt_foo != "") { lt_freq[lt_foo]++; }
12156 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12158 # AWK program above erroneously prepends '/' to C:/dos/paths
12161 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12162 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12164 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12166 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12168 library_names_spec=
12169 libname_spec='lib$name'
12173 postuninstall_cmds=
12177 shlibpath_overrides_runpath=unknown
12179 dynamic_linker="$host_os ld.so"
12180 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12181 need_lib_prefix=unknown
12182 hardcode_into_libs=no
12184 # when you set need_version to no, make sure it does not cause -set_version
12185 # flags to be left without arguments
12186 need_version=unknown
12192 version_type=linux # correct to gnu/linux during the next big refactor
12193 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12194 shlibpath_var=LIBPATH
12196 # AIX 3 has no versioning support, so we append a major version to the name.
12197 soname_spec='$libname$release$shared_ext$major'
12201 version_type=linux # correct to gnu/linux during the next big refactor
12204 hardcode_into_libs=yes
12205 if test ia64 = "$host_cpu"; then
12206 # AIX 5 supports IA64
12207 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12208 shlibpath_var=LD_LIBRARY_PATH
12210 # With GCC up to 2.95.x, collect2 would create an import file
12211 # for dependence libraries. The import file would start with
12212 # the line '#! .'. This would cause the generated library to
12213 # depend on '.', always an invalid library. This was fixed in
12214 # development snapshots of GCC prior to 3.0.
12216 aix4 | aix4.[01] | aix4.[01].*)
12217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12219 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12222 can_build_shared=no
12226 # Using Import Files as archive members, it is possible to support
12227 # filename-based versioning of shared library archives on AIX. While
12228 # this would work for both with and without runtime linking, it will
12229 # prevent static linking of such archives. So we do filename-based
12230 # shared library versioning with .so extension only, which is used
12231 # when both runtime linking and shared linking is enabled.
12232 # Unfortunately, runtime linking may impact performance, so we do
12233 # not want this to be the default eventually. Also, we use the
12234 # versioned .so libs for executables only if there is the -brtl
12235 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12236 # To allow for filename-based versioning support, we need to create
12237 # libNAME.so.V as an archive file, containing:
12238 # *) an Import File, referring to the versioned filename of the
12239 # archive as well as the shared archive member, telling the
12240 # bitwidth (32 or 64) of that shared object, and providing the
12241 # list of exported symbols of that shared object, eventually
12242 # decorated with the 'weak' keyword
12243 # *) the shared object with the F_LOADONLY flag set, to really avoid
12244 # it being seen by the linker.
12245 # At run time we better use the real file rather than another symlink,
12246 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12248 case $with_aix_soname,$aix_use_runtimelinking in
12249 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12250 # soname into executable. Probably we can add versioning support to
12251 # collect2, so additional links can be useful in future.
12252 aix,yes) # traditional libtool
12253 dynamic_linker='AIX unversionable lib.so'
12254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12255 # instead of lib<name>.a to let people know that these are not
12256 # typical AIX shared libraries.
12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12259 aix,no) # traditional AIX only
12260 dynamic_linker='AIX lib.a(lib.so.V)'
12261 # We preserve .a as extension for shared libraries through AIX4.2
12262 # and later when we are not doing run time linking.
12263 library_names_spec='$libname$release.a $libname.a'
12264 soname_spec='$libname$release$shared_ext$major'
12266 svr4,*) # full svr4 only
12267 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12268 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12269 # We do not specify a path in Import Files, so LIBPATH fires.
12270 shlibpath_overrides_runpath=yes
12272 *,yes) # both, prefer svr4
12273 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12274 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12275 # unpreferred sharedlib libNAME.a needs extra handling
12276 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"'
12277 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"'
12278 # We do not specify a path in Import Files, so LIBPATH fires.
12279 shlibpath_overrides_runpath=yes
12281 *,no) # both, prefer aix
12282 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12283 library_names_spec='$libname$release.a $libname.a'
12284 soname_spec='$libname$release$shared_ext$major'
12285 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12286 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)'
12287 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"'
12290 shlibpath_var=LIBPATH
12297 # Since July 2007 AmigaOS4 officially supports .so libraries.
12298 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12302 library_names_spec='$libname.ixlibrary $libname.a'
12303 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12304 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'
12310 library_names_spec='$libname$shared_ext'
12311 dynamic_linker="$host_os ld.so"
12312 shlibpath_var=LIBRARY_PATH
12316 version_type=linux # correct to gnu/linux during the next big refactor
12318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12319 soname_spec='$libname$release$shared_ext$major'
12320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12324 # the default ld.so.conf also contains /usr/contrib/lib and
12325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12326 # libtool to hard-code these into programs
12329 cygwin* | mingw* | pw32* | cegcc*)
12330 version_type=windows
12335 case $GCC,$cc_basename in
12338 library_names_spec='$libname.dll.a'
12339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12340 postinstall_cmds='base_file=`basename \$file`~
12341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12342 dldir=$destdir/`dirname \$dlpath`~
12343 test -d \$dldir || mkdir -p \$dldir~
12344 $install_prog $dir/$dlname \$dldir/$dlname~
12345 chmod a+x \$dldir/$dlname~
12346 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12347 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12350 dlpath=$dir/\$dldll~
12352 shlibpath_overrides_runpath=yes
12356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12357 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12362 # MinGW DLLs use traditional 'lib' prefix
12363 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12366 # pw32 DLLs use 'pw' prefix rather than 'lib'
12367 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12370 dynamic_linker='Win32 ld.exe'
12374 # Native MSVC or ICC
12375 libname_spec='$name'
12376 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12377 library_names_spec='$libname.dll.lib'
12381 sys_lib_search_path_spec=
12384 for lt_path in $LIB
12387 # Let DOS variable expansion print the short 8.3 style file name.
12388 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12389 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12392 # Convert to MSYS style.
12393 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12396 # Convert to unix form, then to dos form, then back to unix form
12397 # but this time dos style (no spaces!) so that the unix form looks
12398 # like /cygdrive/c/PROGRA~1:/cygdr...
12399 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12400 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12401 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12404 sys_lib_search_path_spec=$LIB
12405 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12406 # It is most probably a Windows format PATH.
12407 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12411 # FIXME: find the short name or the path components, as spaces are
12412 # common. (e.g. "Program Files" -> "PROGRA~1")
12416 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12417 postinstall_cmds='base_file=`basename \$file`~
12418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12419 dldir=$destdir/`dirname \$dlpath`~
12420 test -d \$dldir || mkdir -p \$dldir~
12421 $install_prog $dir/$dlname \$dldir/$dlname'
12422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12423 dlpath=$dir/\$dldll~
12425 shlibpath_overrides_runpath=yes
12426 dynamic_linker='Win32 link.exe'
12430 # Assume MSVC and ICC wrapper
12431 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12432 dynamic_linker='Win32 ld.exe'
12435 # FIXME: first we should search . and the directory the executable is in
12439 darwin* | rhapsody*)
12440 dynamic_linker="$host_os dyld"
12441 version_type=darwin
12444 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12445 soname_spec='$libname$release$major$shared_ext'
12446 shlibpath_overrides_runpath=yes
12447 shlibpath_var=DYLD_LIBRARY_PATH
12448 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12450 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12455 version_type=linux # correct to gnu/linux during the next big refactor
12458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12459 soname_spec='$libname$release$shared_ext$major'
12460 shlibpath_var=LD_LIBRARY_PATH
12463 freebsd* | dragonfly* | midnightbsd*)
12464 # DragonFly does not have aout. When/if they implement a new
12465 # versioning mechanism, adjust this.
12466 if test -x /usr/bin/objformat; then
12467 objformat=`/usr/bin/objformat`
12470 freebsd[23].*) objformat=aout ;;
12471 *) objformat=elf ;;
12474 version_type=freebsd-$objformat
12475 case $version_type in
12477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12478 soname_spec='$libname$release$shared_ext$major'
12483 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12487 shlibpath_var=LD_LIBRARY_PATH
12490 shlibpath_overrides_runpath=yes
12492 freebsd3.[01]* | freebsdelf3.[01]*)
12493 shlibpath_overrides_runpath=yes
12494 hardcode_into_libs=yes
12496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12498 shlibpath_overrides_runpath=no
12499 hardcode_into_libs=yes
12501 *) # from 4.6 on, and DragonFly
12502 shlibpath_overrides_runpath=yes
12503 hardcode_into_libs=yes
12509 version_type=linux # correct to gnu/linux during the next big refactor
12512 dynamic_linker="$host_os runtime_loader"
12513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514 soname_spec='$libname$release$shared_ext$major'
12515 shlibpath_var=LIBRARY_PATH
12516 shlibpath_overrides_runpath=no
12517 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12518 hardcode_into_libs=yes
12521 hpux9* | hpux10* | hpux11*)
12522 # Give a soname corresponding to the major version so that dld.sl refuses to
12523 # link against other versions.
12530 hardcode_into_libs=yes
12531 dynamic_linker="$host_os dld.so"
12532 shlibpath_var=LD_LIBRARY_PATH
12533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12535 soname_spec='$libname$release$shared_ext$major'
12536 if test 32 = "$HPUX_IA64_MODE"; then
12537 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12538 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12540 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12541 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12546 hardcode_into_libs=yes
12547 dynamic_linker="$host_os dld.sl"
12548 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12551 soname_spec='$libname$release$shared_ext$major'
12552 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12557 dynamic_linker="$host_os dld.sl"
12558 shlibpath_var=SHLIB_PATH
12559 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561 soname_spec='$libname$release$shared_ext$major'
12564 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12565 postinstall_cmds='chmod 555 $lib'
12566 # or fails outright, so override atomically:
12567 install_override_mode=555
12571 version_type=linux # correct to gnu/linux during the next big refactor
12574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12575 soname_spec='$libname$release$shared_ext$major'
12576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12577 shlibpath_var=LD_LIBRARY_PATH
12578 shlibpath_overrides_runpath=no
12579 hardcode_into_libs=yes
12582 irix5* | irix6* | nonstopux*)
12584 nonstopux*) version_type=nonstopux ;;
12586 if test yes = "$lt_cv_prog_gnu_ld"; then
12587 version_type=linux # correct to gnu/linux during the next big refactor
12594 soname_spec='$libname$release$shared_ext$major'
12595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12597 irix5* | nonstopux*)
12598 libsuff= shlibsuff=
12601 case $LD in # libtool.m4 will add one of these switches to LD
12602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12603 libsuff= shlibsuff= libmagic=32-bit;;
12604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12605 libsuff=32 shlibsuff=N32 libmagic=N32;;
12606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12607 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12608 *) libsuff= shlibsuff= libmagic=never-match;;
12612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12613 shlibpath_overrides_runpath=no
12614 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12615 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12616 hardcode_into_libs=yes
12619 # No shared lib support for Linux oldld, aout, or coff.
12620 linux*oldld* | linux*aout* | linux*coff*)
12625 version_type=none # Android doesn't support versioned libraries.
12628 library_names_spec='$libname$release$shared_ext'
12629 soname_spec='$libname$release$shared_ext'
12631 shlibpath_var=LD_LIBRARY_PATH
12632 shlibpath_overrides_runpath=yes
12634 # This implies no fast_install, which is unacceptable.
12635 # Some rework will be needed to allow for fast_install
12636 # before this can be enabled.
12637 hardcode_into_libs=yes
12639 dynamic_linker='Android linker'
12640 # Don't embed -rpath directories since the linker doesn't support them.
12641 hardcode_libdir_flag_spec='-L$libdir'
12644 # This must be glibc/ELF.
12645 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12646 version_type=linux # correct to gnu/linux during the next big refactor
12649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12650 soname_spec='$libname$release$shared_ext$major'
12651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12652 shlibpath_var=LD_LIBRARY_PATH
12653 shlibpath_overrides_runpath=no
12655 # Some binutils ld are patched to set DT_RUNPATH
12656 if test ${lt_cv_shlibpath_overrides_runpath+y}
12658 printf %s "(cached) " >&6
12660 lt_cv_shlibpath_overrides_runpath=no
12661 save_LDFLAGS=$LDFLAGS
12662 save_libdir=$libdir
12663 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12664 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12676 if ac_fn_c_try_link "$LINENO"
12678 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12680 lt_cv_shlibpath_overrides_runpath=yes
12683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12684 conftest$ac_exeext conftest.$ac_ext
12685 LDFLAGS=$save_LDFLAGS
12686 libdir=$save_libdir
12690 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12692 # This implies no fast_install, which is unacceptable.
12693 # Some rework will be needed to allow for fast_install
12694 # before this can be enabled.
12695 hardcode_into_libs=yes
12697 # Ideally, we could use ldconfig to report *all* directores which are
12698 # searched for libraries, however this is still not possible. Aside from not
12699 # being certain /sbin/ldconfig is available, command
12700 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12701 # even though it is searched at run-time. Try to do the best guess by
12702 # appending ld.so.conf contents (and includes) to the search path.
12703 if test -f /etc/ld.so.conf; then
12704 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' ' '`
12705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12708 # We used to test for /lib/ld.so.1 and disable shared libraries on
12709 # powerpc, because MkLinux only supported shared libraries with the
12710 # GNU dynamic linker. Since this was broken with cross compilers,
12711 # most powerpc-linux boxes support dynamic linking these days and
12712 # people can always --disable-shared, the test was removed, and we
12713 # assume the GNU/Linux dynamic linker is in use.
12714 dynamic_linker='GNU/Linux ld.so'
12721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12722 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12724 dynamic_linker='NetBSD (a.out) ld.so'
12726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12727 soname_spec='$libname$release$shared_ext$major'
12728 dynamic_linker='NetBSD ld.elf_so'
12730 shlibpath_var=LD_LIBRARY_PATH
12731 shlibpath_overrides_runpath=yes
12732 hardcode_into_libs=yes
12736 version_type=linux # correct to gnu/linux during the next big refactor
12737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12738 shlibpath_var=LD_LIBRARY_PATH
12739 shlibpath_overrides_runpath=yes
12746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12747 soname_spec='$libname$release$shared_ext$major'
12748 shlibpath_var=LD_LIBRARY_PATH
12749 shlibpath_overrides_runpath=no
12750 hardcode_into_libs=yes
12751 dynamic_linker='ldqnx.so'
12754 openbsd* | bitrig*)
12756 sys_lib_dlsearch_path_spec=/usr/lib
12758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12763 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=yes
12770 libname_spec='$name'
12771 version_type=windows
12775 # OS/2 can only load a DLL with a base name of 8 characters or less.
12776 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12777 v=$($ECHO $release$versuffix | tr -d .-);
12778 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12779 $ECHO $n$v`$shared_ext'
12780 library_names_spec='${libname}_dll.$libext'
12781 dynamic_linker='OS/2 ld.exe'
12782 shlibpath_var=BEGINLIBPATH
12783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12785 postinstall_cmds='base_file=`basename \$file`~
12786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12787 dldir=$destdir/`dirname \$dlpath`~
12788 test -d \$dldir || mkdir -p \$dldir~
12789 $install_prog $dir/$dlname \$dldir/$dlname~
12790 chmod a+x \$dldir/$dlname~
12791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12795 dlpath=$dir/\$dldll~
12799 osf3* | osf4* | osf5*)
12803 soname_spec='$libname$release$shared_ext$major'
12804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12805 shlibpath_var=LD_LIBRARY_PATH
12806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12815 version_type=linux # correct to gnu/linux during the next big refactor
12818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12819 soname_spec='$libname$release$shared_ext$major'
12820 shlibpath_var=LD_LIBRARY_PATH
12821 shlibpath_overrides_runpath=yes
12822 hardcode_into_libs=yes
12823 # ldd complains unless libraries are executable
12824 postinstall_cmds='chmod +x $lib'
12829 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12831 shlibpath_var=LD_LIBRARY_PATH
12832 shlibpath_overrides_runpath=yes
12833 if test yes = "$with_gnu_ld"; then
12840 version_type=linux # correct to gnu/linux during the next big refactor
12841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12842 soname_spec='$libname$release$shared_ext$major'
12843 shlibpath_var=LD_LIBRARY_PATH
12844 case $host_vendor in
12846 shlibpath_overrides_runpath=no
12848 runpath_var=LD_RUN_PATH
12856 shlibpath_overrides_runpath=no
12857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12863 if test -d /usr/nec; then
12864 version_type=linux # correct to gnu/linux during the next big refactor
12865 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12866 soname_spec='$libname$shared_ext.$major'
12867 shlibpath_var=LD_LIBRARY_PATH
12871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12876 soname_spec='$libname$release$shared_ext$major'
12877 shlibpath_var=LD_LIBRARY_PATH
12878 shlibpath_overrides_runpath=yes
12879 hardcode_into_libs=yes
12880 if test yes = "$with_gnu_ld"; then
12881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12890 sys_lib_dlsearch_path_spec='/usr/lib'
12894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12895 version_type=linux # correct to gnu/linux during the next big refactor
12898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12899 shlibpath_var=LD_LIBRARY_PATH
12900 shlibpath_overrides_runpath=no
12901 hardcode_into_libs=yes
12905 version_type=linux # correct to gnu/linux during the next big refactor
12906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12907 soname_spec='$libname$release$shared_ext$major'
12908 shlibpath_var=LD_LIBRARY_PATH
12915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12916 printf "%s\n" "$dynamic_linker" >&6; }
12917 test no = "$dynamic_linker" && can_build_shared=no
12919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12920 if test yes = "$GCC"; then
12921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12924 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12925 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12928 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12929 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12932 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12933 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12935 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12936 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12938 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12939 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13038 printf %s "checking how to hardcode library paths into programs... " >&6; }
13040 if test -n "$hardcode_libdir_flag_spec" ||
13041 test -n "$runpath_var" ||
13042 test yes = "$hardcode_automatic"; then
13044 # We can hardcode non-existent directories.
13045 if test no != "$hardcode_direct" &&
13046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13047 # have to relink, otherwise we might link with an installed library
13048 # when we should be linking with a yet-to-be-installed one
13049 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13050 test no != "$hardcode_minus_L"; then
13051 # Linking always hardcodes the temporary library directory.
13052 hardcode_action=relink
13054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13055 hardcode_action=immediate
13058 # We cannot hardcode anything, or else we can only hardcode existing
13060 hardcode_action=unsupported
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13063 printf "%s\n" "$hardcode_action" >&6; }
13065 if test relink = "$hardcode_action" ||
13066 test yes = "$inherit_rpath"; then
13067 # Fast installation is not supported
13068 enable_fast_install=no
13069 elif test yes = "$shlibpath_overrides_runpath" ||
13070 test no = "$enable_shared"; then
13071 # Fast installation is not necessary
13072 enable_fast_install=needless
13080 if test yes != "$enable_dlopen"; then
13081 enable_dlopen=unknown
13082 enable_dlopen_self=unknown
13083 enable_dlopen_self_static=unknown
13090 lt_cv_dlopen=load_add_on
13092 lt_cv_dlopen_self=yes
13095 mingw* | pw32* | cegcc*)
13096 lt_cv_dlopen=LoadLibrary
13101 lt_cv_dlopen=dlopen
13106 # if libdl is installed we need to link against it
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13108 printf %s "checking for dlopen in -ldl... " >&6; }
13109 if test ${ac_cv_lib_dl_dlopen+y}
13111 printf %s "(cached) " >&6
13113 ac_check_lib_save_LIBS=$LIBS
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13118 /* Override any GCC internal prototype to avoid an error.
13119 Use char because int might match the return type of a GCC
13120 builtin and then its argument prototype would still apply. */
13130 if ac_fn_c_try_link "$LINENO"
13132 ac_cv_lib_dl_dlopen=yes
13134 ac_cv_lib_dl_dlopen=no
13136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13137 conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS
13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13141 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13142 if test "x$ac_cv_lib_dl_dlopen" = xyes
13144 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13149 lt_cv_dlopen_self=yes
13156 # Don't try to run any link tests for TPF. We know it's impossible
13157 # because TPF is a cross-compiler, and we know how we open DSOs.
13158 lt_cv_dlopen=dlopen
13160 lt_cv_dlopen_self=no
13164 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13165 if test "x$ac_cv_func_shl_load" = xyes
13167 lt_cv_dlopen=shl_load
13169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13170 printf %s "checking for shl_load in -ldld... " >&6; }
13171 if test ${ac_cv_lib_dld_shl_load+y}
13173 printf %s "(cached) " >&6
13175 ac_check_lib_save_LIBS=$LIBS
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13187 return shl_load ();
13192 if ac_fn_c_try_link "$LINENO"
13194 ac_cv_lib_dld_shl_load=yes
13196 ac_cv_lib_dld_shl_load=no
13198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13199 conftest$ac_exeext conftest.$ac_ext
13200 LIBS=$ac_check_lib_save_LIBS
13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13203 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13204 if test "x$ac_cv_lib_dld_shl_load" = xyes
13206 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13208 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13209 if test "x$ac_cv_func_dlopen" = xyes
13211 lt_cv_dlopen=dlopen
13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13214 printf %s "checking for dlopen in -ldl... " >&6; }
13215 if test ${ac_cv_lib_dl_dlopen+y}
13217 printf %s "(cached) " >&6
13219 ac_check_lib_save_LIBS=$LIBS
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13224 /* Override any GCC internal prototype to avoid an error.
13225 Use char because int might match the return type of a GCC
13226 builtin and then its argument prototype would still apply. */
13236 if ac_fn_c_try_link "$LINENO"
13238 ac_cv_lib_dl_dlopen=yes
13240 ac_cv_lib_dl_dlopen=no
13242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13243 conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13247 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13248 if test "x$ac_cv_lib_dl_dlopen" = xyes
13250 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13253 printf %s "checking for dlopen in -lsvld... " >&6; }
13254 if test ${ac_cv_lib_svld_dlopen+y}
13256 printf %s "(cached) " >&6
13258 ac_check_lib_save_LIBS=$LIBS
13259 LIBS="-lsvld $LIBS"
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 /* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13275 if ac_fn_c_try_link "$LINENO"
13277 ac_cv_lib_svld_dlopen=yes
13279 ac_cv_lib_svld_dlopen=no
13281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13282 conftest$ac_exeext conftest.$ac_ext
13283 LIBS=$ac_check_lib_save_LIBS
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13286 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13287 if test "x$ac_cv_lib_svld_dlopen" = xyes
13289 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13292 printf %s "checking for dld_link in -ldld... " >&6; }
13293 if test ${ac_cv_lib_dld_dld_link+y}
13295 printf %s "(cached) " >&6
13297 ac_check_lib_save_LIBS=$LIBS
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13302 /* Override any GCC internal prototype to avoid an error.
13303 Use char because int might match the return type of a GCC
13304 builtin and then its argument prototype would still apply. */
13309 return dld_link ();
13314 if ac_fn_c_try_link "$LINENO"
13316 ac_cv_lib_dld_dld_link=yes
13318 ac_cv_lib_dld_dld_link=no
13320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13325 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13326 if test "x$ac_cv_lib_dld_dld_link" = xyes
13328 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13349 if test no = "$lt_cv_dlopen"; then
13355 case $lt_cv_dlopen in
13357 save_CPPFLAGS=$CPPFLAGS
13358 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13360 save_LDFLAGS=$LDFLAGS
13361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13364 LIBS="$lt_cv_dlopen_libs $LIBS"
13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13367 printf %s "checking whether a program can dlopen itself... " >&6; }
13368 if test ${lt_cv_dlopen_self+y}
13370 printf %s "(cached) " >&6
13372 if test yes = "$cross_compiling"; then :
13373 lt_cv_dlopen_self=cross
13375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13376 lt_status=$lt_dlunknown
13377 cat > conftest.$ac_ext <<_LT_EOF
13378 #line $LINENO "configure"
13379 #include "confdefs.h"
13388 # define LT_DLGLOBAL RTLD_GLOBAL
13391 # define LT_DLGLOBAL DL_GLOBAL
13393 # define LT_DLGLOBAL 0
13397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13398 find out it does not work in some platform. */
13399 #ifndef LT_DLLAZY_OR_NOW
13401 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13404 # define LT_DLLAZY_OR_NOW DL_LAZY
13407 # define LT_DLLAZY_OR_NOW RTLD_NOW
13410 # define LT_DLLAZY_OR_NOW DL_NOW
13412 # define LT_DLLAZY_OR_NOW 0
13419 /* When -fvisibility=hidden is used, assume the code has been annotated
13420 correspondingly for the symbols needed. */
13421 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13422 int fnord () __attribute__((visibility("default")));
13425 int fnord () { return 42; }
13428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13429 int status = $lt_dlunknown;
13433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13437 else puts (dlerror ());
13439 /* dlclose (self); */
13447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13448 (eval $ac_link) 2>&5
13450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13451 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13452 (./conftest; exit; ) >&5 2>/dev/null
13454 case x$lt_status in
13455 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13456 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13457 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13460 # compilation failed
13461 lt_cv_dlopen_self=no
13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13469 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13471 if test yes = "$lt_cv_dlopen_self"; then
13472 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13474 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13475 if test ${lt_cv_dlopen_self_static+y}
13477 printf %s "(cached) " >&6
13479 if test yes = "$cross_compiling"; then :
13480 lt_cv_dlopen_self_static=cross
13482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13483 lt_status=$lt_dlunknown
13484 cat > conftest.$ac_ext <<_LT_EOF
13485 #line $LINENO "configure"
13486 #include "confdefs.h"
13495 # define LT_DLGLOBAL RTLD_GLOBAL
13498 # define LT_DLGLOBAL DL_GLOBAL
13500 # define LT_DLGLOBAL 0
13504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13505 find out it does not work in some platform. */
13506 #ifndef LT_DLLAZY_OR_NOW
13508 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13511 # define LT_DLLAZY_OR_NOW DL_LAZY
13514 # define LT_DLLAZY_OR_NOW RTLD_NOW
13517 # define LT_DLLAZY_OR_NOW DL_NOW
13519 # define LT_DLLAZY_OR_NOW 0
13526 /* When -fvisibility=hidden is used, assume the code has been annotated
13527 correspondingly for the symbols needed. */
13528 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13529 int fnord () __attribute__((visibility("default")));
13532 int fnord () { return 42; }
13535 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13536 int status = $lt_dlunknown;
13540 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13543 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13544 else puts (dlerror ());
13546 /* dlclose (self); */
13554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13555 (eval $ac_link) 2>&5
13557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13559 (./conftest; exit; ) >&5 2>/dev/null
13561 case x$lt_status in
13562 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13563 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13564 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13567 # compilation failed
13568 lt_cv_dlopen_self_static=no
13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13576 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13579 CPPFLAGS=$save_CPPFLAGS
13580 LDFLAGS=$save_LDFLAGS
13585 case $lt_cv_dlopen_self in
13586 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13587 *) enable_dlopen_self=unknown ;;
13590 case $lt_cv_dlopen_self_static in
13591 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13592 *) enable_dlopen_self_static=unknown ;;
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13615 printf %s "checking whether stripping libraries is possible... " >&6; }
13616 if test -z "$STRIP"; then
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 printf "%s\n" "no" >&6; }
13620 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13621 old_striplib="$STRIP --strip-debug"
13622 striplib="$STRIP --strip-unneeded"
13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13624 printf "%s\n" "yes" >&6; }
13628 # FIXME - insert some real tests, host_os isn't really good enough
13629 striplib="$STRIP -x"
13630 old_striplib="$STRIP -S"
13631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13632 printf "%s\n" "yes" >&6; }
13635 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13636 old_striplib="$STRIP --strip-debug"
13637 striplib="$STRIP --strip-unneeded"
13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13639 printf "%s\n" "yes" >&6; }
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 printf "%s\n" "no" >&6; }
13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 printf "%s\n" "no" >&6; }
13664 # Report what library types will actually be built
13665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13666 printf %s "checking if libtool supports shared libraries... " >&6; }
13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13668 printf "%s\n" "$can_build_shared" >&6; }
13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13671 printf %s "checking whether to build shared libraries... " >&6; }
13672 test no = "$can_build_shared" && enable_shared=no
13674 # On AIX, shared libraries and static libraries use the same namespace, and
13675 # are all built from PIC.
13678 test yes = "$enable_shared" && enable_static=no
13679 if test -n "$RANLIB"; then
13680 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13681 postinstall_cmds='$RANLIB $lib'
13686 if test ia64 != "$host_cpu"; then
13687 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13688 yes,aix,yes) ;; # shared object as lib.so file only
13689 yes,svr4,*) ;; # shared object as lib.so archive member only
13690 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13696 printf "%s\n" "$enable_shared" >&6; }
13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13699 printf %s "checking whether to build static libraries... " >&6; }
13700 # Make sure either enable_shared or enable_static is yes.
13701 test yes = "$enable_shared" || enable_static=yes
13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13703 printf "%s\n" "$enable_static" >&6; }
13710 ac_cpp='$CPP $CPPFLAGS'
13711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13717 if test -n "$CXX" && ( test no != "$CXX" &&
13718 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13719 (test g++ != "$CXX"))); then
13721 ac_cpp='$CXXCPP $CPPFLAGS'
13722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13726 printf %s "checking how to run the C++ preprocessor... " >&6; }
13727 if test -z "$CXXCPP"; then
13728 if test ${ac_cv_prog_CXXCPP+y}
13730 printf %s "(cached) " >&6
13732 # Double quotes because $CXX needs to be expanded
13733 for CXXCPP in "$CXX -E" cpp /lib/cpp
13735 ac_preproc_ok=false
13736 for ac_cxx_preproc_warn_flag in '' yes
13738 # Use a header file that comes with gcc, so configuring glibc
13739 # with a fresh cross-compiler works.
13740 # On the NeXT, cc -E runs the code through the compiler's parser,
13741 # not just through cpp. "Syntax error" is here to catch this case.
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #include <limits.h>
13747 if ac_fn_cxx_try_cpp "$LINENO"
13751 # Broken: fails on valid input.
13754 rm -f conftest.err conftest.i conftest.$ac_ext
13756 # OK, works on sane cases. Now check whether nonexistent headers
13757 # can be detected and how.
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13760 #include <ac_nonexistent.h>
13762 if ac_fn_cxx_try_cpp "$LINENO"
13764 # Broken: success on invalid input.
13767 # Passes both tests.
13771 rm -f conftest.err conftest.i conftest.$ac_ext
13774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13775 rm -f conftest.i conftest.err conftest.$ac_ext
13782 ac_cv_prog_CXXCPP=$CXXCPP
13785 CXXCPP=$ac_cv_prog_CXXCPP
13787 ac_cv_prog_CXXCPP=$CXXCPP
13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13790 printf "%s\n" "$CXXCPP" >&6; }
13791 ac_preproc_ok=false
13792 for ac_cxx_preproc_warn_flag in '' yes
13794 # Use a header file that comes with gcc, so configuring glibc
13795 # with a fresh cross-compiler works.
13796 # On the NeXT, cc -E runs the code through the compiler's parser,
13797 # not just through cpp. "Syntax error" is here to catch this case.
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13800 #include <limits.h>
13803 if ac_fn_cxx_try_cpp "$LINENO"
13807 # Broken: fails on valid input.
13810 rm -f conftest.err conftest.i conftest.$ac_ext
13812 # OK, works on sane cases. Now check whether nonexistent headers
13813 # can be detected and how.
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #include <ac_nonexistent.h>
13818 if ac_fn_cxx_try_cpp "$LINENO"
13820 # Broken: success on invalid input.
13823 # Passes both tests.
13827 rm -f conftest.err conftest.i conftest.$ac_ext
13830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13831 rm -f conftest.i conftest.err conftest.$ac_ext
13836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13837 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13838 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13839 See \`config.log' for more details" "$LINENO" 5; }
13843 ac_cpp='$CPP $CPPFLAGS'
13844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13849 _lt_caught_CXX_error=yes
13853 ac_cpp='$CXXCPP $CPPFLAGS'
13854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13858 archive_cmds_need_lc_CXX=no
13859 allow_undefined_flag_CXX=
13860 always_export_symbols_CXX=no
13861 archive_expsym_cmds_CXX=
13862 compiler_needs_object_CXX=no
13863 export_dynamic_flag_spec_CXX=
13864 hardcode_direct_CXX=no
13865 hardcode_direct_absolute_CXX=no
13866 hardcode_libdir_flag_spec_CXX=
13867 hardcode_libdir_separator_CXX=
13868 hardcode_minus_L_CXX=no
13869 hardcode_shlibpath_var_CXX=unsupported
13870 hardcode_automatic_CXX=no
13871 inherit_rpath_CXX=no
13873 module_expsym_cmds_CXX=
13874 link_all_deplibs_CXX=unknown
13875 old_archive_cmds_CXX=$old_archive_cmds
13876 reload_flag_CXX=$reload_flag
13877 reload_cmds_CXX=$reload_cmds
13878 no_undefined_flag_CXX=
13879 whole_archive_flag_spec_CXX=
13880 enable_shared_with_static_runtimes_CXX=no
13882 # Source file extension for C++ test sources.
13885 # Object file extension for compiled C++ test sources.
13889 # No sense in running all these tests if we already determined that
13890 # the CXX compiler isn't working. Some variables (like enable_shared)
13891 # are currently assumed to apply to all compilers on this platform,
13892 # and will be corrupted by setting them based on a non-working compiler.
13893 if test yes != "$_lt_caught_CXX_error"; then
13894 # Code to be used in simple compile tests
13895 lt_simple_compile_test_code="int some_variable = 0;"
13897 # Code to be used in simple link tests
13898 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13900 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13907 # If no C compiler was specified, use CC.
13910 # If no C compiler flags were specified, use CFLAGS.
13911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13913 # Allow CC to be a program name with arguments.
13917 # save warnings/boilerplate of simple test code
13918 ac_outfile=conftest.$ac_objext
13919 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13920 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13921 _lt_compiler_boilerplate=`cat conftest.err`
13924 ac_outfile=conftest.$ac_objext
13925 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13926 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13927 _lt_linker_boilerplate=`cat conftest.err`
13931 # Allow CC to be a program name with arguments.
13933 lt_save_CFLAGS=$CFLAGS
13937 lt_save_with_gnu_ld=$with_gnu_ld
13938 lt_save_path_LD=$lt_cv_path_LD
13939 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13940 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13942 $as_unset lt_cv_prog_gnu_ld
13944 if test -n "${lt_cv_path_LDCXX+set}"; then
13945 lt_cv_path_LD=$lt_cv_path_LDCXX
13947 $as_unset lt_cv_path_LD
13949 test -z "${LDCXX+set}" || LD=$LDCXX
13954 func_cc_basename $compiler
13955 cc_basename=$func_cc_basename_result
13958 if test -n "$compiler"; then
13959 # We don't want -fno-exception when compiling C++ code, so set the
13960 # no_builtin_flag separately
13961 if test yes = "$GXX"; then
13962 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13964 lt_prog_compiler_no_builtin_flag_CXX=
13967 if test yes = "$GXX"; then
13968 # Set up default GNU C++ configuration
13972 # Check whether --with-gnu-ld was given.
13973 if test ${with_gnu_ld+y}
13975 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13981 if test yes = "$GCC"; then
13982 # Check if gcc -print-prog-name=ld gives a path.
13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13984 printf %s "checking for ld used by $CC... " >&6; }
13987 # gcc leaves a trailing carriage return, which upsets mingw
13988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13993 # Accept absolute paths.
13995 re_direlt='/[^/][^/]*/\.\./'
13996 # Canonicalize the pathname of ld
13997 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13998 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13999 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14001 test -z "$LD" && LD=$ac_prog
14004 # If it fails, then pretend we aren't using GCC.
14008 # If it is relative, then search for the first ld in PATH.
14009 with_gnu_ld=unknown
14012 elif test yes = "$with_gnu_ld"; then
14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14014 printf %s "checking for GNU ld... " >&6; }
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14017 printf %s "checking for non-GNU ld... " >&6; }
14019 if test ${lt_cv_path_LD+y}
14021 printf %s "(cached) " >&6
14023 if test -z "$LD"; then
14024 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14025 for ac_dir in $PATH; do
14027 test -z "$ac_dir" && ac_dir=.
14028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14029 lt_cv_path_LD=$ac_dir/$ac_prog
14030 # Check to see if the program is GNU ld. I'd rather use --version,
14031 # but apparently some variants of GNU ld only accept -v.
14032 # Break only if it was the GNU/non-GNU ld that we prefer.
14033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14034 *GNU* | *'with BFD'*)
14035 test no != "$with_gnu_ld" && break
14038 test yes != "$with_gnu_ld" && break
14045 lt_cv_path_LD=$LD # Let the user override the test with a path.
14050 if test -n "$LD"; then
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14052 printf "%s\n" "$LD" >&6; }
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14055 printf "%s\n" "no" >&6; }
14057 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14059 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14060 if test ${lt_cv_prog_gnu_ld+y}
14062 printf %s "(cached) " >&6
14064 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14065 case `$LD -v 2>&1 </dev/null` in
14066 *GNU* | *'with BFD'*)
14067 lt_cv_prog_gnu_ld=yes
14070 lt_cv_prog_gnu_ld=no
14074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14075 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14076 with_gnu_ld=$lt_cv_prog_gnu_ld
14084 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14085 # archiving commands below assume that GNU ld is being used.
14086 if test yes = "$with_gnu_ld"; then
14087 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14088 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'
14090 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14091 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14093 # If archive_cmds runs LD, not CC, wlarc should be empty
14094 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14095 # investigate it a little bit more. (MM)
14098 # ancient GNU ld didn't support --whole-archive et. al.
14099 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14100 $GREP 'no-whole-archive' > /dev/null; then
14101 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14103 whole_archive_flag_spec_CXX=
14109 # A generic and very simple default shared library creation
14110 # command for GNU C++ for the case where it uses the native
14111 # linker, instead of GNU ld. If possible, this setting should
14112 # overridden to take advantage of the native linker features on
14113 # the platform it is being used on.
14114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14117 # Commands to make compiler produce verbose output that lists
14118 # what "hidden" libraries, object files and flags are used when
14119 # linking a shared library.
14120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14128 # PORTME: fill in a description of your system's C++ link characteristics
14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14130 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14134 # FIXME: insert proper C++ library support
14138 if test ia64 = "$host_cpu"; then
14139 # On IA64, the linker does run time linking by default, so we don't
14140 # have to do anything special.
14141 aix_use_runtimelinking=no
14142 exp_sym_flag='-Bexport'
14145 aix_use_runtimelinking=no
14147 # Test if we are trying to use run time linking or normal
14148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14149 # have runtime linking enabled, and use it for executables.
14150 # For shared libraries, we enable/disable runtime linking
14151 # depending on the kind of the shared library created -
14152 # when "with_aix_soname,aix_use_runtimelinking" is:
14153 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14154 # "aix,yes" lib.so shared, rtl:yes, for executables
14155 # lib.a static archive
14156 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14157 # lib.a(lib.so.V) shared, rtl:no, for executables
14158 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14159 # lib.a(lib.so.V) shared, rtl:no
14160 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14161 # lib.a static archive
14162 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14163 for ld_flag in $LDFLAGS; do
14166 aix_use_runtimelinking=yes
14171 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14172 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14173 # so we don't have lib.a shared libs to link our executables.
14174 # We have to force runtime linking in this case.
14175 aix_use_runtimelinking=yes
14176 LDFLAGS="$LDFLAGS -Wl,-brtl"
14181 exp_sym_flag='-bexport'
14182 no_entry_flag='-bnoentry'
14185 # When large executables or shared objects are built, AIX ld can
14186 # have problems creating the table of contents. If linking a library
14187 # or program results in "error TOC overflow" add -mminimal-toc to
14188 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14189 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14191 archive_cmds_CXX=''
14192 hardcode_direct_CXX=yes
14193 hardcode_direct_absolute_CXX=yes
14194 hardcode_libdir_separator_CXX=':'
14195 link_all_deplibs_CXX=yes
14196 file_list_spec_CXX='$wl-f,'
14197 case $with_aix_soname,$aix_use_runtimelinking in
14198 aix,*) ;; # no import file
14199 svr4,* | *,yes) # use import file
14200 # The Import File defines what to hardcode.
14201 hardcode_direct_CXX=no
14202 hardcode_direct_absolute_CXX=no
14206 if test yes = "$GXX"; then
14207 case $host_os in aix4.[012]|aix4.[012].*)
14208 # We only want to do this on AIX 4.2 and lower, the check
14209 # below for broken collect2 doesn't work under 4.3+
14210 collect2name=`$CC -print-prog-name=collect2`
14211 if test -f "$collect2name" &&
14212 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14214 # We have reworked collect2
14217 # We have old collect2
14218 hardcode_direct_CXX=unsupported
14219 # It fails to find uninstalled libraries when the uninstalled
14220 # path is not listed in the libpath. Setting hardcode_minus_L
14221 # to unsupported forces relinking
14222 hardcode_minus_L_CXX=yes
14223 hardcode_libdir_flag_spec_CXX='-L$libdir'
14224 hardcode_libdir_separator_CXX=
14227 shared_flag='-shared'
14228 if test yes = "$aix_use_runtimelinking"; then
14229 shared_flag=$shared_flag' $wl-G'
14231 # Need to ensure runtime linking is disabled for the traditional
14232 # shared library, or the linker may eventually find shared libraries
14233 # /with/ Import File - we do not want to mix them.
14234 shared_flag_aix='-shared'
14235 shared_flag_svr4='-shared $wl-G'
14238 if test ia64 = "$host_cpu"; then
14239 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14240 # chokes on -Wl,-G. The following line is correct:
14243 if test yes = "$aix_use_runtimelinking"; then
14244 shared_flag='$wl-G'
14246 shared_flag='$wl-bM:SRE'
14248 shared_flag_aix='$wl-bM:SRE'
14249 shared_flag_svr4='$wl-G'
14253 export_dynamic_flag_spec_CXX='$wl-bexpall'
14254 # It seems that -bexpall does not export symbols beginning with
14255 # underscore (_), so it is better to generate a list of symbols to
14257 always_export_symbols_CXX=yes
14258 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14259 # Warning - without using the other runtime loading flags (-brtl),
14260 # -berok will link without error, but may produce a broken library.
14261 # The "-G" linker flag allows undefined symbols.
14262 no_undefined_flag_CXX='-bernotok'
14263 # Determine the default libpath from the value encoded in an empty
14265 if test set = "${lt_cv_aix_libpath+set}"; then
14266 aix_libpath=$lt_cv_aix_libpath
14268 if test ${lt_cv_aix_libpath__CXX+y}
14270 printf %s "(cached) " >&6
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14283 if ac_fn_cxx_try_link "$LINENO"
14286 lt_aix_libpath_sed='
14287 /Import File Strings/,/^$/ {
14289 s/^0 *\([^ ]*\) *$/\1/
14293 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14294 # Check for a 64-bit object if we didn't find anything.
14295 if test -z "$lt_cv_aix_libpath__CXX"; then
14296 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14300 conftest$ac_exeext conftest.$ac_ext
14301 if test -z "$lt_cv_aix_libpath__CXX"; then
14302 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14307 aix_libpath=$lt_cv_aix_libpath__CXX
14310 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14312 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
14314 if test ia64 = "$host_cpu"; then
14315 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14316 allow_undefined_flag_CXX="-z nodefs"
14317 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"
14319 # Determine the default libpath from the value encoded in an
14320 # empty executable.
14321 if test set = "${lt_cv_aix_libpath+set}"; then
14322 aix_libpath=$lt_cv_aix_libpath
14324 if test ${lt_cv_aix_libpath__CXX+y}
14326 printf %s "(cached) " >&6
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14339 if ac_fn_cxx_try_link "$LINENO"
14342 lt_aix_libpath_sed='
14343 /Import File Strings/,/^$/ {
14345 s/^0 *\([^ ]*\) *$/\1/
14349 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14350 # Check for a 64-bit object if we didn't find anything.
14351 if test -z "$lt_cv_aix_libpath__CXX"; then
14352 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14356 conftest$ac_exeext conftest.$ac_ext
14357 if test -z "$lt_cv_aix_libpath__CXX"; then
14358 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14363 aix_libpath=$lt_cv_aix_libpath__CXX
14366 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14367 # Warning - without using the other run time loading flags,
14368 # -berok will link without error, but may produce a broken library.
14369 no_undefined_flag_CXX=' $wl-bernotok'
14370 allow_undefined_flag_CXX=' $wl-berok'
14371 if test yes = "$with_gnu_ld"; then
14372 # We only use this code for GNU lds that support --whole-archive.
14373 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14375 # Exported symbols can be pulled into shared objects from archives
14376 whole_archive_flag_spec_CXX='$convenience'
14378 archive_cmds_need_lc_CXX=yes
14379 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14380 # -brtl affects multiple linker settings, -berok does not and is overridden later
14381 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14382 if test svr4 != "$with_aix_soname"; then
14383 # This is similar to how AIX traditionally builds its shared
14384 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14385 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'
14387 if test aix != "$with_aix_soname"; then
14388 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'
14390 # used by -dlpreopen to get the symbols
14391 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14393 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14400 allow_undefined_flag_CXX=unsupported
14401 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14402 # support --undefined. This deserves some investigation. FIXME
14403 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14410 case $cc_basename in
14412 # FIXME: insert proper C++ library support
14418 cygwin* | mingw* | pw32* | cegcc*)
14419 case $GXX,$cc_basename in
14420 ,cl* | no,cl* | ,icl* | no,icl*)
14421 # Native MSVC or ICC
14422 # hardcode_libdir_flag_spec is actually meaningless, as there is
14423 # no search path for DLLs.
14424 hardcode_libdir_flag_spec_CXX=' '
14425 allow_undefined_flag_CXX=unsupported
14426 always_export_symbols_CXX=yes
14427 file_list_spec_CXX='@'
14428 # Tell ltmain to make .lib files, not .a files.
14430 # Tell ltmain to make .dll files, not .so files.
14432 # FIXME: Setting linknames here is a bad hack.
14433 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14434 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14435 cp "$export_symbols" "$output_objdir/$soname.def";
14436 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14438 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14440 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14442 # The linker will not automatically build a static lib if we build a DLL.
14443 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14444 enable_shared_with_static_runtimes_CXX=yes
14446 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14447 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14448 lt_tool_outputfile="@TOOL_OUTPUT@"~
14449 case $lt_outputfile in
14452 lt_outputfile=$lt_outputfile.exe
14453 lt_tool_outputfile=$lt_tool_outputfile.exe
14456 func_to_tool_file "$lt_outputfile"~
14457 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14458 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14459 $RM "$lt_outputfile.manifest";
14464 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14465 # as there is no search path for DLLs.
14466 hardcode_libdir_flag_spec_CXX='-L$libdir'
14467 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14468 allow_undefined_flag_CXX=unsupported
14469 always_export_symbols_CXX=no
14470 enable_shared_with_static_runtimes_CXX=yes
14472 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14473 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'
14474 # If the export-symbols file already is a .def file, use it as
14475 # is; otherwise, prepend EXPORTS...
14476 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14477 cp $export_symbols $output_objdir/$soname.def;
14479 echo EXPORTS > $output_objdir/$soname.def;
14480 cat $export_symbols >> $output_objdir/$soname.def;
14482 $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'
14489 darwin* | rhapsody*)
14492 archive_cmds_need_lc_CXX=no
14493 hardcode_direct_CXX=no
14494 hardcode_automatic_CXX=yes
14495 hardcode_shlibpath_var_CXX=unsupported
14496 if test yes = "$lt_cv_ld_force_load"; then
14497 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\"`'
14500 whole_archive_flag_spec_CXX=''
14502 link_all_deplibs_CXX=yes
14503 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14504 case $cc_basename in
14505 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14506 *) _lt_dar_can_shared=$GCC ;;
14508 if test yes = "$_lt_dar_can_shared"; then
14509 output_verbose_link_cmd=func_echo_all
14510 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"
14511 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14512 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"
14513 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"
14514 if test yes != "$lt_cv_apple_cc_single_mod"; then
14515 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"
14516 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"
14526 hardcode_libdir_flag_spec_CXX='-L$libdir'
14527 hardcode_minus_L_CXX=yes
14528 allow_undefined_flag_CXX=unsupported
14530 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14531 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14532 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14533 $ECHO EXPORTS >> $output_objdir/$libname.def~
14534 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14535 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14536 emximp -o $lib $output_objdir/$libname.def'
14537 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14538 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14539 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14540 $ECHO EXPORTS >> $output_objdir/$libname.def~
14541 prefix_cmds="$SED"~
14542 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14543 prefix_cmds="$prefix_cmds -e 1d";
14545 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14546 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14547 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14548 emximp -o $lib $output_objdir/$libname.def'
14549 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14550 enable_shared_with_static_runtimes_CXX=yes
14551 file_list_spec_CXX='@'
14555 case $cc_basename in
14557 # FIXME: insert proper C++ library support
14561 # Green Hills C++ Compiler
14562 # FIXME: insert proper C++ library support
14566 # FIXME: insert proper C++ library support
14573 # C++ shared libraries reported to be fairly broken before
14579 archive_cmds_need_lc_CXX=no
14582 freebsd* | dragonfly* | midnightbsd*)
14583 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14589 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14590 link_all_deplibs_CXX=yes
14594 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14595 hardcode_libdir_separator_CXX=:
14596 export_dynamic_flag_spec_CXX='$wl-E'
14597 hardcode_direct_CXX=yes
14598 hardcode_minus_L_CXX=yes # Not in the search PATH,
14599 # but as the default
14600 # location of the library.
14602 case $cc_basename in
14604 # FIXME: insert proper C++ library support
14608 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'
14609 # Commands to make compiler produce verbose output that lists
14610 # what "hidden" libraries, object files and flags are used when
14611 # linking a shared library.
14613 # There doesn't appear to be a way to prevent this compiler from
14614 # explicitly linking system object files so we need to strip them
14615 # from the output so that they don't get included in the library
14617 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"'
14620 if test yes = "$GXX"; then
14621 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'
14623 # FIXME: insert proper C++ library support
14631 if test no = "$with_gnu_ld"; then
14632 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14633 hardcode_libdir_separator_CXX=:
14639 export_dynamic_flag_spec_CXX='$wl-E'
14645 hardcode_direct_CXX=no
14646 hardcode_shlibpath_var_CXX=no
14649 hardcode_direct_CXX=yes
14650 hardcode_direct_absolute_CXX=yes
14651 hardcode_minus_L_CXX=yes # Not in the search PATH,
14652 # but as the default
14653 # location of the library.
14657 case $cc_basename in
14659 # FIXME: insert proper C++ library support
14665 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14668 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14671 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14674 # Commands to make compiler produce verbose output that lists
14675 # what "hidden" libraries, object files and flags are used when
14676 # linking a shared library.
14678 # There doesn't appear to be a way to prevent this compiler from
14679 # explicitly linking system object files so we need to strip them
14680 # from the output so that they don't get included in the library
14682 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"'
14685 if test yes = "$GXX"; then
14686 if test no = "$with_gnu_ld"; then
14689 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14692 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14695 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'
14700 # FIXME: insert proper C++ library support
14708 hardcode_direct_CXX=no
14709 hardcode_shlibpath_var_CXX=no
14710 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14711 export_dynamic_flag_spec_CXX='$wl-E'
14712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14713 # Instead, shared libraries are loaded at an image base (0x10000000 by
14714 # default) and relocated if they conflict, which is a slow very memory
14715 # consuming and fragmenting process. To avoid this, we pick a random,
14716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14717 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14718 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'
14719 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'
14722 case $cc_basename in
14725 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'
14727 # Archives containing C++ object files must be created using
14728 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14729 # necessary to make sure instantiated templates are included
14731 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14734 if test yes = "$GXX"; then
14735 if test no = "$with_gnu_ld"; then
14736 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'
14738 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'
14741 link_all_deplibs_CXX=yes
14744 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14745 hardcode_libdir_separator_CXX=:
14746 inherit_rpath_CXX=yes
14749 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14750 case $cc_basename in
14752 # Kuck and Associates, Inc. (KAI) C++ Compiler
14754 # KCC will only create a shared library if the output file
14755 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14756 # to its proper name (with version) after linking.
14757 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'
14758 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'
14759 # Commands to make compiler produce verbose output that lists
14760 # what "hidden" libraries, object files and flags are used when
14761 # linking a shared library.
14763 # There doesn't appear to be a way to prevent this compiler from
14764 # explicitly linking system object files so we need to strip them
14765 # from the output so that they don't get included in the library
14767 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"'
14769 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14770 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14772 # Archives containing C++ object files must be created using
14773 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14774 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14779 # version 8.0 and above of icpc choke on multiply defined symbols
14780 # if we add $predep_objects and $postdep_objects, however 7.1 and
14781 # earlier do not add the objects themselves.
14782 case `$CC -V 2>&1` in
14784 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14785 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'
14787 *) # Version 8.0 or newer
14790 ia64*) tmp_idyn=' -i_dynamic';;
14792 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14793 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'
14796 archive_cmds_need_lc_CXX=no
14797 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14798 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14799 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14802 # Portland Group C++ compiler
14804 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14805 prelink_cmds_CXX='tpldir=Template.dir~
14807 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14808 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14809 old_archive_cmds_CXX='tpldir=Template.dir~
14811 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14812 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14814 archive_cmds_CXX='tpldir=Template.dir~
14816 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14817 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14818 archive_expsym_cmds_CXX='tpldir=Template.dir~
14820 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14821 $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'
14823 *) # Version 6 and above use weak symbols
14824 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14825 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'
14829 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14830 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14831 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'
14835 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14836 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'
14838 runpath_var=LD_RUN_PATH
14839 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14840 hardcode_libdir_separator_CXX=:
14842 # Commands to make compiler produce verbose output that lists
14843 # what "hidden" libraries, object files and flags are used when
14844 # linking a shared library.
14846 # There doesn't appear to be a way to prevent this compiler from
14847 # explicitly linking system object files so we need to strip them
14848 # from the output so that they don't get included in the library
14850 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'
14852 xl* | mpixl* | bgxl*)
14853 # IBM XL 8.0 on PPC, with GNU ld
14854 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14855 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14856 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14857 if test yes = "$supports_anon_versioning"; then
14858 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14859 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14860 echo "local: *; };" >> $output_objdir/$libname.ver~
14861 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14865 case `$CC -V 2>&1 | $SED 5q` in
14868 no_undefined_flag_CXX=' -zdefs'
14869 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14870 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'
14871 hardcode_libdir_flag_spec_CXX='-R$libdir'
14872 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'
14873 compiler_needs_object_CXX=yes
14875 # Not sure whether something based on
14876 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14878 output_verbose_link_cmd='func_echo_all'
14880 # Archives containing C++ object files must be created using
14881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14882 # necessary to make sure instantiated templates are included
14884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14892 # FIXME: insert proper C++ library support
14897 # FIXME: insert proper C++ library support
14902 case $cc_basename in
14904 # FIXME: insert proper C++ library support
14908 # FIXME: insert proper C++ library support
14915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14916 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14918 hardcode_libdir_flag_spec_CXX='-R$libdir'
14919 hardcode_direct_CXX=yes
14920 hardcode_shlibpath_var_CXX=no
14922 # Workaround some broken pre-1.5 toolchains
14923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14930 openbsd* | bitrig*)
14931 if test -f /usr/libexec/ld.so; then
14932 hardcode_direct_CXX=yes
14933 hardcode_shlibpath_var_CXX=no
14934 hardcode_direct_absolute_CXX=yes
14935 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14936 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14938 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14939 export_dynamic_flag_spec_CXX='$wl-E'
14940 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14942 output_verbose_link_cmd=func_echo_all
14948 osf3* | osf4* | osf5*)
14949 case $cc_basename in
14951 # Kuck and Associates, Inc. (KAI) C++ Compiler
14953 # KCC will only create a shared library if the output file
14954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14955 # to its proper name (with version) after linking.
14956 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'
14958 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14959 hardcode_libdir_separator_CXX=:
14961 # Archives containing C++ object files must be created using
14962 # the KAI C++ compiler.
14964 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14965 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14969 # Rational C++ 2.4.1
14970 # FIXME: insert proper C++ library support
14976 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14977 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'
14978 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14981 allow_undefined_flag_CXX=' -expect_unresolved \*'
14982 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'
14983 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14984 echo "-hidden">> $lib.exp~
14985 $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~
14987 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14991 hardcode_libdir_separator_CXX=:
14993 # Commands to make compiler produce verbose output that lists
14994 # what "hidden" libraries, object files and flags are used when
14995 # linking a shared library.
14997 # There doesn't appear to be a way to prevent this compiler from
14998 # explicitly linking system object files so we need to strip them
14999 # from the output so that they don't get included in the library
15001 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"'
15004 if test yes,no = "$GXX,$with_gnu_ld"; then
15005 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15008 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'
15011 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'
15015 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15016 hardcode_libdir_separator_CXX=:
15018 # Commands to make compiler produce verbose output that lists
15019 # what "hidden" libraries, object files and flags are used when
15020 # linking a shared library.
15021 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15024 # FIXME: insert proper C++ library support
15032 # FIXME: insert proper C++ library support
15037 case $cc_basename in
15040 # FIXME: insert proper C++ library support
15045 # FIXME: insert proper C++ library support
15049 # FIXME: insert proper C++ library support
15056 case $cc_basename in
15058 # Sun C++ 4.2, 5.x and Centerline C++
15059 archive_cmds_need_lc_CXX=yes
15060 no_undefined_flag_CXX=' -zdefs'
15061 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15062 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15063 $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'
15065 hardcode_libdir_flag_spec_CXX='-R$libdir'
15066 hardcode_shlibpath_var_CXX=no
15068 solaris2.[0-5] | solaris2.[0-5].*) ;;
15070 # The compiler driver will combine and reorder linker options,
15071 # but understands '-z linker_flag'.
15072 # Supported since Solaris 2.6 (maybe 2.5.1?)
15073 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15076 link_all_deplibs_CXX=yes
15078 output_verbose_link_cmd='func_echo_all'
15080 # Archives containing C++ object files must be created using
15081 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15082 # necessary to make sure instantiated templates are included
15084 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15087 # Green Hills C++ Compiler
15088 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15090 # The C++ compiler must be used to create the archive.
15091 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15094 # GNU C++ compiler with Solaris linker
15095 if test yes,no = "$GXX,$with_gnu_ld"; then
15096 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15097 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15098 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15099 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15100 $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'
15102 # Commands to make compiler produce verbose output that lists
15103 # what "hidden" libraries, object files and flags are used when
15104 # linking a shared library.
15105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15107 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15109 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15110 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15111 $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'
15113 # Commands to make compiler produce verbose output that lists
15114 # what "hidden" libraries, object files and flags are used when
15115 # linking a shared library.
15116 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15119 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15121 solaris2.[0-5] | solaris2.[0-5].*) ;;
15123 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15132 no_undefined_flag_CXX='$wl-z,text'
15133 archive_cmds_need_lc_CXX=no
15134 hardcode_shlibpath_var_CXX=no
15135 runpath_var='LD_RUN_PATH'
15137 case $cc_basename in
15139 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15140 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15143 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15144 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15149 sysv5* | sco3.2v5* | sco5v6*)
15150 # Note: We CANNOT use -z defs as we might desire, because we do not
15151 # link with -lc, and that would cause any symbols used from libc to
15152 # always be unresolved, which means just about no library would
15153 # ever link correctly. If we're not using GNU ld we use -z text
15154 # though, which does catch some bad symbols but isn't as heavy-handed
15156 no_undefined_flag_CXX='$wl-z,text'
15157 allow_undefined_flag_CXX='$wl-z,nodefs'
15158 archive_cmds_need_lc_CXX=no
15159 hardcode_shlibpath_var_CXX=no
15160 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15161 hardcode_libdir_separator_CXX=':'
15162 link_all_deplibs_CXX=yes
15163 export_dynamic_flag_spec_CXX='$wl-Bexport'
15164 runpath_var='LD_RUN_PATH'
15166 case $cc_basename in
15168 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15171 '"$old_archive_cmds_CXX"
15172 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15173 '"$reload_cmds_CXX"
15176 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15177 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15183 case $cc_basename in
15185 # NonStop-UX NCC 3.20
15186 # FIXME: insert proper C++ library support
15190 # FIXME: insert proper C++ library support
15197 # FIXME: insert proper C++ library support
15202 # FIXME: insert proper C++ library support
15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15208 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15209 test no = "$ld_shlibs_CXX" && can_build_shared=no
15215 ## There is no encapsulation within the following macros, do not change
15216 ## the running order or otherwise move them around unless you know exactly
15217 ## what you are doing...
15218 # Dependencies to place before and after the object being linked:
15219 predep_objects_CXX=
15220 postdep_objects_CXX=
15223 compiler_lib_search_path_CXX=
15225 cat > conftest.$ac_ext <<_LT_EOF
15229 Foo (void) { a = 0; }
15236 _lt_libdeps_save_CFLAGS=$CFLAGS
15237 case "$CC $CFLAGS " in #(
15238 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15239 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15240 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15244 (eval $ac_compile) 2>&5
15246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15247 test $ac_status = 0; }; then
15248 # Parse the compiler output and extract the necessary
15249 # objects, libraries and library flags.
15251 # Sentinel used to keep track of whether or not we are before
15252 # the conftest object file.
15253 pre_test_object_deps_done=no
15255 for p in `eval "$output_verbose_link_cmd"`; do
15259 # Some compilers place space between "-{L,R}" and the path.
15260 # Remove the space.
15261 if test x-L = "$p" ||
15262 test x-R = "$p"; then
15267 # Expand the sysroot to ease extracting the directories later.
15268 if test -z "$prev"; then
15270 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15271 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15272 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15276 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15278 if test no = "$pre_test_object_deps_done"; then
15281 # Internal compiler library paths should come after those
15282 # provided the user. The postdeps already come after the
15283 # user supplied libs so there is no need to process them.
15284 if test -z "$compiler_lib_search_path_CXX"; then
15285 compiler_lib_search_path_CXX=$prev$p
15287 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15290 # The "-l" case would never come before the object being
15291 # linked, so don't bother handling this case.
15294 if test -z "$postdeps_CXX"; then
15295 postdeps_CXX=$prev$p
15297 postdeps_CXX="${postdeps_CXX} $prev$p"
15303 *.lto.$objext) ;; # Ignore GCC LTO objects
15305 # This assumes that the test object file only shows up
15306 # once in the compiler output.
15307 if test "$p" = "conftest.$objext"; then
15308 pre_test_object_deps_done=yes
15312 if test no = "$pre_test_object_deps_done"; then
15313 if test -z "$predep_objects_CXX"; then
15314 predep_objects_CXX=$p
15316 predep_objects_CXX="$predep_objects_CXX $p"
15319 if test -z "$postdep_objects_CXX"; then
15320 postdep_objects_CXX=$p
15322 postdep_objects_CXX="$postdep_objects_CXX $p"
15327 *) ;; # Ignore the rest.
15335 echo "libtool.m4: error: problem compiling CXX test program"
15338 $RM -f confest.$objext
15339 CFLAGS=$_lt_libdeps_save_CFLAGS
15341 # PORTME: override above test on systems where it is broken
15344 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15345 # hack all around it, let's just trust "g++" to DTRT.
15346 predep_objects_CXX=
15347 postdep_objects_CXX=
15353 case " $postdeps_CXX " in
15354 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15356 compiler_lib_search_dirs_CXX=
15357 if test -n "${compiler_lib_search_path_CXX}"; then
15358 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15391 lt_prog_compiler_wl_CXX=
15392 lt_prog_compiler_pic_CXX=
15393 lt_prog_compiler_static_CXX=
15396 # C++ specific cases for pic, static, wl, etc.
15397 if test yes = "$GXX"; then
15398 lt_prog_compiler_wl_CXX='-Wl,'
15399 lt_prog_compiler_static_CXX='-static'
15403 # All AIX code is PIC.
15404 if test ia64 = "$host_cpu"; then
15405 # AIX 5 now supports IA64 processor
15406 lt_prog_compiler_static_CXX='-Bstatic'
15408 lt_prog_compiler_pic_CXX='-fPIC'
15414 # see comment about AmigaOS4 .so support
15415 lt_prog_compiler_pic_CXX='-fPIC'
15418 # FIXME: we need at least 68020 code to build shared libraries, but
15419 # adding the '-m68020' flag to GCC prevents building anything better,
15421 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15426 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15427 # PIC is the default for these OSes.
15429 mingw* | cygwin* | os2* | pw32* | cegcc*)
15430 # This hack is so that the source file can tell whether it is being
15431 # built for inclusion in a dll (and should export symbols for example).
15432 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15433 # (--disable-auto-import) libraries
15434 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15437 lt_prog_compiler_static_CXX='$wl-static'
15441 darwin* | rhapsody*)
15442 # PIC is the default on this platform
15443 # Common symbols not allowed in MH_DYLIB files
15444 lt_prog_compiler_pic_CXX='-fno-common'
15447 # DJGPP does not support shared libraries at all
15448 lt_prog_compiler_pic_CXX=
15451 # PIC is the default for Haiku.
15452 # The "-static" flag exists, but is broken.
15453 lt_prog_compiler_static_CXX=
15456 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15457 # Instead, we relocate shared libraries at runtime.
15460 if test -d /usr/nec; then
15461 lt_prog_compiler_pic_CXX=-Kconform_pic
15465 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15466 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15467 # sets the default TLS model and affects inlining.
15472 lt_prog_compiler_pic_CXX='-fPIC'
15477 # QNX uses GNU C++, but need to define -shared option too, otherwise
15478 # it will coredump.
15479 lt_prog_compiler_pic_CXX='-fPIC -shared'
15482 lt_prog_compiler_pic_CXX='-fPIC'
15488 # All AIX code is PIC.
15489 if test ia64 = "$host_cpu"; then
15490 # AIX 5 now supports IA64 processor
15491 lt_prog_compiler_static_CXX='-Bstatic'
15493 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15497 case $cc_basename in
15499 # Green Hills C++ Compiler
15500 # _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"
15504 mingw* | cygwin* | os2* | pw32* | cegcc*)
15505 # This hack is so that the source file can tell whether it is being
15506 # built for inclusion in a dll (and should export symbols for example).
15507 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15510 case $cc_basename in
15512 lt_prog_compiler_pic_CXX='-KPIC'
15515 # Green Hills C++ Compiler
15516 lt_prog_compiler_pic_CXX='-pic'
15522 freebsd* | dragonfly* | midnightbsd*)
15523 # FreeBSD uses GNU C++
15525 hpux9* | hpux10* | hpux11*)
15526 case $cc_basename in
15528 lt_prog_compiler_wl_CXX='-Wl,'
15529 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15530 if test ia64 != "$host_cpu"; then
15531 lt_prog_compiler_pic_CXX='+Z'
15535 lt_prog_compiler_wl_CXX='-Wl,'
15536 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15542 lt_prog_compiler_pic_CXX='+Z'
15551 # This is c89, which is MS Visual C++ (no shared libs)
15552 # Anyone wants to do a port?
15554 irix5* | irix6* | nonstopux*)
15555 case $cc_basename in
15557 lt_prog_compiler_wl_CXX='-Wl,'
15558 lt_prog_compiler_static_CXX='-non_shared'
15559 # CC pic flag -KPIC is the default.
15565 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15566 case $cc_basename in
15569 lt_prog_compiler_wl_CXX='--backend -Wl,'
15570 lt_prog_compiler_pic_CXX='-fPIC'
15573 # old Intel C++ for x86_64, which still supported -KPIC.
15574 lt_prog_compiler_wl_CXX='-Wl,'
15575 lt_prog_compiler_pic_CXX='-KPIC'
15576 lt_prog_compiler_static_CXX='-static'
15579 # Intel C++, used to be incompatible with GCC.
15580 # ICC 10 doesn't accept -KPIC any more.
15581 lt_prog_compiler_wl_CXX='-Wl,'
15582 lt_prog_compiler_pic_CXX='-fPIC'
15583 lt_prog_compiler_static_CXX='-static'
15586 # Portland Group C++ compiler
15587 lt_prog_compiler_wl_CXX='-Wl,'
15588 lt_prog_compiler_pic_CXX='-fpic'
15589 lt_prog_compiler_static_CXX='-Bstatic'
15593 # Make sure the PIC flag is empty. It appears that all Alpha
15594 # Linux and Compaq Tru64 Unix objects are PIC.
15595 lt_prog_compiler_pic_CXX=
15596 lt_prog_compiler_static_CXX='-non_shared'
15598 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15599 # IBM XL 8.0, 9.0 on PPC and BlueGene
15600 lt_prog_compiler_wl_CXX='-Wl,'
15601 lt_prog_compiler_pic_CXX='-qpic'
15602 lt_prog_compiler_static_CXX='-qstaticlink'
15605 case `$CC -V 2>&1 | $SED 5q` in
15608 lt_prog_compiler_pic_CXX='-KPIC'
15609 lt_prog_compiler_static_CXX='-Bstatic'
15610 lt_prog_compiler_wl_CXX='-Qoption ld '
15621 case $cc_basename in
15623 lt_prog_compiler_pic_CXX='-W c,exportall'
15632 # QNX uses GNU C++, but need to define -shared option too, otherwise
15633 # it will coredump.
15634 lt_prog_compiler_pic_CXX='-fPIC -shared'
15636 osf3* | osf4* | osf5*)
15637 case $cc_basename in
15639 lt_prog_compiler_wl_CXX='--backend -Wl,'
15642 # Rational C++ 2.4.1
15643 lt_prog_compiler_pic_CXX='-pic'
15646 # Digital/Compaq C++
15647 lt_prog_compiler_wl_CXX='-Wl,'
15648 # Make sure the PIC flag is empty. It appears that all Alpha
15649 # Linux and Compaq Tru64 Unix objects are PIC.
15650 lt_prog_compiler_pic_CXX=
15651 lt_prog_compiler_static_CXX='-non_shared'
15660 case $cc_basename in
15662 # Sun C++ 4.2, 5.x and Centerline C++
15663 lt_prog_compiler_pic_CXX='-KPIC'
15664 lt_prog_compiler_static_CXX='-Bstatic'
15665 lt_prog_compiler_wl_CXX='-Qoption ld '
15668 # Green Hills C++ Compiler
15669 lt_prog_compiler_pic_CXX='-PIC'
15676 case $cc_basename in
15679 lt_prog_compiler_pic_CXX='-pic'
15680 lt_prog_compiler_static_CXX='-Bstatic'
15684 lt_prog_compiler_pic_CXX='-pic'
15690 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15691 case $cc_basename in
15693 lt_prog_compiler_wl_CXX='-Wl,'
15694 lt_prog_compiler_pic_CXX='-KPIC'
15695 lt_prog_compiler_static_CXX='-Bstatic'
15700 case $cc_basename in
15702 # NonStop-UX NCC 3.20
15703 lt_prog_compiler_pic_CXX='-KPIC'
15712 lt_prog_compiler_can_build_shared_CXX=no
15718 # For platforms that do not support PIC, -DPIC is meaningless:
15720 lt_prog_compiler_pic_CXX=
15723 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15728 printf %s "checking for $compiler option to produce PIC... " >&6; }
15729 if test ${lt_cv_prog_compiler_pic_CXX+y}
15731 printf %s "(cached) " >&6
15733 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15736 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15737 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15740 # Check to make sure the PIC flag actually works.
15742 if test -n "$lt_prog_compiler_pic_CXX"; then
15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15744 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15745 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15747 printf %s "(cached) " >&6
15749 lt_cv_prog_compiler_pic_works_CXX=no
15750 ac_outfile=conftest.$ac_objext
15751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15752 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15753 # Insert the option either (1) after the last *FLAGS variable, or
15754 # (2) before a word containing "conftest.", or (3) at the end.
15755 # Note that $ac_compile itself does not contain backslashes and begins
15756 # with a dollar sign (not a hyphen), so the echo should work correctly.
15757 # The option is referenced via a variable to avoid confusing sed.
15758 lt_compile=`echo "$ac_compile" | $SED \
15759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15761 -e 's:$: $lt_compiler_flag:'`
15762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15763 (eval "$lt_compile" 2>conftest.err)
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 if (exit $ac_status) && test -s "$ac_outfile"; then
15768 # The compiler can only warn and ignore the option if not recognized
15769 # So say no if there are warnings other than the usual output.
15770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15773 lt_cv_prog_compiler_pic_works_CXX=yes
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15780 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15782 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15783 case $lt_prog_compiler_pic_CXX in
15785 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15788 lt_prog_compiler_pic_CXX=
15789 lt_prog_compiler_can_build_shared_CXX=no
15799 # Check to make sure the static flag actually works.
15801 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15803 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15804 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15806 printf %s "(cached) " >&6
15808 lt_cv_prog_compiler_static_works_CXX=no
15809 save_LDFLAGS=$LDFLAGS
15810 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15811 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15813 # The linker can only warn and ignore the option if not recognized
15814 # So say no if there are warnings
15815 if test -s conftest.err; then
15816 # Append any errors to the config.log.
15817 cat conftest.err 1>&5
15818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15820 if diff conftest.exp conftest.er2 >/dev/null; then
15821 lt_cv_prog_compiler_static_works_CXX=yes
15824 lt_cv_prog_compiler_static_works_CXX=yes
15828 LDFLAGS=$save_LDFLAGS
15831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15832 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15834 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15837 lt_prog_compiler_static_CXX=
15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15844 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15845 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15847 printf %s "(cached) " >&6
15849 lt_cv_prog_compiler_c_o_CXX=no
15850 $RM -r conftest 2>/dev/null
15854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15856 lt_compiler_flag="-o out/conftest2.$ac_objext"
15857 # Insert the option either (1) after the last *FLAGS variable, or
15858 # (2) before a word containing "conftest.", or (3) at the end.
15859 # Note that $ac_compile itself does not contain backslashes and begins
15860 # with a dollar sign (not a hyphen), so the echo should work correctly.
15861 lt_compile=`echo "$ac_compile" | $SED \
15862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15864 -e 's:$: $lt_compiler_flag:'`
15865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15866 (eval "$lt_compile" 2>out/conftest.err)
15868 cat out/conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15872 # The compiler can only warn and ignore the option if not recognized
15873 # So say no if there are warnings
15874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15877 lt_cv_prog_compiler_c_o_CXX=yes
15882 # SGI C++ compiler will create directory out/ii_files/ for
15883 # template instantiation
15884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15885 $RM out/* && rmdir out
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15892 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15897 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15898 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15900 printf %s "(cached) " >&6
15902 lt_cv_prog_compiler_c_o_CXX=no
15903 $RM -r conftest 2>/dev/null
15907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15909 lt_compiler_flag="-o out/conftest2.$ac_objext"
15910 # Insert the option either (1) after the last *FLAGS variable, or
15911 # (2) before a word containing "conftest.", or (3) at the end.
15912 # Note that $ac_compile itself does not contain backslashes and begins
15913 # with a dollar sign (not a hyphen), so the echo should work correctly.
15914 lt_compile=`echo "$ac_compile" | $SED \
15915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15917 -e 's:$: $lt_compiler_flag:'`
15918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15919 (eval "$lt_compile" 2>out/conftest.err)
15921 cat out/conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15925 # The compiler can only warn and ignore the option if not recognized
15926 # So say no if there are warnings
15927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15930 lt_cv_prog_compiler_c_o_CXX=yes
15935 # SGI C++ compiler will create directory out/ii_files/ for
15936 # template instantiation
15937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15938 $RM out/* && rmdir out
15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15945 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15950 hard_links=nottested
15951 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15952 # do not overwrite the value of need_locks provided by the user
15953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15954 printf %s "checking if we can lock with hard links... " >&6; }
15957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15959 ln conftest.a conftest.b 2>&5 || hard_links=no
15960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15962 printf "%s\n" "$hard_links" >&6; }
15963 if test no = "$hard_links"; then
15964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15965 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15975 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15977 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15978 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15981 # If we're using GNU nm, then we don't want the "-C" option.
15982 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15983 # Without the "-l" option, or with the "-B" option, AIX nm treats
15984 # weak defined symbols like other global defined symbols, whereas
15985 # GNU nm marks them as "W".
15986 # While the 'weak' keyword is ignored in the Export File, we need
15987 # it in the Import File for the 'aix-soname' feature, so we have
15988 # to replace the "-B" option with "-P" for AIX nm.
15989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15990 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'
15992 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15996 export_symbols_cmds_CXX=$ltdll_cmds
15998 cygwin* | mingw* | cegcc*)
15999 case $cc_basename in
16001 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16004 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'
16005 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16010 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16015 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16016 test no = "$ld_shlibs_CXX" && can_build_shared=no
16018 with_gnu_ld_CXX=$with_gnu_ld
16026 # Do we need to explicitly link libc?
16028 case "x$archive_cmds_need_lc_CXX" in
16030 # Assume -lc should be added
16031 archive_cmds_need_lc_CXX=yes
16033 if test yes,yes = "$GCC,$enable_shared"; then
16034 case $archive_cmds_CXX in
16036 # FIXME: we may have to deal with multi-command sequences.
16039 # Test whether the compiler implicitly links with -lc since on some
16040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16041 # to ld, don't add -lc before -lgcc.
16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16043 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16044 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16046 printf %s "(cached) " >&6
16049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16052 (eval $ac_compile) 2>&5
16054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16055 test $ac_status = 0; } 2>conftest.err; then
16058 libobjs=conftest.$ac_objext
16060 wl=$lt_prog_compiler_wl_CXX
16061 pic_flag=$lt_prog_compiler_pic_CXX
16067 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16068 allow_undefined_flag_CXX=
16069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16070 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16073 test $ac_status = 0; }
16075 lt_cv_archive_cmds_need_lc_CXX=no
16077 lt_cv_archive_cmds_need_lc_CXX=yes
16079 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16081 cat conftest.err 1>&5
16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16087 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16088 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16157 printf %s "checking dynamic linker characteristics... " >&6; }
16159 library_names_spec=
16160 libname_spec='lib$name'
16164 postuninstall_cmds=
16168 shlibpath_overrides_runpath=unknown
16170 dynamic_linker="$host_os ld.so"
16171 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16172 need_lib_prefix=unknown
16173 hardcode_into_libs=no
16175 # when you set need_version to no, make sure it does not cause -set_version
16176 # flags to be left without arguments
16177 need_version=unknown
16183 version_type=linux # correct to gnu/linux during the next big refactor
16184 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16185 shlibpath_var=LIBPATH
16187 # AIX 3 has no versioning support, so we append a major version to the name.
16188 soname_spec='$libname$release$shared_ext$major'
16192 version_type=linux # correct to gnu/linux during the next big refactor
16195 hardcode_into_libs=yes
16196 if test ia64 = "$host_cpu"; then
16197 # AIX 5 supports IA64
16198 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16199 shlibpath_var=LD_LIBRARY_PATH
16201 # With GCC up to 2.95.x, collect2 would create an import file
16202 # for dependence libraries. The import file would start with
16203 # the line '#! .'. This would cause the generated library to
16204 # depend on '.', always an invalid library. This was fixed in
16205 # development snapshots of GCC prior to 3.0.
16207 aix4 | aix4.[01] | aix4.[01].*)
16208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16210 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16213 can_build_shared=no
16217 # Using Import Files as archive members, it is possible to support
16218 # filename-based versioning of shared library archives on AIX. While
16219 # this would work for both with and without runtime linking, it will
16220 # prevent static linking of such archives. So we do filename-based
16221 # shared library versioning with .so extension only, which is used
16222 # when both runtime linking and shared linking is enabled.
16223 # Unfortunately, runtime linking may impact performance, so we do
16224 # not want this to be the default eventually. Also, we use the
16225 # versioned .so libs for executables only if there is the -brtl
16226 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16227 # To allow for filename-based versioning support, we need to create
16228 # libNAME.so.V as an archive file, containing:
16229 # *) an Import File, referring to the versioned filename of the
16230 # archive as well as the shared archive member, telling the
16231 # bitwidth (32 or 64) of that shared object, and providing the
16232 # list of exported symbols of that shared object, eventually
16233 # decorated with the 'weak' keyword
16234 # *) the shared object with the F_LOADONLY flag set, to really avoid
16235 # it being seen by the linker.
16236 # At run time we better use the real file rather than another symlink,
16237 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16239 case $with_aix_soname,$aix_use_runtimelinking in
16240 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16241 # soname into executable. Probably we can add versioning support to
16242 # collect2, so additional links can be useful in future.
16243 aix,yes) # traditional libtool
16244 dynamic_linker='AIX unversionable lib.so'
16245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16246 # instead of lib<name>.a to let people know that these are not
16247 # typical AIX shared libraries.
16248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16250 aix,no) # traditional AIX only
16251 dynamic_linker='AIX lib.a(lib.so.V)'
16252 # We preserve .a as extension for shared libraries through AIX4.2
16253 # and later when we are not doing run time linking.
16254 library_names_spec='$libname$release.a $libname.a'
16255 soname_spec='$libname$release$shared_ext$major'
16257 svr4,*) # full svr4 only
16258 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16259 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16260 # We do not specify a path in Import Files, so LIBPATH fires.
16261 shlibpath_overrides_runpath=yes
16263 *,yes) # both, prefer svr4
16264 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16265 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16266 # unpreferred sharedlib libNAME.a needs extra handling
16267 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"'
16268 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"'
16269 # We do not specify a path in Import Files, so LIBPATH fires.
16270 shlibpath_overrides_runpath=yes
16272 *,no) # both, prefer aix
16273 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16274 library_names_spec='$libname$release.a $libname.a'
16275 soname_spec='$libname$release$shared_ext$major'
16276 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16277 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)'
16278 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"'
16281 shlibpath_var=LIBPATH
16288 # Since July 2007 AmigaOS4 officially supports .so libraries.
16289 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16293 library_names_spec='$libname.ixlibrary $libname.a'
16294 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16295 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'
16301 library_names_spec='$libname$shared_ext'
16302 dynamic_linker="$host_os ld.so"
16303 shlibpath_var=LIBRARY_PATH
16307 version_type=linux # correct to gnu/linux during the next big refactor
16309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16310 soname_spec='$libname$release$shared_ext$major'
16311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16312 shlibpath_var=LD_LIBRARY_PATH
16313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16315 # the default ld.so.conf also contains /usr/contrib/lib and
16316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16317 # libtool to hard-code these into programs
16320 cygwin* | mingw* | pw32* | cegcc*)
16321 version_type=windows
16326 case $GCC,$cc_basename in
16329 library_names_spec='$libname.dll.a'
16330 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16331 postinstall_cmds='base_file=`basename \$file`~
16332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16333 dldir=$destdir/`dirname \$dlpath`~
16334 test -d \$dldir || mkdir -p \$dldir~
16335 $install_prog $dir/$dlname \$dldir/$dlname~
16336 chmod a+x \$dldir/$dlname~
16337 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16338 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16341 dlpath=$dir/\$dldll~
16343 shlibpath_overrides_runpath=yes
16347 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16348 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16352 # MinGW DLLs use traditional 'lib' prefix
16353 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16356 # pw32 DLLs use 'pw' prefix rather than 'lib'
16357 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16360 dynamic_linker='Win32 ld.exe'
16364 # Native MSVC or ICC
16365 libname_spec='$name'
16366 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16367 library_names_spec='$libname.dll.lib'
16371 sys_lib_search_path_spec=
16374 for lt_path in $LIB
16377 # Let DOS variable expansion print the short 8.3 style file name.
16378 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16379 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16382 # Convert to MSYS style.
16383 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16386 # Convert to unix form, then to dos form, then back to unix form
16387 # but this time dos style (no spaces!) so that the unix form looks
16388 # like /cygdrive/c/PROGRA~1:/cygdr...
16389 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16390 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16391 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16394 sys_lib_search_path_spec=$LIB
16395 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16396 # It is most probably a Windows format PATH.
16397 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16399 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16401 # FIXME: find the short name or the path components, as spaces are
16402 # common. (e.g. "Program Files" -> "PROGRA~1")
16406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16407 postinstall_cmds='base_file=`basename \$file`~
16408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16409 dldir=$destdir/`dirname \$dlpath`~
16410 test -d \$dldir || mkdir -p \$dldir~
16411 $install_prog $dir/$dlname \$dldir/$dlname'
16412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16413 dlpath=$dir/\$dldll~
16415 shlibpath_overrides_runpath=yes
16416 dynamic_linker='Win32 link.exe'
16420 # Assume MSVC and ICC wrapper
16421 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16422 dynamic_linker='Win32 ld.exe'
16425 # FIXME: first we should search . and the directory the executable is in
16429 darwin* | rhapsody*)
16430 dynamic_linker="$host_os dyld"
16431 version_type=darwin
16434 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16435 soname_spec='$libname$release$major$shared_ext'
16436 shlibpath_overrides_runpath=yes
16437 shlibpath_var=DYLD_LIBRARY_PATH
16438 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16440 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16444 version_type=linux # correct to gnu/linux during the next big refactor
16447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16448 soname_spec='$libname$release$shared_ext$major'
16449 shlibpath_var=LD_LIBRARY_PATH
16452 freebsd* | dragonfly* | midnightbsd*)
16453 # DragonFly does not have aout. When/if they implement a new
16454 # versioning mechanism, adjust this.
16455 if test -x /usr/bin/objformat; then
16456 objformat=`/usr/bin/objformat`
16459 freebsd[23].*) objformat=aout ;;
16460 *) objformat=elf ;;
16463 version_type=freebsd-$objformat
16464 case $version_type in
16466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16467 soname_spec='$libname$release$shared_ext$major'
16472 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16476 shlibpath_var=LD_LIBRARY_PATH
16479 shlibpath_overrides_runpath=yes
16481 freebsd3.[01]* | freebsdelf3.[01]*)
16482 shlibpath_overrides_runpath=yes
16483 hardcode_into_libs=yes
16485 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16486 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16487 shlibpath_overrides_runpath=no
16488 hardcode_into_libs=yes
16490 *) # from 4.6 on, and DragonFly
16491 shlibpath_overrides_runpath=yes
16492 hardcode_into_libs=yes
16498 version_type=linux # correct to gnu/linux during the next big refactor
16501 dynamic_linker="$host_os runtime_loader"
16502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16503 soname_spec='$libname$release$shared_ext$major'
16504 shlibpath_var=LIBRARY_PATH
16505 shlibpath_overrides_runpath=no
16506 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16507 hardcode_into_libs=yes
16510 hpux9* | hpux10* | hpux11*)
16511 # Give a soname corresponding to the major version so that dld.sl refuses to
16512 # link against other versions.
16519 hardcode_into_libs=yes
16520 dynamic_linker="$host_os dld.so"
16521 shlibpath_var=LD_LIBRARY_PATH
16522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16524 soname_spec='$libname$release$shared_ext$major'
16525 if test 32 = "$HPUX_IA64_MODE"; then
16526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16527 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16529 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16530 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16535 hardcode_into_libs=yes
16536 dynamic_linker="$host_os dld.sl"
16537 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16540 soname_spec='$libname$release$shared_ext$major'
16541 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16542 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16546 dynamic_linker="$host_os dld.sl"
16547 shlibpath_var=SHLIB_PATH
16548 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16550 soname_spec='$libname$release$shared_ext$major'
16553 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16554 postinstall_cmds='chmod 555 $lib'
16555 # or fails outright, so override atomically:
16556 install_override_mode=555
16560 version_type=linux # correct to gnu/linux during the next big refactor
16563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16564 soname_spec='$libname$release$shared_ext$major'
16565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16566 shlibpath_var=LD_LIBRARY_PATH
16567 shlibpath_overrides_runpath=no
16568 hardcode_into_libs=yes
16571 irix5* | irix6* | nonstopux*)
16573 nonstopux*) version_type=nonstopux ;;
16575 if test yes = "$lt_cv_prog_gnu_ld"; then
16576 version_type=linux # correct to gnu/linux during the next big refactor
16583 soname_spec='$libname$release$shared_ext$major'
16584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16586 irix5* | nonstopux*)
16587 libsuff= shlibsuff=
16590 case $LD in # libtool.m4 will add one of these switches to LD
16591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16592 libsuff= shlibsuff= libmagic=32-bit;;
16593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16594 libsuff=32 shlibsuff=N32 libmagic=N32;;
16595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16597 *) libsuff= shlibsuff= libmagic=never-match;;
16601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16602 shlibpath_overrides_runpath=no
16603 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16604 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16605 hardcode_into_libs=yes
16608 # No shared lib support for Linux oldld, aout, or coff.
16609 linux*oldld* | linux*aout* | linux*coff*)
16614 version_type=none # Android doesn't support versioned libraries.
16617 library_names_spec='$libname$release$shared_ext'
16618 soname_spec='$libname$release$shared_ext'
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes
16623 # This implies no fast_install, which is unacceptable.
16624 # Some rework will be needed to allow for fast_install
16625 # before this can be enabled.
16626 hardcode_into_libs=yes
16628 dynamic_linker='Android linker'
16629 # Don't embed -rpath directories since the linker doesn't support them.
16630 hardcode_libdir_flag_spec_CXX='-L$libdir'
16633 # This must be glibc/ELF.
16634 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16635 version_type=linux # correct to gnu/linux during the next big refactor
16638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16639 soname_spec='$libname$release$shared_ext$major'
16640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16641 shlibpath_var=LD_LIBRARY_PATH
16642 shlibpath_overrides_runpath=no
16644 # Some binutils ld are patched to set DT_RUNPATH
16645 if test ${lt_cv_shlibpath_overrides_runpath+y}
16647 printf %s "(cached) " >&6
16649 lt_cv_shlibpath_overrides_runpath=no
16650 save_LDFLAGS=$LDFLAGS
16651 save_libdir=$libdir
16652 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16653 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16665 if ac_fn_cxx_try_link "$LINENO"
16667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16669 lt_cv_shlibpath_overrides_runpath=yes
16672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16673 conftest$ac_exeext conftest.$ac_ext
16674 LDFLAGS=$save_LDFLAGS
16675 libdir=$save_libdir
16679 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16681 # This implies no fast_install, which is unacceptable.
16682 # Some rework will be needed to allow for fast_install
16683 # before this can be enabled.
16684 hardcode_into_libs=yes
16686 # Ideally, we could use ldconfig to report *all* directores which are
16687 # searched for libraries, however this is still not possible. Aside from not
16688 # being certain /sbin/ldconfig is available, command
16689 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16690 # even though it is searched at run-time. Try to do the best guess by
16691 # appending ld.so.conf contents (and includes) to the search path.
16692 if test -f /etc/ld.so.conf; then
16693 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' ' '`
16694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16697 # We used to test for /lib/ld.so.1 and disable shared libraries on
16698 # powerpc, because MkLinux only supported shared libraries with the
16699 # GNU dynamic linker. Since this was broken with cross compilers,
16700 # most powerpc-linux boxes support dynamic linking these days and
16701 # people can always --disable-shared, the test was removed, and we
16702 # assume the GNU/Linux dynamic linker is in use.
16703 dynamic_linker='GNU/Linux ld.so'
16710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16711 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16713 dynamic_linker='NetBSD (a.out) ld.so'
16715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16716 soname_spec='$libname$release$shared_ext$major'
16717 dynamic_linker='NetBSD ld.elf_so'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=yes
16721 hardcode_into_libs=yes
16725 version_type=linux # correct to gnu/linux during the next big refactor
16726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16727 shlibpath_var=LD_LIBRARY_PATH
16728 shlibpath_overrides_runpath=yes
16735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16736 soname_spec='$libname$release$shared_ext$major'
16737 shlibpath_var=LD_LIBRARY_PATH
16738 shlibpath_overrides_runpath=no
16739 hardcode_into_libs=yes
16740 dynamic_linker='ldqnx.so'
16743 openbsd* | bitrig*)
16745 sys_lib_dlsearch_path_spec=/usr/lib
16747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16752 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=yes
16759 libname_spec='$name'
16760 version_type=windows
16764 # OS/2 can only load a DLL with a base name of 8 characters or less.
16765 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16766 v=$($ECHO $release$versuffix | tr -d .-);
16767 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16768 $ECHO $n$v`$shared_ext'
16769 library_names_spec='${libname}_dll.$libext'
16770 dynamic_linker='OS/2 ld.exe'
16771 shlibpath_var=BEGINLIBPATH
16772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16774 postinstall_cmds='base_file=`basename \$file`~
16775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16776 dldir=$destdir/`dirname \$dlpath`~
16777 test -d \$dldir || mkdir -p \$dldir~
16778 $install_prog $dir/$dlname \$dldir/$dlname~
16779 chmod a+x \$dldir/$dlname~
16780 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16781 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16784 dlpath=$dir/\$dldll~
16788 osf3* | osf4* | osf5*)
16792 soname_spec='$libname$release$shared_ext$major'
16793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16794 shlibpath_var=LD_LIBRARY_PATH
16795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16804 version_type=linux # correct to gnu/linux during the next big refactor
16807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16808 soname_spec='$libname$release$shared_ext$major'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 shlibpath_overrides_runpath=yes
16811 hardcode_into_libs=yes
16812 # ldd complains unless libraries are executable
16813 postinstall_cmds='chmod +x $lib'
16818 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 shlibpath_overrides_runpath=yes
16822 if test yes = "$with_gnu_ld"; then
16829 version_type=linux # correct to gnu/linux during the next big refactor
16830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16831 soname_spec='$libname$release$shared_ext$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 case $host_vendor in
16835 shlibpath_overrides_runpath=no
16837 runpath_var=LD_RUN_PATH
16845 shlibpath_overrides_runpath=no
16846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16852 if test -d /usr/nec; then
16853 version_type=linux # correct to gnu/linux during the next big refactor
16854 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16855 soname_spec='$libname$shared_ext.$major'
16856 shlibpath_var=LD_LIBRARY_PATH
16860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16865 soname_spec='$libname$release$shared_ext$major'
16866 shlibpath_var=LD_LIBRARY_PATH
16867 shlibpath_overrides_runpath=yes
16868 hardcode_into_libs=yes
16869 if test yes = "$with_gnu_ld"; then
16870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16879 sys_lib_dlsearch_path_spec='/usr/lib'
16883 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16884 version_type=linux # correct to gnu/linux during the next big refactor
16887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 shlibpath_overrides_runpath=no
16890 hardcode_into_libs=yes
16894 version_type=linux # correct to gnu/linux during the next big refactor
16895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16896 soname_spec='$libname$release$shared_ext$major'
16897 shlibpath_var=LD_LIBRARY_PATH
16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16905 printf "%s\n" "$dynamic_linker" >&6; }
16906 test no = "$dynamic_linker" && can_build_shared=no
16908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16909 if test yes = "$GCC"; then
16910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16913 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16914 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16917 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16918 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16921 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16922 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16924 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16925 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16927 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16928 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16970 printf %s "checking how to hardcode library paths into programs... " >&6; }
16971 hardcode_action_CXX=
16972 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16973 test -n "$runpath_var_CXX" ||
16974 test yes = "$hardcode_automatic_CXX"; then
16976 # We can hardcode non-existent directories.
16977 if test no != "$hardcode_direct_CXX" &&
16978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16979 # have to relink, otherwise we might link with an installed library
16980 # when we should be linking with a yet-to-be-installed one
16981 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16982 test no != "$hardcode_minus_L_CXX"; then
16983 # Linking always hardcodes the temporary library directory.
16984 hardcode_action_CXX=relink
16986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16987 hardcode_action_CXX=immediate
16990 # We cannot hardcode anything, or else we can only hardcode existing
16992 hardcode_action_CXX=unsupported
16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16995 printf "%s\n" "$hardcode_action_CXX" >&6; }
16997 if test relink = "$hardcode_action_CXX" ||
16998 test yes = "$inherit_rpath_CXX"; then
16999 # Fast installation is not supported
17000 enable_fast_install=no
17001 elif test yes = "$shlibpath_overrides_runpath" ||
17002 test no = "$enable_shared"; then
17003 # Fast installation is not necessary
17004 enable_fast_install=needless
17013 fi # test -n "$compiler"
17016 CFLAGS=$lt_save_CFLAGS
17020 with_gnu_ld=$lt_save_with_gnu_ld
17021 lt_cv_path_LDCXX=$lt_cv_path_LD
17022 lt_cv_path_LD=$lt_save_path_LD
17023 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17024 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17025 fi # test yes != "$_lt_caught_CXX_error"
17028 ac_cpp='$CPP $CPPFLAGS'
17029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17047 ac_config_commands="$ac_config_commands libtool"
17052 # Only expand once:
17062 if test x"${PKG_CONFIG}" = x"" ; then
17063 for ac_prog in pkgconf pkg-config
17065 # Extract the first word of "$ac_prog", so it can be a program name with args.
17066 set dummy $ac_prog; ac_word=$2
17067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17068 printf %s "checking for $ac_word... " >&6; }
17069 if test ${ac_cv_path_PKG_CONFIG+y}
17071 printf %s "(cached) " >&6
17073 case $PKG_CONFIG in
17075 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17079 for as_dir in $PATH
17082 case $as_dir in #(((
17085 *) as_dir=$as_dir/ ;;
17087 for ac_exec_ext in '' $ac_executable_extensions; do
17088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17089 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17100 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17101 if test -n "$PKG_CONFIG"; then
17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17103 printf "%s\n" "$PKG_CONFIG" >&6; }
17105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17106 printf "%s\n" "no" >&6; }
17110 test -n "$PKG_CONFIG" && break
17114 # Extract the first word of "${PKG_CONFIG}", so it can be a program name with args.
17115 set dummy ${PKG_CONFIG}; ac_word=$2
17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17117 printf %s "checking for $ac_word... " >&6; }
17118 if test ${ac_cv_path_PKG_CONFIG+y}
17120 printf %s "(cached) " >&6
17122 case $PKG_CONFIG in
17124 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17128 for as_dir in $PATH
17131 case $as_dir in #(((
17134 *) as_dir=$as_dir/ ;;
17136 for ac_exec_ext in '' $ac_executable_extensions; do
17137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17138 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17150 if test -n "$PKG_CONFIG"; then
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17152 printf "%s\n" "$PKG_CONFIG" >&6; }
17154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155 printf "%s\n" "no" >&6; }
17160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pkg-config or pkgconf" >&5
17161 printf %s "checking for pkg-config or pkgconf... " >&6; }
17162 if test -x "${PKG_CONFIG}" ; then
17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${PKG_CONFIG}" >&5
17164 printf "%s\n" "${PKG_CONFIG}" >&6; }
17165 case "${PKG_CONFIG}" in
17167 _min_version="1.3.0"
17170 _min_version="0.23"
17173 _min_version="9.9.error"
17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that ${PKG_CONFIG} is at least version ${_min_version}" >&5
17177 printf %s "checking that ${PKG_CONFIG} is at least version ${_min_version}... " >&6; }
17178 _act_version=`"${PKG_CONFIG}" --version`
17179 if ! "${PKG_CONFIG}" --atleast-pkgconfig-version="${_min_version}" ; then
17182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_act_version}" >&5
17183 printf "%s\n" "${_act_version}" >&6; }
17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 printf "%s\n" "no" >&6; }
17189 if test x"${PKG_CONFIG}" = x"" ; then
17190 as_fn_error $? "pkg-config was not found or is too old" "$LINENO" 5
17193 # Check whether --with-pkgconfigdir was given.
17194 if test ${with_pkgconfigdir+y}
17196 withval=$with_pkgconfigdir; pkgconfigdir=$withval
17198 pkgconfigdir='${libdir}/pkgconfig'
17201 pkgconfigdir=$pkgconfigdir
17211 printf "%s\n" "#define LIB_MAJ $LIB_MAJ" >>confdefs.h
17214 # Check whether --enable-debug was given.
17215 if test ${enable_debug+y}
17217 enableval=$enable_debug;
17218 printf "%s\n" "#define OPENPAM_DEBUG 1" >>confdefs.h
17223 # Check whether --enable-unversioned-modules was given.
17224 if test ${enable_unversioned_modules+y}
17226 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"
17230 printf "%s\n" "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
17238 # Check whether --with-modules-dir was given.
17239 if test ${with_modules_dir+y}
17241 withval=$with_modules_dir; if test x"$withval" != x"no"
17244 OPENPAM_MODULES_DIR="$withval"
17246 printf "%s\n" "#define OPENPAM_MODULES_DIR \"${OPENPAM_MODULES_DIR%/}\"" >>confdefs.h
17253 if test x"$OPENPAM_MODULES_DIR" != x""; then
17254 CUSTOM_MODULES_DIR_TRUE=
17255 CUSTOM_MODULES_DIR_FALSE='#'
17257 CUSTOM_MODULES_DIR_TRUE='#'
17258 CUSTOM_MODULES_DIR_FALSE=
17263 # Check whether --with-doc was given.
17264 if test ${with_doc+y}
17271 if test x"$with_doc" = x"yes"; then
17281 # Check whether --with-pam-unix was given.
17282 if test ${with_pam_unix+y}
17284 withval=$with_pam_unix;
17289 if test x"$with_pam_unix" = x"yes"; then
17290 WITH_PAM_UNIX_TRUE=
17291 WITH_PAM_UNIX_FALSE='#'
17293 WITH_PAM_UNIX_TRUE='#'
17294 WITH_PAM_UNIX_FALSE=
17299 # Check whether --with-pamtest was given.
17300 if test ${with_pamtest+y}
17302 withval=$with_pamtest;
17307 if test x"$with_pamtest" = x"yes"; then
17309 WITH_PAMTEST_FALSE='#'
17311 WITH_PAMTEST_TRUE='#'
17312 WITH_PAMTEST_FALSE=
17317 # Check whether --with-su was given.
17318 if test ${with_su+y}
17325 if test x"$with_su" = x"yes"; then
17335 # Check whether --with-system-libpam was given.
17336 if test ${with_system_libpam+y}
17338 withval=$with_system_libpam;
17340 with_system_libpam=no
17343 if test x"$with_system_libpam" = x"yes"; then
17344 WITH_SYSTEM_LIBPAM_TRUE=
17345 WITH_SYSTEM_LIBPAM_FALSE='#'
17347 WITH_SYSTEM_LIBPAM_TRUE='#'
17348 WITH_SYSTEM_LIBPAM_FALSE=
17352 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
17353 if test "x$ac_cv_header_crypt_h" = xyes
17355 printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h
17360 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
17361 if test "x$ac_cv_func_asprintf" = xyes
17363 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
17366 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
17367 if test "x$ac_cv_func_vasprintf" = xyes
17369 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
17373 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
17374 if test "x$ac_cv_func_dlfunc" = xyes
17376 printf "%s\n" "#define HAVE_DLFUNC 1" >>confdefs.h
17379 ac_fn_c_check_func "$LINENO" "fdlopen" "ac_cv_func_fdlopen"
17380 if test "x$ac_cv_func_fdlopen" = xyes
17382 printf "%s\n" "#define HAVE_FDLOPEN 1" >>confdefs.h
17386 ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
17387 if test "x$ac_cv_func_fpurge" = xyes
17389 printf "%s\n" "#define HAVE_FPURGE 1" >>confdefs.h
17393 ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
17394 if test "x$ac_cv_func_setlogmask" = xyes
17396 printf "%s\n" "#define HAVE_SETLOGMASK 1" >>confdefs.h
17400 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17401 if test "x$ac_cv_func_strlcat" = xyes
17403 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
17406 ac_fn_c_check_func "$LINENO" "strlcmp" "ac_cv_func_strlcmp"
17407 if test "x$ac_cv_func_strlcmp" = xyes
17409 printf "%s\n" "#define HAVE_STRLCMP 1" >>confdefs.h
17412 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17413 if test "x$ac_cv_func_strlcpy" = xyes
17415 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
17418 ac_fn_c_check_func "$LINENO" "strlset" "ac_cv_func_strlset"
17419 if test "x$ac_cv_func_strlset" = xyes
17421 printf "%s\n" "#define HAVE_STRLSET 1" >>confdefs.h
17426 saved_LIBS="${LIBS}"
17428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17429 printf %s "checking for dlopen in -ldl... " >&6; }
17430 if test ${ac_cv_lib_dl_dlopen+y}
17432 printf %s "(cached) " >&6
17434 ac_check_lib_save_LIBS=$LIBS
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17439 /* Override any GCC internal prototype to avoid an error.
17440 Use char because int might match the return type of a GCC
17441 builtin and then its argument prototype would still apply. */
17451 if ac_fn_c_try_link "$LINENO"
17453 ac_cv_lib_dl_dlopen=yes
17455 ac_cv_lib_dl_dlopen=no
17457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17458 conftest$ac_exeext conftest.$ac_ext
17459 LIBS=$ac_check_lib_save_LIBS
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17462 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17463 if test "x$ac_cv_lib_dl_dlopen" = xyes
17465 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
17472 LIBS="${saved_LIBS}"
17475 saved_LIBS="${LIBS}"
17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
17478 printf %s "checking for pam_start in -lpam... " >&6; }
17479 if test ${ac_cv_lib_pam_pam_start+y}
17481 printf %s "(cached) " >&6
17483 ac_check_lib_save_LIBS=$LIBS
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17488 /* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17495 return pam_start ();
17500 if ac_fn_c_try_link "$LINENO"
17502 ac_cv_lib_pam_pam_start=yes
17504 ac_cv_lib_pam_pam_start=no
17506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17507 conftest$ac_exeext conftest.$ac_ext
17508 LIBS=$ac_check_lib_save_LIBS
17510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
17511 printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; }
17512 if test "x$ac_cv_lib_pam_pam_start" = xyes
17514 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h
17520 SYSTEM_LIBPAM="${LIBS}"
17521 LIBS="${saved_LIBS}"
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cryb-test is installed" >&5
17531 printf %s "checking if cryb-test is installed... " >&6; }
17532 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \"\${PKG_CONFIG}\" --exists --print-errors \"cryb-test\""; } >&5
17533 ("${PKG_CONFIG}" --exists --print-errors "cryb-test") 2>&5
17535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17536 test $ac_status = 0; } ; then
17537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17538 printf "%s\n" "yes" >&6; }
17539 ax_pc_cv_have_cryb_test=yes
17541 printf "%s\n" "#define HAVE_CRYB_TEST 1" >>confdefs.h
17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test version" >&5
17544 printf %s "checking cryb-test version... " >&6; }
17548 ax_pc_cv_cryb_test_version=`"${PKG_CONFIG}" --modversion cryb-test`
17550 CRYB_TEST_VERSION=$ax_pc_cv_cryb_test_version
17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_version:-unknown}" >&5
17553 printf "%s\n" "${ax_pc_cv_cryb_test_version:-unknown}" >&6; }
17554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test compiler flags" >&5
17555 printf %s "checking cryb-test compiler flags... " >&6; }
17559 ax_pc_cv_cryb_test_cflags=`"${PKG_CONFIG}" --cflags cryb-test`
17561 CRYB_TEST_CFLAGS=$ax_pc_cv_cryb_test_cflags
17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_cflags:-none}" >&5
17564 printf "%s\n" "${ax_pc_cv_cryb_test_cflags:-none}" >&6; }
17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cryb-test linker flags" >&5
17566 printf %s "checking cryb-test linker flags... " >&6; }
17570 ax_pc_cv_cryb_test_libs=`"${PKG_CONFIG}" --libs cryb-test`
17572 CRYB_TEST_LIBS=$ax_pc_cv_cryb_test_libs
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ax_pc_cv_cryb_test_libs:-none}" >&5
17575 printf "%s\n" "${ax_pc_cv_cryb_test_libs:-none}" >&6; }
17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cryb test framework found, unit tests enabled." >&5
17577 printf "%s\n" "$as_me: Cryb test framework found, unit tests enabled." >&6;}
17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580 printf "%s\n" "no" >&6; }
17581 ax_pc_cv_have_cryb_test=no
17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cryb test framework not found, unit tests disabled." >&5
17583 printf "%s\n" "$as_me: WARNING: Cryb test framework not found, unit tests disabled." >&2;}
17586 if test x"$ax_pc_cv_have_cryb_test" = x"yes"; then
17587 HAVE_CRYB_TEST_TRUE=
17588 HAVE_CRYB_TEST_FALSE='#'
17590 HAVE_CRYB_TEST_TRUE='#'
17591 HAVE_CRYB_TEST_FALSE=
17596 if test x"$CRYB_TEST_LIBS" != x""; then
17598 WITH_TEST_FALSE='#'
17605 # Check whether --enable-developer-warnings was given.
17606 if test ${enable_developer_warnings+y}
17608 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual"
17611 # Check whether --enable-debugging-symbols was given.
17612 if test ${enable_debugging_symbols+y}
17614 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
17617 # Check whether --enable-werror was given.
17618 if test ${enable_werror+y}
17620 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
17624 # Check whether --enable-code-coverage was given.
17625 if test ${enable_code_coverage+y}
17627 enableval=$enable_code_coverage;
17630 if test x"$enable_code_coverage" = x"yes"
17633 if test -z "$WITH_TEST_TRUE"; then :
17635 if test x"$ax_cv_c_compiler_vendor" = x"clang"
17638 CFLAGS="${CFLAGS} -fprofile-instr-generate -fcoverage-mapping"
17639 clang_code_coverage="yes"
17640 clang_ver=${CC#clang}
17645 as_fn_error $? "code coverage is only supported with clang" "$LINENO" 5
17649 printf "%s\n" "#define WITH_CODE_COVERAGE 1" >>confdefs.h
17651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: code coverage enabled" >&5
17652 printf "%s\n" "$as_me: code coverage enabled" >&6;}
17656 as_fn_error $? "code coverage requires unit tests" "$LINENO" 5
17661 if test x"$enable_code_coverage" = x"yes"; then
17662 WITH_CODE_COVERAGE_TRUE=
17663 WITH_CODE_COVERAGE_FALSE='#'
17665 WITH_CODE_COVERAGE_TRUE='#'
17666 WITH_CODE_COVERAGE_FALSE=
17669 if test x"$clang_code_coverage" = x"yes"; then
17670 CLANG_CODE_COVERAGE_TRUE=
17671 CLANG_CODE_COVERAGE_FALSE='#'
17673 CLANG_CODE_COVERAGE_TRUE='#'
17674 CLANG_CODE_COVERAGE_FALSE=
17678 ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile freebsd/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile misc/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_return/Makefile modules/pam_unix/Makefile t/Makefile"
17680 ac_config_files="$ac_config_files misc/coverity.sh"
17682 cat >confcache <<\_ACEOF
17683 # This file is a shell script that caches the results of configure
17684 # tests run on this system so they can be shared between configure
17685 # scripts and configure runs, see configure's option --config-cache.
17686 # It is not useful on other systems. If it contains results you don't
17687 # want to keep, you may remove or edit it.
17689 # config.status only pays attention to the cache file if you give it
17690 # the --recheck option to rerun configure.
17692 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17693 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17694 # following values.
17698 # The following way of writing the cache mishandles newlines in values,
17699 # but we know of no workaround that is simple, portable, and efficient.
17700 # So, we kill variables containing newlines.
17701 # Ultrix sh set writes to stderr and can't be redirected directly,
17702 # and sets the high bit in the cache file unless we assign to the vars.
17704 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17705 eval ac_val=\$$ac_var
17709 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17710 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17713 _ | IFS | as_nl) ;; #(
17714 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17715 *) { eval $ac_var=; unset $ac_var;} ;;
17721 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17722 *${as_nl}ac_space=\ *)
17723 # `set' does not quote correctly, so add quotes: double-quote
17724 # substitution turns \\\\ into \\, and sed turns \\ into \.
17727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17730 # `set' quotes correctly as required by POSIX, so do not add quotes.
17731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17740 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17742 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17744 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17745 if test -w "$cache_file"; then
17746 if test "x$cache_file" != "x/dev/null"; then
17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17748 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17749 if test ! -f "$cache_file" || test -h "$cache_file"; then
17750 cat confcache >"$cache_file"
17752 case $cache_file in #(
17754 mv -f confcache "$cache_file"$$ &&
17755 mv -f "$cache_file"$$ "$cache_file" ;; #(
17757 mv -f confcache "$cache_file" ;;
17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17763 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17768 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17769 # Let make expand exec_prefix.
17770 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17772 DEFS=-DHAVE_CONFIG_H
17776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17777 # 1. Remove the extension, and $U if already installed.
17778 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17779 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17780 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17781 # will be set to the directory where LIBOBJS objects are built.
17782 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17783 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17785 LIBOBJS=$ac_libobjs
17787 LTLIBOBJS=$ac_ltlibobjs
17790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17791 printf %s "checking that generated files are newer than configure... " >&6; }
17792 if test -n "$am_sleep_pid"; then
17793 # Hide warnings about reused PIDs.
17794 wait $am_sleep_pid 2>/dev/null
17796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17797 printf "%s\n" "done" >&6; }
17798 if test -n "$EXEEXT"; then
17800 am__EXEEXT_FALSE='#'
17802 am__EXEEXT_TRUE='#'
17806 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17807 as_fn_error $? "conditional \"AMDEP\" was never defined.
17808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17814 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17815 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17818 if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
17819 as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
17820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17822 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
17823 as_fn_error $? "conditional \"WITH_DOC\" was never defined.
17824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17826 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
17827 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
17828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17830 if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
17831 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
17832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17834 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
17835 as_fn_error $? "conditional \"WITH_SU\" was never defined.
17836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17838 if test -z "${WITH_SYSTEM_LIBPAM_TRUE}" && test -z "${WITH_SYSTEM_LIBPAM_FALSE}"; then
17839 as_fn_error $? "conditional \"WITH_SYSTEM_LIBPAM\" was never defined.
17840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17842 if test -z "${HAVE_CRYB_TEST_TRUE}" && test -z "${HAVE_CRYB_TEST_FALSE}"; then
17843 as_fn_error $? "conditional \"HAVE_CRYB_TEST\" was never defined.
17844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17846 if test -z "${WITH_TEST_TRUE}" && test -z "${WITH_TEST_FALSE}"; then
17847 as_fn_error $? "conditional \"WITH_TEST\" was never defined.
17848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17850 if test -z "${WITH_CODE_COVERAGE_TRUE}" && test -z "${WITH_CODE_COVERAGE_FALSE}"; then
17851 as_fn_error $? "conditional \"WITH_CODE_COVERAGE\" was never defined.
17852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17854 if test -z "${CLANG_CODE_COVERAGE_TRUE}" && test -z "${CLANG_CODE_COVERAGE_FALSE}"; then
17855 as_fn_error $? "conditional \"CLANG_CODE_COVERAGE\" was never defined.
17856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17859 : "${CONFIG_STATUS=./config.status}"
17861 ac_clean_files_save=$ac_clean_files
17862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17864 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17868 # Generated by $as_me.
17869 # Run this file to recreate the current configuration.
17870 # Compiler output produced by configure, useful for debugging
17871 # configure, is in config.log if it exists.
17874 ac_cs_recheck=false
17877 SHELL=\${CONFIG_SHELL-$SHELL}
17880 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17881 ## -------------------- ##
17882 ## M4sh Initialization. ##
17883 ## -------------------- ##
17885 # Be more Bourne compatible
17886 DUALCASE=1; export DUALCASE # for MKS sh
17888 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17892 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17893 # is contrary to our usage. Disable this feature.
17894 alias -g '${1+"$@"}'='"$@"'
17895 setopt NO_GLOB_SUBST
17897 case `(set -o) 2>/dev/null` in #(
17907 # Reset variables that may have inherited troublesome values from
17910 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17911 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17912 # side effect of setting IFS to empty, thus disabling word splitting.)
17913 # Quoting is to prevent editors from complaining about space-tab.
17923 # Ensure predictable behavior from utilities with locale-dependent output.
17929 # We cannot yet rely on "unset" to work, but we need these variables
17930 # to be unset--not just set to an empty or harmless value--now, to
17931 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17932 # also avoids known problems related to "unset" and subshell syntax
17933 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17934 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17935 do eval test \${$as_var+y} \
17936 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17939 # Ensure that fds 0, 1, and 2 are open.
17940 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17941 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17942 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17944 # The user is always right.
17945 if ${PATH_SEPARATOR+false} :; then
17947 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17948 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17954 # Find who we are. Look in the path if we contain no directory separator.
17957 *[\\/]* ) as_myself=$0 ;;
17958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959 for as_dir in $PATH
17962 case $as_dir in #(((
17965 *) as_dir=$as_dir/ ;;
17967 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17973 # We did not find ourselves, most probably we were run as `sh COMMAND'
17974 # in which case we are not to be found in the path.
17975 if test "x$as_myself" = x; then
17978 if test ! -f "$as_myself"; then
17979 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17985 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17986 # ----------------------------------------
17987 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17988 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17989 # script with STATUS, using 1 if that was 0.
17992 as_status=$1; test $as_status -eq 0 && as_status=1
17994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17997 printf "%s\n" "$as_me: error: $2" >&2
17998 as_fn_exit $as_status
18003 # as_fn_set_status STATUS
18004 # -----------------------
18005 # Set $? to STATUS, without forking.
18006 as_fn_set_status ()
18009 } # as_fn_set_status
18011 # as_fn_exit STATUS
18012 # -----------------
18013 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18017 as_fn_set_status $1
18023 # Portably unset VAR.
18026 { eval $1=; unset $1;}
18028 as_unset=as_fn_unset
18030 # as_fn_append VAR VALUE
18031 # ----------------------
18032 # Append the text in VALUE to the end of the definition contained in VAR. Take
18033 # advantage of any shell optimizations that allow amortized linear growth over
18034 # repeated appends, instead of the typical quadratic growth present in naive
18036 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18038 eval 'as_fn_append ()
18049 # as_fn_arith ARG...
18050 # ------------------
18051 # Perform arithmetic evaluation on the ARGs, and store the result in the
18052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18053 # must be portable across $(()) and expr.
18054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18056 eval 'as_fn_arith ()
18063 as_val=`expr "$@" || test $? -eq 1`
18068 if expr a : '\(a\)' >/dev/null 2>&1 &&
18069 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18075 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18076 as_basename=basename
18081 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18087 as_me=`$as_basename -- "$0" ||
18088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18089 X"$0" : 'X\(//\)$' \| \
18090 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18091 printf "%s\n" X/"$0" |
18092 sed '/^.*\/\([^/][^/]*\)\/*$/{
18106 # Avoid depending upon Character Ranges.
18107 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18108 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18109 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18110 as_cr_digits='0123456789'
18111 as_cr_alnum=$as_cr_Letters$as_cr_digits
18114 # Determine whether it's possible to make 'echo' print without a newline.
18115 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18116 # for compatibility with existing Makefiles.
18117 ECHO_C= ECHO_N= ECHO_T=
18118 case `echo -n x` in #(((((
18120 case `echo 'xy\c'` in
18121 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18130 # For backward compatibility with old third-party macros, we provide
18131 # the shell variables $as_echo and $as_echo_n. New code should use
18132 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18133 as_echo='printf %s\n'
18134 as_echo_n='printf %s'
18136 rm -f conf$$ conf$$.exe conf$$.file
18137 if test -d conf$$.dir; then
18138 rm -f conf$$.dir/conf$$.file
18141 mkdir conf$$.dir 2>/dev/null
18143 if (echo >conf$$.file) 2>/dev/null; then
18144 if ln -s conf$$.file conf$$ 2>/dev/null; then
18146 # ... but there are two gotchas:
18147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18149 # In both cases, we have to default to `cp -pR'.
18150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18152 elif ln conf$$.file conf$$ 2>/dev/null; then
18160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18161 rmdir conf$$.dir 2>/dev/null
18166 # Create "$as_dir" as a directory, including parents if necessary.
18171 -*) as_dir=./$as_dir;;
18173 test -d "$as_dir" || eval $as_mkdir_p || {
18177 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18178 *) as_qdir=$as_dir;;
18180 as_dirs="'$as_qdir' $as_dirs"
18181 as_dir=`$as_dirname -- "$as_dir" ||
18182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18183 X"$as_dir" : 'X\(//\)[^/]' \| \
18184 X"$as_dir" : 'X\(//\)$' \| \
18185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18186 printf "%s\n" X"$as_dir" |
18187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18191 /^X\(\/\/\)[^/].*/{
18204 test -d "$as_dir" && break
18206 test -z "$as_dirs" || eval "mkdir $as_dirs"
18207 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18211 if mkdir -p . 2>/dev/null; then
18212 as_mkdir_p='mkdir -p "$as_dir"'
18214 test -d ./-p && rmdir ./-p
18219 # as_fn_executable_p FILE
18220 # -----------------------
18221 # Test if FILE is an executable regular file.
18222 as_fn_executable_p ()
18224 test -f "$1" && test -x "$1"
18225 } # as_fn_executable_p
18226 as_test_x='test -x'
18227 as_executable_p=as_fn_executable_p
18229 # Sed expression to map a string onto a valid CPP name.
18230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18232 # Sed expression to map a string onto a valid variable name.
18233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18237 ## ----------------------------------- ##
18238 ## Main body of $CONFIG_STATUS script. ##
18239 ## ----------------------------------- ##
18241 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18244 # Save the log message, to keep $0 and so on meaningful, and to
18245 # report actual input values of CONFIG_FILES etc. instead of their
18246 # values after options handling.
18248 This file was extended by OpenPAM $as_me 20230627, which was
18249 generated by GNU Autoconf 2.71. Invocation command line was
18251 CONFIG_FILES = $CONFIG_FILES
18252 CONFIG_HEADERS = $CONFIG_HEADERS
18253 CONFIG_LINKS = $CONFIG_LINKS
18254 CONFIG_COMMANDS = $CONFIG_COMMANDS
18257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18262 case $ac_config_files in *"
18263 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18266 case $ac_config_headers in *"
18267 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18272 # Files that config.status was made for.
18273 config_files="$ac_config_files"
18274 config_headers="$ac_config_headers"
18275 config_commands="$ac_config_commands"
18279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18281 \`$as_me' instantiates files and other configuration actions
18282 from templates according to the current configuration. Unless the files
18283 and actions are specified as TAGs, all are instantiated by default.
18285 Usage: $0 [OPTION]... [TAG]...
18287 -h, --help print this help, then exit
18288 -V, --version print version number and configuration settings, then exit
18289 --config print configuration, then exit
18290 -q, --quiet, --silent
18291 do not print progress messages
18292 -d, --debug don't remove temporary files
18293 --recheck update $as_me by reconfiguring in the same conditions
18294 --file=FILE[:TEMPLATE]
18295 instantiate the configuration file FILE
18296 --header=FILE[:TEMPLATE]
18297 instantiate the configuration header FILE
18299 Configuration files:
18302 Configuration headers:
18305 Configuration commands:
18308 Report bugs to <des@des.no>.
18309 OpenPAM home page: <https://openpam.org/>."
18312 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18313 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18315 ac_cs_config='$ac_cs_config_escaped'
18317 OpenPAM config.status 20230627
18318 configured by $0, generated by GNU Autoconf 2.71,
18319 with options \\"\$ac_cs_config\\"
18321 Copyright (C) 2021 Free Software Foundation, Inc.
18322 This config.status script is free software; the Free Software Foundation
18323 gives unlimited permission to copy, distribute and modify it."
18330 test -n "\$AWK" || AWK=awk
18333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18334 # The default lists apply if the user does not specify any file.
18340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18341 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18357 # Handling of the options.
18358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18360 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18361 printf "%s\n" "$ac_cs_version"; exit ;;
18362 --config | --confi | --conf | --con | --co | --c )
18363 printf "%s\n" "$ac_cs_config"; exit ;;
18364 --debug | --debu | --deb | --de | --d | -d )
18366 --file | --fil | --fi | --f )
18369 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18370 '') as_fn_error $? "missing file argument" ;;
18372 as_fn_append CONFIG_FILES " '$ac_optarg'"
18373 ac_need_defaults=false;;
18374 --header | --heade | --head | --hea )
18377 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18379 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18380 ac_need_defaults=false;;
18382 # Conflict between --help and --header
18383 as_fn_error $? "ambiguous option: \`$1'
18384 Try \`$0 --help' for more information.";;
18385 --help | --hel | -h )
18386 printf "%s\n" "$ac_cs_usage"; exit ;;
18387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18391 # This is an error.
18392 -*) as_fn_error $? "unrecognized option: \`$1'
18393 Try \`$0 --help' for more information." ;;
18395 *) as_fn_append ac_config_targets " $1"
18396 ac_need_defaults=false ;;
18402 ac_configure_extra_args=
18404 if $ac_cs_silent; then
18406 ac_configure_extra_args="$ac_configure_extra_args --silent"
18410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18411 if \$ac_cs_recheck; then
18412 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18414 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18415 CONFIG_SHELL='$SHELL'
18416 export CONFIG_SHELL
18421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18426 ## Running $as_me. ##
18428 printf "%s\n" "$ac_log"
18432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18436 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18439 # The HP-UX ksh and POSIX shell print the target directory to stdout
18440 # if CDPATH is set.
18441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18443 sed_quote_subst='$sed_quote_subst'
18444 double_quote_subst='$double_quote_subst'
18445 delay_variable_subst='$delay_variable_subst'
18446 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18447 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18448 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18449 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18450 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18451 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18452 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18453 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18454 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18455 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18456 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18457 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18458 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18459 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18460 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18461 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18462 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18463 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18464 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18465 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18466 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18467 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18468 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18469 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18470 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18471 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18472 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18473 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18474 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18475 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18476 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18477 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18478 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18479 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18480 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18481 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18482 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18483 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18484 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18485 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18486 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18487 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18488 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18489 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18490 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18491 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18492 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18493 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18494 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18495 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18496 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18497 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18498 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18499 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18500 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18501 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18502 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18503 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18504 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18505 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18506 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"`'
18507 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18508 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18509 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18510 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18511 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18512 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18513 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18514 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18515 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18516 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18517 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18518 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18519 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18520 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18521 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18522 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18523 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18524 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18525 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18526 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18527 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18528 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18529 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18530 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18531 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18532 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18533 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18534 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18535 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18536 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18537 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18538 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18539 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18540 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18541 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18542 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18543 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18544 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18545 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18546 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18547 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18548 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18549 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18550 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18551 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18552 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18553 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18554 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18555 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18556 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18557 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18558 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18559 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18560 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18561 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18562 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18563 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18564 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18565 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18566 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18567 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18568 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18569 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18570 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18571 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18572 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18573 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18574 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18575 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18576 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18577 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18578 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18579 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18580 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18581 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18582 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18583 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18584 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18585 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18586 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18587 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18588 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18589 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18590 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18591 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18592 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18593 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18594 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18595 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18596 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18597 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18598 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18599 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18600 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18601 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18602 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18603 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18604 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18605 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18606 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18607 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18608 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18609 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18610 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18611 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18612 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18613 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18614 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18615 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18616 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18617 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18618 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18619 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18620 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18621 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18622 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18623 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18624 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18625 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18626 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18627 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18628 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18629 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18630 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18631 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18632 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18633 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18634 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18635 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18636 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18639 LTCFLAGS='$LTCFLAGS'
18640 compiler='$compiler_DEFAULT'
18642 # A function that is used when there is no print builtin or printf.
18643 func_fallback_echo ()
18645 eval 'cat <<_LTECHO_EOF
18650 # Quote evaled strings.
18666 deplibs_check_method \
18671 sharedlib_from_linklib_cmd \
18673 archiver_list_spec \
18679 lt_cv_sys_global_symbol_pipe \
18680 lt_cv_sys_global_symbol_to_cdecl \
18681 lt_cv_sys_global_symbol_to_import \
18682 lt_cv_sys_global_symbol_to_c_name_address \
18683 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18684 lt_cv_nm_interface \
18685 nm_file_list_spec \
18686 lt_cv_truncate_bin \
18687 lt_prog_compiler_no_builtin_flag \
18688 lt_prog_compiler_pic \
18689 lt_prog_compiler_wl \
18690 lt_prog_compiler_static \
18691 lt_cv_prog_compiler_c_o \
18700 export_dynamic_flag_spec \
18701 whole_archive_flag_spec \
18702 compiler_needs_object \
18704 allow_undefined_flag \
18705 no_undefined_flag \
18706 hardcode_libdir_flag_spec \
18707 hardcode_libdir_separator \
18711 variables_saved_for_relink \
18713 library_names_spec \
18715 install_override_mode \
18719 compiler_lib_search_dirs \
18724 compiler_lib_search_path \
18728 lt_prog_compiler_no_builtin_flag_CXX \
18729 lt_prog_compiler_pic_CXX \
18730 lt_prog_compiler_wl_CXX \
18731 lt_prog_compiler_static_CXX \
18732 lt_cv_prog_compiler_c_o_CXX \
18733 export_dynamic_flag_spec_CXX \
18734 whole_archive_flag_spec_CXX \
18735 compiler_needs_object_CXX \
18737 allow_undefined_flag_CXX \
18738 no_undefined_flag_CXX \
18739 hardcode_libdir_flag_spec_CXX \
18740 hardcode_libdir_separator_CXX \
18741 exclude_expsyms_CXX \
18742 include_expsyms_CXX \
18743 file_list_spec_CXX \
18744 compiler_lib_search_dirs_CXX \
18745 predep_objects_CXX \
18746 postdep_objects_CXX \
18749 compiler_lib_search_path_CXX; do
18750 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18751 *[\\\\\\\`\\"\\\$]*)
18752 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18755 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18760 # Double-quote double-evaled strings.
18761 for var in reload_cmds \
18762 old_postinstall_cmds \
18763 old_postuninstall_cmds \
18765 extract_expsyms_cmds \
18766 old_archive_from_new_cmds \
18767 old_archive_from_expsyms_cmds \
18769 archive_expsym_cmds \
18771 module_expsym_cmds \
18772 export_symbols_cmds \
18776 postuninstall_cmds \
18778 sys_lib_search_path_spec \
18779 configure_time_dlsearch_path \
18780 configure_time_lt_sys_library_path \
18782 old_archive_cmds_CXX \
18783 old_archive_from_new_cmds_CXX \
18784 old_archive_from_expsyms_cmds_CXX \
18786 archive_expsym_cmds_CXX \
18788 module_expsym_cmds_CXX \
18789 export_symbols_cmds_CXX \
18791 postlink_cmds_CXX; do
18792 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18793 *[\\\\\\\`\\"\\\$]*)
18794 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18797 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18802 ac_aux_dir='$ac_aux_dir'
18804 # See if we are running on zsh, and set the options that allow our
18805 # commands through without removal of \ escapes INIT.
18806 if test -n "\${ZSH_VERSION+set}"; then
18807 setopt NO_GLOB_SUBST
18823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18825 # Handling of arguments.
18826 for ac_config_target in $ac_config_targets
18828 case $ac_config_target in
18829 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18830 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18831 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18832 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18833 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
18834 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
18835 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
18836 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
18837 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18838 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
18839 "freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES freebsd/Makefile" ;;
18840 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18841 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
18842 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18843 "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
18844 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
18845 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
18846 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
18847 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
18848 "modules/pam_return/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_return/Makefile" ;;
18849 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
18850 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
18851 "misc/coverity.sh") CONFIG_FILES="$CONFIG_FILES misc/coverity.sh" ;;
18853 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18858 # If the user did not use the arguments to specify the items to instantiate,
18859 # then the envvar interface is used. Set only those that are not.
18860 # We use the long form for the default assignment because of an extremely
18861 # bizarre bug on SunOS 4.1.3.
18862 if $ac_need_defaults; then
18863 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18864 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18865 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18868 # Have a temporary directory for convenience. Make it in the build tree
18869 # simply because there is no reason against having it here, and in addition,
18870 # creating and moving files from /tmp can sometimes cause problems.
18871 # Hook for its removal unless debugging.
18872 # Note that there is a small window in which the directory will not be cleaned:
18873 # after its creation but before its name has been assigned to `$tmp'.
18877 trap 'exit_status=$?
18878 : "${ac_tmp:=$tmp}"
18879 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18881 trap 'as_fn_exit 1' 1 2 13 15
18883 # Create a (secure) tmp directory for tmp files.
18886 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18890 tmp=./conf$$-$RANDOM
18891 (umask 077 && mkdir "$tmp")
18892 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18895 # Set up the scripts for CONFIG_FILES section.
18896 # No need to generate them if there are no CONFIG_FILES.
18897 # This happens for instance with `./config.status config.h'.
18898 if test -n "$CONFIG_FILES"; then
18901 ac_cr=`echo X | tr X '\015'`
18902 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18903 # But we know of no other shell where ac_cr would be empty at this
18904 # point, so we can use a bashism as a fallback.
18905 if test "x$ac_cr" = x; then
18906 eval ac_cr=\$\'\\r\'
18908 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18909 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18912 ac_cs_awk_cr=$ac_cr
18915 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18920 echo "cat >conf$$subs.awk <<_ACEOF" &&
18921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18923 } >conf$$subs.sh ||
18924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18925 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18927 for ac_last_try in false false false false false :; do
18928 . ./conf$$subs.sh ||
18929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18932 if test $ac_delim_n = $ac_delim_num; then
18934 elif $ac_last_try; then
18935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18940 rm -f conf$$subs.sh
18942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18943 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18947 s/^/S["/; s/!.*/"]=/
18957 s/\(.\{148\}\)..*/\1/
18959 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18964 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18971 s/\(.\{148\}\)..*/\1/
18973 s/["\\]/\\&/g; s/^/"/; s/$/"/
18977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18982 ' <conf$$subs.awk | sed '
18987 ' >>$CONFIG_STATUS || ac_write_fail=1
18988 rm -f conf$$subs.awk
18989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18991 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18992 for (key in S) S_is_set[key] = 1
18998 nfields = split(line, field, "@")
19000 len = length(field[1])
19001 for (i = 2; i < nfields; i++) {
19003 keylen = length(key)
19004 if (S_is_set[key]) {
19006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19007 len += length(value) + length(field[++i])
19018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19019 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19020 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19023 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19024 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19027 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19028 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19029 # trailing colons and then remove the whole line if VPATH becomes empty
19030 # (actually we leave an empty line to preserve line numbers).
19031 if test "x$srcdir" = x.; then
19032 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19051 fi # test -n "$CONFIG_FILES"
19053 # Set up the scripts for CONFIG_HEADERS section.
19054 # No need to generate them if there are no CONFIG_HEADERS.
19055 # This happens for instance with `./config.status Makefile'.
19056 if test -n "$CONFIG_HEADERS"; then
19057 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19061 # Transform confdefs.h into an awk script `defines.awk', embedded as
19062 # here-document in config.status, that substitutes the proper values into
19063 # config.h.in to produce config.h.
19065 # Create a delimiter string that does not exist in confdefs.h, to ease
19066 # handling of long lines.
19068 for ac_last_try in false false :; do
19069 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19070 if test -z "$ac_tt"; then
19072 elif $ac_last_try; then
19073 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19079 # For the awk script, D is an array of macro values keyed by name,
19080 # likewise P contains macro parameters if any. Preserve backslash
19081 # newline sequences.
19083 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19085 s/.\{148\}/&'"$ac_delim"'/g
19088 s/^[ ]*#[ ]*define[ ][ ]*/ /
19095 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19097 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19102 D["\1"]=" \3\\\\\\n"\\/p
19104 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19109 s/.\{148\}/&'"$ac_delim"'/g
19114 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19117 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19119 ' <confdefs.h | sed '
19120 s/'"$ac_delim"'/"\\\
19121 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19124 for (key in D) D_is_set[key] = 1
19127 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19129 split(line, arg, " ")
19130 if (arg[1] == "#") {
19134 defundef = substr(arg[1], 2)
19137 split(mac1, mac2, "(") #)
19139 prefix = substr(line, 1, index(line, defundef) - 1)
19140 if (D_is_set[macro]) {
19141 # Preserve the white space surrounding the "#".
19142 print prefix "define", macro P[macro] D[macro]
19145 # Replace #undef with comments. This is necessary, for example,
19146 # in the case of _POSIX_SOURCE, which is predefined and required
19147 # on some systems where configure will not decide to define it.
19148 if (defundef == "undef") {
19149 print "/*", prefix defundef, macro, "*/"
19157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19158 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19159 fi # test -n "$CONFIG_HEADERS"
19162 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19167 :[FHLC]) ac_mode=$ac_tag; continue;;
19169 case $ac_mode$ac_tag in
19171 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19172 :[FH]-) ac_tag=-:-;;
19173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19190 -) ac_f="$ac_tmp/stdin";;
19191 *) # Look for the file first in the build tree, then in the source tree
19192 # (if the path is not absolute). The absolute path cannot be DOS-style,
19193 # because $ac_f cannot contain `:'.
19197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19199 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19201 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19202 as_fn_append ac_file_inputs " '$ac_f'"
19205 # Let's still pretend it is `configure' which instantiates (i.e., don't
19206 # use $as_me), people would be surprised to read:
19207 # /* config.h. Generated by config.status. */
19208 configure_input='Generated from '`
19209 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19211 if test x"$ac_file" != x-; then
19212 configure_input="$ac_file. $configure_input"
19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19214 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19216 # Neutralize special characters interpreted by sed in replacement strings.
19217 case $configure_input in #(
19218 *\&* | *\|* | *\\* )
19219 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19220 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19221 *) ac_sed_conf_input=$configure_input;;
19225 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19231 ac_dir=`$as_dirname -- "$ac_file" ||
19232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19233 X"$ac_file" : 'X\(//\)[^/]' \| \
19234 X"$ac_file" : 'X\(//\)$' \| \
19235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19236 printf "%s\n" X"$ac_file" |
19237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19241 /^X\(\/\/\)[^/].*/{
19254 as_dir="$ac_dir"; as_fn_mkdir_p
19258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19260 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19261 # A ".." for each directory in $ac_dir_suffix.
19262 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19263 case $ac_top_builddir_sub in
19264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19268 ac_abs_top_builddir=$ac_pwd
19269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19270 # for backward compatibility:
19271 ac_top_builddir=$ac_top_build_prefix
19274 .) # We are building in place.
19276 ac_top_srcdir=$ac_top_builddir_sub
19277 ac_abs_top_srcdir=$ac_pwd ;;
19278 [\\/]* | ?:[\\/]* ) # Absolute name.
19279 ac_srcdir=$srcdir$ac_dir_suffix;
19280 ac_top_srcdir=$srcdir
19281 ac_abs_top_srcdir=$srcdir ;;
19282 *) # Relative name.
19283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19284 ac_top_srcdir=$ac_top_build_prefix$srcdir
19285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19300 ac_MKDIR_P=$MKDIR_P
19302 [\\/$]* | ?:[\\/]* ) ;;
19303 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19308 # If the template does not know about datarootdir, expand it.
19309 # FIXME: This hack should be removed a few years after 2.60.
19310 ac_datarootdir_hack=; ac_datarootdir_seen=
19321 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19322 *datarootdir*) ac_datarootdir_seen=yes;;
19323 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19325 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19328 ac_datarootdir_hack='
19329 s&@datadir@&$datadir&g
19330 s&@docdir@&$docdir&g
19331 s&@infodir@&$infodir&g
19332 s&@localedir@&$localedir&g
19333 s&@mandir@&$mandir&g
19334 s&\\\${datarootdir}&$datarootdir&g' ;;
19338 # Neutralize VPATH when `$srcdir' = `.'.
19339 # Shell code in configure.ac might set extrasub.
19340 # FIXME: do we really want to maintain this feature?
19341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19342 ac_sed_extra="$ac_vpsub
19345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19347 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19348 s|@configure_input@|$ac_sed_conf_input|;t t
19349 s&@top_builddir@&$ac_top_builddir_sub&;t t
19350 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19351 s&@srcdir@&$ac_srcdir&;t t
19352 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19353 s&@top_srcdir@&$ac_top_srcdir&;t t
19354 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19355 s&@builddir@&$ac_builddir&;t t
19356 s&@abs_builddir@&$ac_abs_builddir&;t t
19357 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19358 s&@INSTALL@&$ac_INSTALL&;t t
19359 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19360 $ac_datarootdir_hack
19362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19363 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19366 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19368 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19370 which seems to be undefined. Please make sure it is defined" >&5
19371 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19372 which seems to be undefined. Please make sure it is defined" >&2;}
19374 rm -f "$ac_tmp/stdin"
19376 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19377 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19385 if test x"$ac_file" != x-; then
19387 printf "%s\n" "/* $configure_input */" >&1 \
19388 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19389 } >"$ac_tmp/config.h" \
19390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19391 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19393 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19396 mv "$ac_tmp/config.h" "$ac_file" \
19397 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19400 printf "%s\n" "/* $configure_input */" >&1 \
19401 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19402 || as_fn_error $? "could not create -" "$LINENO" 5
19404 # Compute "$ac_file"'s index in $config_headers.
19407 for _am_header in $config_headers :; do
19408 case $_am_header in
19409 $_am_arg | $_am_arg:* )
19412 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19415 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19416 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19417 X"$_am_arg" : 'X\(//\)[^/]' \| \
19418 X"$_am_arg" : 'X\(//\)$' \| \
19419 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19420 printf "%s\n" X"$_am_arg" |
19421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19425 /^X\(\/\/\)[^/].*/{
19437 s/.*/./; q'`/stamp-h$_am_stamp_count
19440 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19441 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19446 case $ac_file$ac_mode in
19447 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19448 # Older Autoconf quotes --file arguments for eval, but not when files
19449 # are listed without --file. Let's play safe and only enable the eval
19450 # if we detect the quoting.
19451 # TODO: see whether this extra hack can be removed once we start
19452 # requiring Autoconf 2.70 or later.
19453 case $CONFIG_FILES in #(
19455 eval set x "$CONFIG_FILES" ;; #(
19457 set x $CONFIG_FILES ;; #(
19462 # Used to flag and report bootstrapping failures.
19466 # Strip MF so we end up with the name of the file.
19467 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19468 # Check whether this is an Automake generated Makefile which includes
19469 # dependency-tracking related rules and includes.
19470 # Grep'ing the whole file directly is not great: AIX grep has a line
19471 # limit of 2048, but all sed's we know have understand at least 4000.
19472 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19474 am_dirpart=`$as_dirname -- "$am_mf" ||
19475 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19476 X"$am_mf" : 'X\(//\)[^/]' \| \
19477 X"$am_mf" : 'X\(//\)$' \| \
19478 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19479 printf "%s\n" X"$am_mf" |
19480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19484 /^X\(\/\/\)[^/].*/{
19497 am_filepart=`$as_basename -- "$am_mf" ||
19498 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19499 X"$am_mf" : 'X\(//\)$' \| \
19500 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19501 printf "%s\n" X/"$am_mf" |
19502 sed '/^.*\/\([^/][^/]*\)\/*$/{
19515 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19516 && sed -e '/# am--include-marker/d' "$am_filepart" \
19517 | $MAKE -f - am--depfiles" >&5
19518 (cd "$am_dirpart" \
19519 && sed -e '/# am--include-marker/d' "$am_filepart" \
19520 | $MAKE -f - am--depfiles) >&5 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } || am_rc=$?
19525 if test $am_rc -ne 0; then
19526 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19527 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19528 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19529 for automatic dependency tracking. If GNU make was not used, consider
19530 re-running the configure script with MAKE=\"gmake\" (or whatever is
19531 necessary). You can also try re-running configure with the
19532 '--disable-dependency-tracking' option to at least be able to build
19533 the package (albeit without support for automatic dependency tracking).
19534 See \`config.log' for more details" "$LINENO" 5; }
19536 { am_dirpart=; unset am_dirpart;}
19537 { am_filepart=; unset am_filepart;}
19538 { am_mf=; unset am_mf;}
19539 { am_rc=; unset am_rc;}
19540 rm -f conftest-deps.mk
19545 # See if we are running on zsh, and set the options that allow our
19546 # commands through without removal of \ escapes.
19547 if test -n "${ZSH_VERSION+set}"; then
19548 setopt NO_GLOB_SUBST
19552 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19555 cat <<_LT_EOF >> "$cfgfile"
19557 # Generated automatically by $as_me ($PACKAGE) $VERSION
19558 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19559 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19561 # Provide generalized library-building support services.
19562 # Written by Gordon Matzigkeit, 1996
19564 # Copyright (C) 2014 Free Software Foundation, Inc.
19565 # This is free software; see the source for copying conditions. There is NO
19566 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19568 # GNU Libtool is free software; you can redistribute it and/or modify
19569 # it under the terms of the GNU General Public License as published by
19570 # the Free Software Foundation; either version 2 of of the License, or
19571 # (at your option) any later version.
19573 # As a special exception to the GNU General Public License, if you
19574 # distribute this file as part of a program or library that is built
19575 # using GNU Libtool, you may include this file under the same
19576 # distribution terms that you use for the rest of that program.
19578 # GNU Libtool is distributed in the hope that it will be useful, but
19579 # WITHOUT ANY WARRANTY; without even the implied warranty of
19580 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19581 # GNU General Public License for more details.
19583 # You should have received a copy of the GNU General Public License
19584 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19587 # The names of the tagged configurations supported by this script.
19588 available_tags='CXX '
19590 # Configured defaults for sys_lib_dlsearch_path munging.
19591 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19593 # ### BEGIN LIBTOOL CONFIG
19595 # Which release of libtool.m4 was used?
19596 macro_version=$macro_version
19597 macro_revision=$macro_revision
19599 # Whether or not to build static libraries.
19600 build_old_libs=$enable_static
19602 # Whether or not to build shared libraries.
19603 build_libtool_libs=$enable_shared
19605 # What type of objects to build.
19608 # Whether or not to optimize for fast installation.
19609 fast_install=$enable_fast_install
19611 # Shared archive member basename,for filename based shared library versioning on AIX.
19612 shared_archive_member_spec=$shared_archive_member_spec
19614 # Shell to use when invoking shell scripts.
19617 # An echo program that protects backslashes.
19620 # The PATH separator for the build system.
19621 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19624 host_alias=$host_alias
19628 # The build system.
19629 build_alias=$build_alias
19633 # A sed program that does not truncate output.
19636 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19637 Xsed="\$SED -e 1s/^X//"
19639 # A grep program that handles long lines.
19645 # A literal string matcher.
19648 # A BSD- or MS-compatible name lister.
19651 # Whether we need soft or hard links.
19654 # What is the maximum length of a command?
19655 max_cmd_len=$max_cmd_len
19657 # Object file suffix (normally "o").
19660 # Executable file suffix (normally "").
19663 # whether the shell understands "unset".
19666 # turn spaces into newlines.
19669 # turn newlines into spaces.
19672 # convert \$build file names to \$host format.
19673 to_host_file_cmd=$lt_cv_to_host_file_cmd
19675 # convert \$build files to toolchain format.
19676 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19678 # A file(cmd) program that detects file types.
19679 FILECMD=$lt_FILECMD
19681 # An object symbol dumper.
19682 OBJDUMP=$lt_OBJDUMP
19684 # Method to check whether dependent libraries are shared objects.
19685 deplibs_check_method=$lt_deplibs_check_method
19687 # Command to use when deplibs_check_method = "file_magic".
19688 file_magic_cmd=$lt_file_magic_cmd
19690 # How to find potential files when deplibs_check_method = "file_magic".
19691 file_magic_glob=$lt_file_magic_glob
19693 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19694 want_nocaseglob=$lt_want_nocaseglob
19696 # DLL creation program.
19697 DLLTOOL=$lt_DLLTOOL
19699 # Command to associate shared and link libraries.
19700 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19705 # Flags to create an archive (by configure).
19706 lt_ar_flags=$lt_ar_flags
19708 # Flags to create an archive.
19709 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19711 # How to feed a file listing to the archiver.
19712 archiver_list_spec=$lt_archiver_list_spec
19714 # A symbol stripping program.
19717 # Commands used to install an old-style archive.
19719 old_postinstall_cmds=$lt_old_postinstall_cmds
19720 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19722 # Whether to use a lock for old archive extraction.
19723 lock_old_archive_extraction=$lock_old_archive_extraction
19728 # LTCC compiler flags.
19729 LTCFLAGS=$lt_CFLAGS
19731 # Take the output of nm and produce a listing of raw symbols and C names.
19732 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19734 # Transform the output of nm in a proper C declaration.
19735 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19737 # Transform the output of nm into a list of symbols to manually relocate.
19738 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19740 # Transform the output of nm in a C name address pair.
19741 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19743 # Transform the output of nm in a C name address pair when lib prefix is needed.
19744 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19746 # The name lister interface.
19747 nm_interface=$lt_lt_cv_nm_interface
19749 # Specify filename containing input files for \$NM.
19750 nm_file_list_spec=$lt_nm_file_list_spec
19752 # The root where to search for dependent libraries,and where our libraries should be installed.
19753 lt_sysroot=$lt_sysroot
19755 # Command to truncate a binary pipe.
19756 lt_truncate_bin=$lt_lt_cv_truncate_bin
19758 # The name of the directory that contains temporary libtool files.
19761 # Used to examine libraries when file_magic_cmd begins with "file".
19762 MAGIC_CMD=$MAGIC_CMD
19764 # Must we lock files when doing compilation?
19765 need_locks=$lt_need_locks
19768 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19770 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19771 DSYMUTIL=$lt_DSYMUTIL
19773 # Tool to change global to local symbols on Mac OS X.
19776 # Tool to manipulate fat objects and archives on Mac OS X.
19779 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19782 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19783 OTOOL64=$lt_OTOOL64
19785 # Old archive suffix (normally "a").
19788 # Shared library suffix (normally ".so").
19789 shrext_cmds=$lt_shrext_cmds
19791 # The commands to extract the exported symbol list from a shared archive.
19792 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19794 # Variables whose values should be saved in libtool wrapper scripts and
19795 # restored at link time.
19796 variables_saved_for_relink=$lt_variables_saved_for_relink
19798 # Do we need the "lib" prefix for modules?
19799 need_lib_prefix=$need_lib_prefix
19801 # Do we need a version for libraries?
19802 need_version=$need_version
19804 # Library versioning type.
19805 version_type=$version_type
19807 # Shared library runtime path variable.
19808 runpath_var=$runpath_var
19810 # Shared library path variable.
19811 shlibpath_var=$shlibpath_var
19813 # Is shlibpath searched before the hard-coded library search path?
19814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19816 # Format of library name prefix.
19817 libname_spec=$lt_libname_spec
19819 # List of archive names. First name is the real one, the rest are links.
19820 # The last name is the one that the linker finds with -lNAME
19821 library_names_spec=$lt_library_names_spec
19823 # The coded name of the library, if different from the real name.
19824 soname_spec=$lt_soname_spec
19826 # Permission mode override for installation of shared libraries.
19827 install_override_mode=$lt_install_override_mode
19829 # Command to use after installation of a shared archive.
19830 postinstall_cmds=$lt_postinstall_cmds
19832 # Command to use after uninstallation of a shared archive.
19833 postuninstall_cmds=$lt_postuninstall_cmds
19835 # Commands used to finish a libtool library installation in a directory.
19836 finish_cmds=$lt_finish_cmds
19838 # As "finish_cmds", except a single script fragment to be evaled but
19840 finish_eval=$lt_finish_eval
19842 # Whether we should hardcode library paths into libraries.
19843 hardcode_into_libs=$hardcode_into_libs
19845 # Compile-time system search path for libraries.
19846 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19848 # Detected run-time system search path for libraries.
19849 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19851 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19852 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19854 # Whether dlopen is supported.
19855 dlopen_support=$enable_dlopen
19857 # Whether dlopen of programs is supported.
19858 dlopen_self=$enable_dlopen_self
19860 # Whether dlopen of statically linked programs is supported.
19861 dlopen_self_static=$enable_dlopen_self_static
19863 # Commands to strip libraries.
19864 old_striplib=$lt_old_striplib
19865 striplib=$lt_striplib
19868 # The linker used to build libraries.
19871 # How to create reloadable object files.
19872 reload_flag=$lt_reload_flag
19873 reload_cmds=$lt_reload_cmds
19875 # Commands used to build an old-style archive.
19876 old_archive_cmds=$lt_old_archive_cmds
19878 # A language specific compiler.
19881 # Is the compiler the GNU compiler?
19884 # Compiler flag to turn off builtin functions.
19885 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19887 # Additional compiler flags for building library objects.
19888 pic_flag=$lt_lt_prog_compiler_pic
19890 # How to pass a linker flag through the compiler.
19891 wl=$lt_lt_prog_compiler_wl
19893 # Compiler flag to prevent dynamic linking.
19894 link_static_flag=$lt_lt_prog_compiler_static
19896 # Does compiler simultaneously support -c and -o options?
19897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19899 # Whether or not to add -lc for building shared libraries.
19900 build_libtool_need_lc=$archive_cmds_need_lc
19902 # Whether or not to disallow shared libs when runtime libs are static.
19903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19905 # Compiler flag to allow reflexive dlopens.
19906 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19908 # Compiler flag to generate shared objects directly from archives.
19909 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19911 # Whether the compiler copes with passing no objects directly.
19912 compiler_needs_object=$lt_compiler_needs_object
19914 # Create an old-style archive from a shared archive.
19915 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19917 # Create a temporary old-style archive to link instead of a shared archive.
19918 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19920 # Commands used to build a shared archive.
19921 archive_cmds=$lt_archive_cmds
19922 archive_expsym_cmds=$lt_archive_expsym_cmds
19924 # Commands used to build a loadable module if different from building
19925 # a shared archive.
19926 module_cmds=$lt_module_cmds
19927 module_expsym_cmds=$lt_module_expsym_cmds
19929 # Whether we are building with GNU ld or not.
19930 with_gnu_ld=$lt_with_gnu_ld
19932 # Flag that allows shared libraries with undefined symbols to be built.
19933 allow_undefined_flag=$lt_allow_undefined_flag
19935 # Flag that enforces no undefined symbols.
19936 no_undefined_flag=$lt_no_undefined_flag
19938 # Flag to hardcode \$libdir into a binary during linking.
19939 # This must work even if \$libdir does not exist
19940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19942 # Whether we need a single "-rpath" flag with a separated argument.
19943 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19945 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19946 # DIR into the resulting binary.
19947 hardcode_direct=$hardcode_direct
19949 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19950 # DIR into the resulting binary and the resulting library dependency is
19951 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19952 # library is relocated.
19953 hardcode_direct_absolute=$hardcode_direct_absolute
19955 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19956 # into the resulting binary.
19957 hardcode_minus_L=$hardcode_minus_L
19959 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19960 # into the resulting binary.
19961 hardcode_shlibpath_var=$hardcode_shlibpath_var
19963 # Set to "yes" if building a shared library automatically hardcodes DIR
19964 # into the library and all subsequent libraries and executables linked
19966 hardcode_automatic=$hardcode_automatic
19968 # Set to yes if linker adds runtime paths of dependent libraries
19969 # to runtime path list.
19970 inherit_rpath=$inherit_rpath
19972 # Whether libtool must link a program against all its dependency libraries.
19973 link_all_deplibs=$link_all_deplibs
19975 # Set to "yes" if exported symbols are required.
19976 always_export_symbols=$always_export_symbols
19978 # The commands to list exported symbols.
19979 export_symbols_cmds=$lt_export_symbols_cmds
19981 # Symbols that should not be listed in the preloaded symbols.
19982 exclude_expsyms=$lt_exclude_expsyms
19984 # Symbols that must always be exported.
19985 include_expsyms=$lt_include_expsyms
19987 # Commands necessary for linking programs (against libraries) with templates.
19988 prelink_cmds=$lt_prelink_cmds
19990 # Commands necessary for finishing linking programs.
19991 postlink_cmds=$lt_postlink_cmds
19993 # Specify filename containing input files.
19994 file_list_spec=$lt_file_list_spec
19996 # How to hardcode a shared library path into an executable.
19997 hardcode_action=$hardcode_action
19999 # The directories searched by this compiler when creating a shared library.
20000 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20002 # Dependencies to place before and after the objects being linked to
20003 # create a shared library.
20004 predep_objects=$lt_predep_objects
20005 postdep_objects=$lt_postdep_objects
20006 predeps=$lt_predeps
20007 postdeps=$lt_postdeps
20009 # The library search path used internally by the compiler when linking
20010 # a shared library.
20011 compiler_lib_search_path=$lt_compiler_lib_search_path
20013 # ### END LIBTOOL CONFIG
20017 cat <<'_LT_EOF' >> "$cfgfile"
20019 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20021 # func_munge_path_list VARIABLE PATH
20022 # -----------------------------------
20023 # VARIABLE is name of variable containing _space_ separated list of
20024 # directories to be munged by the contents of PATH, which is string
20027 # string "DIR[ DIR]" will be prepended to VARIABLE
20029 # string "DIR[ DIR]" will be appended to VARIABLE
20030 # "DIRP[:DIRP]::[DIRA:]DIRA"
20031 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20032 # "DIRA[ DIRA]" will be appended to VARIABLE
20034 # VARIABLE will be replaced by "DIR[ DIR]"
20035 func_munge_path_list ()
20041 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20044 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20047 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20048 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20051 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20057 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20058 func_cc_basename ()
20060 for cc_temp in $*""; do
20062 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20063 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20068 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20072 # ### END FUNCTIONS SHARED WITH CONFIGURE
20078 cat <<\_LT_EOF >> "$cfgfile"
20079 # AIX sometimes has problems with the GCC collect2 program. For some
20080 # reason, if we set the COLLECT_NAMES environment variable, the problems
20081 # vanish in a puff of smoke.
20082 if test set != "${COLLECT_NAMES+set}"; then
20084 export COLLECT_NAMES
20092 ltmain=$ac_aux_dir/ltmain.sh
20095 # We use sed instead of cat because bash on DJGPP gets confused if
20096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20097 # text mode, it properly converts lines to CR/LF. This bash problem
20098 # is reportedly fixed, but why not run on old versions too?
20099 $SED '$q' "$ltmain" >> "$cfgfile" \
20100 || (rm -f "$cfgfile"; exit 1)
20102 mv -f "$cfgfile" "$ofile" ||
20103 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20107 cat <<_LT_EOF >> "$ofile"
20109 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20111 # The linker used to build libraries.
20114 # How to create reloadable object files.
20115 reload_flag=$lt_reload_flag_CXX
20116 reload_cmds=$lt_reload_cmds_CXX
20118 # Commands used to build an old-style archive.
20119 old_archive_cmds=$lt_old_archive_cmds_CXX
20121 # A language specific compiler.
20122 CC=$lt_compiler_CXX
20124 # Is the compiler the GNU compiler?
20127 # Compiler flag to turn off builtin functions.
20128 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20130 # Additional compiler flags for building library objects.
20131 pic_flag=$lt_lt_prog_compiler_pic_CXX
20133 # How to pass a linker flag through the compiler.
20134 wl=$lt_lt_prog_compiler_wl_CXX
20136 # Compiler flag to prevent dynamic linking.
20137 link_static_flag=$lt_lt_prog_compiler_static_CXX
20139 # Does compiler simultaneously support -c and -o options?
20140 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20142 # Whether or not to add -lc for building shared libraries.
20143 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20145 # Whether or not to disallow shared libs when runtime libs are static.
20146 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20148 # Compiler flag to allow reflexive dlopens.
20149 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20151 # Compiler flag to generate shared objects directly from archives.
20152 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20154 # Whether the compiler copes with passing no objects directly.
20155 compiler_needs_object=$lt_compiler_needs_object_CXX
20157 # Create an old-style archive from a shared archive.
20158 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20160 # Create a temporary old-style archive to link instead of a shared archive.
20161 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20163 # Commands used to build a shared archive.
20164 archive_cmds=$lt_archive_cmds_CXX
20165 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20167 # Commands used to build a loadable module if different from building
20168 # a shared archive.
20169 module_cmds=$lt_module_cmds_CXX
20170 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20172 # Whether we are building with GNU ld or not.
20173 with_gnu_ld=$lt_with_gnu_ld_CXX
20175 # Flag that allows shared libraries with undefined symbols to be built.
20176 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20178 # Flag that enforces no undefined symbols.
20179 no_undefined_flag=$lt_no_undefined_flag_CXX
20181 # Flag to hardcode \$libdir into a binary during linking.
20182 # This must work even if \$libdir does not exist
20183 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20185 # Whether we need a single "-rpath" flag with a separated argument.
20186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20188 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20189 # DIR into the resulting binary.
20190 hardcode_direct=$hardcode_direct_CXX
20192 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20193 # DIR into the resulting binary and the resulting library dependency is
20194 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20195 # library is relocated.
20196 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20199 # into the resulting binary.
20200 hardcode_minus_L=$hardcode_minus_L_CXX
20202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20203 # into the resulting binary.
20204 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20206 # Set to "yes" if building a shared library automatically hardcodes DIR
20207 # into the library and all subsequent libraries and executables linked
20209 hardcode_automatic=$hardcode_automatic_CXX
20211 # Set to yes if linker adds runtime paths of dependent libraries
20212 # to runtime path list.
20213 inherit_rpath=$inherit_rpath_CXX
20215 # Whether libtool must link a program against all its dependency libraries.
20216 link_all_deplibs=$link_all_deplibs_CXX
20218 # Set to "yes" if exported symbols are required.
20219 always_export_symbols=$always_export_symbols_CXX
20221 # The commands to list exported symbols.
20222 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20224 # Symbols that should not be listed in the preloaded symbols.
20225 exclude_expsyms=$lt_exclude_expsyms_CXX
20227 # Symbols that must always be exported.
20228 include_expsyms=$lt_include_expsyms_CXX
20230 # Commands necessary for linking programs (against libraries) with templates.
20231 prelink_cmds=$lt_prelink_cmds_CXX
20233 # Commands necessary for finishing linking programs.
20234 postlink_cmds=$lt_postlink_cmds_CXX
20236 # Specify filename containing input files.
20237 file_list_spec=$lt_file_list_spec_CXX
20239 # How to hardcode a shared library path into an executable.
20240 hardcode_action=$hardcode_action_CXX
20242 # The directories searched by this compiler when creating a shared library.
20243 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20245 # Dependencies to place before and after the objects being linked to
20246 # create a shared library.
20247 predep_objects=$lt_predep_objects_CXX
20248 postdep_objects=$lt_postdep_objects_CXX
20249 predeps=$lt_predeps_CXX
20250 postdeps=$lt_postdeps_CXX
20252 # The library search path used internally by the compiler when linking
20253 # a shared library.
20254 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20256 # ### END LIBTOOL TAG CONFIG: CXX
20260 "misc/coverity.sh":F) chmod +x misc/coverity.sh ;;
20268 ac_clean_files=$ac_clean_files_save
20270 test $ac_write_fail = 0 ||
20271 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20274 # configure is writing to config.log, and then calls config.status.
20275 # config.status does its own redirection, appending to config.log.
20276 # Unfortunately, on DOS this fails, as config.log is still kept open
20277 # by configure, so config.status won't be able to write to it; its
20278 # output is simply discarded. So we exec the FD to /dev/null,
20279 # effectively closing config.log, so it can be properly (re)opened and
20280 # appended to by config.status. When coming back to configure, we
20281 # need to make the FD available again.
20282 if test "$no_create" != yes; then
20284 ac_config_status_args=
20285 test "$silent" = yes &&
20286 ac_config_status_args="$ac_config_status_args --quiet"
20288 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20290 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20291 # would make configure fail if this is the last instruction.
20292 $ac_cs_success || as_fn_exit 1
20294 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20296 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}