2 # From configure.ac OpenPAM: configure.ac 939 2017-04-30 21:36:50Z des .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for OpenPAM 20170430.
6 # Report bugs to <des@des.no>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$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;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='OpenPAM'
592 PACKAGE_TARNAME='openpam'
593 PACKAGE_VERSION='20170430'
594 PACKAGE_STRING='OpenPAM 20170430'
595 PACKAGE_BUGREPORT='des@des.no'
596 PACKAGE_URL='http://www.openpam.org/'
598 ac_unique_file="lib/libpam/pam_start.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
646 WITH_SYSTEM_LIBPAM_FALSE
647 WITH_SYSTEM_LIBPAM_TRUE
656 CUSTOM_MODULES_DIR_FALSE
657 CUSTOM_MODULES_DIR_TRUE
720 INSTALL_STRIP_PROGRAM
762 program_transform_name
775 enable_option_checking
777 enable_dependency_tracking
787 enable_unversioned_modules
794 enable_developer_warnings
795 enable_debugging_symbols
798 ac_precious_vars='build_alias
810 # Initialize some variables set by options.
812 ac_init_version=false
813 ac_unrecognized_opts=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
824 program_transform_name=s,x,x,
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir='${datarootdir}/info'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
927 eval enable_$ac_useropt=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
953 eval enable_$ac_useropt=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
968 -help | --help | --hel | --he | -h)
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1117 -site=* | --site=* | --sit=*)
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval with_$ac_useropt=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1173 eval with_$ac_useropt=no ;;
1176 # Obsolete; use --with-x.
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1244 # Be sure to have absolute directory names.
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271 test "$silent" = yes && exec 6>/dev/null
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1314 ac_srcdir_defaulted=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1348 \`configure' configures OpenPAM 20170430 to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of OpenPAM 20170430:";;
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-silent-rules less verbose build output (undo: "make V=1")
1427 --disable-silent-rules verbose build output (undo: "make V=0")
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --enable-static[=PKGS] build static libraries [default=no]
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437 --enable-debug turn debugging macros on
1438 --disable-unversioned-modules
1439 support loading of unversioned modules
1440 --enable-developer-warnings
1441 enable strict warnings (default is NO)
1442 --enable-debugging-symbols
1443 enable debugging symbols (default is NO)
1444 --enable-werror use -Werror (default is NO)
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1451 --with-aix-soname=aix|svr4|both
1452 shared library versioning (aka "SONAME") variant to
1453 provide on AIX, [default=aix].
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1456 compiler's sysroot if not specified).
1457 --with-modules-dir=DIR OpenPAM modules directory
1458 --without-doc do not build documentation
1459 --with-pam-unix build sample pam_unix(8) module
1460 --with-pamtest build test application
1461 --with-su build sample su(1) implementation
1462 --with-system-libpam use system libpam
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1474 User-defined run-time library search path.
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1479 Report bugs to <des@des.no>.
1480 OpenPAM home page: <http://www.openpam.org/>.
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1510 .) # We are building in place.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1543 OpenPAM configure 20170430
1544 generated by GNU Autoconf 2.69
1546 Copyright (C) 2012 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1593 } # ac_fn_c_try_compile
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1632 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635 # the include files in INCLUDES and setting the cache variable VAR
1637 ac_fn_c_check_header_mongrel ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if eval \${$3+:} false; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1650 # Is the header compilable?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652 $as_echo_n "checking $2 usability... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1661 ac_header_compiler=no
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665 $as_echo "$ac_header_compiler" >&6; }
1667 # Is the header present?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669 $as_echo_n "checking $2 presence... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1674 if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1677 ac_header_preproc=no
1679 rm -f conftest.err conftest.i conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681 $as_echo "$ac_header_preproc" >&6; }
1683 # So? What about this header?
1684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ( $as_echo "## ------------------------- ##
1703 ## Report this to des@des.no ##
1704 ## ------------------------- ##"
1705 ) | sed "s/^/$as_me: WARNING: /" >&2
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711 $as_echo_n "(cached) " >&6
1713 eval "$3=\$ac_header_compiler"
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 } # ac_fn_c_check_header_mongrel
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_link"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>&5
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741 { { case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_try") 2>&5
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; }; }; then :
1753 $as_echo "$as_me: program exited with status $ac_status" >&5
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=$ac_status
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1765 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists and can be compiled using the include files in
1768 # INCLUDES, setting the cache variable VAR accordingly.
1769 ac_fn_c_check_header_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1782 if ac_fn_c_try_compile "$LINENO"; then :
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 } # ac_fn_c_check_header_compile
1796 # ac_fn_c_try_link LINENO
1797 # -----------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 test -x conftest$ac_exeext
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1840 } # ac_fn_c_try_link
1842 # ac_fn_c_check_func LINENO FUNC VAR
1843 # ----------------------------------
1844 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1845 ac_fn_c_check_func ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1857 #define $2 innocuous_$2
1859 /* System header to define __stub macros and hopefully few prototypes,
1860 which can conflict with char $2 (); below.
1861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1862 <limits.h> exists even on freestanding compilers. */
1865 # include <limits.h>
1867 # include <assert.h>
1872 /* Override any GCC internal prototype to avoid an error.
1873 Use char because int might match the return type of a GCC
1874 builtin and then its argument prototype would still apply. */
1879 /* The GNU C library defines this for functions which it implements
1880 to always fail with ENOSYS. Some functions are actually named
1881 something starting with __ and the normal name is an alias. */
1882 #if defined __stub_$2 || defined __stub___$2
1894 if ac_fn_c_try_link "$LINENO"; then :
1899 rm -f core conftest.err conftest.$ac_objext \
1900 conftest$ac_exeext conftest.$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 } # ac_fn_c_check_func
1908 cat >config.log <<_ACEOF
1909 This file contains any messages produced by compilers while
1910 running configure, to aid debugging if configure makes a mistake.
1912 It was created by OpenPAM $as_me 20170430, which was
1913 generated by GNU Autoconf 2.69. Invocation command line was
1925 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 test -z "$as_dir" && as_dir=.
1949 $as_echo "PATH: $as_dir"
1965 # Keep a trace of the command line.
1966 # Strip out --no-create and --no-recursion so they do not pile up.
1967 # Strip out --silent because we don't want to record it for future runs.
1968 # Also quote any args containing shell meta-characters.
1969 # Make two passes to allow for proper duplicate-argument suppression.
1973 ac_must_keep_next=false
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2002 -* ) ac_must_keep_next=true ;;
2005 as_fn_append ac_configure_args " '$ac_arg'"
2010 { ac_configure_args0=; unset ac_configure_args0;}
2011 { ac_configure_args1=; unset ac_configure_args1;}
2013 # When interrupted or exit'd, cleanup temporary files, and complete
2014 # config.log. We remove comments because anyway the quotes in there
2015 # would cause problems or look ugly.
2016 # WARNING: Use '\'' to represent an apostrophe within the trap.
2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018 trap 'exit_status=$?
2019 # Save into config.log some information that might help in debugging.
2023 $as_echo "## ---------------- ##
2024 ## Cache variables. ##
2025 ## ---------------- ##"
2027 # The following way of writing the cache mishandles newlines in values,
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059 $as_echo "## ----------------- ##
2060 ## Output variables. ##
2061 ## ----------------- ##"
2063 for ac_var in $ac_subst_vars
2065 eval ac_val=\$$ac_var
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069 $as_echo "$ac_var='\''$ac_val'\''"
2073 if test -n "$ac_subst_files"; then
2074 $as_echo "## ------------------- ##
2075 ## File substitutions. ##
2076 ## ------------------- ##"
2078 for ac_var in $ac_subst_files
2080 eval ac_val=\$$ac_var
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 $as_echo "$ac_var='\''$ac_val'\''"
2089 if test -s confdefs.h; then
2090 $as_echo "## ----------- ##
2097 test "$ac_signal" != 0 &&
2098 $as_echo "$as_me: caught signal $ac_signal"
2099 $as_echo "$as_me: exit $exit_status"
2101 rm -f core *.core core.conftest.* &&
2102 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2105 for ac_signal in 1 2 13 15; do
2106 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2111 rm -f -r conftest* confdefs.h
2113 $as_echo "/* confdefs.h */" > confdefs.h
2115 # Predefined preprocessor variables.
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "$PACKAGE_NAME"
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_STRING "$PACKAGE_STRING"
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_URL "$PACKAGE_URL"
2142 # Let the site file select an alternate cache file if it wants to.
2143 # Prefer an explicitly selected file to automatically selected ones.
2146 if test -n "$CONFIG_SITE"; then
2147 # We do not want a PATH search for config.site.
2148 case $CONFIG_SITE in #((
2149 -*) ac_site_file1=./$CONFIG_SITE;;
2150 */*) ac_site_file1=$CONFIG_SITE;;
2151 *) ac_site_file1=./$CONFIG_SITE;;
2153 elif test "x$prefix" != xNONE; then
2154 ac_site_file1=$prefix/share/config.site
2155 ac_site_file2=$prefix/etc/config.site
2157 ac_site_file1=$ac_default_prefix/share/config.site
2158 ac_site_file2=$ac_default_prefix/etc/config.site
2160 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162 test "x$ac_site_file" = xNONE && continue
2163 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2166 sed 's/^/| /' "$ac_site_file" >&5
2168 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170 as_fn_error $? "failed to load site script $ac_site_file
2171 See \`config.log' for more details" "$LINENO" 5; }
2175 if test -r "$cache_file"; then
2176 # Some versions of bash will fail to source /dev/null (special files
2177 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2178 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180 $as_echo "$as_me: loading cache $cache_file" >&6;}
2182 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2183 *) . "./$cache_file";;
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188 $as_echo "$as_me: creating cache $cache_file" >&6;}
2192 # Check that the precious variables saved in the cache have kept the same
2194 ac_cache_corrupted=false
2195 for ac_var in $ac_precious_vars; do
2196 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2197 eval ac_new_set=\$ac_env_${ac_var}_set
2198 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2199 eval ac_new_val=\$ac_env_${ac_var}_value
2200 case $ac_old_set,$ac_new_set in
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2204 ac_cache_corrupted=: ;;
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2208 ac_cache_corrupted=: ;;
2211 if test "x$ac_old_val" != "x$ac_new_val"; then
2212 # differences in whitespace do not lead to failure.
2213 ac_old_val_w=`echo x $ac_old_val`
2214 ac_new_val_w=`echo x $ac_new_val`
2215 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218 ac_cache_corrupted=:
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222 eval $ac_var=\$ac_old_val
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2225 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2227 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2230 # Pass precious variables to config.status.
2231 if test "$ac_new_set" = set; then
2233 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 *) ac_arg=$ac_var=$ac_new_val ;;
2236 case " $ac_configure_args " in
2237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2238 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2242 if $ac_cache_corrupted; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249 ## -------------------- ##
2250 ## Main body of script. ##
2251 ## -------------------- ##
2254 ac_cpp='$CPP $CPPFLAGS'
2255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262 am__api_version='1.15'
2265 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2266 if test -f "$ac_dir/install-sh"; then
2268 ac_install_sh="$ac_aux_dir/install-sh -c"
2270 elif test -f "$ac_dir/install.sh"; then
2272 ac_install_sh="$ac_aux_dir/install.sh -c"
2274 elif test -f "$ac_dir/shtool"; then
2276 ac_install_sh="$ac_aux_dir/shtool install -c"
2280 if test -z "$ac_aux_dir"; then
2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2293 # Find a good install program. We prefer a C program (faster),
2294 # so one script is as good as another. But avoid the broken or
2295 # incompatible versions:
2296 # SysV /etc/install, /usr/sbin/install
2297 # SunOS /usr/etc/install
2298 # IRIX /sbin/install
2300 # AmigaOS /C/install, which installs bootblocks on floppy discs
2301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2304 # OS/2's system install, which has a completely different semantic
2305 # ./install, which can be erroneously created by make from ./install.sh.
2306 # Reject install programs that cannot install multiple files.
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2308 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2309 if test -z "$INSTALL"; then
2310 if ${ac_cv_path_install+:} false; then :
2311 $as_echo_n "(cached) " >&6
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 test -z "$as_dir" && as_dir=.
2318 # Account for people who put trailing slashes in PATH elements.
2319 case $as_dir/ in #((
2320 ./ | .// | /[cC]/* | \
2321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2322 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2325 # OSF1 and SCO ODT 3.0 have their own names for install.
2326 # Don't use installbsd from OSF since it installs stuff as root
2328 for ac_prog in ginstall scoinst install; do
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2331 if test $ac_prog = install &&
2332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2333 # AIX install. It has an incompatible calling convention.
2335 elif test $ac_prog = install &&
2336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337 # program-specific install script used by HP pwplus--don't use.
2340 rm -rf conftest.one conftest.two conftest.dir
2341 echo one > conftest.one
2342 echo two > conftest.two
2344 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2345 test -s conftest.one && test -s conftest.two &&
2346 test -s conftest.dir/conftest.one &&
2347 test -s conftest.dir/conftest.two
2349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2362 rm -rf conftest.one conftest.two conftest.dir
2365 if test "${ac_cv_path_install+set}" = set; then
2366 INSTALL=$ac_cv_path_install
2368 # As a last resort, use the slow shell script. Don't cache a
2369 # value for INSTALL within a source directory, because that will
2370 # break other packages using the cache if that directory is
2371 # removed, or if the value is a relative name.
2372 INSTALL=$ac_install_sh
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2376 $as_echo "$INSTALL" >&6; }
2378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2379 # It thinks the first close brace ends the variable substitution.
2380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2387 $as_echo_n "checking whether build environment is sane... " >&6; }
2388 # Reject unsafe characters in $srcdir or the absolute working directory
2389 # name. Accept space and tab only in the latter.
2393 *[\\\"\#\$\&\'\`$am_lf]*)
2394 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2397 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2398 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2401 # Do 'set' in a subshell so we don't clobber the current shell's
2402 # arguments. Must try -L first in case configure is actually a
2403 # symlink; some systems play weird games with the mod time of symlinks
2404 # (eg FreeBSD returns the mod time of the symlink's containing
2408 for am_try in 1 2; do
2409 echo "timestamp, slept: $am_has_slept" > conftest.file
2410 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2411 if test "$*" = "X"; then
2413 set X `ls -t "$srcdir/configure" conftest.file`
2415 if test "$*" != "X $srcdir/configure conftest.file" \
2416 && test "$*" != "X conftest.file $srcdir/configure"; then
2418 # If neither matched, then we have a broken ls. This can happen
2419 # if, for instance, CONFIG_SHELL is bash and it inherits a
2420 # broken ls alias from the environment. This has actually
2421 # happened. Such a system could not be considered "sane".
2422 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2423 alias in your environment" "$LINENO" 5
2425 if test "$2" = conftest.file || test $am_try -eq 2; then
2432 test "$2" = conftest.file
2438 as_fn_error $? "newly created file is older than distributed files!
2439 Check your system clock" "$LINENO" 5
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2442 $as_echo "yes" >&6; }
2443 # If we didn't sleep, we still need to ensure time stamps of config.status and
2444 # generated files are strictly newer.
2446 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2453 test "$program_prefix" != NONE &&
2454 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2455 # Use a double $ so make ignores it.
2456 test "$program_suffix" != NONE &&
2457 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2458 # Double any \ or $.
2459 # By default was `s,x,x', remove it if useless.
2460 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2461 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2463 # Expand $ac_aux_dir to an absolute path.
2464 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2466 if test x"${MISSING+set}" != xset; then
2469 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2471 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2474 # Use eval to expand $SHELL
2475 if eval "$MISSING --is-lightweight"; then
2476 am_missing_run="$MISSING "
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2480 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2483 if test x"${install_sh+set}" != xset; then
2486 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2488 install_sh="\${SHELL} $am_aux_dir/install-sh"
2492 # Installed binaries are usually stripped using 'strip' when the user
2493 # run "make install-strip". However 'strip' might not be the right
2494 # tool to use in cross-compilation environments, therefore Automake
2495 # will honor the 'STRIP' environment variable to overrule this program.
2496 if test "$cross_compiling" != no; then
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}strip; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_STRIP+:} false; then :
2503 $as_echo_n "(cached) " >&6
2505 if test -n "$STRIP"; then
2506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 STRIP=$ac_cv_prog_STRIP
2526 if test -n "$STRIP"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2528 $as_echo "$STRIP" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2536 if test -z "$ac_cv_prog_STRIP"; then
2538 # Extract the first word of "strip", so it can be a program name with args.
2539 set dummy strip; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2543 $as_echo_n "(cached) " >&6
2545 if test -n "$ac_ct_STRIP"; then
2546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_ac_ct_STRIP="strip"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2566 if test -n "$ac_ct_STRIP"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2568 $as_echo "$ac_ct_STRIP" >&6; }
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2574 if test "x$ac_ct_STRIP" = x; then
2577 case $cross_compiling:$ac_tool_warned in
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2581 ac_tool_warned=yes ;;
2586 STRIP="$ac_cv_prog_STRIP"
2590 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2593 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2594 if test -z "$MKDIR_P"; then
2595 if ${ac_cv_path_mkdir+:} false; then :
2596 $as_echo_n "(cached) " >&6
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2602 test -z "$as_dir" && as_dir=.
2603 for ac_prog in mkdir gmkdir; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2606 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2607 'mkdir (GNU coreutils) '* | \
2608 'mkdir (coreutils) '* | \
2609 'mkdir (fileutils) '4.1*)
2610 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2620 test -d ./--version && rmdir ./--version
2621 if test "${ac_cv_path_mkdir+set}" = set; then
2622 MKDIR_P="$ac_cv_path_mkdir -p"
2624 # As a last resort, use the slow shell script. Don't cache a
2625 # value for MKDIR_P within a source directory, because that will
2626 # break other packages using the cache if that directory is
2627 # removed, or if the value is a relative name.
2628 MKDIR_P="$ac_install_sh -d"
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2632 $as_echo "$MKDIR_P" >&6; }
2634 for ac_prog in gawk mawk nawk awk
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_AWK+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2673 test -n "$AWK" && break
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2677 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2679 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2680 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2681 $as_echo_n "(cached) " >&6
2683 cat >conftest.make <<\_ACEOF
2686 @echo '@@@%%%=$(MAKE)=@@@%%%'
2688 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2689 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2691 eval ac_cv_prog_make_${ac_make}_set=yes;;
2693 eval ac_cv_prog_make_${ac_make}_set=no;;
2697 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2699 $as_echo "yes" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 SET_MAKE="MAKE=${MAKE-make}"
2707 rm -rf .tst 2>/dev/null
2708 mkdir .tst 2>/dev/null
2709 if test -d .tst; then
2714 rmdir .tst 2>/dev/null
2716 # Check whether --enable-silent-rules was given.
2717 if test "${enable_silent_rules+set}" = set; then :
2718 enableval=$enable_silent_rules;
2721 case $enable_silent_rules in # (((
2722 yes) AM_DEFAULT_VERBOSITY=0;;
2723 no) AM_DEFAULT_VERBOSITY=1;;
2724 *) AM_DEFAULT_VERBOSITY=1;;
2726 am_make=${MAKE-make}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2728 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2729 if ${am_cv_make_support_nested_variables+:} false; then :
2730 $as_echo_n "(cached) " >&6
2732 if $as_echo 'TRUE=$(BAR$(V))
2738 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2739 am_cv_make_support_nested_variables=yes
2741 am_cv_make_support_nested_variables=no
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2745 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2746 if test $am_cv_make_support_nested_variables = yes; then
2748 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2750 AM_V=$AM_DEFAULT_VERBOSITY
2751 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2755 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2756 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2757 # is not polluted with repeated "-I."
2758 am__isrc=' -I$(srcdir)'
2759 # test to see if srcdir already configured
2760 if test -f $srcdir/config.status; then
2761 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2765 # test whether we have cygpath
2766 if test -z "$CYGPATH_W"; then
2767 if (cygpath --version) >/dev/null 2>/dev/null; then
2768 CYGPATH_W='cygpath -w'
2775 # Define the identity of the package.
2780 cat >>confdefs.h <<_ACEOF
2781 #define PACKAGE "$PACKAGE"
2785 cat >>confdefs.h <<_ACEOF
2786 #define VERSION "$VERSION"
2789 # Some tools Automake needs.
2791 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2794 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2797 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2800 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2803 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2805 # For better backward compatibility. To be removed once Automake 1.9.x
2806 # dies out for good. For more background, see:
2807 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2808 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2809 mkdir_p='$(MKDIR_P)'
2811 # We need awk for the "check" target (and possibly the TAP driver). The
2812 # system "awk" is bad on some platforms.
2813 # Always define AMTAR for backward compatibility. Yes, it's still used
2814 # in the wild :-( We should find a proper way to deprecate it ...
2818 # We'll loop over all known methods to create a tar archive until one works.
2819 _am_tools='gnutar pax cpio none'
2821 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2828 # POSIX will say in a future version that running "rm -f" with no argument
2829 # is OK; and we want to be able to make that assumption in our Makefile
2830 # recipes. So use an aggressive probe to check that the usage we want is
2831 # actually supported "in the wild" to an acceptable degree.
2832 # See automake bug#10828.
2833 # To make any issue more visible, cause the running configure to be aborted
2834 # by default if the 'rm' program in use doesn't match our expectations; the
2835 # user can still override this though.
2836 if rm -f && rm -fr && rm -rf; then : OK; else
2840 Your 'rm' program seems unable to run without file operands specified
2841 on the command line, even when the '-f' option is present. This is contrary
2842 to the behaviour of most rm programs out there, and not conforming with
2843 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2845 Please tell bug-automake@gnu.org about your system, including the value
2846 of your $PATH and any error possibly output before this message. This
2847 can help us improve future automake versions.
2850 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2851 echo 'Configuration will proceed anyway, since you have set the' >&2
2852 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2856 Aborting the configuration process, to ensure you take notice of the issue.
2858 You can download and install GNU coreutils to get an 'rm' implementation
2859 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2861 If you want to complete the configuration process using your problematic
2862 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2863 to "yes", and re-run configure.
2866 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2870 ac_config_headers="$ac_config_headers config.h"
2873 # C compiler and features
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_CC+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2924 if test -z "$ac_cv_prog_CC"; then
2926 # Extract the first word of "gcc", so it can be a program name with args.
2927 set dummy gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_ac_ct_CC="gcc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954 if test -n "$ac_ct_CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2956 $as_echo "$ac_ct_CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2962 if test "x$ac_ct_CC" = x; then
2965 case $cross_compiling:$ac_tool_warned in
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969 ac_tool_warned=yes ;;
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}cc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_CC="${ac_tool_prefix}cc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3018 if test -z "$CC"; then
3019 # Extract the first word of "cc", so it can be a program name with args.
3020 set dummy cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038 ac_prog_rejected=yes
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test $ac_prog_rejected = yes; then
3050 # We found a bogon in the path, so make sure we never use it.
3051 set dummy $ac_cv_prog_CC
3053 if test $# != 0; then
3054 # We chose a different compiler from the bogus one.
3055 # However, it has the same basename, so the bogon will be chosen
3056 # first if we set CC to just the basename; use the full file name.
3058 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 for ac_prog in cl.exe
3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3115 test -n "$CC" && break
3118 if test -z "$CC"; then
3120 for ac_prog in cl.exe
3122 # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_ac_ct_CC="$ac_prog"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3159 test -n "$ac_ct_CC" && break
3162 if test "x$ac_ct_CC" = x; then
3165 case $cross_compiling:$ac_tool_warned in
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3178 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error $? "no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details" "$LINENO" 5; }
3183 # Provide some information about the compiler.
3184 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3187 for ac_option in --version -v -V -qversion; do
3188 { { ac_try="$ac_compiler $ac_option >&5"
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3197 if test -s conftest.err; then
3199 ... rest of stderr output deleted ...
3200 10q' conftest.err >conftest.er1
3201 cat conftest.er1 >&5
3203 rm -f conftest.er1 conftest.err
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 ac_clean_files_save=$ac_clean_files
3220 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3221 # Try to create an executable without -o first, disregard a.out.
3222 # It will help us diagnose broken compilers, and finding out an intuition
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3225 $as_echo_n "checking whether the C compiler works... " >&6; }
3226 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228 # The possible output files:
3229 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3232 for ac_file in $ac_files
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3241 if { { ac_try="$ac_link_default"
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_link_default") 2>&5
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3253 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3254 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3255 # so that the user can short-circuit this test for compilers unknown to
3257 for ac_file in $ac_files ''
3259 test -f "$ac_file" || continue
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3264 # We found the default executable, but exeext='' is most
3268 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3270 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 # We set ac_cv_exeext here because the later test for it is not
3273 # safe: cross compilers may not add the suffix if given an `-o'
3274 # argument, so we may need to know it at that point already.
3275 # Even if this section looks crufty: it has the advantage of
3282 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287 if test -z "$ac_file"; then :
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error 77 "C compiler cannot create executables
3296 See \`config.log' for more details" "$LINENO" 5; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3302 $as_echo_n "checking for C compiler default output file name... " >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3304 $as_echo "$ac_file" >&6; }
3305 ac_exeext=$ac_cv_exeext
3307 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3308 ac_clean_files=$ac_clean_files_save
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3310 $as_echo_n "checking for suffix of executables... " >&6; }
3311 if { { ac_try="$ac_link"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link") 2>&5
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3324 # work properly (i.e., refer to `conftest.exe'), while it won't with
3326 for ac_file in conftest.exe conftest conftest.*; do
3327 test -f "$ac_file" || continue
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3339 See \`config.log' for more details" "$LINENO" 5; }
3341 rm -f conftest conftest$ac_cv_exeext
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3343 $as_echo "$ac_cv_exeext" >&6; }
3345 rm -f conftest.$ac_ext
3346 EXEEXT=$ac_cv_exeext
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3354 FILE *f = fopen ("conftest.out", "w");
3355 return ferror (f) || fclose (f) != 0;
3361 ac_clean_files="$ac_clean_files conftest.out"
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3365 $as_echo_n "checking whether we are cross compiling... " >&6; }
3366 if test "$cross_compiling" != yes; then
3367 { { ac_try="$ac_link"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_link") 2>&5
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }
3378 if { ac_try='./conftest$ac_cv_exeext'
3379 { { case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_try") 2>&5
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; }; then
3391 if test "$cross_compiling" = maybe; then
3394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error $? "cannot run C compiled programs.
3397 If you meant to cross compile, use \`--host'.
3398 See \`config.log' for more details" "$LINENO" 5; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3403 $as_echo "$cross_compiling" >&6; }
3405 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3406 ac_clean_files=$ac_clean_files_save
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3408 $as_echo_n "checking for suffix of object files... " >&6; }
3409 if ${ac_cv_objext+:} false; then :
3410 $as_echo_n "(cached) " >&6
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3423 rm -f conftest.o conftest.obj
3424 if { { ac_try="$ac_compile"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_compile") 2>&5
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; then :
3435 for ac_file in conftest.o conftest.obj conftest.*; do
3436 test -f "$ac_file" || continue;
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3439 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3444 $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $? "cannot compute suffix of object files: cannot compile
3450 See \`config.log' for more details" "$LINENO" 5; }
3452 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3455 $as_echo "$ac_cv_objext" >&6; }
3456 OBJEXT=$ac_cv_objext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3459 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3460 if ${ac_cv_c_compiler_gnu+:} false; then :
3461 $as_echo_n "(cached) " >&6
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3477 if ac_fn_c_try_compile "$LINENO"; then :
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3487 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3493 ac_test_CFLAGS=${CFLAGS+set}
3494 ac_save_CFLAGS=$CFLAGS
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3496 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3497 if ${ac_cv_prog_cc_g+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 ac_save_c_werror_flag=$ac_c_werror_flag
3501 ac_c_werror_flag=yes
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3515 if ac_fn_c_try_compile "$LINENO"; then :
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3530 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_c_werror_flag=$ac_save_c_werror_flag
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 if ac_fn_c_try_compile "$LINENO"; then :
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_c_werror_flag=$ac_save_c_werror_flag
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3557 $as_echo "$ac_cv_prog_cc_g" >&6; }
3558 if test "$ac_test_CFLAGS" = set; then
3559 CFLAGS=$ac_save_CFLAGS
3560 elif test $ac_cv_prog_cc_g = yes; then
3561 if test "$GCC" = yes; then
3567 if test "$GCC" = yes; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3574 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3575 if ${ac_cv_prog_cc_c89+:} false; then :
3576 $as_echo_n "(cached) " >&6
3578 ac_cv_prog_cc_c89=no
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3585 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3586 struct buf { int x; };
3587 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3588 static char *e (p, i)
3594 static char *f (char * (*g) (char **, int), char **p, ...)
3599 s = g (p, va_arg (v,int));
3604 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3605 function prototypes and stuff, but not '\xHH' hex character constants.
3606 These don't provoke an error unfortunately, instead are silently treated
3607 as 'x'. The following induces an error, until -std is added to get
3608 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3609 array size at least. It's necessary to write '\x00'==0 to get something
3610 that's true only with -std. */
3611 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3614 inside strings and character constants. */
3616 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618 int test (int i, double x);
3619 struct s1 {int (*f) (int a);};
3620 struct s2 {int (*f) (double a);};
3621 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3627 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3633 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3635 CC="$ac_save_CC $ac_arg"
3636 if ac_fn_c_try_compile "$LINENO"; then :
3637 ac_cv_prog_cc_c89=$ac_arg
3639 rm -f core conftest.err conftest.$ac_objext
3640 test "x$ac_cv_prog_cc_c89" != "xno" && break
3642 rm -f conftest.$ac_ext
3647 case "x$ac_cv_prog_cc_c89" in
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3650 $as_echo "none needed" >&6; } ;;
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3653 $as_echo "unsupported" >&6; } ;;
3655 CC="$CC $ac_cv_prog_cc_c89"
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3657 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3659 if test "x$ac_cv_prog_cc_c89" != xno; then :
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3675 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3676 if ${am_cv_prog_cc_c_o+:} false; then :
3677 $as_echo_n "(cached) " >&6
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3690 # Make sure it works both with $CC and with simple cc.
3691 # Following AC_PROG_CC_C_O, we do the test twice because some
3692 # compilers refuse to overwrite an existing .o file with -o,
3693 # though they will create one.
3694 am_cv_prog_cc_c_o=yes
3696 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3697 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } \
3701 && test -f conftest2.$ac_objext; then
3704 am_cv_prog_cc_c_o=no
3708 rm -f core conftest*
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3712 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3713 if test "$am_cv_prog_cc_c_o" != yes; then
3714 # Losing compiler, so override with the script.
3715 # FIXME: It is wrong to rewrite CC.
3716 # But if we don't then we get into trouble of one sort or another.
3717 # A longer-term fix would be to have automake use am__CC in this case,
3718 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3719 CC="$am_aux_dir/compile $CC"
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727 DEPDIR="${am__leading_dot}deps"
3729 ac_config_commands="$ac_config_commands depfiles"
3732 am_make=${MAKE-make}
3733 cat > confinc << 'END'
3735 @echo this is the am__doit target
3738 # If we don't find an include directive, just comment out the code.
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3740 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3744 # First try GNU make style include.
3745 echo "include confinc" > confmf
3746 # Ignore all kinds of additional output from 'make'.
3747 case `$am_make -s -f confmf 2> /dev/null` in #(
3748 *the\ am__doit\ target*)
3754 # Now try BSD make style include.
3755 if test "$am__include" = "#"; then
3756 echo '.include "confinc"' > confmf
3757 case `$am_make -s -f confmf 2> /dev/null` in #(
3758 *the\ am__doit\ target*)
3759 am__include=.include
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3768 $as_echo "$_am_result" >&6; }
3769 rm -f confinc confmf
3771 # Check whether --enable-dependency-tracking was given.
3772 if test "${enable_dependency_tracking+set}" = set; then :
3773 enableval=$enable_dependency_tracking;
3776 if test "x$enable_dependency_tracking" != xno; then
3777 am_depcomp="$ac_aux_dir/depcomp"
3781 if test "x$enable_dependency_tracking" != xno; then
3791 depcc="$CC" am_compiler_list=
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3794 $as_echo_n "checking dependency style of $depcc... " >&6; }
3795 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3796 $as_echo_n "(cached) " >&6
3798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3799 # We make a subdir and do the tests there. Otherwise we can end up
3800 # making bogus files that we don't know about and never remove. For
3801 # instance it was reported that on HP-UX the gcc test will end up
3802 # making a dummy file named 'D' -- because '-MD' means "put the output
3806 # Copy depcomp to subdir because otherwise we won't find it if we're
3807 # using a relative directory.
3808 cp "$am_depcomp" conftest.dir
3810 # We will build objects and dependencies in a subdirectory because
3811 # it helps to detect inapplicable dependency modes. For instance
3812 # both Tru64's cc and ICC support -MD to output dependencies as a
3813 # side effect of compilation, but ICC will put the dependencies in
3814 # the current directory while Tru64 will put them in the object
3818 am_cv_CC_dependencies_compiler_type=none
3819 if test "$am_compiler_list" = ""; then
3820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823 case " $depcc " in #(
3824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3827 for depmode in $am_compiler_list; do
3828 # Setup a source with many dependencies, because some compilers
3829 # like to wrap large dependency lists on column 80 (with \), and
3830 # we should not choose a depcomp mode which is confused by this.
3832 # We need to recreate these files for each test, as the compiler may
3833 # overwrite some of them when testing with obscure command lines.
3834 # This happens at least with the AIX C compiler.
3836 for i in 1 2 3 4 5 6; do
3837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3839 # Solaris 10 /bin/sh.
3840 echo '/* dummy */' > sub/conftst$i.h
3842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3844 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3845 # mode. It turns out that the SunPro C++ compiler does not properly
3846 # handle '-M -o', and we need to detect this. Also, some Intel
3847 # versions had trouble with output in subdirs.
3848 am__obj=sub/conftest.${OBJEXT-o}
3849 am__minus_obj="-o $am__obj"
3852 # This depmode causes a compiler race in universal mode.
3853 test "$am__universal" = false || continue
3856 # After this tag, mechanisms are not by side-effect, so they'll
3857 # only be used when explicitly requested.
3858 if test "x$enable_dependency_tracking" = xyes; then
3864 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3865 # This compiler won't grok '-c -o', but also, the minuso test has
3866 # not run yet. These depmodes are late enough in the game, and
3867 # so weak that their functioning should not be impacted.
3868 am__obj=conftest.${OBJEXT-o}
3873 if depmode=$depmode \
3874 source=sub/conftest.c object=$am__obj \
3875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3877 >/dev/null 2>conftest.err &&
3878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3882 # icc doesn't choke on unknown options, it will just issue warnings
3883 # or remarks (even with -Werror). So we grep stderr for any message
3884 # that says an option was ignored or not supported.
3885 # When given -MP, icc 7.0 and 7.1 complain thusly:
3886 # icc: Command line warning: ignoring option '-M'; no argument required
3887 # The diagnosis changed in icc 8.0:
3888 # icc: Command line remark: option '-MP' not supported
3889 if (grep 'ignoring option' conftest.err ||
3890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3891 am_cv_CC_dependencies_compiler_type=$depmode
3900 am_cv_CC_dependencies_compiler_type=none
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3905 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3906 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3909 test "x$enable_dependency_tracking" != xno \
3910 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3912 am__fastdepCC_FALSE='#'
3914 am__fastdepCC_TRUE='#'
3915 am__fastdepCC_FALSE=
3919 case $ac_cv_prog_cc_stdc in #(
3921 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3924 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3925 if ${ac_cv_prog_cc_c99+:} false; then :
3926 $as_echo_n "(cached) " >&6
3928 ac_cv_prog_cc_c99=no
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3933 #include <stdbool.h>
3938 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3939 #define debug(...) fprintf (stderr, __VA_ARGS__)
3940 #define showlist(...) puts (#__VA_ARGS__)
3941 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3943 test_varargs_macros (void)
3948 debug ("X = %d\n", x);
3949 showlist (The first, second, and third items.);
3950 report (x>y, "x is %d but y is %d", x, y);
3953 // Check long long types.
3954 #define BIG64 18446744073709551615ull
3955 #define BIG32 4294967295ul
3956 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3958 your preprocessor is broken;
3962 your preprocessor is broken;
3964 static long long int bignum = -9223372036854775807LL;
3965 static unsigned long long int ubignum = BIG64;
3967 struct incomplete_array
3975 const wchar_t *name;
3979 typedef const char *ccp;
3982 test_restrict (ccp restrict text)
3984 // See if C++-style comments work.
3985 // Iterate through items via the restricted pointer.
3986 // Also check for declarations in for loops.
3987 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3992 // Check varargs and va_copy.
3994 test_varargs (const char *format, ...)
3997 va_start (args, format);
3999 va_copy (args_copy, args);
4010 str = va_arg (args_copy, const char *);
4013 number = va_arg (args_copy, int);
4016 fnumber = va_arg (args_copy, double);
4031 _Bool success = false;
4034 if (test_restrict ("String literal") == 0)
4036 char *restrict newvar = "Another string";
4039 test_varargs ("s, d' f .", "string", 65, 34.234);
4040 test_varargs_macros ();
4042 // Check flexible array members.
4043 struct incomplete_array *ia =
4044 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4046 for (int i = 0; i < ia->datasize; ++i)
4047 ia->data[i] = i * 1.234;
4049 // Check named initializers.
4050 struct named_init ni = {
4052 .name = L"Test wide string",
4053 .average = 543.34343,
4058 int dynamic_array[ni.number];
4059 dynamic_array[ni.number - 1] = 543;
4061 // work around unused variable warnings
4062 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4063 || dynamic_array[ni.number - 1] != 543);
4069 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4071 CC="$ac_save_CC $ac_arg"
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_cv_prog_cc_c99=$ac_arg
4075 rm -f core conftest.err conftest.$ac_objext
4076 test "x$ac_cv_prog_cc_c99" != "xno" && break
4078 rm -f conftest.$ac_ext
4083 case "x$ac_cv_prog_cc_c99" in
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4086 $as_echo "none needed" >&6; } ;;
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4089 $as_echo "unsupported" >&6; } ;;
4091 CC="$CC $ac_cv_prog_cc_c99"
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4093 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4095 if test "x$ac_cv_prog_cc_c99" != xno; then :
4096 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4099 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4100 if ${ac_cv_prog_cc_c89+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 ac_cv_prog_cc_c89=no
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4111 struct buf { int x; };
4112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4113 static char *e (p, i)
4119 static char *f (char * (*g) (char **, int), char **p, ...)
4124 s = g (p, va_arg (v,int));
4129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4130 function prototypes and stuff, but not '\xHH' hex character constants.
4131 These don't provoke an error unfortunately, instead are silently treated
4132 as 'x'. The following induces an error, until -std is added to get
4133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4134 array size at least. It's necessary to write '\x00'==0 to get something
4135 that's true only with -std. */
4136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4138 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4139 inside strings and character constants. */
4141 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4143 int test (int i, double x);
4144 struct s1 {int (*f) (int a);};
4145 struct s2 {int (*f) (double a);};
4146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4157 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4160 CC="$ac_save_CC $ac_arg"
4161 if ac_fn_c_try_compile "$LINENO"; then :
4162 ac_cv_prog_cc_c89=$ac_arg
4164 rm -f core conftest.err conftest.$ac_objext
4165 test "x$ac_cv_prog_cc_c89" != "xno" && break
4167 rm -f conftest.$ac_ext
4172 case "x$ac_cv_prog_cc_c89" in
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4175 $as_echo "none needed" >&6; } ;;
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4178 $as_echo "unsupported" >&6; } ;;
4180 CC="$CC $ac_cv_prog_cc_c89"
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4182 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4184 if test "x$ac_cv_prog_cc_c89" != xno; then :
4185 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4187 ac_cv_prog_cc_stdc=no
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4194 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4195 if ${ac_cv_prog_cc_stdc+:} false; then :
4196 $as_echo_n "(cached) " >&6
4199 case $ac_cv_prog_cc_stdc in #(
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202 $as_echo "unsupported" >&6; } ;; #(
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4205 $as_echo "none needed" >&6; } ;; #(
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4208 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4217 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4218 # On Suns, sometimes $CPP names a directory.
4219 if test -n "$CPP" && test -d "$CPP"; then
4222 if test -z "$CPP"; then
4223 if ${ac_cv_prog_CPP+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 # Double quotes because CPP needs to be expanded
4227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4230 for ac_c_preproc_warn_flag in '' yes
4232 # Use a header file that comes with gcc, so configuring glibc
4233 # with a fresh cross-compiler works.
4234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235 # <limits.h> exists even on freestanding compilers.
4236 # On the NeXT, cc -E runs the code through the compiler's parser,
4237 # not just through cpp. "Syntax error" is here to catch this case.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4241 # include <limits.h>
4243 # include <assert.h>
4247 if ac_fn_c_try_cpp "$LINENO"; then :
4250 # Broken: fails on valid input.
4253 rm -f conftest.err conftest.i conftest.$ac_ext
4255 # OK, works on sane cases. Now check whether nonexistent headers
4256 # can be detected and how.
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #include <ac_nonexistent.h>
4261 if ac_fn_c_try_cpp "$LINENO"; then :
4262 # Broken: success on invalid input.
4265 # Passes both tests.
4269 rm -f conftest.err conftest.i conftest.$ac_ext
4272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273 rm -f conftest.i conftest.err conftest.$ac_ext
4274 if $ac_preproc_ok; then :
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4287 $as_echo "$CPP" >&6; }
4289 for ac_c_preproc_warn_flag in '' yes
4291 # Use a header file that comes with gcc, so configuring glibc
4292 # with a fresh cross-compiler works.
4293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4294 # <limits.h> exists even on freestanding compilers.
4295 # On the NeXT, cc -E runs the code through the compiler's parser,
4296 # not just through cpp. "Syntax error" is here to catch this case.
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4300 # include <limits.h>
4302 # include <assert.h>
4306 if ac_fn_c_try_cpp "$LINENO"; then :
4309 # Broken: fails on valid input.
4312 rm -f conftest.err conftest.i conftest.$ac_ext
4314 # OK, works on sane cases. Now check whether nonexistent headers
4315 # can be detected and how.
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4318 #include <ac_nonexistent.h>
4320 if ac_fn_c_try_cpp "$LINENO"; then :
4321 # Broken: success on invalid input.
4324 # Passes both tests.
4328 rm -f conftest.err conftest.i conftest.$ac_ext
4331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4332 rm -f conftest.i conftest.err conftest.$ac_ext
4333 if $ac_preproc_ok; then :
4336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4338 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4339 See \`config.log' for more details" "$LINENO" 5; }
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4351 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4352 if ${ac_cv_path_GREP+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 if test -z "$GREP"; then
4356 ac_path_GREP_found=false
4357 # Loop through the user's path and test for each of PROGNAME-LIST
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4362 test -z "$as_dir" && as_dir=.
4363 for ac_prog in grep ggrep; do
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4366 as_fn_executable_p "$ac_path_GREP" || continue
4367 # Check for GNU ac_path_GREP and select it if it is found.
4368 # Check for GNU $ac_path_GREP
4369 case `"$ac_path_GREP" --version 2>&1` in
4371 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4374 $as_echo_n 0123456789 >"conftest.in"
4377 cat "conftest.in" "conftest.in" >"conftest.tmp"
4378 mv "conftest.tmp" "conftest.in"
4379 cp "conftest.in" "conftest.nl"
4380 $as_echo 'GREP' >> "conftest.nl"
4381 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4383 as_fn_arith $ac_count + 1 && ac_count=$as_val
4384 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4385 # Best one so far, save it but keep looking for a better one
4386 ac_cv_path_GREP="$ac_path_GREP"
4387 ac_path_GREP_max=$ac_count
4389 # 10*(2^10) chars as input seems more than enough
4390 test $ac_count -gt 10 && break
4392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4395 $ac_path_GREP_found && break 3
4400 if test -z "$ac_cv_path_GREP"; then
4401 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4404 ac_cv_path_GREP=$GREP
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4409 $as_echo "$ac_cv_path_GREP" >&6; }
4410 GREP="$ac_cv_path_GREP"
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4414 $as_echo_n "checking for egrep... " >&6; }
4415 if ${ac_cv_path_EGREP+:} false; then :
4416 $as_echo_n "(cached) " >&6
4418 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4419 then ac_cv_path_EGREP="$GREP -E"
4421 if test -z "$EGREP"; then
4422 ac_path_EGREP_found=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428 test -z "$as_dir" && as_dir=.
4429 for ac_prog in egrep; do
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4432 as_fn_executable_p "$ac_path_EGREP" || continue
4433 # Check for GNU ac_path_EGREP and select it if it is found.
4434 # Check for GNU $ac_path_EGREP
4435 case `"$ac_path_EGREP" --version 2>&1` in
4437 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4440 $as_echo_n 0123456789 >"conftest.in"
4443 cat "conftest.in" "conftest.in" >"conftest.tmp"
4444 mv "conftest.tmp" "conftest.in"
4445 cp "conftest.in" "conftest.nl"
4446 $as_echo 'EGREP' >> "conftest.nl"
4447 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449 as_fn_arith $ac_count + 1 && ac_count=$as_val
4450 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4451 # Best one so far, save it but keep looking for a better one
4452 ac_cv_path_EGREP="$ac_path_EGREP"
4453 ac_path_EGREP_max=$ac_count
4455 # 10*(2^10) chars as input seems more than enough
4456 test $ac_count -gt 10 && break
4458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4461 $ac_path_EGREP_found && break 3
4466 if test -z "$ac_cv_path_EGREP"; then
4467 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4470 ac_cv_path_EGREP=$EGREP
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4476 $as_echo "$ac_cv_path_EGREP" >&6; }
4477 EGREP="$ac_cv_path_EGREP"
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4481 $as_echo_n "checking for ANSI C header files... " >&6; }
4482 if ${ac_cv_header_stdc+:} false; then :
4483 $as_echo_n "(cached) " >&6
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501 ac_cv_header_stdc=yes
4503 ac_cv_header_stdc=no
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 if test $ac_cv_header_stdc = yes; then
4508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "memchr" >/dev/null 2>&1; then :
4518 ac_cv_header_stdc=no
4524 if test $ac_cv_header_stdc = yes; then
4525 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 $EGREP "free" >/dev/null 2>&1; then :
4535 ac_cv_header_stdc=no
4541 if test $ac_cv_header_stdc = yes; then
4542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4543 if test "$cross_compiling" = yes; then :
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4550 #if ((' ' & 0x0FF) == 0x020)
4551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4554 # define ISLOWER(c) \
4555 (('a' <= (c) && (c) <= 'i') \
4556 || ('j' <= (c) && (c) <= 'r') \
4557 || ('s' <= (c) && (c) <= 'z'))
4558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4566 for (i = 0; i < 256; i++)
4567 if (XOR (islower (i), ISLOWER (i))
4568 || toupper (i) != TOUPPER (i))
4573 if ac_fn_c_try_run "$LINENO"; then :
4576 ac_cv_header_stdc=no
4578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4579 conftest.$ac_objext conftest.beam conftest.$ac_ext
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4585 $as_echo "$ac_cv_header_stdc" >&6; }
4586 if test $ac_cv_header_stdc = yes; then
4588 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4592 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4593 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4594 inttypes.h stdint.h unistd.h
4596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4597 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4599 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4600 cat >>confdefs.h <<_ACEOF
4601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4610 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4611 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4618 if test "$MINIX" = yes; then
4620 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4623 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4626 $as_echo "#define _MINIX 1" >>confdefs.h
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4632 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4633 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4639 # define __EXTENSIONS__ 1
4640 $ac_includes_default
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_cv_safe_to_define___extensions__=yes
4652 ac_cv_safe_to_define___extensions__=no
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4657 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4658 test $ac_cv_safe_to_define___extensions__ = yes &&
4659 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4661 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4663 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4665 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4667 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4672 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4673 if ${ac_cv_c_const+:} false; then :
4674 $as_echo_n "(cached) " >&6
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4684 /* Ultrix mips cc rejects this sort of thing. */
4685 typedef int charset[2];
4686 const charset cs = { 0, 0 };
4687 /* SunOS 4.1.1 cc rejects this. */
4688 char const *const *pcpcc;
4690 /* NEC SVR4.0.2 mips cc rejects this. */
4691 struct point {int x, y;};
4692 static struct point const zero = {0,0};
4693 /* AIX XL C 1.02.0.0 rejects this.
4694 It does not let you subtract one const X* pointer from another in
4695 an arm of an if-expression whose if-part is not a constant
4697 const char *g = "string";
4698 pcpcc = &g + (g ? g-g : 0);
4699 /* HPUX 7.0 cc rejects these. */
4701 ppc = (char**) pcpcc;
4702 pcpcc = (char const *const *) ppc;
4703 { /* SCO 3.2v4 cc rejects this sort of thing. */
4706 char const *s = 0 ? (char *) 0 : (char const *) 0;
4711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4713 const int *foo = &x[0];
4716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4717 typedef const int *iptr;
4721 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4723 struct s { int j; const int *ap[3]; } bx;
4724 struct s *b = &bx; b->j = 5;
4726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4730 return !cs[0] && !zero.x;
4737 if ac_fn_c_try_compile "$LINENO"; then :
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4745 $as_echo "$ac_cv_c_const" >&6; }
4746 if test $ac_cv_c_const = no; then
4748 $as_echo "#define const /**/" >>confdefs.h
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4753 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4754 if ${ac_cv_c_restrict+:} false; then :
4755 $as_echo_n "(cached) " >&6
4758 # The order here caters to the fact that C++ does not require restrict.
4759 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 typedef int * int_ptr;
4763 int foo (int_ptr $ac_kw ip) {
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_c_restrict=$ac_kw
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 test "$ac_cv_c_restrict" != no && break
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4786 $as_echo "$ac_cv_c_restrict" >&6; }
4788 case $ac_cv_c_restrict in
4790 no) $as_echo "#define restrict /**/" >>confdefs.h
4792 *) cat >>confdefs.h <<_ACEOF
4793 #define restrict $ac_cv_c_restrict
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4799 $as_echo_n "checking for working volatile... " >&6; }
4800 if ${ac_cv_c_volatile+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4811 int * volatile y = (int *) 0;
4817 if ac_fn_c_try_compile "$LINENO"; then :
4818 ac_cv_c_volatile=yes
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4825 $as_echo "$ac_cv_c_volatile" >&6; }
4826 if test $ac_cv_c_volatile = no; then
4828 $as_echo "#define volatile /**/" >>confdefs.h
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4838 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4843 macro_version='2.4.6'
4844 macro_revision='2.4.6'
4858 ltmain=$ac_aux_dir/ltmain.sh
4860 # Make sure we can run config.sub.
4861 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4862 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4865 $as_echo_n "checking build system type... " >&6; }
4866 if ${ac_cv_build+:} false; then :
4867 $as_echo_n "(cached) " >&6
4869 ac_build_alias=$build_alias
4870 test "x$ac_build_alias" = x &&
4871 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4872 test "x$ac_build_alias" = x &&
4873 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4874 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4875 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4879 $as_echo "$ac_cv_build" >&6; }
4880 case $ac_cv_build in
4882 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4885 ac_save_IFS=$IFS; IFS='-'
4891 # Remember, the first character of IFS is used to create $*,
4892 # except with old shells:
4895 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4899 $as_echo_n "checking host system type... " >&6; }
4900 if ${ac_cv_host+:} false; then :
4901 $as_echo_n "(cached) " >&6
4903 if test "x$host_alias" = x; then
4904 ac_cv_host=$ac_cv_build
4906 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4907 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4912 $as_echo "$ac_cv_host" >&6; }
4915 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4918 ac_save_IFS=$IFS; IFS='-'
4924 # Remember, the first character of IFS is used to create $*,
4925 # except with old shells:
4928 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4931 # Backslashify metacharacters that are still active within
4932 # double-quoted strings.
4933 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4935 # Same as above, but do not quote variable references.
4936 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4938 # Sed substitution to delay expansion of an escaped shell variable in a
4939 # double_quote_subst'ed string.
4940 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4942 # Sed substitution to delay expansion of an escaped single quote.
4943 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4945 # Sed substitution to avoid accidental globbing in evaled expressions
4946 no_glob_subst='s/\*/\\\*/g'
4948 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4949 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4950 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4953 $as_echo_n "checking how to print strings... " >&6; }
4954 # Test print first, because it will be a builtin if present.
4955 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4956 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4958 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4961 # Use this function as a fallback that always works.
4962 func_fallback_echo ()
4964 eval 'cat <<_LTECHO_EOF
4968 ECHO='func_fallback_echo'
4971 # func_echo_all arg...
4972 # Invoke $ECHO with all args, space-separated.
4979 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4980 $as_echo "printf" >&6; } ;;
4981 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4982 $as_echo "print -r" >&6; } ;;
4983 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4984 $as_echo "cat" >&6; } ;;
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5001 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5002 if ${ac_cv_path_SED+:} false; then :
5003 $as_echo_n "(cached) " >&6
5005 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5006 for ac_i in 1 2 3 4 5 6 7; do
5007 ac_script="$ac_script$as_nl$ac_script"
5009 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5010 { ac_script=; unset ac_script;}
5011 if test -z "$SED"; then
5012 ac_path_SED_found=false
5013 # Loop through the user's path and test for each of PROGNAME-LIST
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 test -z "$as_dir" && as_dir=.
5019 for ac_prog in sed gsed; do
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5022 as_fn_executable_p "$ac_path_SED" || continue
5023 # Check for GNU ac_path_SED and select it if it is found.
5024 # Check for GNU $ac_path_SED
5025 case `"$ac_path_SED" --version 2>&1` in
5027 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5030 $as_echo_n 0123456789 >"conftest.in"
5033 cat "conftest.in" "conftest.in" >"conftest.tmp"
5034 mv "conftest.tmp" "conftest.in"
5035 cp "conftest.in" "conftest.nl"
5036 $as_echo '' >> "conftest.nl"
5037 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5039 as_fn_arith $ac_count + 1 && ac_count=$as_val
5040 if test $ac_count -gt ${ac_path_SED_max-0}; then
5041 # Best one so far, save it but keep looking for a better one
5042 ac_cv_path_SED="$ac_path_SED"
5043 ac_path_SED_max=$ac_count
5045 # 10*(2^10) chars as input seems more than enough
5046 test $ac_count -gt 10 && break
5048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5051 $ac_path_SED_found && break 3
5056 if test -z "$ac_cv_path_SED"; then
5057 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5065 $as_echo "$ac_cv_path_SED" >&6; }
5066 SED="$ac_cv_path_SED"
5069 test -z "$SED" && SED=sed
5070 Xsed="$SED -e 1s/^X//"
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5083 $as_echo_n "checking for fgrep... " >&6; }
5084 if ${ac_cv_path_FGREP+:} false; then :
5085 $as_echo_n "(cached) " >&6
5087 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5088 then ac_cv_path_FGREP="$GREP -F"
5090 if test -z "$FGREP"; then
5091 ac_path_FGREP_found=false
5092 # Loop through the user's path and test for each of PROGNAME-LIST
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5097 test -z "$as_dir" && as_dir=.
5098 for ac_prog in fgrep; do
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5101 as_fn_executable_p "$ac_path_FGREP" || continue
5102 # Check for GNU ac_path_FGREP and select it if it is found.
5103 # Check for GNU $ac_path_FGREP
5104 case `"$ac_path_FGREP" --version 2>&1` in
5106 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5109 $as_echo_n 0123456789 >"conftest.in"
5112 cat "conftest.in" "conftest.in" >"conftest.tmp"
5113 mv "conftest.tmp" "conftest.in"
5114 cp "conftest.in" "conftest.nl"
5115 $as_echo 'FGREP' >> "conftest.nl"
5116 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5118 as_fn_arith $ac_count + 1 && ac_count=$as_val
5119 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5120 # Best one so far, save it but keep looking for a better one
5121 ac_cv_path_FGREP="$ac_path_FGREP"
5122 ac_path_FGREP_max=$ac_count
5124 # 10*(2^10) chars as input seems more than enough
5125 test $ac_count -gt 10 && break
5127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5130 $ac_path_FGREP_found && break 3
5135 if test -z "$ac_cv_path_FGREP"; then
5136 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5139 ac_cv_path_FGREP=$FGREP
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5145 $as_echo "$ac_cv_path_FGREP" >&6; }
5146 FGREP="$ac_cv_path_FGREP"
5149 test -z "$GREP" && GREP=grep
5169 # Check whether --with-gnu-ld was given.
5170 if test "${with_gnu_ld+set}" = set; then :
5171 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5177 if test yes = "$GCC"; then
5178 # Check if gcc -print-prog-name=ld gives a path.
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5180 $as_echo_n "checking for ld used by $CC... " >&6; }
5183 # gcc leaves a trailing carriage return, which upsets mingw
5184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5189 # Accept absolute paths.
5191 re_direlt='/[^/][^/]*/\.\./'
5192 # Canonicalize the pathname of ld
5193 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5194 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5195 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5197 test -z "$LD" && LD=$ac_prog
5200 # If it fails, then pretend we aren't using GCC.
5204 # If it is relative, then search for the first ld in PATH.
5208 elif test yes = "$with_gnu_ld"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5210 $as_echo_n "checking for GNU ld... " >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5213 $as_echo_n "checking for non-GNU ld... " >&6; }
5215 if ${lt_cv_path_LD+:} false; then :
5216 $as_echo_n "(cached) " >&6
5218 if test -z "$LD"; then
5219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5220 for ac_dir in $PATH; do
5222 test -z "$ac_dir" && ac_dir=.
5223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5224 lt_cv_path_LD=$ac_dir/$ac_prog
5225 # Check to see if the program is GNU ld. I'd rather use --version,
5226 # but apparently some variants of GNU ld only accept -v.
5227 # Break only if it was the GNU/non-GNU ld that we prefer.
5228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5229 *GNU* | *'with BFD'*)
5230 test no != "$with_gnu_ld" && break
5233 test yes != "$with_gnu_ld" && break
5240 lt_cv_path_LD=$LD # Let the user override the test with a path.
5245 if test -n "$LD"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5247 $as_echo "$LD" >&6; }
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5252 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5254 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5255 if ${lt_cv_prog_gnu_ld+:} false; then :
5256 $as_echo_n "(cached) " >&6
5258 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5259 case `$LD -v 2>&1 </dev/null` in
5260 *GNU* | *'with BFD'*)
5261 lt_cv_prog_gnu_ld=yes
5264 lt_cv_prog_gnu_ld=no
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5269 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5270 with_gnu_ld=$lt_cv_prog_gnu_ld
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5281 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5282 if ${lt_cv_path_NM+:} false; then :
5283 $as_echo_n "(cached) " >&6
5285 if test -n "$NM"; then
5286 # Let the user override the test.
5289 lt_nm_to_check=${ac_tool_prefix}nm
5290 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5291 lt_nm_to_check="$lt_nm_to_check nm"
5293 for lt_tmp_nm in $lt_nm_to_check; do
5294 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5295 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5297 test -z "$ac_dir" && ac_dir=.
5298 tmp_nm=$ac_dir/$lt_tmp_nm
5299 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5300 # Check to see if the nm accepts a BSD-compat flag.
5301 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5302 # nm: unknown option "B" ignored
5303 # Tru64's nm complains that /dev/null is an invalid object file
5304 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5306 mingw*) lt_bad_file=conftest.nm/nofile ;;
5307 *) lt_bad_file=/dev/null ;;
5309 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5310 *$lt_bad_file* | *'Invalid file or object type'*)
5311 lt_cv_path_NM="$tmp_nm -B"
5315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5317 lt_cv_path_NM="$tmp_nm -p"
5321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5322 continue # so that we can try to find one that supports BSD flags
5331 : ${lt_cv_path_NM=no}
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5335 $as_echo "$lt_cv_path_NM" >&6; }
5336 if test no != "$lt_cv_path_NM"; then
5339 # Didn't find any BSD compatible name lister, look for dumpbin.
5340 if test -n "$DUMPBIN"; then :
5341 # Let the user override the test.
5343 if test -n "$ac_tool_prefix"; then
5344 for ac_prog in dumpbin "link -dump"
5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_DUMPBIN+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 if test -n "$DUMPBIN"; then
5354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 DUMPBIN=$ac_cv_prog_DUMPBIN
5374 if test -n "$DUMPBIN"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5376 $as_echo "$DUMPBIN" >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5383 test -n "$DUMPBIN" && break
5386 if test -z "$DUMPBIN"; then
5387 ac_ct_DUMPBIN=$DUMPBIN
5388 for ac_prog in dumpbin "link -dump"
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391 set dummy $ac_prog; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5395 $as_echo_n "(cached) " >&6
5397 if test -n "$ac_ct_DUMPBIN"; then
5398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5418 if test -n "$ac_ct_DUMPBIN"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5420 $as_echo "$ac_ct_DUMPBIN" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5427 test -n "$ac_ct_DUMPBIN" && break
5430 if test "x$ac_ct_DUMPBIN" = x; then
5433 case $cross_compiling:$ac_tool_warned in
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5439 DUMPBIN=$ac_ct_DUMPBIN
5443 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5445 DUMPBIN="$DUMPBIN -symbols -headers"
5453 if test : != "$DUMPBIN"; then
5457 test -z "$NM" && NM=nm
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5465 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5466 if ${lt_cv_nm_interface+:} false; then :
5467 $as_echo_n "(cached) " >&6
5469 lt_cv_nm_interface="BSD nm"
5470 echo "int some_variable = 0;" > conftest.$ac_ext
5471 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5472 (eval "$ac_compile" 2>conftest.err)
5473 cat conftest.err >&5
5474 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5475 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5476 cat conftest.err >&5
5477 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5478 cat conftest.out >&5
5479 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5480 lt_cv_nm_interface="MS dumpbin"
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5485 $as_echo "$lt_cv_nm_interface" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5488 $as_echo_n "checking whether ln -s works... " >&6; }
5490 if test "$LN_S" = "ln -s"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5492 $as_echo "yes" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5495 $as_echo "no, using $LN_S" >&6; }
5498 # find the maximum length of command line arguments
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5500 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5501 if ${lt_cv_sys_max_cmd_len+:} false; then :
5502 $as_echo_n "(cached) " >&6
5509 # On DJGPP, this test can blow up pretty badly due to problems in libc
5510 # (any single argument exceeding 2000 bytes causes a buffer overrun
5511 # during glob expansion). Even if it were fixed, the result of this
5512 # check would be larger than it should be.
5513 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5517 # Under GNU Hurd, this test is not required because there is
5518 # no limit to the length of command line arguments.
5519 # Libtool will interpret -1 as no limit whatsoever
5520 lt_cv_sys_max_cmd_len=-1;
5523 cygwin* | mingw* | cegcc*)
5524 # On Win9x/ME, this test blows up -- it succeeds, but takes
5525 # about 5 minutes as the teststring grows exponentially.
5526 # Worse, since 9x/ME are not pre-emptively multitasking,
5527 # you end up with a "frozen" computer, even though with patience
5528 # the test eventually succeeds (with a max line length of 256k).
5529 # Instead, let's just punt: use the minimum linelength reported by
5530 # all of the supported platforms: 8192 (on NT/2K/XP).
5531 lt_cv_sys_max_cmd_len=8192;
5535 # On MiNT this can take a long time and run out of memory.
5536 lt_cv_sys_max_cmd_len=8192;
5540 # On AmigaOS with pdksh, this test takes hours, literally.
5541 # So we just punt and use a minimum line length of 8192.
5542 lt_cv_sys_max_cmd_len=8192;
5545 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5546 # This has been around since 386BSD, at least. Likely further.
5547 if test -x /sbin/sysctl; then
5548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5549 elif test -x /usr/sbin/sysctl; then
5550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5552 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5554 # And add a safety zone
5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5560 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5561 lt_cv_sys_max_cmd_len=196608
5565 # The test takes a long time on OS/2.
5566 lt_cv_sys_max_cmd_len=8192
5570 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5571 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5572 # nice to cause kernel panics so lets avoid the loop below.
5573 # First set a reasonable default.
5574 lt_cv_sys_max_cmd_len=16384
5576 if test -x /sbin/sysconfig; then
5577 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5578 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5583 lt_cv_sys_max_cmd_len=102400
5585 sysv5* | sco5v6* | sysv4.2uw2*)
5586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5587 if test -n "$kargmax"; then
5588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5590 lt_cv_sys_max_cmd_len=32768
5594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5595 if test -n "$lt_cv_sys_max_cmd_len" && \
5596 test undefined != "$lt_cv_sys_max_cmd_len"; then
5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5600 # Make teststring a little bigger before we do anything with it.
5601 # a 1K string should be a reasonable start.
5602 for i in 1 2 3 4 5 6 7 8; do
5603 teststring=$teststring$teststring
5605 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5606 # If test is not a shell built-in, we'll probably end up computing a
5607 # maximum length that is only half of the actual maximum length, but
5609 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5610 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5611 test 17 != "$i" # 1/2 MB should be enough
5614 teststring=$teststring$teststring
5616 # Only check the string length outside the loop.
5617 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5619 # Add a significant safety factor because C++ compilers can tack on
5620 # massive amounts of additional arguments before passing them to the
5621 # linker. It appears as though 1/2 is a usable value.
5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5629 if test -n "$lt_cv_sys_max_cmd_len"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5631 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5634 $as_echo "none" >&6; }
5636 max_cmd_len=$lt_cv_sys_max_cmd_len
5647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5657 # test EBCDIC or ASCII
5658 case `echo X|tr X '\101'` in
5659 A) # ASCII based system
5660 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5661 lt_SP2NL='tr \040 \012'
5662 lt_NL2SP='tr \015\012 \040\040'
5664 *) # EBCDIC based system
5665 lt_SP2NL='tr \100 \n'
5666 lt_NL2SP='tr \r\n \100\100'
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5679 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5680 if ${lt_cv_to_host_file_cmd+:} false; then :
5681 $as_echo_n "(cached) " >&6
5686 *-*-mingw* ) # actually msys
5687 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5690 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5692 * ) # otherwise, assume *nix
5693 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5699 *-*-mingw* ) # actually msys
5700 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5703 lt_cv_to_host_file_cmd=func_convert_file_noop
5705 * ) # otherwise, assume *nix
5706 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5710 * ) # unhandled hosts (and "normal" native builds)
5711 lt_cv_to_host_file_cmd=func_convert_file_noop
5717 to_host_file_cmd=$lt_cv_to_host_file_cmd
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5719 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5726 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5727 if ${lt_cv_to_tool_file_cmd+:} false; then :
5728 $as_echo_n "(cached) " >&6
5730 #assume ordinary cross tools, or native build.
5731 lt_cv_to_tool_file_cmd=func_convert_file_noop
5735 *-*-mingw* ) # actually msys
5736 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5744 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5746 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5753 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5754 if ${lt_cv_ld_reload_flag+:} false; then :
5755 $as_echo_n "(cached) " >&6
5757 lt_cv_ld_reload_flag='-r'
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5760 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5761 reload_flag=$lt_cv_ld_reload_flag
5762 case $reload_flag in
5764 *) reload_flag=" $reload_flag" ;;
5766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5768 cygwin* | mingw* | pw32* | cegcc*)
5769 if test yes != "$GCC"; then
5774 if test yes = "$GCC"; then
5775 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5790 if test -n "$ac_tool_prefix"; then
5791 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5792 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_prog_OBJDUMP+:} false; then :
5796 $as_echo_n "(cached) " >&6
5798 if test -n "$OBJDUMP"; then
5799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 OBJDUMP=$ac_cv_prog_OBJDUMP
5819 if test -n "$OBJDUMP"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5821 $as_echo "$OBJDUMP" >&6; }
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5829 if test -z "$ac_cv_prog_OBJDUMP"; then
5830 ac_ct_OBJDUMP=$OBJDUMP
5831 # Extract the first word of "objdump", so it can be a program name with args.
5832 set dummy objdump; ac_word=$2
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 $as_echo_n "checking for $ac_word... " >&6; }
5835 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5836 $as_echo_n "(cached) " >&6
5838 if test -n "$ac_ct_OBJDUMP"; then
5839 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5859 if test -n "$ac_ct_OBJDUMP"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5861 $as_echo "$ac_ct_OBJDUMP" >&6; }
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5867 if test "x$ac_ct_OBJDUMP" = x; then
5870 case $cross_compiling:$ac_tool_warned in
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5874 ac_tool_warned=yes ;;
5876 OBJDUMP=$ac_ct_OBJDUMP
5879 OBJDUMP="$ac_cv_prog_OBJDUMP"
5882 test -z "$OBJDUMP" && OBJDUMP=objdump
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5893 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5894 if ${lt_cv_deplibs_check_method+:} false; then :
5895 $as_echo_n "(cached) " >&6
5897 lt_cv_file_magic_cmd='$MAGIC_CMD'
5898 lt_cv_file_magic_test_file=
5899 lt_cv_deplibs_check_method='unknown'
5900 # Need to set the preceding variable on all platforms that support
5901 # interlibrary dependencies.
5902 # 'none' -- dependencies not supported.
5903 # 'unknown' -- same as none, but documents that we really don't know.
5904 # 'pass_all' -- all dependencies passed with no checks.
5905 # 'test_compile' -- check by making test program.
5906 # 'file_magic [[regex]]' -- check by looking for files in library path
5907 # that responds to the $file_magic_cmd with a given extended regex.
5908 # If you have 'file' or equivalent on your system and you're not sure
5909 # whether 'pass_all' will *always* work, you probably want this one.
5913 lt_cv_deplibs_check_method=pass_all
5917 lt_cv_deplibs_check_method=pass_all
5921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5922 lt_cv_file_magic_cmd='/usr/bin/file -L'
5923 lt_cv_file_magic_test_file=/shlib/libc.so
5927 # func_win32_libid is a shell function defined in ltmain.sh
5928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5929 lt_cv_file_magic_cmd='func_win32_libid'
5933 # Base MSYS/MinGW do not provide the 'file' command needed by
5934 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5935 # unless we find 'file', for example because we are cross-compiling.
5936 if ( file / ) >/dev/null 2>&1; then
5937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5938 lt_cv_file_magic_cmd='func_win32_libid'
5940 # Keep this pattern in sync with the one in func_win32_libid.
5941 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5942 lt_cv_file_magic_cmd='$OBJDUMP -f'
5947 # use the weaker test based on 'objdump'. See mingw*.
5948 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5949 lt_cv_file_magic_cmd='$OBJDUMP -f'
5952 darwin* | rhapsody*)
5953 lt_cv_deplibs_check_method=pass_all
5956 freebsd* | dragonfly*)
5957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5960 # Not sure whether the presence of OpenBSD here was a mistake.
5961 # Let's accept both of them until this is cleared up.
5962 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5963 lt_cv_file_magic_cmd=/usr/bin/file
5964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5968 lt_cv_deplibs_check_method=pass_all
5973 lt_cv_deplibs_check_method=pass_all
5976 hpux10.20* | hpux11*)
5977 lt_cv_file_magic_cmd=/usr/bin/file
5980 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5981 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5984 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]'
5985 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5988 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5989 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5995 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5999 irix5* | irix6* | nonstopux*)
6001 *-32|*"-32 ") libmagic=32-bit;;
6002 *-n32|*"-n32 ") libmagic=N32;;
6003 *-64|*"-64 ") libmagic=64-bit;;
6004 *) libmagic=never-match;;
6006 lt_cv_deplibs_check_method=pass_all
6009 # This must be glibc/ELF.
6010 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6011 lt_cv_deplibs_check_method=pass_all
6015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6024 lt_cv_file_magic_cmd=/usr/bin/file
6025 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6029 lt_cv_deplibs_check_method=pass_all
6033 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6040 osf3* | osf4* | osf5*)
6041 lt_cv_deplibs_check_method=pass_all
6045 lt_cv_deplibs_check_method=pass_all
6049 lt_cv_deplibs_check_method=pass_all
6052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6053 lt_cv_deplibs_check_method=pass_all
6057 case $host_vendor in
6059 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]'
6060 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6063 lt_cv_deplibs_check_method=pass_all
6066 lt_cv_file_magic_cmd='/bin/file'
6067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6070 lt_cv_file_magic_cmd='/bin/file'
6071 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6072 lt_cv_file_magic_test_file=/lib/libc.so
6075 lt_cv_deplibs_check_method=pass_all
6078 lt_cv_deplibs_check_method=pass_all
6084 lt_cv_deplibs_check_method=pass_all
6087 lt_cv_deplibs_check_method=pass_all
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6093 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6097 if test "$build" = "$host"; then
6100 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6103 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6109 file_magic_cmd=$lt_cv_file_magic_cmd
6110 deplibs_check_method=$lt_cv_deplibs_check_method
6111 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if ${ac_cv_prog_DLLTOOL+:} false; then :
6140 $as_echo_n "(cached) " >&6
6142 if test -n "$DLLTOOL"; then
6143 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 DLLTOOL=$ac_cv_prog_DLLTOOL
6163 if test -n "$DLLTOOL"; then
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6165 $as_echo "$DLLTOOL" >&6; }
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6173 if test -z "$ac_cv_prog_DLLTOOL"; then
6174 ac_ct_DLLTOOL=$DLLTOOL
6175 # Extract the first word of "dlltool", so it can be a program name with args.
6176 set dummy dlltool; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6180 $as_echo_n "(cached) " >&6
6182 if test -n "$ac_ct_DLLTOOL"; then
6183 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6203 if test -n "$ac_ct_DLLTOOL"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6205 $as_echo "$ac_ct_DLLTOOL" >&6; }
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6211 if test "x$ac_ct_DLLTOOL" = x; then
6214 case $cross_compiling:$ac_tool_warned in
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218 ac_tool_warned=yes ;;
6220 DLLTOOL=$ac_ct_DLLTOOL
6223 DLLTOOL="$ac_cv_prog_DLLTOOL"
6226 test -z "$DLLTOOL" && DLLTOOL=dlltool
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6238 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6239 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6240 $as_echo_n "(cached) " >&6
6242 lt_cv_sharedlib_from_linklib_cmd='unknown'
6245 cygwin* | mingw* | pw32* | cegcc*)
6246 # two different shell functions defined in ltmain.sh;
6247 # decide which one to use based on capabilities of $DLLTOOL
6248 case `$DLLTOOL --help 2>&1` in
6249 *--identify-strict*)
6250 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6258 # fallback: assume linklib IS sharedlib
6259 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6265 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6266 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6267 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6275 if test -n "$ac_tool_prefix"; then
6278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_AR+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 if test -n "$AR"; then
6286 ac_cv_prog_AR="$AR" # Let the user override the test.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 if test -n "$AR"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6308 $as_echo "$AR" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6315 test -n "$AR" && break
6318 if test -z "$AR"; then
6322 # Extract the first word of "$ac_prog", so it can be a program name with args.
6323 set dummy $ac_prog; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6327 $as_echo_n "(cached) " >&6
6329 if test -n "$ac_ct_AR"; then
6330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6339 ac_cv_prog_ac_ct_AR="$ac_prog"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6350 if test -n "$ac_ct_AR"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6352 $as_echo "$ac_ct_AR" >&6; }
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6359 test -n "$ac_ct_AR" && break
6362 if test "x$ac_ct_AR" = x; then
6365 case $cross_compiling:$ac_tool_warned in
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6369 ac_tool_warned=yes ;;
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6389 $as_echo_n "checking for archiver @FILE support... " >&6; }
6390 if ${lt_cv_ar_at_file+:} false; then :
6391 $as_echo_n "(cached) " >&6
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6405 if ac_fn_c_try_compile "$LINENO"; then :
6406 echo conftest.$ac_objext > conftest.lst
6407 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6409 (eval $lt_ar_try) 2>&5
6411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6412 test $ac_status = 0; }
6413 if test 0 -eq "$ac_status"; then
6414 # Ensure the archiver fails upon bogus file names.
6415 rm -f conftest.$ac_objext libconftest.a
6416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6417 (eval $lt_ar_try) 2>&5
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }
6421 if test 0 -ne "$ac_status"; then
6425 rm -f conftest.* libconftest.a
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6432 $as_echo "$lt_cv_ar_at_file" >&6; }
6434 if test no = "$lt_cv_ar_at_file"; then
6437 archiver_list_spec=$lt_cv_ar_at_file
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}strip; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_STRIP+:} false; then :
6452 $as_echo_n "(cached) " >&6
6454 if test -n "$STRIP"; then
6455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 STRIP=$ac_cv_prog_STRIP
6475 if test -n "$STRIP"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6477 $as_echo "$STRIP" >&6; }
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6485 if test -z "$ac_cv_prog_STRIP"; then
6487 # Extract the first word of "strip", so it can be a program name with args.
6488 set dummy strip; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6492 $as_echo_n "(cached) " >&6
6494 if test -n "$ac_ct_STRIP"; then
6495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_ac_ct_STRIP="strip"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6515 if test -n "$ac_ct_STRIP"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6517 $as_echo "$ac_ct_STRIP" >&6; }
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6523 if test "x$ac_ct_STRIP" = x; then
6526 case $cross_compiling:$ac_tool_warned in
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6535 STRIP="$ac_cv_prog_STRIP"
6538 test -z "$STRIP" && STRIP=:
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_RANLIB+:} false; then :
6551 $as_echo_n "(cached) " >&6
6553 if test -n "$RANLIB"; then
6554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 RANLIB=$ac_cv_prog_RANLIB
6574 if test -n "$RANLIB"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6576 $as_echo "$RANLIB" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6584 if test -z "$ac_cv_prog_RANLIB"; then
6585 ac_ct_RANLIB=$RANLIB
6586 # Extract the first word of "ranlib", so it can be a program name with args.
6587 set dummy ranlib; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6591 $as_echo_n "(cached) " >&6
6593 if test -n "$ac_ct_RANLIB"; then
6594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_ac_ct_RANLIB="ranlib"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6614 if test -n "$ac_ct_RANLIB"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6616 $as_echo "$ac_ct_RANLIB" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6622 if test "x$ac_ct_RANLIB" = x; then
6625 case $cross_compiling:$ac_tool_warned in
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6631 RANLIB=$ac_ct_RANLIB
6634 RANLIB="$ac_cv_prog_RANLIB"
6637 test -z "$RANLIB" && RANLIB=:
6644 # Determine commands to create old-style static archives.
6645 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6646 old_postinstall_cmds='chmod 644 $oldlib'
6647 old_postuninstall_cmds=
6649 if test -n "$RANLIB"; then
6652 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6658 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6663 lock_old_archive_extraction=yes ;;
6665 lock_old_archive_extraction=no ;;
6706 # If no C compiler was specified, use CC.
6709 # If no C compiler flags were specified, use CFLAGS.
6710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6712 # Allow CC to be a program name with arguments.
6716 # Check for command to grab the raw symbol name followed by C symbol from nm.
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6718 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6719 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6720 $as_echo_n "(cached) " >&6
6723 # These are sane defaults that work on at least a few old systems.
6724 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6726 # Character class describing NM global symbol codes.
6727 symcode='[BCDEGRST]'
6729 # Regexp to match symbols that can be accessed directly from C.
6730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6732 # Define system-specific variables.
6737 cygwin* | mingw* | pw32* | cegcc*)
6738 symcode='[ABCDGISTW]'
6741 if test ia64 = "$host_cpu"; then
6742 symcode='[ABCDEGRST]'
6746 symcode='[BCDEGRST]'
6749 symcode='[BCDEGQRST]'
6760 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6768 # If we're using GNU nm, then use its standard symbol codes.
6769 case `$NM -V 2>&1` in
6770 *GNU* | *'with BFD'*)
6771 symcode='[ABCDGIRSTW]' ;;
6774 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6775 # Gets list of data symbols to import.
6776 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6777 # Adjust the below global symbol transforms to fixup imported variables.
6778 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6779 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6780 lt_c_name_lib_hook="\
6781 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6782 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6784 # Disable hooks by default.
6785 lt_cv_sys_global_symbol_to_import=
6791 # Transform an extracted symbol line into a proper C declaration.
6792 # Some systems (esp. on ia64) link data and code symbols differently,
6793 # so use this general approach.
6794 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6796 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6797 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6799 # Transform an extracted symbol line into symbol name and symbol address
6800 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6802 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6803 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6805 # Transform an extracted symbol line into symbol name with lib prefix and
6807 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6808 $lt_c_name_lib_hook\
6809 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6810 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6811 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6813 # Handle CRLF in mingw tool chain
6817 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6821 # Try without a prefix underscore, then with it.
6822 for ac_symprfx in "" "_"; do
6824 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6825 symxfrm="\\1 $ac_symprfx\\2 \\2"
6827 # Write the raw and C identifiers.
6828 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6829 # Fake it for dumpbin and say T for any non-static function,
6830 # D for any global variable and I for any imported variable.
6831 # Also find C++ and __fastcall symbols from MSVC++,
6832 # which start with @ or ?.
6833 lt_cv_sys_global_symbol_pipe="$AWK '"\
6834 " {last_section=section; section=\$ 3};"\
6835 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6836 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6837 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6838 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6839 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6840 " \$ 0!~/External *\|/{next};"\
6841 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6842 " {if(hide[section]) next};"\
6843 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6844 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6845 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6846 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6847 " ' prfx=^$ac_symprfx"
6849 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6851 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6853 # Check to see that the pipe works correctly.
6857 cat > conftest.$ac_ext <<_LT_EOF
6862 void nm_test_func(void);
6863 void nm_test_func(void){}
6867 int main(){nm_test_var='a';nm_test_func();return(0);}
6870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6871 (eval $ac_compile) 2>&5
6873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6874 test $ac_status = 0; }; then
6875 # Now try to grab the symbols.
6877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6878 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6881 test $ac_status = 0; } && test -s "$nlist"; then
6882 # Try sorting and uniquifying the output.
6883 if sort "$nlist" | uniq > "$nlist"T; then
6884 mv -f "$nlist"T "$nlist"
6889 # Make sure that we snagged all the symbols we need.
6890 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6891 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6892 cat <<_LT_EOF > conftest.$ac_ext
6893 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6894 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6895 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6896 relocations are performed -- see ld's documentation on pseudo-relocs. */
6897 # define LT_DLSYM_CONST
6898 #elif defined __osf__
6899 /* This system does not cope well with relocations in const data. */
6900 # define LT_DLSYM_CONST
6902 # define LT_DLSYM_CONST const
6910 # Now generate the symbol file.
6911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6913 cat <<_LT_EOF >> conftest.$ac_ext
6915 /* The mapping between symbol names and symbols. */
6916 LT_DLSYM_CONST struct {
6920 lt__PROGRAM__LTX_preloaded_symbols[] =
6922 { "@PROGRAM@", (void *) 0 },
6924 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6925 cat <<\_LT_EOF >> conftest.$ac_ext
6929 /* This works around a problem in FreeBSD linker */
6930 #ifdef FREEBSD_WORKAROUND
6931 static const void *lt_preloaded_setup() {
6932 return lt__PROGRAM__LTX_preloaded_symbols;
6940 # Now try linking the two files.
6941 mv conftest.$ac_objext conftstm.$ac_objext
6942 lt_globsym_save_LIBS=$LIBS
6943 lt_globsym_save_CFLAGS=$CFLAGS
6944 LIBS=conftstm.$ac_objext
6945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6947 (eval $ac_link) 2>&5
6949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6953 LIBS=$lt_globsym_save_LIBS
6954 CFLAGS=$lt_globsym_save_CFLAGS
6956 echo "cannot find nm_test_func in $nlist" >&5
6959 echo "cannot find nm_test_var in $nlist" >&5
6962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6965 echo "$progname: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6968 rm -rf conftest* conftst*
6970 # Do not use the global_symbol_pipe unless it works.
6971 if test yes = "$pipe_works"; then
6974 lt_cv_sys_global_symbol_pipe=
6980 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6981 lt_cv_sys_global_symbol_to_cdecl=
6983 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6985 $as_echo "failed" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6988 $as_echo "ok" >&6; }
6991 # Response file support.
6992 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6993 nm_file_list_spec='@'
6994 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6995 nm_file_list_spec='@'
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7035 $as_echo_n "checking for sysroot... " >&6; }
7037 # Check whether --with-sysroot was given.
7038 if test "${with_sysroot+set}" = set; then :
7039 withval=$with_sysroot;
7046 case $with_sysroot in #(
7048 if test yes = "$GCC"; then
7049 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7053 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7059 $as_echo "$with_sysroot" >&6; }
7060 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7065 $as_echo "${lt_sysroot:-no}" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7072 $as_echo_n "checking for a working dd... " >&6; }
7073 if ${ac_cv_path_lt_DD+:} false; then :
7074 $as_echo_n "(cached) " >&6
7076 printf 0123456789abcdef0123456789abcdef >conftest.i
7077 cat conftest.i conftest.i >conftest2.i
7079 if test -z "$lt_DD"; then
7080 ac_path_lt_DD_found=false
7081 # Loop through the user's path and test for each of PROGNAME-LIST
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir=.
7087 for ac_prog in dd; do
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7090 as_fn_executable_p "$ac_path_lt_DD" || continue
7091 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7092 cmp -s conftest.i conftest.out \
7093 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7095 $ac_path_lt_DD_found && break 3
7100 if test -z "$ac_cv_path_lt_DD"; then
7104 ac_cv_path_lt_DD=$lt_DD
7107 rm -f conftest.i conftest2.i conftest.out
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7110 $as_echo "$ac_cv_path_lt_DD" >&6; }
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7114 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7115 if ${lt_cv_truncate_bin+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 printf 0123456789abcdef0123456789abcdef >conftest.i
7119 cat conftest.i conftest.i >conftest2.i
7121 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7122 cmp -s conftest.i conftest.out \
7123 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7125 rm -f conftest.i conftest2.i conftest.out
7126 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7129 $as_echo "$lt_cv_truncate_bin" >&6; }
7137 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7140 for cc_temp in $*""; do
7142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7148 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7151 # Check whether --enable-libtool-lock was given.
7152 if test "${enable_libtool_lock+set}" = set; then :
7153 enableval=$enable_libtool_lock;
7156 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7158 # Some flags need to be propagated to the compiler or linker for good
7162 # Find out what ABI is being produced by ac_compile, and set mode
7163 # options accordingly.
7164 echo 'int i;' > conftest.$ac_ext
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166 (eval $ac_compile) 2>&5
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
7170 case `/usr/bin/file conftest.$ac_objext` in
7182 # Find out what ABI is being produced by ac_compile, and set linker
7183 # options accordingly.
7184 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186 (eval $ac_compile) 2>&5
7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; }; then
7190 if test yes = "$lt_cv_prog_gnu_ld"; then
7191 case `/usr/bin/file conftest.$ac_objext` in
7193 LD="${LD-ld} -melf32bsmip"
7196 LD="${LD-ld} -melf32bmipn32"
7199 LD="${LD-ld} -melf64bmip"
7203 case `/usr/bin/file conftest.$ac_objext` in
7220 # Find out what ABI is being produced by ac_compile, and set linker
7221 # options accordingly.
7222 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7229 case `/usr/bin/file conftest.$ac_objext` in
7237 case `/usr/bin/file conftest.$ac_objext` in
7239 emul="${emul}btsmip"
7242 emul="${emul}ltsmip"
7245 case `/usr/bin/file conftest.$ac_objext` in
7250 LD="${LD-ld} -m $emul"
7255 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7256 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7257 # Find out what ABI is being produced by ac_compile, and set linker
7258 # options accordingly. Note that the listed cases only cover the
7259 # situations where additional linker options are needed (such as when
7260 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7261 # vice versa); the common cases where no linker options are needed do
7262 # not appear in the list.
7263 echo 'int i;' > conftest.$ac_ext
7264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7265 (eval $ac_compile) 2>&5
7267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7268 test $ac_status = 0; }; then
7269 case `/usr/bin/file conftest.o` in
7272 x86_64-*kfreebsd*-gnu)
7273 LD="${LD-ld} -m elf_i386_fbsd"
7276 case `/usr/bin/file conftest.o` in
7278 LD="${LD-ld} -m elf32_x86_64"
7281 LD="${LD-ld} -m elf_i386"
7285 powerpc64le-*linux*)
7286 LD="${LD-ld} -m elf32lppclinux"
7289 LD="${LD-ld} -m elf32ppclinux"
7292 LD="${LD-ld} -m elf_s390"
7295 LD="${LD-ld} -m elf32_sparc"
7301 x86_64-*kfreebsd*-gnu)
7302 LD="${LD-ld} -m elf_x86_64_fbsd"
7305 LD="${LD-ld} -m elf_x86_64"
7308 LD="${LD-ld} -m elf64lppc"
7311 LD="${LD-ld} -m elf64ppc"
7313 s390*-*linux*|s390*-*tpf*)
7314 LD="${LD-ld} -m elf64_s390"
7317 LD="${LD-ld} -m elf64_sparc"
7327 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7329 CFLAGS="$CFLAGS -belf"
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7331 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7332 if ${lt_cv_cc_needs_belf+:} false; then :
7333 $as_echo_n "(cached) " >&6
7336 ac_cpp='$CPP $CPPFLAGS'
7337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7352 if ac_fn_c_try_link "$LINENO"; then :
7353 lt_cv_cc_needs_belf=yes
7355 lt_cv_cc_needs_belf=no
7357 rm -f core conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext
7360 ac_cpp='$CPP $CPPFLAGS'
7361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7367 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7368 if test yes != "$lt_cv_cc_needs_belf"; then
7369 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7374 # Find out what ABI is being produced by ac_compile, and set linker
7375 # options accordingly.
7376 echo 'int i;' > conftest.$ac_ext
7377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7378 (eval $ac_compile) 2>&5
7380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381 test $ac_status = 0; }; then
7382 case `/usr/bin/file conftest.o` in
7384 case $lt_cv_prog_gnu_ld in
7387 i?86-*-solaris*|x86_64-*-solaris*)
7388 LD="${LD-ld} -m elf_x86_64"
7391 LD="${LD-ld} -m elf64_sparc"
7394 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7395 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7400 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7412 need_locks=$enable_libtool_lock
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}mt; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7420 $as_echo_n "(cached) " >&6
7422 if test -n "$MANIFEST_TOOL"; then
7423 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7443 if test -n "$MANIFEST_TOOL"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7445 $as_echo "$MANIFEST_TOOL" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7453 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7454 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7455 # Extract the first word of "mt", so it can be a program name with args.
7456 set dummy mt; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7460 $as_echo_n "(cached) " >&6
7462 if test -n "$ac_ct_MANIFEST_TOOL"; then
7463 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7483 if test -n "$ac_ct_MANIFEST_TOOL"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7485 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7491 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7494 case $cross_compiling:$ac_tool_warned in
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498 ac_tool_warned=yes ;;
7500 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7503 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7506 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7508 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7509 if ${lt_cv_path_mainfest_tool+:} false; then :
7510 $as_echo_n "(cached) " >&6
7512 lt_cv_path_mainfest_tool=no
7513 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7514 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7515 cat conftest.err >&5
7516 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7517 lt_cv_path_mainfest_tool=yes
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7522 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7523 if test yes != "$lt_cv_path_mainfest_tool"; then
7533 rhapsody* | darwin*)
7534 if test -n "$ac_tool_prefix"; then
7535 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7540 $as_echo_n "(cached) " >&6
7542 if test -n "$DSYMUTIL"; then
7543 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7563 if test -n "$DSYMUTIL"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7565 $as_echo "$DSYMUTIL" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7573 if test -z "$ac_cv_prog_DSYMUTIL"; then
7574 ac_ct_DSYMUTIL=$DSYMUTIL
7575 # Extract the first word of "dsymutil", so it can be a program name with args.
7576 set dummy dsymutil; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7580 $as_echo_n "(cached) " >&6
7582 if test -n "$ac_ct_DSYMUTIL"; then
7583 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7603 if test -n "$ac_ct_DSYMUTIL"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7605 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7611 if test "x$ac_ct_DSYMUTIL" = x; then
7614 case $cross_compiling:$ac_tool_warned in
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618 ac_tool_warned=yes ;;
7620 DSYMUTIL=$ac_ct_DSYMUTIL
7623 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7626 if test -n "$ac_tool_prefix"; then
7627 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7628 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_NMEDIT+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 if test -n "$NMEDIT"; then
7635 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 NMEDIT=$ac_cv_prog_NMEDIT
7655 if test -n "$NMEDIT"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7657 $as_echo "$NMEDIT" >&6; }
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7665 if test -z "$ac_cv_prog_NMEDIT"; then
7666 ac_ct_NMEDIT=$NMEDIT
7667 # Extract the first word of "nmedit", so it can be a program name with args.
7668 set dummy nmedit; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7672 $as_echo_n "(cached) " >&6
7674 if test -n "$ac_ct_NMEDIT"; then
7675 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7695 if test -n "$ac_ct_NMEDIT"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7697 $as_echo "$ac_ct_NMEDIT" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7703 if test "x$ac_ct_NMEDIT" = x; then
7706 case $cross_compiling:$ac_tool_warned in
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7710 ac_tool_warned=yes ;;
7712 NMEDIT=$ac_ct_NMEDIT
7715 NMEDIT="$ac_cv_prog_NMEDIT"
7718 if test -n "$ac_tool_prefix"; then
7719 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7720 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_LIPO+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 if test -n "$LIPO"; then
7727 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 LIPO=$ac_cv_prog_LIPO
7747 if test -n "$LIPO"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7749 $as_echo "$LIPO" >&6; }
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7757 if test -z "$ac_cv_prog_LIPO"; then
7759 # Extract the first word of "lipo", so it can be a program name with args.
7760 set dummy lipo; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7764 $as_echo_n "(cached) " >&6
7766 if test -n "$ac_ct_LIPO"; then
7767 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_ac_ct_LIPO="lipo"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7787 if test -n "$ac_ct_LIPO"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7789 $as_echo "$ac_ct_LIPO" >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7795 if test "x$ac_ct_LIPO" = x; then
7798 case $cross_compiling:$ac_tool_warned in
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7807 LIPO="$ac_cv_prog_LIPO"
7810 if test -n "$ac_tool_prefix"; then
7811 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7812 set dummy ${ac_tool_prefix}otool; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_prog_OTOOL+:} false; then :
7816 $as_echo_n "(cached) " >&6
7818 if test -n "$OTOOL"; then
7819 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 OTOOL=$ac_cv_prog_OTOOL
7839 if test -n "$OTOOL"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7841 $as_echo "$OTOOL" >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7849 if test -z "$ac_cv_prog_OTOOL"; then
7851 # Extract the first word of "otool", so it can be a program name with args.
7852 set dummy otool; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7856 $as_echo_n "(cached) " >&6
7858 if test -n "$ac_ct_OTOOL"; then
7859 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_ac_ct_OTOOL="otool"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7879 if test -n "$ac_ct_OTOOL"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7881 $as_echo "$ac_ct_OTOOL" >&6; }
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7887 if test "x$ac_ct_OTOOL" = x; then
7890 case $cross_compiling:$ac_tool_warned in
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7894 ac_tool_warned=yes ;;
7899 OTOOL="$ac_cv_prog_OTOOL"
7902 if test -n "$ac_tool_prefix"; then
7903 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7904 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if ${ac_cv_prog_OTOOL64+:} false; then :
7908 $as_echo_n "(cached) " >&6
7910 if test -n "$OTOOL64"; then
7911 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 OTOOL64=$ac_cv_prog_OTOOL64
7931 if test -n "$OTOOL64"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7933 $as_echo "$OTOOL64" >&6; }
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7941 if test -z "$ac_cv_prog_OTOOL64"; then
7942 ac_ct_OTOOL64=$OTOOL64
7943 # Extract the first word of "otool64", so it can be a program name with args.
7944 set dummy otool64; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7948 $as_echo_n "(cached) " >&6
7950 if test -n "$ac_ct_OTOOL64"; then
7951 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_ac_ct_OTOOL64="otool64"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7971 if test -n "$ac_ct_OTOOL64"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7973 $as_echo "$ac_ct_OTOOL64" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7979 if test "x$ac_ct_OTOOL64" = x; then
7982 case $cross_compiling:$ac_tool_warned in
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7986 ac_tool_warned=yes ;;
7988 OTOOL64=$ac_ct_OTOOL64
7991 OTOOL64="$ac_cv_prog_OTOOL64"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8021 $as_echo_n "checking for -single_module linker flag... " >&6; }
8022 if ${lt_cv_apple_cc_single_mod+:} false; then :
8023 $as_echo_n "(cached) " >&6
8025 lt_cv_apple_cc_single_mod=no
8026 if test -z "$LT_MULTI_MODULE"; then
8027 # By default we will add the -single_module flag. You can override
8028 # by either setting the environment variable LT_MULTI_MODULE
8029 # non-empty at configure time, or by adding -multi_module to the
8031 rm -rf libconftest.dylib*
8032 echo "int foo(void){return 1;}" > conftest.c
8033 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8034 -dynamiclib -Wl,-single_module conftest.c" >&5
8035 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8036 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8038 # If there is a non-empty error log, and "single_module"
8039 # appears in it, assume the flag caused a linker warning
8040 if test -s conftest.err && $GREP single_module conftest.err; then
8041 cat conftest.err >&5
8042 # Otherwise, if the output was created with a 0 exit code from
8043 # the compiler, it worked.
8044 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8045 lt_cv_apple_cc_single_mod=yes
8047 cat conftest.err >&5
8049 rm -rf libconftest.dylib*
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8054 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8057 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8058 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8059 $as_echo_n "(cached) " >&6
8061 lt_cv_ld_exported_symbols_list=no
8062 save_LDFLAGS=$LDFLAGS
8063 echo "_main" > conftest.sym
8064 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8076 if ac_fn_c_try_link "$LINENO"; then :
8077 lt_cv_ld_exported_symbols_list=yes
8079 lt_cv_ld_exported_symbols_list=no
8081 rm -f core conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
8083 LDFLAGS=$save_LDFLAGS
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8087 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8090 $as_echo_n "checking for -force_load linker flag... " >&6; }
8091 if ${lt_cv_ld_force_load+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 lt_cv_ld_force_load=no
8095 cat > conftest.c << _LT_EOF
8096 int forced_loaded() { return 2;}
8098 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8099 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8100 echo "$AR cru libconftest.a conftest.o" >&5
8101 $AR cru libconftest.a conftest.o 2>&5
8102 echo "$RANLIB libconftest.a" >&5
8103 $RANLIB libconftest.a 2>&5
8104 cat > conftest.c << _LT_EOF
8105 int main() { return 0;}
8107 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8108 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8110 if test -s conftest.err && $GREP force_load conftest.err; then
8111 cat conftest.err >&5
8112 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8113 lt_cv_ld_force_load=yes
8115 cat conftest.err >&5
8117 rm -f conftest.err libconftest.a conftest conftest.c
8118 rm -rf conftest.dSYM
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8122 $as_echo "$lt_cv_ld_force_load" >&6; }
8124 rhapsody* | darwin1.[012])
8125 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8127 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8128 darwin*) # darwin 5.x on
8129 # if running on 10.5 or later, the deployment target defaults
8130 # to the OS version, if on x86, and 10.4, the deployment
8131 # target defaults to 10.4. Don't you love it?
8132 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8133 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8134 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8136 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8138 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8142 if test yes = "$lt_cv_apple_cc_single_mod"; then
8143 _lt_dar_single_mod='$single_module'
8145 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8146 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8148 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8150 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8151 _lt_dsymutil='~$DSYMUTIL $lib || :'
8158 # func_munge_path_list VARIABLE PATH
8159 # -----------------------------------
8160 # VARIABLE is name of variable containing _space_ separated list of
8161 # directories to be munged by the contents of PATH, which is string
8164 # string "DIR[ DIR]" will be prepended to VARIABLE
8166 # string "DIR[ DIR]" will be appended to VARIABLE
8167 # "DIRP[:DIRP]::[DIRA:]DIRA"
8168 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8169 # "DIRA[ DIRA]" will be appended to VARIABLE
8171 # VARIABLE will be replaced by "DIR[ DIR]"
8172 func_munge_path_list ()
8178 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8181 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8184 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8185 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8188 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8193 for ac_header in dlfcn.h
8195 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8197 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8198 cat >>confdefs.h <<_ACEOF
8199 #define HAVE_DLFCN_H 1
8211 # Check whether --enable-static was given.
8212 if test "${enable_static+set}" = set; then :
8213 enableval=$enable_static; p=${PACKAGE-default}
8215 yes) enable_static=yes ;;
8216 no) enable_static=no ;;
8219 # Look at the argument we got. We use all the common list separators.
8220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8221 for pkg in $enableval; do
8223 if test "X$pkg" = "X$p"; then
8248 # Check whether --enable-shared was given.
8249 if test "${enable_shared+set}" = set; then :
8250 enableval=$enable_shared; p=${PACKAGE-default}
8252 yes) enable_shared=yes ;;
8253 no) enable_shared=no ;;
8256 # Look at the argument we got. We use all the common list separators.
8257 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8258 for pkg in $enableval; do
8260 if test "X$pkg" = "X$p"; then
8281 # Check whether --with-pic was given.
8282 if test "${with_pic+set}" = set; then :
8283 withval=$with_pic; lt_p=${PACKAGE-default}
8285 yes|no) pic_mode=$withval ;;
8288 # Look at the argument we got. We use all the common list separators.
8289 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8290 for lt_pkg in $withval; do
8292 if test "X$lt_pkg" = "X$lt_p"; then
8310 # Check whether --enable-fast-install was given.
8311 if test "${enable_fast_install+set}" = set; then :
8312 enableval=$enable_fast_install; p=${PACKAGE-default}
8314 yes) enable_fast_install=yes ;;
8315 no) enable_fast_install=no ;;
8317 enable_fast_install=no
8318 # Look at the argument we got. We use all the common list separators.
8319 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8320 for pkg in $enableval; do
8322 if test "X$pkg" = "X$p"; then
8323 enable_fast_install=yes
8330 enable_fast_install=yes
8340 shared_archive_member_spec=
8341 case $host,$enable_shared in
8342 power*-*-aix[5-9]*,yes)
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8344 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8346 # Check whether --with-aix-soname was given.
8347 if test "${with_aix_soname+set}" = set; then :
8348 withval=$with_aix_soname; case $withval in
8352 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8355 lt_cv_with_aix_soname=$with_aix_soname
8357 if ${lt_cv_with_aix_soname+:} false; then :
8358 $as_echo_n "(cached) " >&6
8360 lt_cv_with_aix_soname=aix
8363 with_aix_soname=$lt_cv_with_aix_soname
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8367 $as_echo "$with_aix_soname" >&6; }
8368 if test aix != "$with_aix_soname"; then
8369 # For the AIX way of multilib, we name the shared archive member
8370 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8371 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8372 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8373 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8374 if test 64 = "${OBJECT_MODE-32}"; then
8375 shared_archive_member_spec=shr_64
8377 shared_archive_member_spec=shr
8395 # This can be used to rebuild libtool when needed
8396 LIBTOOL_DEPS=$ltmain
8398 # Always use our own libtool.
8399 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8430 test -z "$LN_S" && LN_S="ln -s"
8445 if test -n "${ZSH_VERSION+set}"; then
8446 setopt NO_GLOB_SUBST
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8450 $as_echo_n "checking for objdir... " >&6; }
8451 if ${lt_cv_objdir+:} false; then :
8452 $as_echo_n "(cached) " >&6
8454 rm -f .libs 2>/dev/null
8455 mkdir .libs 2>/dev/null
8456 if test -d .libs; then
8459 # MS-DOS does not allow filenames that begin with a dot.
8462 rmdir .libs 2>/dev/null
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8465 $as_echo "$lt_cv_objdir" >&6; }
8466 objdir=$lt_cv_objdir
8472 cat >>confdefs.h <<_ACEOF
8473 #define LT_OBJDIR "$lt_cv_objdir/"
8481 # AIX sometimes has problems with the GCC collect2 program. For some
8482 # reason, if we set the COLLECT_NAMES environment variable, the problems
8483 # vanish in a puff of smoke.
8484 if test set != "${COLLECT_NAMES+set}"; then
8486 export COLLECT_NAMES
8493 can_build_shared=yes
8495 # All known linkers require a '.a' archive for static linking (except MSVC,
8496 # which needs '.lib').
8499 with_gnu_ld=$lt_cv_prog_gnu_ld
8504 # Set sane defaults for various variables
8505 test -z "$CC" && CC=cc
8506 test -z "$LTCC" && LTCC=$CC
8507 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8508 test -z "$LD" && LD=ld
8509 test -z "$ac_objext" && ac_objext=o
8511 func_cc_basename $compiler
8512 cc_basename=$func_cc_basename_result
8515 # Only perform the check for file, if the check method requires it
8516 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8517 case $deplibs_check_method in
8519 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8521 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8522 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8523 $as_echo_n "(cached) " >&6
8527 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8530 lt_save_MAGIC_CMD=$MAGIC_CMD
8531 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8532 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8533 for ac_dir in $ac_dummy; do
8535 test -z "$ac_dir" && ac_dir=.
8536 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8537 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8538 if test -n "$file_magic_test_file"; then
8539 case $deplibs_check_method in
8541 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8542 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8544 $EGREP "$file_magic_regex" > /dev/null; then
8549 *** Warning: the command libtool uses to detect shared libraries,
8550 *** $file_magic_cmd, produces output that libtool cannot recognize.
8551 *** The result is that libtool may fail to recognize shared libraries
8552 *** as such. This will affect the creation of libtool libraries that
8553 *** depend on shared libraries, but programs linked with such libtool
8554 *** libraries will work regardless of this problem. Nevertheless, you
8555 *** may want to report the problem to your system manager and/or to
8556 *** bug-libtool@gnu.org
8566 MAGIC_CMD=$lt_save_MAGIC_CMD
8571 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8572 if test -n "$MAGIC_CMD"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8574 $as_echo "$MAGIC_CMD" >&6; }
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8584 if test -z "$lt_cv_path_MAGIC_CMD"; then
8585 if test -n "$ac_tool_prefix"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8587 $as_echo_n "checking for file... " >&6; }
8588 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8589 $as_echo_n "(cached) " >&6
8593 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8596 lt_save_MAGIC_CMD=$MAGIC_CMD
8597 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8599 for ac_dir in $ac_dummy; do
8601 test -z "$ac_dir" && ac_dir=.
8602 if test -f "$ac_dir/file"; then
8603 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8604 if test -n "$file_magic_test_file"; then
8605 case $deplibs_check_method in
8607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8608 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8610 $EGREP "$file_magic_regex" > /dev/null; then
8615 *** Warning: the command libtool uses to detect shared libraries,
8616 *** $file_magic_cmd, produces output that libtool cannot recognize.
8617 *** The result is that libtool may fail to recognize shared libraries
8618 *** as such. This will affect the creation of libtool libraries that
8619 *** depend on shared libraries, but programs linked with such libtool
8620 *** libraries will work regardless of this problem. Nevertheless, you
8621 *** may want to report the problem to your system manager and/or to
8622 *** bug-libtool@gnu.org
8632 MAGIC_CMD=$lt_save_MAGIC_CMD
8637 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8638 if test -n "$MAGIC_CMD"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8640 $as_echo "$MAGIC_CMD" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8656 # Use C for the default configuration in the libtool script
8660 ac_cpp='$CPP $CPPFLAGS'
8661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8666 # Source file extension for C test sources.
8669 # Object file extension for compiled C test sources.
8673 # Code to be used in simple compile tests
8674 lt_simple_compile_test_code="int some_variable = 0;"
8676 # Code to be used in simple link tests
8677 lt_simple_link_test_code='int main(){return(0);}'
8685 # If no C compiler was specified, use CC.
8688 # If no C compiler flags were specified, use CFLAGS.
8689 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8691 # Allow CC to be a program name with arguments.
8694 # Save the default compiler, since it gets overwritten when the other
8695 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8696 compiler_DEFAULT=$CC
8698 # save warnings/boilerplate of simple test code
8699 ac_outfile=conftest.$ac_objext
8700 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8702 _lt_compiler_boilerplate=`cat conftest.err`
8705 ac_outfile=conftest.$ac_objext
8706 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8708 _lt_linker_boilerplate=`cat conftest.err`
8713 ## There is no encapsulation within the following macros, do not change
8714 ## the running order or otherwise move them around unless you know exactly
8715 ## what you are doing...
8716 if test -n "$compiler"; then
8718 lt_prog_compiler_no_builtin_flag=
8720 if test yes = "$GCC"; then
8721 case $cc_basename in
8723 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8725 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8729 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8730 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8731 $as_echo_n "(cached) " >&6
8733 lt_cv_prog_compiler_rtti_exceptions=no
8734 ac_outfile=conftest.$ac_objext
8735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8736 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8737 # Insert the option either (1) after the last *FLAGS variable, or
8738 # (2) before a word containing "conftest.", or (3) at the end.
8739 # Note that $ac_compile itself does not contain backslashes and begins
8740 # with a dollar sign (not a hyphen), so the echo should work correctly.
8741 # The option is referenced via a variable to avoid confusing sed.
8742 lt_compile=`echo "$ac_compile" | $SED \
8743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8745 -e 's:$: $lt_compiler_flag:'`
8746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8747 (eval "$lt_compile" 2>conftest.err)
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 if (exit $ac_status) && test -s "$ac_outfile"; then
8752 # The compiler can only warn and ignore the option if not recognized
8753 # So say no if there are warnings other than the usual output.
8754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8757 lt_cv_prog_compiler_rtti_exceptions=yes
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8764 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8766 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8767 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8779 lt_prog_compiler_wl=
8780 lt_prog_compiler_pic=
8781 lt_prog_compiler_static=
8784 if test yes = "$GCC"; then
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_static='-static'
8790 # All AIX code is PIC.
8791 if test ia64 = "$host_cpu"; then
8792 # AIX 5 now supports IA64 processor
8793 lt_prog_compiler_static='-Bstatic'
8795 lt_prog_compiler_pic='-fPIC'
8801 # see comment about AmigaOS4 .so support
8802 lt_prog_compiler_pic='-fPIC'
8805 # FIXME: we need at least 68020 code to build shared libraries, but
8806 # adding the '-m68020' flag to GCC prevents building anything better,
8808 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8813 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8814 # PIC is the default for these OSes.
8817 mingw* | cygwin* | pw32* | os2* | cegcc*)
8818 # This hack is so that the source file can tell whether it is being
8819 # built for inclusion in a dll (and should export symbols for example).
8820 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8821 # (--disable-auto-import) libraries
8822 lt_prog_compiler_pic='-DDLL_EXPORT'
8825 lt_prog_compiler_static='$wl-static'
8830 darwin* | rhapsody*)
8831 # PIC is the default on this platform
8832 # Common symbols not allowed in MH_DYLIB files
8833 lt_prog_compiler_pic='-fno-common'
8837 # PIC is the default for Haiku.
8838 # The "-static" flag exists, but is broken.
8839 lt_prog_compiler_static=
8843 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8844 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8845 # sets the default TLS model and affects inlining.
8851 lt_prog_compiler_pic='-fPIC'
8857 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8858 # Instead, we relocate shared libraries at runtime.
8862 # Just because we use GCC doesn't mean we suddenly get shared libraries
8863 # on systems that don't support them.
8864 lt_prog_compiler_can_build_shared=no
8869 # QNX uses GNU C++, but need to define -shared option too, otherwise
8871 lt_prog_compiler_pic='-fPIC -shared'
8875 if test -d /usr/nec; then
8876 lt_prog_compiler_pic=-Kconform_pic
8881 lt_prog_compiler_pic='-fPIC'
8885 case $cc_basename in
8886 nvcc*) # Cuda Compiler Driver 2.2
8887 lt_prog_compiler_wl='-Xlinker '
8888 if test -n "$lt_prog_compiler_pic"; then
8889 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8894 # PORTME Check for flag to pass linker flags through the system compiler.
8897 lt_prog_compiler_wl='-Wl,'
8898 if test ia64 = "$host_cpu"; then
8899 # AIX 5 now supports IA64 processor
8900 lt_prog_compiler_static='-Bstatic'
8902 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8906 darwin* | rhapsody*)
8907 # PIC is the default on this platform
8908 # Common symbols not allowed in MH_DYLIB files
8909 lt_prog_compiler_pic='-fno-common'
8910 case $cc_basename in
8912 # NAG Fortran compiler
8913 lt_prog_compiler_wl='-Wl,-Wl,,'
8914 lt_prog_compiler_pic='-PIC'
8915 lt_prog_compiler_static='-Bstatic'
8920 mingw* | cygwin* | pw32* | os2* | cegcc*)
8921 # This hack is so that the source file can tell whether it is being
8922 # built for inclusion in a dll (and should export symbols for example).
8923 lt_prog_compiler_pic='-DDLL_EXPORT'
8926 lt_prog_compiler_static='$wl-static'
8931 hpux9* | hpux10* | hpux11*)
8932 lt_prog_compiler_wl='-Wl,'
8933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8940 lt_prog_compiler_pic='+Z'
8943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8944 lt_prog_compiler_static='$wl-a ${wl}archive'
8947 irix5* | irix6* | nonstopux*)
8948 lt_prog_compiler_wl='-Wl,'
8949 # PIC (with -KPIC) is the default.
8950 lt_prog_compiler_static='-non_shared'
8953 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8954 case $cc_basename in
8955 # old Intel for x86_64, which still supported -KPIC.
8957 lt_prog_compiler_wl='-Wl,'
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-static'
8961 # icc used to be incompatible with GCC.
8962 # ICC 10 doesn't accept -KPIC any more.
8964 lt_prog_compiler_wl='-Wl,'
8965 lt_prog_compiler_pic='-fPIC'
8966 lt_prog_compiler_static='-static'
8968 # Lahey Fortran 8.1.
8970 lt_prog_compiler_wl='-Wl,'
8971 lt_prog_compiler_pic='--shared'
8972 lt_prog_compiler_static='--static'
8975 # NAG Fortran compiler
8976 lt_prog_compiler_wl='-Wl,-Wl,,'
8977 lt_prog_compiler_pic='-PIC'
8978 lt_prog_compiler_static='-Bstatic'
8981 # Fabrice Bellard et al's Tiny C Compiler
8982 lt_prog_compiler_wl='-Wl,'
8983 lt_prog_compiler_pic='-fPIC'
8984 lt_prog_compiler_static='-static'
8986 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8987 # Portland Group compilers (*not* the Pentium gcc compiler,
8988 # which looks to be a dead project)
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-fpic'
8991 lt_prog_compiler_static='-Bstatic'
8994 lt_prog_compiler_wl='-Wl,'
8995 # All Alpha code is PIC.
8996 lt_prog_compiler_static='-non_shared'
8998 xl* | bgxl* | bgf* | mpixl*)
8999 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9000 lt_prog_compiler_wl='-Wl,'
9001 lt_prog_compiler_pic='-qpic'
9002 lt_prog_compiler_static='-qstaticlink'
9005 case `$CC -V 2>&1 | sed 5q` in
9006 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9007 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9008 lt_prog_compiler_pic='-KPIC'
9009 lt_prog_compiler_static='-Bstatic'
9010 lt_prog_compiler_wl=''
9012 *Sun\ F* | *Sun*Fortran*)
9013 lt_prog_compiler_pic='-KPIC'
9014 lt_prog_compiler_static='-Bstatic'
9015 lt_prog_compiler_wl='-Qoption ld '
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 lt_prog_compiler_wl='-Wl,'
9023 *Intel*\ [CF]*Compiler*)
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_pic='-fPIC'
9026 lt_prog_compiler_static='-static'
9029 lt_prog_compiler_wl='-Wl,'
9030 lt_prog_compiler_pic='-fpic'
9031 lt_prog_compiler_static='-Bstatic'
9039 lt_prog_compiler_pic='-KPIC'
9040 lt_prog_compiler_static='-Bstatic'
9044 # QNX uses GNU C++, but need to define -shared option too, otherwise
9046 lt_prog_compiler_pic='-fPIC -shared'
9049 osf3* | osf4* | osf5*)
9050 lt_prog_compiler_wl='-Wl,'
9051 # All OSF/1 code is PIC.
9052 lt_prog_compiler_static='-non_shared'
9056 lt_prog_compiler_static='-non_shared'
9060 lt_prog_compiler_pic='-KPIC'
9061 lt_prog_compiler_static='-Bstatic'
9062 case $cc_basename in
9063 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9064 lt_prog_compiler_wl='-Qoption ld ';;
9066 lt_prog_compiler_wl='-Wl,';;
9071 lt_prog_compiler_wl='-Qoption ld '
9072 lt_prog_compiler_pic='-PIC'
9073 lt_prog_compiler_static='-Bstatic'
9076 sysv4 | sysv4.2uw2* | sysv4.3*)
9077 lt_prog_compiler_wl='-Wl,'
9078 lt_prog_compiler_pic='-KPIC'
9079 lt_prog_compiler_static='-Bstatic'
9083 if test -d /usr/nec; then
9084 lt_prog_compiler_pic='-Kconform_pic'
9085 lt_prog_compiler_static='-Bstatic'
9089 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9090 lt_prog_compiler_wl='-Wl,'
9091 lt_prog_compiler_pic='-KPIC'
9092 lt_prog_compiler_static='-Bstatic'
9096 lt_prog_compiler_wl='-Wl,'
9097 lt_prog_compiler_can_build_shared=no
9101 lt_prog_compiler_pic='-pic'
9102 lt_prog_compiler_static='-Bstatic'
9106 lt_prog_compiler_can_build_shared=no
9112 # For platforms that do not support PIC, -DPIC is meaningless:
9114 lt_prog_compiler_pic=
9117 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9122 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9123 if ${lt_cv_prog_compiler_pic+:} false; then :
9124 $as_echo_n "(cached) " >&6
9126 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9129 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9130 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9133 # Check to make sure the PIC flag actually works.
9135 if test -n "$lt_prog_compiler_pic"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9137 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9138 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9139 $as_echo_n "(cached) " >&6
9141 lt_cv_prog_compiler_pic_works=no
9142 ac_outfile=conftest.$ac_objext
9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9145 # Insert the option either (1) after the last *FLAGS variable, or
9146 # (2) before a word containing "conftest.", or (3) at the end.
9147 # Note that $ac_compile itself does not contain backslashes and begins
9148 # with a dollar sign (not a hyphen), so the echo should work correctly.
9149 # The option is referenced via a variable to avoid confusing sed.
9150 lt_compile=`echo "$ac_compile" | $SED \
9151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153 -e 's:$: $lt_compiler_flag:'`
9154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9155 (eval "$lt_compile" 2>conftest.err)
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 if (exit $ac_status) && test -s "$ac_outfile"; then
9160 # The compiler can only warn and ignore the option if not recognized
9161 # So say no if there are warnings other than the usual output.
9162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9164 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler_pic_works=yes
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9172 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9174 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9175 case $lt_prog_compiler_pic in
9177 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9180 lt_prog_compiler_pic=
9181 lt_prog_compiler_can_build_shared=no
9197 # Check to make sure the static flag actually works.
9199 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9201 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9202 if ${lt_cv_prog_compiler_static_works+:} false; then :
9203 $as_echo_n "(cached) " >&6
9205 lt_cv_prog_compiler_static_works=no
9206 save_LDFLAGS=$LDFLAGS
9207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9210 # The linker can only warn and ignore the option if not recognized
9211 # So say no if there are warnings
9212 if test -s conftest.err; then
9213 # Append any errors to the config.log.
9214 cat conftest.err 1>&5
9215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9217 if diff conftest.exp conftest.er2 >/dev/null; then
9218 lt_cv_prog_compiler_static_works=yes
9221 lt_cv_prog_compiler_static_works=yes
9225 LDFLAGS=$save_LDFLAGS
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9229 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9231 if test yes = "$lt_cv_prog_compiler_static_works"; then
9234 lt_prog_compiler_static=
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9244 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9245 if ${lt_cv_prog_compiler_c_o+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 lt_cv_prog_compiler_c_o=no
9249 $RM -r conftest 2>/dev/null
9253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9255 lt_compiler_flag="-o out/conftest2.$ac_objext"
9256 # Insert the option either (1) after the last *FLAGS variable, or
9257 # (2) before a word containing "conftest.", or (3) at the end.
9258 # Note that $ac_compile itself does not contain backslashes and begins
9259 # with a dollar sign (not a hyphen), so the echo should work correctly.
9260 lt_compile=`echo "$ac_compile" | $SED \
9261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9263 -e 's:$: $lt_compiler_flag:'`
9264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9265 (eval "$lt_compile" 2>out/conftest.err)
9267 cat out/conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9271 # The compiler can only warn and ignore the option if not recognized
9272 # So say no if there are warnings
9273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9276 lt_cv_prog_compiler_c_o=yes
9281 # SGI C++ compiler will create directory out/ii_files/ for
9282 # template instantiation
9283 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9284 $RM out/* && rmdir out
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9291 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9299 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9300 if ${lt_cv_prog_compiler_c_o+:} false; then :
9301 $as_echo_n "(cached) " >&6
9303 lt_cv_prog_compiler_c_o=no
9304 $RM -r conftest 2>/dev/null
9308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9310 lt_compiler_flag="-o out/conftest2.$ac_objext"
9311 # Insert the option either (1) after the last *FLAGS variable, or
9312 # (2) before a word containing "conftest.", or (3) at the end.
9313 # Note that $ac_compile itself does not contain backslashes and begins
9314 # with a dollar sign (not a hyphen), so the echo should work correctly.
9315 lt_compile=`echo "$ac_compile" | $SED \
9316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9318 -e 's:$: $lt_compiler_flag:'`
9319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9320 (eval "$lt_compile" 2>out/conftest.err)
9322 cat out/conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9326 # The compiler can only warn and ignore the option if not recognized
9327 # So say no if there are warnings
9328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9331 lt_cv_prog_compiler_c_o=yes
9336 # SGI C++ compiler will create directory out/ii_files/ for
9337 # template instantiation
9338 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9339 $RM out/* && rmdir out
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9346 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9351 hard_links=nottested
9352 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9353 # do not overwrite the value of need_locks provided by the user
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9355 $as_echo_n "checking if we can lock with hard links... " >&6; }
9358 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9360 ln conftest.a conftest.b 2>&5 || hard_links=no
9361 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9363 $as_echo "$hard_links" >&6; }
9364 if test no = "$hard_links"; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9366 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9379 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9382 allow_undefined_flag=
9383 always_export_symbols=no
9385 archive_expsym_cmds=
9386 compiler_needs_object=no
9387 enable_shared_with_static_runtimes=no
9388 export_dynamic_flag_spec=
9389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9390 hardcode_automatic=no
9392 hardcode_direct_absolute=no
9393 hardcode_libdir_flag_spec=
9394 hardcode_libdir_separator=
9396 hardcode_shlibpath_var=unsupported
9398 link_all_deplibs=unknown
9401 old_archive_from_new_cmds=
9402 old_archive_from_expsyms_cmds=
9403 thread_safe_flag_spec=
9404 whole_archive_flag_spec=
9405 # include_expsyms should be a list of space-separated symbols to be *always*
9406 # included in the symbol list
9408 # exclude_expsyms can be an extended regexp of symbols to exclude
9409 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9410 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9411 # as well as any symbol that contains 'd'.
9412 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9413 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9414 # platforms (ab)use it in PIC code, but their linkers get confused if
9415 # the symbol is explicitly referenced. Since portable code cannot
9416 # rely on this symbol name, it's probably fine to never include it in
9417 # preloaded symbol tables.
9418 # Exclude shared library initialization/finalization symbols.
9419 extract_expsyms_cmds=
9422 cygwin* | mingw* | pw32* | cegcc*)
9423 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9424 # When not using gcc, we currently assume that we are using
9425 # Microsoft Visual C++.
9426 if test yes != "$GCC"; then
9431 # we just hope/assume this is gcc and not c89 (= MSVC++)
9441 # On some targets, GNU ld is compatible enough with the native linker
9442 # that we're better off using the native interface for both.
9443 lt_use_gnu_ld_interface=no
9444 if test yes = "$with_gnu_ld"; then
9447 # The AIX port of GNU ld has always aspired to compatibility
9448 # with the native linker. However, as the warning in the GNU ld
9449 # block says, versions before 2.19.5* couldn't really create working
9450 # shared libraries, regardless of the interface used.
9451 case `$LD -v 2>&1` in
9452 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9453 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9454 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9456 lt_use_gnu_ld_interface=yes
9461 lt_use_gnu_ld_interface=yes
9466 if test yes = "$lt_use_gnu_ld_interface"; then
9467 # If archive_cmds runs LD, not CC, wlarc should be empty
9470 # Set some defaults for GNU ld with shared library support. These
9471 # are reset later if shared libraries are not supported. Putting them
9472 # here allows them to be overridden if necessary.
9473 runpath_var=LD_RUN_PATH
9474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9475 export_dynamic_flag_spec='$wl--export-dynamic'
9476 # ancient GNU ld didn't support --whole-archive et. al.
9477 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9478 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9480 whole_archive_flag_spec=
9482 supports_anon_versioning=no
9483 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9484 *GNU\ gold*) supports_anon_versioning=yes ;;
9485 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9486 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9487 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9488 *\ 2.11.*) ;; # other 2.11 versions
9489 *) supports_anon_versioning=yes ;;
9492 # See if GNU ld supports shared libraries.
9495 # On AIX/PPC, the GNU linker is very broken
9496 if test ia64 != "$host_cpu"; then
9500 *** Warning: the GNU linker, at least up to release 2.19, is reported
9501 *** to be unable to reliably create shared libraries on AIX.
9502 *** Therefore, libtool is disabling shared libraries support. If you
9503 *** really care for shared libraries, you may want to install binutils
9504 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9505 *** You will then need to restart the configuration process.
9514 # see comment about AmigaOS4 .so support
9515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9516 archive_expsym_cmds=''
9519 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)'
9520 hardcode_libdir_flag_spec='-L$libdir'
9521 hardcode_minus_L=yes
9527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9528 allow_undefined_flag=unsupported
9529 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9530 # support --undefined. This deserves some investigation. FIXME
9531 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9537 cygwin* | mingw* | pw32* | cegcc*)
9538 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9539 # as there is no search path for DLLs.
9540 hardcode_libdir_flag_spec='-L$libdir'
9541 export_dynamic_flag_spec='$wl--export-all-symbols'
9542 allow_undefined_flag=unsupported
9543 always_export_symbols=no
9544 enable_shared_with_static_runtimes=yes
9545 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'
9546 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9548 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9550 # If the export-symbols file already is a .def file, use it as
9551 # is; otherwise, prepend EXPORTS...
9552 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9553 cp $export_symbols $output_objdir/$soname.def;
9555 echo EXPORTS > $output_objdir/$soname.def;
9556 cat $export_symbols >> $output_objdir/$soname.def;
9558 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9566 link_all_deplibs=yes
9570 hardcode_libdir_flag_spec='-L$libdir'
9571 hardcode_minus_L=yes
9572 allow_undefined_flag=unsupported
9574 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9575 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9576 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9577 $ECHO EXPORTS >> $output_objdir/$libname.def~
9578 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9579 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9580 emximp -o $lib $output_objdir/$libname.def'
9581 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9582 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9583 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9584 $ECHO EXPORTS >> $output_objdir/$libname.def~
9586 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9587 prefix_cmds="$prefix_cmds -e 1d";
9589 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9590 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9591 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9592 emximp -o $lib $output_objdir/$libname.def'
9593 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9594 enable_shared_with_static_runtimes=yes
9599 hardcode_shlibpath_var=no
9600 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9601 export_dynamic_flag_spec='$wl-E'
9602 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9603 # Instead, shared libraries are loaded at an image base (0x10000000 by
9604 # default) and relocated if they conflict, which is a slow very memory
9605 # consuming and fragmenting process. To avoid this, we pick a random,
9606 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9607 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9609 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'
9612 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9614 if test linux-dietlibc = "$host_os"; then
9615 case $cc_basename in
9616 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9619 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9620 && test no = "$tmp_diet"
9622 tmp_addflag=' $pic_flag'
9623 tmp_sharedflag='-shared'
9624 case $cc_basename,$host_cpu in
9625 pgcc*) # Portland Group C compiler
9626 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'
9627 tmp_addflag=' $pic_flag'
9629 pgf77* | pgf90* | pgf95* | pgfortran*)
9630 # Portland Group f77 and f90 compilers
9631 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'
9632 tmp_addflag=' $pic_flag -Mnomain' ;;
9633 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9634 tmp_addflag=' -i_dynamic' ;;
9635 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9636 tmp_addflag=' -i_dynamic -nofor_main' ;;
9637 ifc* | ifort*) # Intel Fortran compiler
9638 tmp_addflag=' -nofor_main' ;;
9639 lf95*) # Lahey Fortran 8.1
9640 whole_archive_flag_spec=
9641 tmp_sharedflag='--shared' ;;
9642 nagfor*) # NAGFOR 5.3
9643 tmp_sharedflag='-Wl,-shared' ;;
9644 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9645 tmp_sharedflag='-qmkshrobj'
9647 nvcc*) # Cuda Compiler Driver 2.2
9648 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'
9649 compiler_needs_object=yes
9652 case `$CC -V 2>&1 | sed 5q` in
9653 *Sun\ C*) # Sun C 5.9
9654 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'
9655 compiler_needs_object=yes
9656 tmp_sharedflag='-G' ;;
9657 *Sun\ F*) # Sun Fortran 8.3
9658 tmp_sharedflag='-G' ;;
9660 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9662 if test yes = "$supports_anon_versioning"; then
9663 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9665 echo "local: *; };" >> $output_objdir/$libname.ver~
9666 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9669 case $cc_basename in
9671 export_dynamic_flag_spec='-rdynamic'
9673 xlf* | bgf* | bgxlf* | mpixlf*)
9674 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9675 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9677 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9678 if test yes = "$supports_anon_versioning"; then
9679 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9681 echo "local: *; };" >> $output_objdir/$libname.ver~
9682 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9693 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9697 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9702 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9706 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9707 *** create shared libraries on Solaris systems. Therefore, libtool
9708 *** is disabling shared libraries support. We urge you to upgrade GNU
9709 *** binutils to release 2.9.1 or newer. Another option is to modify
9710 *** your PATH or compiler configuration so that the native linker is
9711 *** used, and then restart.
9714 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9716 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9723 case `$LD -v 2>&1` in
9724 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9728 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9729 *** reliably create shared libraries on SCO systems. Therefore, libtool
9730 *** is disabling shared libraries support. We urge you to upgrade GNU
9731 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9732 *** your PATH or compiler configuration so that the native linker is
9733 *** used, and then restart.
9738 # For security reasons, it is highly recommended that you always
9739 # use absolute paths for naming shared libraries, and exclude the
9740 # DT_RUNPATH tag from executables and libraries. But doing so
9741 # requires that you compile everything twice, which is a pain.
9742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9743 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9745 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9754 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9757 hardcode_shlibpath_var=no
9761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9770 if test no = "$ld_shlibs"; then
9772 hardcode_libdir_flag_spec=
9773 export_dynamic_flag_spec=
9774 whole_archive_flag_spec=
9777 # PORTME fill in a description of your system's linker (not GNU ld)
9780 allow_undefined_flag=unsupported
9781 always_export_symbols=yes
9782 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'
9783 # Note: this linker hardcodes the directories in LIBPATH if there
9784 # are no directories specified by -L.
9785 hardcode_minus_L=yes
9786 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9787 # Neither direct hardcoding nor static linking is supported with a
9789 hardcode_direct=unsupported
9794 if test ia64 = "$host_cpu"; then
9795 # On IA64, the linker does run time linking by default, so we don't
9796 # have to do anything special.
9797 aix_use_runtimelinking=no
9798 exp_sym_flag='-Bexport'
9801 # If we're using GNU nm, then we don't want the "-C" option.
9802 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9803 # Without the "-l" option, or with the "-B" option, AIX nm treats
9804 # weak defined symbols like other global defined symbols, whereas
9805 # GNU nm marks them as "W".
9806 # While the 'weak' keyword is ignored in the Export File, we need
9807 # it in the Import File for the 'aix-soname' feature, so we have
9808 # to replace the "-B" option with "-P" for AIX nm.
9809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9810 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'
9812 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9814 aix_use_runtimelinking=no
9816 # Test if we are trying to use run time linking or normal
9817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9818 # have runtime linking enabled, and use it for executables.
9819 # For shared libraries, we enable/disable runtime linking
9820 # depending on the kind of the shared library created -
9821 # when "with_aix_soname,aix_use_runtimelinking" is:
9822 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9823 # "aix,yes" lib.so shared, rtl:yes, for executables
9824 # lib.a static archive
9825 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9826 # lib.a(lib.so.V) shared, rtl:no, for executables
9827 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9828 # lib.a(lib.so.V) shared, rtl:no
9829 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9830 # lib.a static archive
9831 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9832 for ld_flag in $LDFLAGS; do
9833 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9834 aix_use_runtimelinking=yes
9838 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9839 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9840 # so we don't have lib.a shared libs to link our executables.
9841 # We have to force runtime linking in this case.
9842 aix_use_runtimelinking=yes
9843 LDFLAGS="$LDFLAGS -Wl,-brtl"
9848 exp_sym_flag='-bexport'
9849 no_entry_flag='-bnoentry'
9852 # When large executables or shared objects are built, AIX ld can
9853 # have problems creating the table of contents. If linking a library
9854 # or program results in "error TOC overflow" add -mminimal-toc to
9855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9860 hardcode_direct_absolute=yes
9861 hardcode_libdir_separator=':'
9862 link_all_deplibs=yes
9863 file_list_spec='$wl-f,'
9864 case $with_aix_soname,$aix_use_runtimelinking in
9865 aix,*) ;; # traditional, no import file
9866 svr4,* | *,yes) # use import file
9867 # The Import File defines what to hardcode.
9869 hardcode_direct_absolute=no
9873 if test yes = "$GCC"; then
9874 case $host_os in aix4.[012]|aix4.[012].*)
9875 # We only want to do this on AIX 4.2 and lower, the check
9876 # below for broken collect2 doesn't work under 4.3+
9877 collect2name=`$CC -print-prog-name=collect2`
9878 if test -f "$collect2name" &&
9879 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9881 # We have reworked collect2
9884 # We have old collect2
9885 hardcode_direct=unsupported
9886 # It fails to find uninstalled libraries when the uninstalled
9887 # path is not listed in the libpath. Setting hardcode_minus_L
9888 # to unsupported forces relinking
9889 hardcode_minus_L=yes
9890 hardcode_libdir_flag_spec='-L$libdir'
9891 hardcode_libdir_separator=
9895 shared_flag='-shared'
9896 if test yes = "$aix_use_runtimelinking"; then
9897 shared_flag="$shared_flag "'$wl-G'
9899 # Need to ensure runtime linking is disabled for the traditional
9900 # shared library, or the linker may eventually find shared libraries
9901 # /with/ Import File - we do not want to mix them.
9902 shared_flag_aix='-shared'
9903 shared_flag_svr4='-shared $wl-G'
9906 if test ia64 = "$host_cpu"; then
9907 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9908 # chokes on -Wl,-G. The following line is correct:
9911 if test yes = "$aix_use_runtimelinking"; then
9914 shared_flag='$wl-bM:SRE'
9916 shared_flag_aix='$wl-bM:SRE'
9917 shared_flag_svr4='$wl-G'
9921 export_dynamic_flag_spec='$wl-bexpall'
9922 # It seems that -bexpall does not export symbols beginning with
9923 # underscore (_), so it is better to generate a list of symbols to export.
9924 always_export_symbols=yes
9925 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9926 # Warning - without using the other runtime loading flags (-brtl),
9927 # -berok will link without error, but may produce a broken library.
9928 allow_undefined_flag='-berok'
9929 # Determine the default libpath from the value encoded in an
9931 if test set = "${lt_cv_aix_libpath+set}"; then
9932 aix_libpath=$lt_cv_aix_libpath
9934 if ${lt_cv_aix_libpath_+:} false; then :
9935 $as_echo_n "(cached) " >&6
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9948 if ac_fn_c_try_link "$LINENO"; then :
9950 lt_aix_libpath_sed='
9951 /Import File Strings/,/^$/ {
9953 s/^0 *\([^ ]*\) *$/\1/
9957 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9958 # Check for a 64-bit object if we didn't find anything.
9959 if test -z "$lt_cv_aix_libpath_"; then
9960 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9963 rm -f core conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965 if test -z "$lt_cv_aix_libpath_"; then
9966 lt_cv_aix_libpath_=/usr/lib:/lib
9971 aix_libpath=$lt_cv_aix_libpath_
9974 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9975 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
9977 if test ia64 = "$host_cpu"; then
9978 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9979 allow_undefined_flag="-z nodefs"
9980 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"
9982 # Determine the default libpath from the value encoded in an
9984 if test set = "${lt_cv_aix_libpath+set}"; then
9985 aix_libpath=$lt_cv_aix_libpath
9987 if ${lt_cv_aix_libpath_+:} false; then :
9988 $as_echo_n "(cached) " >&6
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
10001 if ac_fn_c_try_link "$LINENO"; then :
10003 lt_aix_libpath_sed='
10004 /Import File Strings/,/^$/ {
10006 s/^0 *\([^ ]*\) *$/\1/
10010 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10011 # Check for a 64-bit object if we didn't find anything.
10012 if test -z "$lt_cv_aix_libpath_"; then
10013 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 if test -z "$lt_cv_aix_libpath_"; then
10019 lt_cv_aix_libpath_=/usr/lib:/lib
10024 aix_libpath=$lt_cv_aix_libpath_
10027 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10028 # Warning - without using the other run time loading flags,
10029 # -berok will link without error, but may produce a broken library.
10030 no_undefined_flag=' $wl-bernotok'
10031 allow_undefined_flag=' $wl-berok'
10032 if test yes = "$with_gnu_ld"; then
10033 # We only use this code for GNU lds that support --whole-archive.
10034 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10036 # Exported symbols can be pulled into shared objects from archives
10037 whole_archive_flag_spec='$convenience'
10039 archive_cmds_need_lc=yes
10040 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10041 # -brtl affects multiple linker settings, -berok does not and is overridden later
10042 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10043 if test svr4 != "$with_aix_soname"; then
10044 # This is similar to how AIX traditionally builds its shared libraries.
10045 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'
10047 if test aix != "$with_aix_soname"; then
10048 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'
10050 # used by -dlpreopen to get the symbols
10051 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10053 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10061 # see comment about AmigaOS4 .so support
10062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10063 archive_expsym_cmds=''
10066 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)'
10067 hardcode_libdir_flag_spec='-L$libdir'
10068 hardcode_minus_L=yes
10074 export_dynamic_flag_spec=-rdynamic
10077 cygwin* | mingw* | pw32* | cegcc*)
10078 # When not using gcc, we currently assume that we are using
10079 # Microsoft Visual C++.
10080 # hardcode_libdir_flag_spec is actually meaningless, as there is
10081 # no search path for DLLs.
10082 case $cc_basename in
10085 hardcode_libdir_flag_spec=' '
10086 allow_undefined_flag=unsupported
10087 always_export_symbols=yes
10089 # Tell ltmain to make .lib files, not .a files.
10091 # Tell ltmain to make .dll files, not .so files.
10093 # FIXME: Setting linknames here is a bad hack.
10094 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10095 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10096 cp "$export_symbols" "$output_objdir/$soname.def";
10097 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10099 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10101 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10103 # The linker will not automatically build a static lib if we build a DLL.
10104 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10105 enable_shared_with_static_runtimes=yes
10106 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10109 old_postinstall_cmds='chmod 644 $oldlib'
10110 postlink_cmds='lt_outputfile="@OUTPUT@"~
10111 lt_tool_outputfile="@TOOL_OUTPUT@"~
10112 case $lt_outputfile in
10115 lt_outputfile=$lt_outputfile.exe
10116 lt_tool_outputfile=$lt_tool_outputfile.exe
10119 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10120 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10121 $RM "$lt_outputfile.manifest";
10125 # Assume MSVC wrapper
10126 hardcode_libdir_flag_spec=' '
10127 allow_undefined_flag=unsupported
10128 # Tell ltmain to make .lib files, not .a files.
10130 # Tell ltmain to make .dll files, not .so files.
10132 # FIXME: Setting linknames here is a bad hack.
10133 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10134 # The linker will automatically build a .lib file if we build a DLL.
10135 old_archive_from_new_cmds='true'
10136 # FIXME: Should let the user specify the lib program.
10137 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10138 enable_shared_with_static_runtimes=yes
10143 darwin* | rhapsody*)
10146 archive_cmds_need_lc=no
10148 hardcode_automatic=yes
10149 hardcode_shlibpath_var=unsupported
10150 if test yes = "$lt_cv_ld_force_load"; then
10151 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\"`'
10154 whole_archive_flag_spec=''
10156 link_all_deplibs=yes
10157 allow_undefined_flag=$_lt_dar_allow_undefined
10158 case $cc_basename in
10159 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10160 *) _lt_dar_can_shared=$GCC ;;
10162 if test yes = "$_lt_dar_can_shared"; then
10163 output_verbose_link_cmd=func_echo_all
10164 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10165 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10166 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"
10167 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"
10176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 hardcode_libdir_flag_spec='-L$libdir'
10178 hardcode_shlibpath_var=no
10181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10182 # support. Future versions do this automatically, but an explicit c++rt0.o
10183 # does not break anything, and helps significantly (at the cost of a little
10186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10187 hardcode_libdir_flag_spec='-R$libdir'
10188 hardcode_direct=yes
10189 hardcode_shlibpath_var=no
10192 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_direct=yes
10196 hardcode_minus_L=yes
10197 hardcode_shlibpath_var=no
10200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10201 freebsd* | dragonfly*)
10202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10203 hardcode_libdir_flag_spec='-R$libdir'
10204 hardcode_direct=yes
10205 hardcode_shlibpath_var=no
10209 if test yes = "$GCC"; then
10210 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'
10212 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'
10214 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10215 hardcode_libdir_separator=:
10216 hardcode_direct=yes
10218 # hardcode_minus_L: Not really in the search PATH,
10219 # but as the default location of the library.
10220 hardcode_minus_L=yes
10221 export_dynamic_flag_spec='$wl-E'
10225 if test yes,no = "$GCC,$with_gnu_ld"; then
10226 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10230 if test no = "$with_gnu_ld"; then
10231 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10232 hardcode_libdir_separator=:
10233 hardcode_direct=yes
10234 hardcode_direct_absolute=yes
10235 export_dynamic_flag_spec='$wl-E'
10236 # hardcode_minus_L: Not really in the search PATH,
10237 # but as the default location of the library.
10238 hardcode_minus_L=yes
10243 if test yes,no = "$GCC,$with_gnu_ld"; then
10246 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10252 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10258 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10265 # Older versions of the 11.00 compiler do not understand -b yet
10266 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10268 $as_echo_n "checking if $CC understands -b... " >&6; }
10269 if ${lt_cv_prog_compiler__b+:} false; then :
10270 $as_echo_n "(cached) " >&6
10272 lt_cv_prog_compiler__b=no
10273 save_LDFLAGS=$LDFLAGS
10274 LDFLAGS="$LDFLAGS -b"
10275 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10276 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10277 # The linker can only warn and ignore the option if not recognized
10278 # So say no if there are warnings
10279 if test -s conftest.err; then
10280 # Append any errors to the config.log.
10281 cat conftest.err 1>&5
10282 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10284 if diff conftest.exp conftest.er2 >/dev/null; then
10285 lt_cv_prog_compiler__b=yes
10288 lt_cv_prog_compiler__b=yes
10292 LDFLAGS=$save_LDFLAGS
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10296 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10298 if test yes = "$lt_cv_prog_compiler__b"; then
10299 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10307 if test no = "$with_gnu_ld"; then
10308 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10309 hardcode_libdir_separator=:
10314 hardcode_shlibpath_var=no
10317 hardcode_direct=yes
10318 hardcode_direct_absolute=yes
10319 export_dynamic_flag_spec='$wl-E'
10321 # hardcode_minus_L: Not really in the search PATH,
10322 # but as the default location of the library.
10323 hardcode_minus_L=yes
10329 irix5* | irix6* | nonstopux*)
10330 if test yes = "$GCC"; then
10331 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'
10332 # Try to use the -exported_symbol ld option, if it does not
10333 # work, assume that -exports_file does not work either and
10334 # implicitly export all symbols.
10335 # This should be the same for all languages, so no per-tag cache variable.
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10337 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10338 if ${lt_cv_irix_exported_symbol+:} false; then :
10339 $as_echo_n "(cached) " >&6
10341 save_LDFLAGS=$LDFLAGS
10342 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 int foo (void) { return 0; }
10347 if ac_fn_c_try_link "$LINENO"; then :
10348 lt_cv_irix_exported_symbol=yes
10350 lt_cv_irix_exported_symbol=no
10352 rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LDFLAGS=$save_LDFLAGS
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10357 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10358 if test yes = "$lt_cv_irix_exported_symbol"; then
10359 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'
10362 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'
10363 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'
10365 archive_cmds_need_lc='no'
10366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10367 hardcode_libdir_separator=:
10369 link_all_deplibs=yes
10373 case $cc_basename in
10375 # Fabrice Bellard et al's Tiny C Compiler
10377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10383 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10386 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10388 hardcode_libdir_flag_spec='-R$libdir'
10389 hardcode_direct=yes
10390 hardcode_shlibpath_var=no
10394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395 hardcode_direct=yes
10396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10397 hardcode_libdir_separator=:
10398 hardcode_shlibpath_var=no
10404 openbsd* | bitrig*)
10405 if test -f /usr/libexec/ld.so; then
10406 hardcode_direct=yes
10407 hardcode_shlibpath_var=no
10408 hardcode_direct_absolute=yes
10409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10410 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10411 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10412 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10413 export_dynamic_flag_spec='$wl-E'
10415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10416 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10424 hardcode_libdir_flag_spec='-L$libdir'
10425 hardcode_minus_L=yes
10426 allow_undefined_flag=unsupported
10428 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10429 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10430 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10431 $ECHO EXPORTS >> $output_objdir/$libname.def~
10432 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10433 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10434 emximp -o $lib $output_objdir/$libname.def'
10435 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10436 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10437 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10438 $ECHO EXPORTS >> $output_objdir/$libname.def~
10439 prefix_cmds="$SED"~
10440 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10441 prefix_cmds="$prefix_cmds -e 1d";
10443 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10444 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10445 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10446 emximp -o $lib $output_objdir/$libname.def'
10447 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10448 enable_shared_with_static_runtimes=yes
10452 if test yes = "$GCC"; then
10453 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10454 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'
10456 allow_undefined_flag=' -expect_unresolved \*'
10457 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'
10459 archive_cmds_need_lc='no'
10460 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10461 hardcode_libdir_separator=:
10464 osf4* | osf5*) # as osf3* with the addition of -msym flag
10465 if test yes = "$GCC"; then
10466 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10467 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'
10468 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10470 allow_undefined_flag=' -expect_unresolved \*'
10471 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'
10472 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~
10473 $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'
10475 # Both c and cxx compiler support -rpath directly
10476 hardcode_libdir_flag_spec='-rpath $libdir'
10478 archive_cmds_need_lc='no'
10479 hardcode_libdir_separator=:
10483 no_undefined_flag=' -z defs'
10484 if test yes = "$GCC"; then
10486 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10488 $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'
10490 case `$CC -V 2>&1` in
10493 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10494 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10495 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10499 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10501 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10505 hardcode_libdir_flag_spec='-R$libdir'
10506 hardcode_shlibpath_var=no
10508 solaris2.[0-5] | solaris2.[0-5].*) ;;
10510 # The compiler driver will combine and reorder linker options,
10511 # but understands '-z linker_flag'. GCC discards it without '$wl',
10512 # but is careful enough not to reorder.
10513 # Supported since Solaris 2.6 (maybe 2.5.1?)
10514 if test yes = "$GCC"; then
10515 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10517 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10521 link_all_deplibs=yes
10525 if test sequent = "$host_vendor"; then
10526 # Use $CC to link under sequent, because it throws in some extra .o
10527 # files that make .init and .fini sections work.
10528 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10530 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10532 hardcode_libdir_flag_spec='-L$libdir'
10533 hardcode_direct=yes
10534 hardcode_minus_L=yes
10535 hardcode_shlibpath_var=no
10539 case $host_vendor in
10541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10542 hardcode_direct=yes # is this really true???
10545 ## LD is ld it makes a PLAMLIB
10546 ## CC just makes a GrossModule.
10547 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10548 reload_cmds='$CC -r -o $output$reload_objs'
10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10556 runpath_var='LD_RUN_PATH'
10557 hardcode_shlibpath_var=no
10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_shlibpath_var=no
10563 export_dynamic_flag_spec='-Bexport'
10567 if test -d /usr/nec; then
10568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_shlibpath_var=no
10570 runpath_var=LD_RUN_PATH
10571 hardcode_runpath_var=yes
10576 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10577 no_undefined_flag='$wl-z,text'
10578 archive_cmds_need_lc=no
10579 hardcode_shlibpath_var=no
10580 runpath_var='LD_RUN_PATH'
10582 if test yes = "$GCC"; then
10583 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10591 sysv5* | sco3.2v5* | sco5v6*)
10592 # Note: We CANNOT use -z defs as we might desire, because we do not
10593 # link with -lc, and that would cause any symbols used from libc to
10594 # always be unresolved, which means just about no library would
10595 # ever link correctly. If we're not using GNU ld we use -z text
10596 # though, which does catch some bad symbols but isn't as heavy-handed
10598 no_undefined_flag='$wl-z,text'
10599 allow_undefined_flag='$wl-z,nodefs'
10600 archive_cmds_need_lc=no
10601 hardcode_shlibpath_var=no
10602 hardcode_libdir_flag_spec='$wl-R,$libdir'
10603 hardcode_libdir_separator=':'
10604 link_all_deplibs=yes
10605 export_dynamic_flag_spec='$wl-Bexport'
10606 runpath_var='LD_RUN_PATH'
10608 if test yes = "$GCC"; then
10609 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10613 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10619 hardcode_libdir_flag_spec='-L$libdir'
10620 hardcode_shlibpath_var=no
10628 if test sni = "$host_vendor"; then
10630 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10631 export_dynamic_flag_spec='$wl-Blargedynsym'
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10638 $as_echo "$ld_shlibs" >&6; }
10639 test no = "$ld_shlibs" && can_build_shared=no
10641 with_gnu_ld=$with_gnu_ld
10658 # Do we need to explicitly link libc?
10660 case "x$archive_cmds_need_lc" in
10662 # Assume -lc should be added
10663 archive_cmds_need_lc=yes
10665 if test yes,yes = "$GCC,$enable_shared"; then
10666 case $archive_cmds in
10668 # FIXME: we may have to deal with multi-command sequences.
10671 # Test whether the compiler implicitly links with -lc since on some
10672 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10673 # to ld, don't add -lc before -lgcc.
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10675 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10676 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10677 $as_echo_n "(cached) " >&6
10680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10683 (eval $ac_compile) 2>&5
10685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10686 test $ac_status = 0; } 2>conftest.err; then
10689 libobjs=conftest.$ac_objext
10691 wl=$lt_prog_compiler_wl
10692 pic_flag=$lt_prog_compiler_pic
10698 lt_save_allow_undefined_flag=$allow_undefined_flag
10699 allow_undefined_flag=
10700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10701 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10704 test $ac_status = 0; }
10706 lt_cv_archive_cmds_need_lc=no
10708 lt_cv_archive_cmds_need_lc=yes
10710 allow_undefined_flag=$lt_save_allow_undefined_flag
10712 cat conftest.err 1>&5
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10718 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10719 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10878 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10880 if test yes = "$GCC"; then
10882 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10883 *) lt_awk_arg='/^libraries:/' ;;
10886 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10887 *) lt_sed_strip_eq='s|=/|/|g' ;;
10889 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10890 case $lt_search_path_spec in
10892 # if the path contains ";" then we assume it to be the separator
10893 # otherwise default to the standard path separator (i.e. ":") - it is
10894 # assumed that no part of a normal pathname contains ";" but that should
10895 # okay in the real world where ";" in dirpaths is itself problematic.
10896 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10899 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10902 # Ok, now we have the path, separated by spaces, we can step through it
10903 # and add multilib dir if necessary...
10904 lt_tmp_lt_search_path_spec=
10905 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10906 # ...but if some path component already ends with the multilib dir we assume
10907 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10908 case "$lt_multi_os_dir; $lt_search_path_spec " in
10909 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10913 for lt_sys_path in $lt_search_path_spec; do
10914 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10915 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10916 elif test -n "$lt_multi_os_dir"; then
10917 test -d "$lt_sys_path" && \
10918 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10921 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10922 BEGIN {RS = " "; FS = "/|\n";} {
10925 for (lt_i = NF; lt_i > 0; lt_i--) {
10926 if ($lt_i != "" && $lt_i != ".") {
10927 if ($lt_i == "..") {
10930 if (lt_count == 0) {
10931 lt_foo = "/" $lt_i lt_foo;
10938 if (lt_foo != "") { lt_freq[lt_foo]++; }
10939 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10941 # AWK program above erroneously prepends '/' to C:/dos/paths
10944 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10945 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10947 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10949 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10951 library_names_spec=
10952 libname_spec='lib$name'
10956 postuninstall_cmds=
10960 shlibpath_overrides_runpath=unknown
10962 dynamic_linker="$host_os ld.so"
10963 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10964 need_lib_prefix=unknown
10965 hardcode_into_libs=no
10967 # when you set need_version to no, make sure it does not cause -set_version
10968 # flags to be left without arguments
10969 need_version=unknown
10975 version_type=linux # correct to gnu/linux during the next big refactor
10976 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10977 shlibpath_var=LIBPATH
10979 # AIX 3 has no versioning support, so we append a major version to the name.
10980 soname_spec='$libname$release$shared_ext$major'
10984 version_type=linux # correct to gnu/linux during the next big refactor
10987 hardcode_into_libs=yes
10988 if test ia64 = "$host_cpu"; then
10989 # AIX 5 supports IA64
10990 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10991 shlibpath_var=LD_LIBRARY_PATH
10993 # With GCC up to 2.95.x, collect2 would create an import file
10994 # for dependence libraries. The import file would start with
10995 # the line '#! .'. This would cause the generated library to
10996 # depend on '.', always an invalid library. This was fixed in
10997 # development snapshots of GCC prior to 3.0.
10999 aix4 | aix4.[01] | aix4.[01].*)
11000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11002 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11005 can_build_shared=no
11009 # Using Import Files as archive members, it is possible to support
11010 # filename-based versioning of shared library archives on AIX. While
11011 # this would work for both with and without runtime linking, it will
11012 # prevent static linking of such archives. So we do filename-based
11013 # shared library versioning with .so extension only, which is used
11014 # when both runtime linking and shared linking is enabled.
11015 # Unfortunately, runtime linking may impact performance, so we do
11016 # not want this to be the default eventually. Also, we use the
11017 # versioned .so libs for executables only if there is the -brtl
11018 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11019 # To allow for filename-based versioning support, we need to create
11020 # libNAME.so.V as an archive file, containing:
11021 # *) an Import File, referring to the versioned filename of the
11022 # archive as well as the shared archive member, telling the
11023 # bitwidth (32 or 64) of that shared object, and providing the
11024 # list of exported symbols of that shared object, eventually
11025 # decorated with the 'weak' keyword
11026 # *) the shared object with the F_LOADONLY flag set, to really avoid
11027 # it being seen by the linker.
11028 # At run time we better use the real file rather than another symlink,
11029 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11031 case $with_aix_soname,$aix_use_runtimelinking in
11032 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11033 # soname into executable. Probably we can add versioning support to
11034 # collect2, so additional links can be useful in future.
11035 aix,yes) # traditional libtool
11036 dynamic_linker='AIX unversionable lib.so'
11037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11038 # instead of lib<name>.a to let people know that these are not
11039 # typical AIX shared libraries.
11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11042 aix,no) # traditional AIX only
11043 dynamic_linker='AIX lib.a(lib.so.V)'
11044 # We preserve .a as extension for shared libraries through AIX4.2
11045 # and later when we are not doing run time linking.
11046 library_names_spec='$libname$release.a $libname.a'
11047 soname_spec='$libname$release$shared_ext$major'
11049 svr4,*) # full svr4 only
11050 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11051 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11052 # We do not specify a path in Import Files, so LIBPATH fires.
11053 shlibpath_overrides_runpath=yes
11055 *,yes) # both, prefer svr4
11056 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11057 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11058 # unpreferred sharedlib libNAME.a needs extra handling
11059 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"'
11060 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"'
11061 # We do not specify a path in Import Files, so LIBPATH fires.
11062 shlibpath_overrides_runpath=yes
11064 *,no) # both, prefer aix
11065 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11066 library_names_spec='$libname$release.a $libname.a'
11067 soname_spec='$libname$release$shared_ext$major'
11068 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11069 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)'
11070 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"'
11073 shlibpath_var=LIBPATH
11080 # Since July 2007 AmigaOS4 officially supports .so libraries.
11081 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11085 library_names_spec='$libname.ixlibrary $libname.a'
11086 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11087 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'
11093 library_names_spec='$libname$shared_ext'
11094 dynamic_linker="$host_os ld.so"
11095 shlibpath_var=LIBRARY_PATH
11099 version_type=linux # correct to gnu/linux during the next big refactor
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102 soname_spec='$libname$release$shared_ext$major'
11103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11107 # the default ld.so.conf also contains /usr/contrib/lib and
11108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11109 # libtool to hard-code these into programs
11112 cygwin* | mingw* | pw32* | cegcc*)
11113 version_type=windows
11118 case $GCC,$cc_basename in
11121 library_names_spec='$libname.dll.a'
11122 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11123 postinstall_cmds='base_file=`basename \$file`~
11124 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11125 dldir=$destdir/`dirname \$dlpath`~
11126 test -d \$dldir || mkdir -p \$dldir~
11127 $install_prog $dir/$dlname \$dldir/$dlname~
11128 chmod a+x \$dldir/$dlname~
11129 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11130 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11132 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11133 dlpath=$dir/\$dldll~
11135 shlibpath_overrides_runpath=yes
11139 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11140 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11142 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11145 # MinGW DLLs use traditional 'lib' prefix
11146 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11149 # pw32 DLLs use 'pw' prefix rather than 'lib'
11150 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11153 dynamic_linker='Win32 ld.exe'
11158 libname_spec='$name'
11159 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11160 library_names_spec='$libname.dll.lib'
11164 sys_lib_search_path_spec=
11167 for lt_path in $LIB
11170 # Let DOS variable expansion print the short 8.3 style file name.
11171 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11172 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11175 # Convert to MSYS style.
11176 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11179 # Convert to unix form, then to dos form, then back to unix form
11180 # but this time dos style (no spaces!) so that the unix form looks
11181 # like /cygdrive/c/PROGRA~1:/cygdr...
11182 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11183 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11184 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11187 sys_lib_search_path_spec=$LIB
11188 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11189 # It is most probably a Windows format PATH.
11190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11194 # FIXME: find the short name or the path components, as spaces are
11195 # common. (e.g. "Program Files" -> "PROGRA~1")
11199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11200 postinstall_cmds='base_file=`basename \$file`~
11201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11202 dldir=$destdir/`dirname \$dlpath`~
11203 test -d \$dldir || mkdir -p \$dldir~
11204 $install_prog $dir/$dlname \$dldir/$dlname'
11205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11206 dlpath=$dir/\$dldll~
11208 shlibpath_overrides_runpath=yes
11209 dynamic_linker='Win32 link.exe'
11213 # Assume MSVC wrapper
11214 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11215 dynamic_linker='Win32 ld.exe'
11218 # FIXME: first we should search . and the directory the executable is in
11222 darwin* | rhapsody*)
11223 dynamic_linker="$host_os dyld"
11224 version_type=darwin
11227 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11228 soname_spec='$libname$release$major$shared_ext'
11229 shlibpath_overrides_runpath=yes
11230 shlibpath_var=DYLD_LIBRARY_PATH
11231 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11233 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11234 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11238 version_type=linux # correct to gnu/linux during the next big refactor
11241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11242 soname_spec='$libname$release$shared_ext$major'
11243 shlibpath_var=LD_LIBRARY_PATH
11246 freebsd* | dragonfly*)
11247 # DragonFly does not have aout. When/if they implement a new
11248 # versioning mechanism, adjust this.
11249 if test -x /usr/bin/objformat; then
11250 objformat=`/usr/bin/objformat`
11253 freebsd[23].*) objformat=aout ;;
11254 *) objformat=elf ;;
11257 version_type=freebsd-$objformat
11258 case $version_type in
11260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11261 soname_spec='$libname$release$shared_ext$major'
11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11270 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=yes
11275 freebsd3.[01]* | freebsdelf3.[01]*)
11276 shlibpath_overrides_runpath=yes
11277 hardcode_into_libs=yes
11279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11281 shlibpath_overrides_runpath=no
11282 hardcode_into_libs=yes
11284 *) # from 4.6 on, and DragonFly
11285 shlibpath_overrides_runpath=yes
11286 hardcode_into_libs=yes
11292 version_type=linux # correct to gnu/linux during the next big refactor
11295 dynamic_linker="$host_os runtime_loader"
11296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11297 soname_spec='$libname$release$shared_ext$major'
11298 shlibpath_var=LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11301 hardcode_into_libs=yes
11304 hpux9* | hpux10* | hpux11*)
11305 # Give a soname corresponding to the major version so that dld.sl refuses to
11306 # link against other versions.
11313 hardcode_into_libs=yes
11314 dynamic_linker="$host_os dld.so"
11315 shlibpath_var=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11318 soname_spec='$libname$release$shared_ext$major'
11319 if test 32 = "$HPUX_IA64_MODE"; then
11320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11321 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11324 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11329 hardcode_into_libs=yes
11330 dynamic_linker="$host_os dld.sl"
11331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11334 soname_spec='$libname$release$shared_ext$major'
11335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11340 dynamic_linker="$host_os dld.sl"
11341 shlibpath_var=SHLIB_PATH
11342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11344 soname_spec='$libname$release$shared_ext$major'
11347 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11348 postinstall_cmds='chmod 555 $lib'
11349 # or fails outright, so override atomically:
11350 install_override_mode=555
11354 version_type=linux # correct to gnu/linux during the next big refactor
11357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11358 soname_spec='$libname$release$shared_ext$major'
11359 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11360 shlibpath_var=LD_LIBRARY_PATH
11361 shlibpath_overrides_runpath=no
11362 hardcode_into_libs=yes
11365 irix5* | irix6* | nonstopux*)
11367 nonstopux*) version_type=nonstopux ;;
11369 if test yes = "$lt_cv_prog_gnu_ld"; then
11370 version_type=linux # correct to gnu/linux during the next big refactor
11377 soname_spec='$libname$release$shared_ext$major'
11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11380 irix5* | nonstopux*)
11381 libsuff= shlibsuff=
11384 case $LD in # libtool.m4 will add one of these switches to LD
11385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11386 libsuff= shlibsuff= libmagic=32-bit;;
11387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11388 libsuff=32 shlibsuff=N32 libmagic=N32;;
11389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11391 *) libsuff= shlibsuff= libmagic=never-match;;
11395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11396 shlibpath_overrides_runpath=no
11397 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11398 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11399 hardcode_into_libs=yes
11402 # No shared lib support for Linux oldld, aout, or coff.
11403 linux*oldld* | linux*aout* | linux*coff*)
11408 version_type=none # Android doesn't support versioned libraries.
11411 library_names_spec='$libname$release$shared_ext'
11412 soname_spec='$libname$release$shared_ext'
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=yes
11417 # This implies no fast_install, which is unacceptable.
11418 # Some rework will be needed to allow for fast_install
11419 # before this can be enabled.
11420 hardcode_into_libs=yes
11422 dynamic_linker='Android linker'
11423 # Don't embed -rpath directories since the linker doesn't support them.
11424 hardcode_libdir_flag_spec='-L$libdir'
11427 # This must be glibc/ELF.
11428 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11429 version_type=linux # correct to gnu/linux during the next big refactor
11432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11433 soname_spec='$libname$release$shared_ext$major'
11434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=no
11438 # Some binutils ld are patched to set DT_RUNPATH
11439 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11440 $as_echo_n "(cached) " >&6
11442 lt_cv_shlibpath_overrides_runpath=no
11443 save_LDFLAGS=$LDFLAGS
11444 save_libdir=$libdir
11445 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11446 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11458 if ac_fn_c_try_link "$LINENO"; then :
11459 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11460 lt_cv_shlibpath_overrides_runpath=yes
11463 rm -f core conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
11465 LDFLAGS=$save_LDFLAGS
11466 libdir=$save_libdir
11470 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11472 # This implies no fast_install, which is unacceptable.
11473 # Some rework will be needed to allow for fast_install
11474 # before this can be enabled.
11475 hardcode_into_libs=yes
11477 # Ideally, we could use ldconfig to report *all* directores which are
11478 # searched for libraries, however this is still not possible. Aside from not
11479 # being certain /sbin/ldconfig is available, command
11480 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11481 # even though it is searched at run-time. Try to do the best guess by
11482 # appending ld.so.conf contents (and includes) to the search path.
11483 if test -f /etc/ld.so.conf; then
11484 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' ' '`
11485 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11488 # We used to test for /lib/ld.so.1 and disable shared libraries on
11489 # powerpc, because MkLinux only supported shared libraries with the
11490 # GNU dynamic linker. Since this was broken with cross compilers,
11491 # most powerpc-linux boxes support dynamic linking these days and
11492 # people can always --disable-shared, the test was removed, and we
11493 # assume the GNU/Linux dynamic linker is in use.
11494 dynamic_linker='GNU/Linux ld.so'
11501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11504 dynamic_linker='NetBSD (a.out) ld.so'
11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11507 soname_spec='$libname$release$shared_ext$major'
11508 dynamic_linker='NetBSD ld.elf_so'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11516 version_type=linux # correct to gnu/linux during the next big refactor
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11527 soname_spec='$libname$release$shared_ext$major'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath=no
11530 hardcode_into_libs=yes
11531 dynamic_linker='ldqnx.so'
11534 openbsd* | bitrig*)
11536 sys_lib_dlsearch_path_spec=/usr/lib
11538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=yes
11550 libname_spec='$name'
11551 version_type=windows
11555 # OS/2 can only load a DLL with a base name of 8 characters or less.
11556 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11557 v=$($ECHO $release$versuffix | tr -d .-);
11558 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11559 $ECHO $n$v`$shared_ext'
11560 library_names_spec='${libname}_dll.$libext'
11561 dynamic_linker='OS/2 ld.exe'
11562 shlibpath_var=BEGINLIBPATH
11563 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11565 postinstall_cmds='base_file=`basename \$file`~
11566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11567 dldir=$destdir/`dirname \$dlpath`~
11568 test -d \$dldir || mkdir -p \$dldir~
11569 $install_prog $dir/$dlname \$dldir/$dlname~
11570 chmod a+x \$dldir/$dlname~
11571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11575 dlpath=$dir/\$dldll~
11579 osf3* | osf4* | osf5*)
11583 soname_spec='$libname$release$shared_ext$major'
11584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11595 version_type=linux # correct to gnu/linux during the next big refactor
11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11599 soname_spec='$libname$release$shared_ext$major'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=yes
11602 hardcode_into_libs=yes
11603 # ldd complains unless libraries are executable
11604 postinstall_cmds='chmod +x $lib'
11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11611 shlibpath_var=LD_LIBRARY_PATH
11612 shlibpath_overrides_runpath=yes
11613 if test yes = "$with_gnu_ld"; then
11620 version_type=linux # correct to gnu/linux during the next big refactor
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 soname_spec='$libname$release$shared_ext$major'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 case $host_vendor in
11626 shlibpath_overrides_runpath=no
11628 runpath_var=LD_RUN_PATH
11636 shlibpath_overrides_runpath=no
11637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11643 if test -d /usr/nec; then
11644 version_type=linux # correct to gnu/linux during the next big refactor
11645 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11646 soname_spec='$libname$shared_ext.$major'
11647 shlibpath_var=LD_LIBRARY_PATH
11651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11656 soname_spec='$libname$release$shared_ext$major'
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=yes
11659 hardcode_into_libs=yes
11660 if test yes = "$with_gnu_ld"; then
11661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11666 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11670 sys_lib_dlsearch_path_spec='/usr/lib'
11674 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11675 version_type=linux # correct to gnu/linux during the next big refactor
11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11679 shlibpath_var=LD_LIBRARY_PATH
11680 shlibpath_overrides_runpath=no
11681 hardcode_into_libs=yes
11685 version_type=linux # correct to gnu/linux during the next big refactor
11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687 soname_spec='$libname$release$shared_ext$major'
11688 shlibpath_var=LD_LIBRARY_PATH
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11696 $as_echo "$dynamic_linker" >&6; }
11697 test no = "$dynamic_linker" && can_build_shared=no
11699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11700 if test yes = "$GCC"; then
11701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11704 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11705 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11708 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11709 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11712 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11713 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11715 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11716 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11718 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11719 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11818 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11820 if test -n "$hardcode_libdir_flag_spec" ||
11821 test -n "$runpath_var" ||
11822 test yes = "$hardcode_automatic"; then
11824 # We can hardcode non-existent directories.
11825 if test no != "$hardcode_direct" &&
11826 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11827 # have to relink, otherwise we might link with an installed library
11828 # when we should be linking with a yet-to-be-installed one
11829 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11830 test no != "$hardcode_minus_L"; then
11831 # Linking always hardcodes the temporary library directory.
11832 hardcode_action=relink
11834 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11835 hardcode_action=immediate
11838 # We cannot hardcode anything, or else we can only hardcode existing
11840 hardcode_action=unsupported
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11843 $as_echo "$hardcode_action" >&6; }
11845 if test relink = "$hardcode_action" ||
11846 test yes = "$inherit_rpath"; then
11847 # Fast installation is not supported
11848 enable_fast_install=no
11849 elif test yes = "$shlibpath_overrides_runpath" ||
11850 test no = "$enable_shared"; then
11851 # Fast installation is not necessary
11852 enable_fast_install=needless
11860 if test yes != "$enable_dlopen"; then
11861 enable_dlopen=unknown
11862 enable_dlopen_self=unknown
11863 enable_dlopen_self_static=unknown
11870 lt_cv_dlopen=load_add_on
11872 lt_cv_dlopen_self=yes
11875 mingw* | pw32* | cegcc*)
11876 lt_cv_dlopen=LoadLibrary
11881 lt_cv_dlopen=dlopen
11886 # if libdl is installed we need to link against it
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11888 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11889 if ${ac_cv_lib_dl_dlopen+:} false; then :
11890 $as_echo_n "(cached) " >&6
11892 ac_check_lib_save_LIBS=$LIBS
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11912 if ac_fn_c_try_link "$LINENO"; then :
11913 ac_cv_lib_dl_dlopen=yes
11915 ac_cv_lib_dl_dlopen=no
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11922 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11923 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11924 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11929 lt_cv_dlopen_self=yes
11936 # Don't try to run any link tests for TPF. We know it's impossible
11937 # because TPF is a cross-compiler, and we know how we open DSOs.
11938 lt_cv_dlopen=dlopen
11940 lt_cv_dlopen_self=no
11944 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11945 if test "x$ac_cv_func_shl_load" = xyes; then :
11946 lt_cv_dlopen=shl_load
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11949 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11950 if ${ac_cv_lib_dld_shl_load+:} false; then :
11951 $as_echo_n "(cached) " >&6
11953 ac_check_lib_save_LIBS=$LIBS
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11968 return shl_load ();
11973 if ac_fn_c_try_link "$LINENO"; then :
11974 ac_cv_lib_dld_shl_load=yes
11976 ac_cv_lib_dld_shl_load=no
11978 rm -f core conftest.err conftest.$ac_objext \
11979 conftest$ac_exeext conftest.$ac_ext
11980 LIBS=$ac_check_lib_save_LIBS
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11983 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11984 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11985 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11987 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11988 if test "x$ac_cv_func_dlopen" = xyes; then :
11989 lt_cv_dlopen=dlopen
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11993 if ${ac_cv_lib_dl_dlopen+:} false; then :
11994 $as_echo_n "(cached) " >&6
11996 ac_check_lib_save_LIBS=$LIBS
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12001 /* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12016 if ac_fn_c_try_link "$LINENO"; then :
12017 ac_cv_lib_dl_dlopen=yes
12019 ac_cv_lib_dl_dlopen=no
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12027 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12028 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12031 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12032 if ${ac_cv_lib_svld_dlopen+:} false; then :
12033 $as_echo_n "(cached) " >&6
12035 ac_check_lib_save_LIBS=$LIBS
12036 LIBS="-lsvld $LIBS"
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12040 /* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
12055 if ac_fn_c_try_link "$LINENO"; then :
12056 ac_cv_lib_svld_dlopen=yes
12058 ac_cv_lib_svld_dlopen=no
12060 rm -f core conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12062 LIBS=$ac_check_lib_save_LIBS
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12065 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12066 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12067 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12070 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12071 if ${ac_cv_lib_dld_dld_link+:} false; then :
12072 $as_echo_n "(cached) " >&6
12074 ac_check_lib_save_LIBS=$LIBS
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12079 /* Override any GCC internal prototype to avoid an error.
12080 Use char because int might match the return type of a GCC
12081 builtin and then its argument prototype would still apply. */
12089 return dld_link ();
12094 if ac_fn_c_try_link "$LINENO"; then :
12095 ac_cv_lib_dld_dld_link=yes
12097 ac_cv_lib_dld_dld_link=no
12099 rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12104 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12105 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12106 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12127 if test no = "$lt_cv_dlopen"; then
12133 case $lt_cv_dlopen in
12135 save_CPPFLAGS=$CPPFLAGS
12136 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12138 save_LDFLAGS=$LDFLAGS
12139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12142 LIBS="$lt_cv_dlopen_libs $LIBS"
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12145 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12146 if ${lt_cv_dlopen_self+:} false; then :
12147 $as_echo_n "(cached) " >&6
12149 if test yes = "$cross_compiling"; then :
12150 lt_cv_dlopen_self=cross
12152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12153 lt_status=$lt_dlunknown
12154 cat > conftest.$ac_ext <<_LT_EOF
12155 #line $LINENO "configure"
12156 #include "confdefs.h"
12165 # define LT_DLGLOBAL RTLD_GLOBAL
12168 # define LT_DLGLOBAL DL_GLOBAL
12170 # define LT_DLGLOBAL 0
12174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12175 find out it does not work in some platform. */
12176 #ifndef LT_DLLAZY_OR_NOW
12178 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12181 # define LT_DLLAZY_OR_NOW DL_LAZY
12184 # define LT_DLLAZY_OR_NOW RTLD_NOW
12187 # define LT_DLLAZY_OR_NOW DL_NOW
12189 # define LT_DLLAZY_OR_NOW 0
12196 /* When -fvisibility=hidden is used, assume the code has been annotated
12197 correspondingly for the symbols needed. */
12198 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12199 int fnord () __attribute__((visibility("default")));
12202 int fnord () { return 42; }
12205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12206 int status = $lt_dlunknown;
12210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12213 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12214 else puts (dlerror ());
12216 /* dlclose (self); */
12224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12225 (eval $ac_link) 2>&5
12227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12228 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12229 (./conftest; exit; ) >&5 2>/dev/null
12231 case x$lt_status in
12232 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12233 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12234 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12237 # compilation failed
12238 lt_cv_dlopen_self=no
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12246 $as_echo "$lt_cv_dlopen_self" >&6; }
12248 if test yes = "$lt_cv_dlopen_self"; then
12249 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12251 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12252 if ${lt_cv_dlopen_self_static+:} false; then :
12253 $as_echo_n "(cached) " >&6
12255 if test yes = "$cross_compiling"; then :
12256 lt_cv_dlopen_self_static=cross
12258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12259 lt_status=$lt_dlunknown
12260 cat > conftest.$ac_ext <<_LT_EOF
12261 #line $LINENO "configure"
12262 #include "confdefs.h"
12271 # define LT_DLGLOBAL RTLD_GLOBAL
12274 # define LT_DLGLOBAL DL_GLOBAL
12276 # define LT_DLGLOBAL 0
12280 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12281 find out it does not work in some platform. */
12282 #ifndef LT_DLLAZY_OR_NOW
12284 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12287 # define LT_DLLAZY_OR_NOW DL_LAZY
12290 # define LT_DLLAZY_OR_NOW RTLD_NOW
12293 # define LT_DLLAZY_OR_NOW DL_NOW
12295 # define LT_DLLAZY_OR_NOW 0
12302 /* When -fvisibility=hidden is used, assume the code has been annotated
12303 correspondingly for the symbols needed. */
12304 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12305 int fnord () __attribute__((visibility("default")));
12308 int fnord () { return 42; }
12311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12312 int status = $lt_dlunknown;
12316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12319 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12320 else puts (dlerror ());
12322 /* dlclose (self); */
12330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12331 (eval $ac_link) 2>&5
12333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12334 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12335 (./conftest; exit; ) >&5 2>/dev/null
12337 case x$lt_status in
12338 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12339 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12340 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12343 # compilation failed
12344 lt_cv_dlopen_self_static=no
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12352 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12355 CPPFLAGS=$save_CPPFLAGS
12356 LDFLAGS=$save_LDFLAGS
12361 case $lt_cv_dlopen_self in
12362 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12363 *) enable_dlopen_self=unknown ;;
12366 case $lt_cv_dlopen_self_static in
12367 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12368 *) enable_dlopen_self_static=unknown ;;
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12391 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12392 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12393 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12394 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12396 $as_echo "yes" >&6; }
12398 # FIXME - insert some real tests, host_os isn't really good enough
12401 if test -n "$STRIP"; then
12402 striplib="$STRIP -x"
12403 old_striplib="$STRIP -S"
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12405 $as_echo "yes" >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12429 # Report what library types will actually be built
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12431 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12433 $as_echo "$can_build_shared" >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12436 $as_echo_n "checking whether to build shared libraries... " >&6; }
12437 test no = "$can_build_shared" && enable_shared=no
12439 # On AIX, shared libraries and static libraries use the same namespace, and
12440 # are all built from PIC.
12443 test yes = "$enable_shared" && enable_static=no
12444 if test -n "$RANLIB"; then
12445 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12446 postinstall_cmds='$RANLIB $lib'
12451 if test ia64 != "$host_cpu"; then
12452 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12453 yes,aix,yes) ;; # shared object as lib.so file only
12454 yes,svr4,*) ;; # shared object as lib.so archive member only
12455 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12461 $as_echo "$enable_shared" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12464 $as_echo_n "checking whether to build static libraries... " >&6; }
12465 # Make sure either enable_shared or enable_static is yes.
12466 test yes = "$enable_shared" || enable_static=yes
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12468 $as_echo "$enable_static" >&6; }
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12496 ac_config_commands="$ac_config_commands libtool"
12501 # Only expand once:
12511 cat >>confdefs.h <<_ACEOF
12512 #define LIB_MAJ $LIB_MAJ
12516 # Check whether --enable-debug was given.
12517 if test "${enable_debug+set}" = set; then :
12518 enableval=$enable_debug;
12519 $as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
12524 # Check whether --enable-unversioned-modules was given.
12525 if test "${enable_unversioned_modules+set}" = set; then :
12526 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
12529 $as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
12537 # Check whether --with-modules-dir was given.
12538 if test "${with_modules_dir+set}" = set; then :
12539 withval=$with_modules_dir; if test x"$withval" != x"no"; then :
12541 OPENPAM_MODULES_DIR="$withval"
12543 cat >>confdefs.h <<_ACEOF
12544 #define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}"
12552 if test x"$OPENPAM_MODULES_DIR" != x""; then
12553 CUSTOM_MODULES_DIR_TRUE=
12554 CUSTOM_MODULES_DIR_FALSE='#'
12556 CUSTOM_MODULES_DIR_TRUE='#'
12557 CUSTOM_MODULES_DIR_FALSE=
12562 # Check whether --with-doc was given.
12563 if test "${with_doc+set}" = set; then :
12569 if test x"$with_doc" = x"yes"; then
12579 # Check whether --with-pam-unix was given.
12580 if test "${with_pam_unix+set}" = set; then :
12581 withval=$with_pam_unix;
12586 if test x"$with_pam_unix" = x"yes"; then
12587 WITH_PAM_UNIX_TRUE=
12588 WITH_PAM_UNIX_FALSE='#'
12590 WITH_PAM_UNIX_TRUE='#'
12591 WITH_PAM_UNIX_FALSE=
12596 # Check whether --with-pamtest was given.
12597 if test "${with_pamtest+set}" = set; then :
12598 withval=$with_pamtest;
12603 if test x"$with_pamtest" = x"yes"; then
12605 WITH_PAMTEST_FALSE='#'
12607 WITH_PAMTEST_TRUE='#'
12608 WITH_PAMTEST_FALSE=
12613 # Check whether --with-su was given.
12614 if test "${with_su+set}" = set; then :
12620 if test x"$with_su" = x"yes"; then
12630 # Check whether --with-system-libpam was given.
12631 if test "${with_system_libpam+set}" = set; then :
12632 withval=$with_system_libpam;
12634 with_system_libpam=no
12637 if test x"$with_system_libpam" = x"yes"; then
12638 WITH_SYSTEM_LIBPAM_TRUE=
12639 WITH_SYSTEM_LIBPAM_FALSE='#'
12641 WITH_SYSTEM_LIBPAM_TRUE='#'
12642 WITH_SYSTEM_LIBPAM_FALSE=
12646 for ac_header in crypt.h
12648 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
12649 if test "x$ac_cv_header_crypt_h" = xyes; then :
12650 cat >>confdefs.h <<_ACEOF
12651 #define HAVE_CRYPT_H 1
12659 for ac_func in asprintf vasprintf
12661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12664 cat >>confdefs.h <<_ACEOF
12665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12671 for ac_func in dlfunc fdlopen
12673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12674 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12675 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12676 cat >>confdefs.h <<_ACEOF
12677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12683 for ac_func in fpurge
12685 ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
12686 if test "x$ac_cv_func_fpurge" = xyes; then :
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_FPURGE 1
12694 for ac_func in setlogmask
12696 ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
12697 if test "x$ac_cv_func_setlogmask" = xyes; then :
12698 cat >>confdefs.h <<_ACEOF
12699 #define HAVE_SETLOGMASK 1
12705 for ac_func in strlcat strlcmp strlcpy strlset
12707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12708 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12709 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12710 cat >>confdefs.h <<_ACEOF
12711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12718 saved_LIBS="${LIBS}"
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12721 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12722 if ${ac_cv_lib_dl_dlopen+:} false; then :
12723 $as_echo_n "(cached) " >&6
12725 ac_check_lib_save_LIBS=$LIBS
12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12730 /* Override any GCC internal prototype to avoid an error.
12731 Use char because int might match the return type of a GCC
12732 builtin and then its argument prototype would still apply. */
12745 if ac_fn_c_try_link "$LINENO"; then :
12746 ac_cv_lib_dl_dlopen=yes
12748 ac_cv_lib_dl_dlopen=no
12750 rm -f core conftest.err conftest.$ac_objext \
12751 conftest$ac_exeext conftest.$ac_ext
12752 LIBS=$ac_check_lib_save_LIBS
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12755 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12756 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12757 cat >>confdefs.h <<_ACEOF
12758 #define HAVE_LIBDL 1
12766 LIBS="${saved_LIBS}"
12769 saved_LIBS="${LIBS}"
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12772 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12773 if ${ac_cv_lib_crypt_crypt+:} false; then :
12774 $as_echo_n "(cached) " >&6
12776 ac_check_lib_save_LIBS=$LIBS
12777 LIBS="-lcrypt $LIBS"
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12781 /* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12796 if ac_fn_c_try_link "$LINENO"; then :
12797 ac_cv_lib_crypt_crypt=yes
12799 ac_cv_lib_crypt_crypt=no
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12803 LIBS=$ac_check_lib_save_LIBS
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12806 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12807 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12808 cat >>confdefs.h <<_ACEOF
12809 #define HAVE_LIBCRYPT 1
12812 LIBS="-lcrypt $LIBS"
12816 CRYPT_LIBS="${LIBS}"
12817 LIBS="${saved_LIBS}"
12820 saved_LIBS="${LIBS}"
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
12823 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
12824 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
12825 $as_echo_n "(cached) " >&6
12827 ac_check_lib_save_LIBS=$LIBS
12828 LIBS="-lcrypto $LIBS"
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12832 /* Override any GCC internal prototype to avoid an error.
12833 Use char because int might match the return type of a GCC
12834 builtin and then its argument prototype would still apply. */
12838 char HMAC_CTX_init ();
12842 return HMAC_CTX_init ();
12847 if ac_fn_c_try_link "$LINENO"; then :
12848 ac_cv_lib_crypto_HMAC_CTX_init=yes
12850 ac_cv_lib_crypto_HMAC_CTX_init=no
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12854 LIBS=$ac_check_lib_save_LIBS
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
12857 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
12858 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
12859 cat >>confdefs.h <<_ACEOF
12860 #define HAVE_LIBCRYPTO 1
12863 LIBS="-lcrypto $LIBS"
12867 CRYPTO_LIBS="${LIBS}"
12868 LIBS="${saved_LIBS}"
12871 saved_LIBS="${LIBS}"
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12874 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12875 if ${ac_cv_lib_pam_pam_start+:} false; then :
12876 $as_echo_n "(cached) " >&6
12878 ac_check_lib_save_LIBS=$LIBS
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12893 return pam_start ();
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 ac_cv_lib_pam_pam_start=yes
12901 ac_cv_lib_pam_pam_start=no
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12908 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12909 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
12910 cat >>confdefs.h <<_ACEOF
12911 #define HAVE_LIBPAM 1
12918 SYSTEM_LIBPAM="${LIBS}"
12919 LIBS="${saved_LIBS}"
12922 save_LIBS="${LIBS}"
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cryb_test_version" >&5
12925 $as_echo_n "checking for library containing cryb_test_version... " >&6; }
12926 if ${ac_cv_search_cryb_test_version+:} false; then :
12927 $as_echo_n "(cached) " >&6
12929 ac_func_search_save_LIBS=$LIBS
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12933 /* Override any GCC internal prototype to avoid an error.
12934 Use char because int might match the return type of a GCC
12935 builtin and then its argument prototype would still apply. */
12939 char cryb_test_version ();
12943 return cryb_test_version ();
12948 for ac_lib in '' cryb-test; do
12949 if test -z "$ac_lib"; then
12950 ac_res="none required"
12953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12955 if ac_fn_c_try_link "$LINENO"; then :
12956 ac_cv_search_cryb_test_version=$ac_res
12958 rm -f core conftest.err conftest.$ac_objext \
12960 if ${ac_cv_search_cryb_test_version+:} false; then :
12964 if ${ac_cv_search_cryb_test_version+:} false; then :
12967 ac_cv_search_cryb_test_version=no
12969 rm conftest.$ac_ext
12970 LIBS=$ac_func_search_save_LIBS
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cryb_test_version" >&5
12973 $as_echo "$ac_cv_search_cryb_test_version" >&6; }
12974 ac_res=$ac_cv_search_cryb_test_version
12975 if test "$ac_res" != no; then :
12976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12978 CRYB_TEST_LIBS="${LIBS}"
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cryb-test library not available, unit tests disabled" >&5
12984 $as_echo "$as_me: WARNING: cryb-test library not available, unit tests disabled" >&2;}
12988 LIBS="${save_LIBS}"
12990 if test x"$CRYB_TEST_LIBS" != x"" ; then
12992 WITH_TEST_FALSE='#'
12999 # Check whether --enable-developer-warnings was given.
13000 if test "${enable_developer_warnings+set}" = set; then :
13001 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual"
13004 # Check whether --enable-debugging-symbols was given.
13005 if test "${enable_debugging_symbols+set}" = set; then :
13006 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
13009 # Check whether --enable-werror was given.
13010 if test "${enable_werror+set}" = set; then :
13011 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
13015 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 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"
13017 ac_config_files="$ac_config_files mkpkgng"
13019 ac_config_files="$ac_config_files misc/coverage.sh"
13021 ac_config_files="$ac_config_files misc/coverity.sh"
13023 cat >confcache <<\_ACEOF
13024 # This file is a shell script that caches the results of configure
13025 # tests run on this system so they can be shared between configure
13026 # scripts and configure runs, see configure's option --config-cache.
13027 # It is not useful on other systems. If it contains results you don't
13028 # want to keep, you may remove or edit it.
13030 # config.status only pays attention to the cache file if you give it
13031 # the --recheck option to rerun configure.
13033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13035 # following values.
13039 # The following way of writing the cache mishandles newlines in values,
13040 # but we know of no workaround that is simple, portable, and efficient.
13041 # So, we kill variables containing newlines.
13042 # Ultrix sh set writes to stderr and can't be redirected directly,
13043 # and sets the high bit in the cache file unless we assign to the vars.
13045 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13046 eval ac_val=\$$ac_var
13050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13054 _ | IFS | as_nl) ;; #(
13055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13056 *) { eval $ac_var=; unset $ac_var;} ;;
13062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13063 *${as_nl}ac_space=\ *)
13064 # `set' does not quote correctly, so add quotes: double-quote
13065 # substitution turns \\\\ into \\, and sed turns \\ into \.
13068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13071 # `set' quotes correctly as required by POSIX, so do not add quotes.
13072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13085 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13086 if test -w "$cache_file"; then
13087 if test "x$cache_file" != "x/dev/null"; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13089 $as_echo "$as_me: updating cache $cache_file" >&6;}
13090 if test ! -f "$cache_file" || test -h "$cache_file"; then
13091 cat confcache >"$cache_file"
13093 case $cache_file in #(
13095 mv -f confcache "$cache_file"$$ &&
13096 mv -f "$cache_file"$$ "$cache_file" ;; #(
13098 mv -f confcache "$cache_file" ;;
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13104 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13110 # Let make expand exec_prefix.
13111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13113 DEFS=-DHAVE_CONFIG_H
13117 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13118 # 1. Remove the extension, and $U if already installed.
13119 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13120 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13121 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13122 # will be set to the directory where LIBOBJS objects are built.
13123 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13124 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13126 LIBOBJS=$ac_libobjs
13128 LTLIBOBJS=$ac_ltlibobjs
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13132 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13133 if test -n "$am_sleep_pid"; then
13134 # Hide warnings about reused PIDs.
13135 wait $am_sleep_pid 2>/dev/null
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13138 $as_echo "done" >&6; }
13139 if test -n "$EXEEXT"; then
13141 am__EXEEXT_FALSE='#'
13143 am__EXEEXT_TRUE='#'
13147 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13148 as_fn_error $? "conditional \"AMDEP\" was never defined.
13149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13151 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13152 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13155 if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
13156 as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
13157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13159 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
13160 as_fn_error $? "conditional \"WITH_DOC\" was never defined.
13161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13163 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
13164 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
13165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13167 if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
13168 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
13169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13171 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
13172 as_fn_error $? "conditional \"WITH_SU\" was never defined.
13173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13175 if test -z "${WITH_SYSTEM_LIBPAM_TRUE}" && test -z "${WITH_SYSTEM_LIBPAM_FALSE}"; then
13176 as_fn_error $? "conditional \"WITH_SYSTEM_LIBPAM\" was never defined.
13177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13179 if test -z "${WITH_TEST_TRUE}" && test -z "${WITH_TEST_FALSE}"; then
13180 as_fn_error $? "conditional \"WITH_TEST\" was never defined.
13181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13184 : "${CONFIG_STATUS=./config.status}"
13186 ac_clean_files_save=$ac_clean_files
13187 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13189 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13191 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13193 # Generated by $as_me.
13194 # Run this file to recreate the current configuration.
13195 # Compiler output produced by configure, useful for debugging
13196 # configure, is in config.log if it exists.
13199 ac_cs_recheck=false
13202 SHELL=\${CONFIG_SHELL-$SHELL}
13205 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13206 ## -------------------- ##
13207 ## M4sh Initialization. ##
13208 ## -------------------- ##
13210 # Be more Bourne compatible
13211 DUALCASE=1; export DUALCASE # for MKS sh
13212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13215 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13216 # is contrary to our usage. Disable this feature.
13217 alias -g '${1+"$@"}'='"$@"'
13218 setopt NO_GLOB_SUBST
13220 case `(set -o) 2>/dev/null` in #(
13232 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13233 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13234 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13235 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13236 # Prefer a ksh shell builtin over an external printf program on Solaris,
13237 # but without wasting forks for bash or zsh.
13238 if test -z "$BASH_VERSION$ZSH_VERSION" \
13239 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13240 as_echo='print -r --'
13241 as_echo_n='print -rn --'
13242 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13243 as_echo='printf %s\n'
13244 as_echo_n='printf %s'
13246 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13247 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13248 as_echo_n='/usr/ucb/echo -n'
13250 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13251 as_echo_n_body='eval
13255 expr "X$arg" : "X\\(.*\\)$as_nl";
13256 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13258 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13260 export as_echo_n_body
13261 as_echo_n='sh -c $as_echo_n_body as_echo'
13263 export as_echo_body
13264 as_echo='sh -c $as_echo_body as_echo'
13267 # The user is always right.
13268 if test "${PATH_SEPARATOR+set}" != set; then
13270 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13271 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13278 # We need space, tab and new line, in precisely that order. Quoting is
13279 # there to prevent editors from complaining about space-tab.
13280 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13281 # splitting by setting IFS to empty value.)
13284 # Find who we are. Look in the path if we contain no directory separator.
13287 *[\\/]* ) as_myself=$0 ;;
13288 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $PATH
13292 test -z "$as_dir" && as_dir=.
13293 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13299 # We did not find ourselves, most probably we were run as `sh COMMAND'
13300 # in which case we are not to be found in the path.
13301 if test "x$as_myself" = x; then
13304 if test ! -f "$as_myself"; then
13305 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13309 # Unset variables that we do not need and which cause bugs (e.g. in
13310 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13311 # suppresses any "Segmentation fault" message there. '((' could
13312 # trigger a bug in pdksh 5.2.14.
13313 for as_var in BASH_ENV ENV MAIL MAILPATH
13314 do eval test x\${$as_var+set} = xset \
13315 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13328 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13331 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13332 # ----------------------------------------
13333 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13334 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13335 # script with STATUS, using 1 if that was 0.
13338 as_status=$1; test $as_status -eq 0 && as_status=1
13340 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13341 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13343 $as_echo "$as_me: error: $2" >&2
13344 as_fn_exit $as_status
13348 # as_fn_set_status STATUS
13349 # -----------------------
13350 # Set $? to STATUS, without forking.
13351 as_fn_set_status ()
13354 } # as_fn_set_status
13356 # as_fn_exit STATUS
13357 # -----------------
13358 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13362 as_fn_set_status $1
13368 # Portably unset VAR.
13371 { eval $1=; unset $1;}
13373 as_unset=as_fn_unset
13374 # as_fn_append VAR VALUE
13375 # ----------------------
13376 # Append the text in VALUE to the end of the definition contained in VAR. Take
13377 # advantage of any shell optimizations that allow amortized linear growth over
13378 # repeated appends, instead of the typical quadratic growth present in naive
13380 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13381 eval 'as_fn_append ()
13392 # as_fn_arith ARG...
13393 # ------------------
13394 # Perform arithmetic evaluation on the ARGs, and store the result in the
13395 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13396 # must be portable across $(()) and expr.
13397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13398 eval 'as_fn_arith ()
13405 as_val=`expr "$@" || test $? -eq 1`
13410 if expr a : '\(a\)' >/dev/null 2>&1 &&
13411 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13417 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13418 as_basename=basename
13423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13429 as_me=`$as_basename -- "$0" ||
13430 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13431 X"$0" : 'X\(//\)$' \| \
13432 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13434 sed '/^.*\/\([^/][^/]*\)\/*$/{
13448 # Avoid depending upon Character Ranges.
13449 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13450 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13451 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13452 as_cr_digits='0123456789'
13453 as_cr_alnum=$as_cr_Letters$as_cr_digits
13455 ECHO_C= ECHO_N= ECHO_T=
13456 case `echo -n x` in #(((((
13458 case `echo 'xy\c'` in
13459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13468 rm -f conf$$ conf$$.exe conf$$.file
13469 if test -d conf$$.dir; then
13470 rm -f conf$$.dir/conf$$.file
13473 mkdir conf$$.dir 2>/dev/null
13475 if (echo >conf$$.file) 2>/dev/null; then
13476 if ln -s conf$$.file conf$$ 2>/dev/null; then
13478 # ... but there are two gotchas:
13479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13481 # In both cases, we have to default to `cp -pR'.
13482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13484 elif ln conf$$.file conf$$ 2>/dev/null; then
13492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13493 rmdir conf$$.dir 2>/dev/null
13498 # Create "$as_dir" as a directory, including parents if necessary.
13503 -*) as_dir=./$as_dir;;
13505 test -d "$as_dir" || eval $as_mkdir_p || {
13509 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13510 *) as_qdir=$as_dir;;
13512 as_dirs="'$as_qdir' $as_dirs"
13513 as_dir=`$as_dirname -- "$as_dir" ||
13514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13515 X"$as_dir" : 'X\(//\)[^/]' \| \
13516 X"$as_dir" : 'X\(//\)$' \| \
13517 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13518 $as_echo X"$as_dir" |
13519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13523 /^X\(\/\/\)[^/].*/{
13536 test -d "$as_dir" && break
13538 test -z "$as_dirs" || eval "mkdir $as_dirs"
13539 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13543 if mkdir -p . 2>/dev/null; then
13544 as_mkdir_p='mkdir -p "$as_dir"'
13546 test -d ./-p && rmdir ./-p
13551 # as_fn_executable_p FILE
13552 # -----------------------
13553 # Test if FILE is an executable regular file.
13554 as_fn_executable_p ()
13556 test -f "$1" && test -x "$1"
13557 } # as_fn_executable_p
13558 as_test_x='test -x'
13559 as_executable_p=as_fn_executable_p
13561 # Sed expression to map a string onto a valid CPP name.
13562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13564 # Sed expression to map a string onto a valid variable name.
13565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13569 ## ----------------------------------- ##
13570 ## Main body of $CONFIG_STATUS script. ##
13571 ## ----------------------------------- ##
13573 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13576 # Save the log message, to keep $0 and so on meaningful, and to
13577 # report actual input values of CONFIG_FILES etc. instead of their
13578 # values after options handling.
13580 This file was extended by OpenPAM $as_me 20170430, which was
13581 generated by GNU Autoconf 2.69. Invocation command line was
13583 CONFIG_FILES = $CONFIG_FILES
13584 CONFIG_HEADERS = $CONFIG_HEADERS
13585 CONFIG_LINKS = $CONFIG_LINKS
13586 CONFIG_COMMANDS = $CONFIG_COMMANDS
13589 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13594 case $ac_config_files in *"
13595 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13598 case $ac_config_headers in *"
13599 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13604 # Files that config.status was made for.
13605 config_files="$ac_config_files"
13606 config_headers="$ac_config_headers"
13607 config_commands="$ac_config_commands"
13611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13613 \`$as_me' instantiates files and other configuration actions
13614 from templates according to the current configuration. Unless the files
13615 and actions are specified as TAGs, all are instantiated by default.
13617 Usage: $0 [OPTION]... [TAG]...
13619 -h, --help print this help, then exit
13620 -V, --version print version number and configuration settings, then exit
13621 --config print configuration, then exit
13622 -q, --quiet, --silent
13623 do not print progress messages
13624 -d, --debug don't remove temporary files
13625 --recheck update $as_me by reconfiguring in the same conditions
13626 --file=FILE[:TEMPLATE]
13627 instantiate the configuration file FILE
13628 --header=FILE[:TEMPLATE]
13629 instantiate the configuration header FILE
13631 Configuration files:
13634 Configuration headers:
13637 Configuration commands:
13640 Report bugs to <des@des.no>.
13641 OpenPAM home page: <http://www.openpam.org/>."
13644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13645 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13647 OpenPAM config.status 20170430
13648 configured by $0, generated by GNU Autoconf 2.69,
13649 with options \\"\$ac_cs_config\\"
13651 Copyright (C) 2012 Free Software Foundation, Inc.
13652 This config.status script is free software; the Free Software Foundation
13653 gives unlimited permission to copy, distribute and modify it."
13660 test -n "\$AWK" || AWK=awk
13663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13664 # The default lists apply if the user does not specify any file.
13670 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13671 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13687 # Handling of the options.
13688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13691 $as_echo "$ac_cs_version"; exit ;;
13692 --config | --confi | --conf | --con | --co | --c )
13693 $as_echo "$ac_cs_config"; exit ;;
13694 --debug | --debu | --deb | --de | --d | -d )
13696 --file | --fil | --fi | --f )
13699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13700 '') as_fn_error $? "missing file argument" ;;
13702 as_fn_append CONFIG_FILES " '$ac_optarg'"
13703 ac_need_defaults=false;;
13704 --header | --heade | --head | --hea )
13707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13709 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13710 ac_need_defaults=false;;
13712 # Conflict between --help and --header
13713 as_fn_error $? "ambiguous option: \`$1'
13714 Try \`$0 --help' for more information.";;
13715 --help | --hel | -h )
13716 $as_echo "$ac_cs_usage"; exit ;;
13717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13718 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13721 # This is an error.
13722 -*) as_fn_error $? "unrecognized option: \`$1'
13723 Try \`$0 --help' for more information." ;;
13725 *) as_fn_append ac_config_targets " $1"
13726 ac_need_defaults=false ;;
13732 ac_configure_extra_args=
13734 if $ac_cs_silent; then
13736 ac_configure_extra_args="$ac_configure_extra_args --silent"
13740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13741 if \$ac_cs_recheck; then
13742 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13744 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13745 CONFIG_SHELL='$SHELL'
13746 export CONFIG_SHELL
13751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13756 ## Running $as_me. ##
13762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13766 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13769 # The HP-UX ksh and POSIX shell print the target directory to stdout
13770 # if CDPATH is set.
13771 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13773 sed_quote_subst='$sed_quote_subst'
13774 double_quote_subst='$double_quote_subst'
13775 delay_variable_subst='$delay_variable_subst'
13776 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13777 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13778 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13779 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13780 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13781 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13782 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13783 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13784 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13785 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13786 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13787 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13788 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13789 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13790 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13791 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13792 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13793 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13794 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13795 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13796 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13797 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13798 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13799 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13800 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13801 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13802 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13803 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13804 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13805 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13806 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13807 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13808 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13809 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13810 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13811 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13812 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13813 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13814 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13815 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13816 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13817 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13818 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13819 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13820 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13821 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13822 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13823 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13824 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13825 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13826 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13827 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13828 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13829 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13830 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13831 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13832 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13833 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13834 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"`'
13835 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13836 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13837 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13838 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13839 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13840 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13841 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13842 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13843 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13844 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13845 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13846 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13847 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13848 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13849 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13850 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13851 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13852 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13853 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13854 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13855 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13856 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13857 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13858 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13859 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13860 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13861 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13862 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13863 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13864 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13865 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13866 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13867 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13868 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13869 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13870 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13871 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13872 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13873 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13874 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13875 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13876 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13877 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13878 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13879 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13880 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13881 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13882 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13883 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13884 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13885 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13886 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13887 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13888 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13889 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13890 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13891 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13892 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13893 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13894 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13895 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13896 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13897 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13898 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13899 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13900 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13901 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13902 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13903 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13904 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13905 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13906 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13907 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13908 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13909 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13910 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13913 LTCFLAGS='$LTCFLAGS'
13914 compiler='$compiler_DEFAULT'
13916 # A function that is used when there is no print builtin or printf.
13917 func_fallback_echo ()
13919 eval 'cat <<_LTECHO_EOF
13924 # Quote evaled strings.
13939 deplibs_check_method \
13944 sharedlib_from_linklib_cmd \
13947 archiver_list_spec \
13953 lt_cv_sys_global_symbol_pipe \
13954 lt_cv_sys_global_symbol_to_cdecl \
13955 lt_cv_sys_global_symbol_to_import \
13956 lt_cv_sys_global_symbol_to_c_name_address \
13957 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13958 lt_cv_nm_interface \
13959 nm_file_list_spec \
13960 lt_cv_truncate_bin \
13961 lt_prog_compiler_no_builtin_flag \
13962 lt_prog_compiler_pic \
13963 lt_prog_compiler_wl \
13964 lt_prog_compiler_static \
13965 lt_cv_prog_compiler_c_o \
13974 export_dynamic_flag_spec \
13975 whole_archive_flag_spec \
13976 compiler_needs_object \
13978 allow_undefined_flag \
13979 no_undefined_flag \
13980 hardcode_libdir_flag_spec \
13981 hardcode_libdir_separator \
13985 variables_saved_for_relink \
13987 library_names_spec \
13989 install_override_mode \
13993 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13994 *[\\\\\\\`\\"\\\$]*)
13995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14003 # Double-quote double-evaled strings.
14004 for var in reload_cmds \
14005 old_postinstall_cmds \
14006 old_postuninstall_cmds \
14008 extract_expsyms_cmds \
14009 old_archive_from_new_cmds \
14010 old_archive_from_expsyms_cmds \
14012 archive_expsym_cmds \
14014 module_expsym_cmds \
14015 export_symbols_cmds \
14019 postuninstall_cmds \
14021 sys_lib_search_path_spec \
14022 configure_time_dlsearch_path \
14023 configure_time_lt_sys_library_path; do
14024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14025 *[\\\\\\\`\\"\\\$]*)
14026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14034 ac_aux_dir='$ac_aux_dir'
14036 # See if we are running on zsh, and set the options that allow our
14037 # commands through without removal of \ escapes INIT.
14038 if test -n "\${ZSH_VERSION+set}"; then
14039 setopt NO_GLOB_SUBST
14053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14055 # Handling of arguments.
14056 for ac_config_target in $ac_config_targets
14058 case $ac_config_target in
14059 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14060 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14061 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14062 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14063 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
14064 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
14065 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
14066 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
14067 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14068 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
14069 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14070 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
14071 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14072 "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
14073 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
14074 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14075 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
14076 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
14077 "modules/pam_return/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_return/Makefile" ;;
14078 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
14079 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
14080 "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;;
14081 "misc/coverage.sh") CONFIG_FILES="$CONFIG_FILES misc/coverage.sh" ;;
14082 "misc/coverity.sh") CONFIG_FILES="$CONFIG_FILES misc/coverity.sh" ;;
14084 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14089 # If the user did not use the arguments to specify the items to instantiate,
14090 # then the envvar interface is used. Set only those that are not.
14091 # We use the long form for the default assignment because of an extremely
14092 # bizarre bug on SunOS 4.1.3.
14093 if $ac_need_defaults; then
14094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14096 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14099 # Have a temporary directory for convenience. Make it in the build tree
14100 # simply because there is no reason against having it here, and in addition,
14101 # creating and moving files from /tmp can sometimes cause problems.
14102 # Hook for its removal unless debugging.
14103 # Note that there is a small window in which the directory will not be cleaned:
14104 # after its creation but before its name has been assigned to `$tmp'.
14108 trap 'exit_status=$?
14109 : "${ac_tmp:=$tmp}"
14110 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14112 trap 'as_fn_exit 1' 1 2 13 15
14114 # Create a (secure) tmp directory for tmp files.
14117 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14121 tmp=./conf$$-$RANDOM
14122 (umask 077 && mkdir "$tmp")
14123 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14126 # Set up the scripts for CONFIG_FILES section.
14127 # No need to generate them if there are no CONFIG_FILES.
14128 # This happens for instance with `./config.status config.h'.
14129 if test -n "$CONFIG_FILES"; then
14132 ac_cr=`echo X | tr X '\015'`
14133 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14134 # But we know of no other shell where ac_cr would be empty at this
14135 # point, so we can use a bashism as a fallback.
14136 if test "x$ac_cr" = x; then
14137 eval ac_cr=\$\'\\r\'
14139 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14140 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14143 ac_cs_awk_cr=$ac_cr
14146 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14151 echo "cat >conf$$subs.awk <<_ACEOF" &&
14152 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14154 } >conf$$subs.sh ||
14155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14156 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14158 for ac_last_try in false false false false false :; do
14159 . ./conf$$subs.sh ||
14160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14162 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14163 if test $ac_delim_n = $ac_delim_num; then
14165 elif $ac_last_try; then
14166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14171 rm -f conf$$subs.sh
14173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14174 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14178 s/^/S["/; s/!.*/"]=/
14188 s/\(.\{148\}\)..*/\1/
14190 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14195 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14202 s/\(.\{148\}\)..*/\1/
14204 s/["\\]/\\&/g; s/^/"/; s/$/"/
14208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14213 ' <conf$$subs.awk | sed '
14218 ' >>$CONFIG_STATUS || ac_write_fail=1
14219 rm -f conf$$subs.awk
14220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14222 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14223 for (key in S) S_is_set[key] = 1
14229 nfields = split(line, field, "@")
14231 len = length(field[1])
14232 for (i = 2; i < nfields; i++) {
14234 keylen = length(key)
14235 if (S_is_set[key]) {
14237 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14238 len += length(value) + length(field[++i])
14249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14250 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14251 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14254 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14255 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14258 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14259 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14260 # trailing colons and then remove the whole line if VPATH becomes empty
14261 # (actually we leave an empty line to preserve line numbers).
14262 if test "x$srcdir" = x.; then
14263 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14282 fi # test -n "$CONFIG_FILES"
14284 # Set up the scripts for CONFIG_HEADERS section.
14285 # No need to generate them if there are no CONFIG_HEADERS.
14286 # This happens for instance with `./config.status Makefile'.
14287 if test -n "$CONFIG_HEADERS"; then
14288 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14292 # Transform confdefs.h into an awk script `defines.awk', embedded as
14293 # here-document in config.status, that substitutes the proper values into
14294 # config.h.in to produce config.h.
14296 # Create a delimiter string that does not exist in confdefs.h, to ease
14297 # handling of long lines.
14299 for ac_last_try in false false :; do
14300 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14301 if test -z "$ac_tt"; then
14303 elif $ac_last_try; then
14304 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14310 # For the awk script, D is an array of macro values keyed by name,
14311 # likewise P contains macro parameters if any. Preserve backslash
14312 # newline sequences.
14314 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14316 s/.\{148\}/&'"$ac_delim"'/g
14319 s/^[ ]*#[ ]*define[ ][ ]*/ /
14326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14328 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14333 D["\1"]=" \3\\\\\\n"\\/p
14335 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14340 s/.\{148\}/&'"$ac_delim"'/g
14345 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14348 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14350 ' <confdefs.h | sed '
14351 s/'"$ac_delim"'/"\\\
14352 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14355 for (key in D) D_is_set[key] = 1
14358 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14360 split(line, arg, " ")
14361 if (arg[1] == "#") {
14365 defundef = substr(arg[1], 2)
14368 split(mac1, mac2, "(") #)
14370 prefix = substr(line, 1, index(line, defundef) - 1)
14371 if (D_is_set[macro]) {
14372 # Preserve the white space surrounding the "#".
14373 print prefix "define", macro P[macro] D[macro]
14376 # Replace #undef with comments. This is necessary, for example,
14377 # in the case of _POSIX_SOURCE, which is predefined and required
14378 # on some systems where configure will not decide to define it.
14379 if (defundef == "undef") {
14380 print "/*", prefix defundef, macro, "*/"
14388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14389 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14390 fi # test -n "$CONFIG_HEADERS"
14393 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14398 :[FHLC]) ac_mode=$ac_tag; continue;;
14400 case $ac_mode$ac_tag in
14402 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14403 :[FH]-) ac_tag=-:-;;
14404 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14421 -) ac_f="$ac_tmp/stdin";;
14422 *) # Look for the file first in the build tree, then in the source tree
14423 # (if the path is not absolute). The absolute path cannot be DOS-style,
14424 # because $ac_f cannot contain `:'.
14428 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14430 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14432 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14433 as_fn_append ac_file_inputs " '$ac_f'"
14436 # Let's still pretend it is `configure' which instantiates (i.e., don't
14437 # use $as_me), people would be surprised to read:
14438 # /* config.h. Generated by config.status. */
14439 configure_input='Generated from '`
14440 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14442 if test x"$ac_file" != x-; then
14443 configure_input="$ac_file. $configure_input"
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14445 $as_echo "$as_me: creating $ac_file" >&6;}
14447 # Neutralize special characters interpreted by sed in replacement strings.
14448 case $configure_input in #(
14449 *\&* | *\|* | *\\* )
14450 ac_sed_conf_input=`$as_echo "$configure_input" |
14451 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14452 *) ac_sed_conf_input=$configure_input;;
14456 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14462 ac_dir=`$as_dirname -- "$ac_file" ||
14463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14464 X"$ac_file" : 'X\(//\)[^/]' \| \
14465 X"$ac_file" : 'X\(//\)$' \| \
14466 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14467 $as_echo X"$ac_file" |
14468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14472 /^X\(\/\/\)[^/].*/{
14485 as_dir="$ac_dir"; as_fn_mkdir_p
14489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14492 # A ".." for each directory in $ac_dir_suffix.
14493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14494 case $ac_top_builddir_sub in
14495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14499 ac_abs_top_builddir=$ac_pwd
14500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14501 # for backward compatibility:
14502 ac_top_builddir=$ac_top_build_prefix
14505 .) # We are building in place.
14507 ac_top_srcdir=$ac_top_builddir_sub
14508 ac_abs_top_srcdir=$ac_pwd ;;
14509 [\\/]* | ?:[\\/]* ) # Absolute name.
14510 ac_srcdir=$srcdir$ac_dir_suffix;
14511 ac_top_srcdir=$srcdir
14512 ac_abs_top_srcdir=$srcdir ;;
14513 *) # Relative name.
14514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14515 ac_top_srcdir=$ac_top_build_prefix$srcdir
14516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14531 ac_MKDIR_P=$MKDIR_P
14533 [\\/$]* | ?:[\\/]* ) ;;
14534 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14539 # If the template does not know about datarootdir, expand it.
14540 # FIXME: This hack should be removed a few years after 2.60.
14541 ac_datarootdir_hack=; ac_datarootdir_seen=
14552 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14553 *datarootdir*) ac_datarootdir_seen=yes;;
14554 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14556 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14559 ac_datarootdir_hack='
14560 s&@datadir@&$datadir&g
14561 s&@docdir@&$docdir&g
14562 s&@infodir@&$infodir&g
14563 s&@localedir@&$localedir&g
14564 s&@mandir@&$mandir&g
14565 s&\\\${datarootdir}&$datarootdir&g' ;;
14569 # Neutralize VPATH when `$srcdir' = `.'.
14570 # Shell code in configure.ac might set extrasub.
14571 # FIXME: do we really want to maintain this feature?
14572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14573 ac_sed_extra="$ac_vpsub
14576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14579 s|@configure_input@|$ac_sed_conf_input|;t t
14580 s&@top_builddir@&$ac_top_builddir_sub&;t t
14581 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14582 s&@srcdir@&$ac_srcdir&;t t
14583 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14584 s&@top_srcdir@&$ac_top_srcdir&;t t
14585 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14586 s&@builddir@&$ac_builddir&;t t
14587 s&@abs_builddir@&$ac_abs_builddir&;t t
14588 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14589 s&@INSTALL@&$ac_INSTALL&;t t
14590 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14591 $ac_datarootdir_hack
14593 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14594 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14596 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14597 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14598 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14599 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14601 which seems to be undefined. Please make sure it is defined" >&5
14602 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14603 which seems to be undefined. Please make sure it is defined" >&2;}
14605 rm -f "$ac_tmp/stdin"
14607 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14608 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14616 if test x"$ac_file" != x-; then
14618 $as_echo "/* $configure_input */" \
14619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14620 } >"$ac_tmp/config.h" \
14621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14622 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14624 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14627 mv "$ac_tmp/config.h" "$ac_file" \
14628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14631 $as_echo "/* $configure_input */" \
14632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14633 || as_fn_error $? "could not create -" "$LINENO" 5
14635 # Compute "$ac_file"'s index in $config_headers.
14638 for _am_header in $config_headers :; do
14639 case $_am_header in
14640 $_am_arg | $_am_arg:* )
14643 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14646 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14647 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14648 X"$_am_arg" : 'X\(//\)[^/]' \| \
14649 X"$_am_arg" : 'X\(//\)$' \| \
14650 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14651 $as_echo X"$_am_arg" |
14652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14656 /^X\(\/\/\)[^/].*/{
14668 s/.*/./; q'`/stamp-h$_am_stamp_count
14671 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14672 $as_echo "$as_me: executing $ac_file commands" >&6;}
14677 case $ac_file$ac_mode in
14678 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14679 # Older Autoconf quotes --file arguments for eval, but not when files
14680 # are listed without --file. Let's play safe and only enable the eval
14681 # if we detect the quoting.
14682 case $CONFIG_FILES in
14683 *\'*) eval set x "$CONFIG_FILES" ;;
14684 *) set x $CONFIG_FILES ;;
14689 # Strip MF so we end up with the name of the file.
14690 mf=`echo "$mf" | sed -e 's/:.*$//'`
14691 # Check whether this is an Automake generated Makefile or not.
14692 # We used to match only the files named 'Makefile.in', but
14693 # some people rename them; so instead we look at the file content.
14694 # Grep'ing the first line is not enough: some people post-process
14695 # each Makefile.in and add a new line on top of each file to say so.
14696 # Grep'ing the whole file is not good either: AIX grep has a line
14697 # limit of 2048, but all sed's we know have understand at least 4000.
14698 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14699 dirpart=`$as_dirname -- "$mf" ||
14700 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14701 X"$mf" : 'X\(//\)[^/]' \| \
14702 X"$mf" : 'X\(//\)$' \| \
14703 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14709 /^X\(\/\/\)[^/].*/{
14725 # Extract the definition of DEPDIR, am__include, and am__quote
14726 # from the Makefile without running 'make'.
14727 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14728 test -z "$DEPDIR" && continue
14729 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14730 test -z "$am__include" && continue
14731 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14732 # Find all dependency output files, they are included files with
14733 # $(DEPDIR) in their names. We invoke sed twice because it is the
14734 # simplest approach to changing $(DEPDIR) to its actual value in the
14736 for file in `sed -n "
14737 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14738 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14739 # Make sure the directory exists.
14740 test -f "$dirpart/$file" && continue
14741 fdir=`$as_dirname -- "$file" ||
14742 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14743 X"$file" : 'X\(//\)[^/]' \| \
14744 X"$file" : 'X\(//\)$' \| \
14745 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14746 $as_echo X"$file" |
14747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14751 /^X\(\/\/\)[^/].*/{
14764 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14765 # echo "creating $dirpart/$file"
14766 echo '# dummy' > "$dirpart/$file"
14773 # See if we are running on zsh, and set the options that allow our
14774 # commands through without removal of \ escapes.
14775 if test -n "${ZSH_VERSION+set}"; then
14776 setopt NO_GLOB_SUBST
14780 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14783 cat <<_LT_EOF >> "$cfgfile"
14785 # Generated automatically by $as_me ($PACKAGE) $VERSION
14786 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14787 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14789 # Provide generalized library-building support services.
14790 # Written by Gordon Matzigkeit, 1996
14792 # Copyright (C) 2014 Free Software Foundation, Inc.
14793 # This is free software; see the source for copying conditions. There is NO
14794 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14796 # GNU Libtool is free software; you can redistribute it and/or modify
14797 # it under the terms of the GNU General Public License as published by
14798 # the Free Software Foundation; either version 2 of of the License, or
14799 # (at your option) any later version.
14801 # As a special exception to the GNU General Public License, if you
14802 # distribute this file as part of a program or library that is built
14803 # using GNU Libtool, you may include this file under the same
14804 # distribution terms that you use for the rest of that program.
14806 # GNU Libtool is distributed in the hope that it will be useful, but
14807 # WITHOUT ANY WARRANTY; without even the implied warranty of
14808 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14809 # GNU General Public License for more details.
14811 # You should have received a copy of the GNU General Public License
14812 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14815 # The names of the tagged configurations supported by this script.
14818 # Configured defaults for sys_lib_dlsearch_path munging.
14819 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14821 # ### BEGIN LIBTOOL CONFIG
14823 # Which release of libtool.m4 was used?
14824 macro_version=$macro_version
14825 macro_revision=$macro_revision
14827 # Whether or not to build static libraries.
14828 build_old_libs=$enable_static
14830 # Whether or not to build shared libraries.
14831 build_libtool_libs=$enable_shared
14833 # What type of objects to build.
14836 # Whether or not to optimize for fast installation.
14837 fast_install=$enable_fast_install
14839 # Shared archive member basename,for filename based shared library versioning on AIX.
14840 shared_archive_member_spec=$shared_archive_member_spec
14842 # Shell to use when invoking shell scripts.
14845 # An echo program that protects backslashes.
14848 # The PATH separator for the build system.
14849 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14852 host_alias=$host_alias
14856 # The build system.
14857 build_alias=$build_alias
14861 # A sed program that does not truncate output.
14864 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14865 Xsed="\$SED -e 1s/^X//"
14867 # A grep program that handles long lines.
14873 # A literal string matcher.
14876 # A BSD- or MS-compatible name lister.
14879 # Whether we need soft or hard links.
14882 # What is the maximum length of a command?
14883 max_cmd_len=$max_cmd_len
14885 # Object file suffix (normally "o").
14888 # Executable file suffix (normally "").
14891 # whether the shell understands "unset".
14894 # turn spaces into newlines.
14897 # turn newlines into spaces.
14900 # convert \$build file names to \$host format.
14901 to_host_file_cmd=$lt_cv_to_host_file_cmd
14903 # convert \$build files to toolchain format.
14904 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14906 # An object symbol dumper.
14907 OBJDUMP=$lt_OBJDUMP
14909 # Method to check whether dependent libraries are shared objects.
14910 deplibs_check_method=$lt_deplibs_check_method
14912 # Command to use when deplibs_check_method = "file_magic".
14913 file_magic_cmd=$lt_file_magic_cmd
14915 # How to find potential files when deplibs_check_method = "file_magic".
14916 file_magic_glob=$lt_file_magic_glob
14918 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14919 want_nocaseglob=$lt_want_nocaseglob
14921 # DLL creation program.
14922 DLLTOOL=$lt_DLLTOOL
14924 # Command to associate shared and link libraries.
14925 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14930 # Flags to create an archive.
14931 AR_FLAGS=$lt_AR_FLAGS
14933 # How to feed a file listing to the archiver.
14934 archiver_list_spec=$lt_archiver_list_spec
14936 # A symbol stripping program.
14939 # Commands used to install an old-style archive.
14941 old_postinstall_cmds=$lt_old_postinstall_cmds
14942 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14944 # Whether to use a lock for old archive extraction.
14945 lock_old_archive_extraction=$lock_old_archive_extraction
14950 # LTCC compiler flags.
14951 LTCFLAGS=$lt_CFLAGS
14953 # Take the output of nm and produce a listing of raw symbols and C names.
14954 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14956 # Transform the output of nm in a proper C declaration.
14957 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14959 # Transform the output of nm into a list of symbols to manually relocate.
14960 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14962 # Transform the output of nm in a C name address pair.
14963 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14965 # Transform the output of nm in a C name address pair when lib prefix is needed.
14966 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14968 # The name lister interface.
14969 nm_interface=$lt_lt_cv_nm_interface
14971 # Specify filename containing input files for \$NM.
14972 nm_file_list_spec=$lt_nm_file_list_spec
14974 # The root where to search for dependent libraries,and where our libraries should be installed.
14975 lt_sysroot=$lt_sysroot
14977 # Command to truncate a binary pipe.
14978 lt_truncate_bin=$lt_lt_cv_truncate_bin
14980 # The name of the directory that contains temporary libtool files.
14983 # Used to examine libraries when file_magic_cmd begins with "file".
14984 MAGIC_CMD=$MAGIC_CMD
14986 # Must we lock files when doing compilation?
14987 need_locks=$lt_need_locks
14990 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14992 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14993 DSYMUTIL=$lt_DSYMUTIL
14995 # Tool to change global to local symbols on Mac OS X.
14998 # Tool to manipulate fat objects and archives on Mac OS X.
15001 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15004 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15005 OTOOL64=$lt_OTOOL64
15007 # Old archive suffix (normally "a").
15010 # Shared library suffix (normally ".so").
15011 shrext_cmds=$lt_shrext_cmds
15013 # The commands to extract the exported symbol list from a shared archive.
15014 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15016 # Variables whose values should be saved in libtool wrapper scripts and
15017 # restored at link time.
15018 variables_saved_for_relink=$lt_variables_saved_for_relink
15020 # Do we need the "lib" prefix for modules?
15021 need_lib_prefix=$need_lib_prefix
15023 # Do we need a version for libraries?
15024 need_version=$need_version
15026 # Library versioning type.
15027 version_type=$version_type
15029 # Shared library runtime path variable.
15030 runpath_var=$runpath_var
15032 # Shared library path variable.
15033 shlibpath_var=$shlibpath_var
15035 # Is shlibpath searched before the hard-coded library search path?
15036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15038 # Format of library name prefix.
15039 libname_spec=$lt_libname_spec
15041 # List of archive names. First name is the real one, the rest are links.
15042 # The last name is the one that the linker finds with -lNAME
15043 library_names_spec=$lt_library_names_spec
15045 # The coded name of the library, if different from the real name.
15046 soname_spec=$lt_soname_spec
15048 # Permission mode override for installation of shared libraries.
15049 install_override_mode=$lt_install_override_mode
15051 # Command to use after installation of a shared archive.
15052 postinstall_cmds=$lt_postinstall_cmds
15054 # Command to use after uninstallation of a shared archive.
15055 postuninstall_cmds=$lt_postuninstall_cmds
15057 # Commands used to finish a libtool library installation in a directory.
15058 finish_cmds=$lt_finish_cmds
15060 # As "finish_cmds", except a single script fragment to be evaled but
15062 finish_eval=$lt_finish_eval
15064 # Whether we should hardcode library paths into libraries.
15065 hardcode_into_libs=$hardcode_into_libs
15067 # Compile-time system search path for libraries.
15068 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15070 # Detected run-time system search path for libraries.
15071 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15073 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15074 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15076 # Whether dlopen is supported.
15077 dlopen_support=$enable_dlopen
15079 # Whether dlopen of programs is supported.
15080 dlopen_self=$enable_dlopen_self
15082 # Whether dlopen of statically linked programs is supported.
15083 dlopen_self_static=$enable_dlopen_self_static
15085 # Commands to strip libraries.
15086 old_striplib=$lt_old_striplib
15087 striplib=$lt_striplib
15090 # The linker used to build libraries.
15093 # How to create reloadable object files.
15094 reload_flag=$lt_reload_flag
15095 reload_cmds=$lt_reload_cmds
15097 # Commands used to build an old-style archive.
15098 old_archive_cmds=$lt_old_archive_cmds
15100 # A language specific compiler.
15103 # Is the compiler the GNU compiler?
15106 # Compiler flag to turn off builtin functions.
15107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15109 # Additional compiler flags for building library objects.
15110 pic_flag=$lt_lt_prog_compiler_pic
15112 # How to pass a linker flag through the compiler.
15113 wl=$lt_lt_prog_compiler_wl
15115 # Compiler flag to prevent dynamic linking.
15116 link_static_flag=$lt_lt_prog_compiler_static
15118 # Does compiler simultaneously support -c and -o options?
15119 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15121 # Whether or not to add -lc for building shared libraries.
15122 build_libtool_need_lc=$archive_cmds_need_lc
15124 # Whether or not to disallow shared libs when runtime libs are static.
15125 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15127 # Compiler flag to allow reflexive dlopens.
15128 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15130 # Compiler flag to generate shared objects directly from archives.
15131 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15133 # Whether the compiler copes with passing no objects directly.
15134 compiler_needs_object=$lt_compiler_needs_object
15136 # Create an old-style archive from a shared archive.
15137 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15139 # Create a temporary old-style archive to link instead of a shared archive.
15140 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15142 # Commands used to build a shared archive.
15143 archive_cmds=$lt_archive_cmds
15144 archive_expsym_cmds=$lt_archive_expsym_cmds
15146 # Commands used to build a loadable module if different from building
15147 # a shared archive.
15148 module_cmds=$lt_module_cmds
15149 module_expsym_cmds=$lt_module_expsym_cmds
15151 # Whether we are building with GNU ld or not.
15152 with_gnu_ld=$lt_with_gnu_ld
15154 # Flag that allows shared libraries with undefined symbols to be built.
15155 allow_undefined_flag=$lt_allow_undefined_flag
15157 # Flag that enforces no undefined symbols.
15158 no_undefined_flag=$lt_no_undefined_flag
15160 # Flag to hardcode \$libdir into a binary during linking.
15161 # This must work even if \$libdir does not exist
15162 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15164 # Whether we need a single "-rpath" flag with a separated argument.
15165 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15167 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15168 # DIR into the resulting binary.
15169 hardcode_direct=$hardcode_direct
15171 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15172 # DIR into the resulting binary and the resulting library dependency is
15173 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15174 # library is relocated.
15175 hardcode_direct_absolute=$hardcode_direct_absolute
15177 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15178 # into the resulting binary.
15179 hardcode_minus_L=$hardcode_minus_L
15181 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15182 # into the resulting binary.
15183 hardcode_shlibpath_var=$hardcode_shlibpath_var
15185 # Set to "yes" if building a shared library automatically hardcodes DIR
15186 # into the library and all subsequent libraries and executables linked
15188 hardcode_automatic=$hardcode_automatic
15190 # Set to yes if linker adds runtime paths of dependent libraries
15191 # to runtime path list.
15192 inherit_rpath=$inherit_rpath
15194 # Whether libtool must link a program against all its dependency libraries.
15195 link_all_deplibs=$link_all_deplibs
15197 # Set to "yes" if exported symbols are required.
15198 always_export_symbols=$always_export_symbols
15200 # The commands to list exported symbols.
15201 export_symbols_cmds=$lt_export_symbols_cmds
15203 # Symbols that should not be listed in the preloaded symbols.
15204 exclude_expsyms=$lt_exclude_expsyms
15206 # Symbols that must always be exported.
15207 include_expsyms=$lt_include_expsyms
15209 # Commands necessary for linking programs (against libraries) with templates.
15210 prelink_cmds=$lt_prelink_cmds
15212 # Commands necessary for finishing linking programs.
15213 postlink_cmds=$lt_postlink_cmds
15215 # Specify filename containing input files.
15216 file_list_spec=$lt_file_list_spec
15218 # How to hardcode a shared library path into an executable.
15219 hardcode_action=$hardcode_action
15221 # ### END LIBTOOL CONFIG
15225 cat <<'_LT_EOF' >> "$cfgfile"
15227 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15229 # func_munge_path_list VARIABLE PATH
15230 # -----------------------------------
15231 # VARIABLE is name of variable containing _space_ separated list of
15232 # directories to be munged by the contents of PATH, which is string
15235 # string "DIR[ DIR]" will be prepended to VARIABLE
15237 # string "DIR[ DIR]" will be appended to VARIABLE
15238 # "DIRP[:DIRP]::[DIRA:]DIRA"
15239 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15240 # "DIRA[ DIRA]" will be appended to VARIABLE
15242 # VARIABLE will be replaced by "DIR[ DIR]"
15243 func_munge_path_list ()
15249 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15252 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15255 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15256 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15259 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15265 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15266 func_cc_basename ()
15268 for cc_temp in $*""; do
15270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15276 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15280 # ### END FUNCTIONS SHARED WITH CONFIGURE
15286 cat <<\_LT_EOF >> "$cfgfile"
15287 # AIX sometimes has problems with the GCC collect2 program. For some
15288 # reason, if we set the COLLECT_NAMES environment variable, the problems
15289 # vanish in a puff of smoke.
15290 if test set != "${COLLECT_NAMES+set}"; then
15292 export COLLECT_NAMES
15299 ltmain=$ac_aux_dir/ltmain.sh
15302 # We use sed instead of cat because bash on DJGPP gets confused if
15303 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15304 # text mode, it properly converts lines to CR/LF. This bash problem
15305 # is reportedly fixed, but why not run on old versions too?
15306 sed '$q' "$ltmain" >> "$cfgfile" \
15307 || (rm -f "$cfgfile"; exit 1)
15309 mv -f "$cfgfile" "$ofile" ||
15310 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15314 "mkpkgng":F) chmod +x mkpkgng ;;
15315 "misc/coverage.sh":F) chmod +x misc/coverage.sh ;;
15316 "misc/coverity.sh":F) chmod +x misc/coverity.sh ;;
15324 ac_clean_files=$ac_clean_files_save
15326 test $ac_write_fail = 0 ||
15327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15330 # configure is writing to config.log, and then calls config.status.
15331 # config.status does its own redirection, appending to config.log.
15332 # Unfortunately, on DOS this fails, as config.log is still kept open
15333 # by configure, so config.status won't be able to write to it; its
15334 # output is simply discarded. So we exec the FD to /dev/null,
15335 # effectively closing config.log, so it can be properly (re)opened and
15336 # appended to by config.status. When coming back to configure, we
15337 # need to make the FD available again.
15338 if test "$no_create" != yes; then
15340 ac_config_status_args=
15341 test "$silent" = yes &&
15342 ac_config_status_args="$ac_config_status_args --quiet"
15344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15347 # would make configure fail if this is the last instruction.
15348 $ac_cs_success || as_fn_exit 1
15350 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15352 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}