2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenBSM 1.2-alpha5.
5 # Report bugs to <trustedbsd-audit@TrustedBSD.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: trustedbsd-audit@TrustedBSD.org about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: 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='OpenBSM'
592 PACKAGE_TARNAME='openbsm'
593 PACKAGE_VERSION='1.2-alpha5'
594 PACKAGE_STRING='OpenBSM 1.2-alpha5'
595 PACKAGE_BUGREPORT='trustedbsd-audit@TrustedBSD.org'
598 ac_unique_file="bin/auditreduce/auditreduce.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>
637 ac_subst_vars='am__EXEEXT_FALSE
642 HAVE_AUDIT_SYSCALLS_FALSE
643 HAVE_AUDIT_SYSCALLS_TRUE
666 INSTALL_STRIP_PROGRAM
726 USE_NATIVE_INCLUDES_FALSE
727 USE_NATIVE_INCLUDES_TRUE
729 MAINTAINER_MODE_FALSE
758 program_transform_name
771 enable_option_checking
772 enable_maintainer_mode
782 enable_dependency_tracking
785 ac_precious_vars='build_alias
799 # Initialize some variables set by options.
801 ac_init_version=false
802 ac_unrecognized_opts=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
813 program_transform_name=s,x,x,
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 # Accept the important Cygnus configure options, so we can diagnose typos.
866 case $ac_dashdash$ac_option in
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
888 cache_file=config.cache ;;
890 -datadir | --datadir | --datadi | --datad)
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
916 eval enable_$ac_useropt=no ;;
918 -docdir | --docdir | --docdi | --doc | --do)
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
957 -help | --help | --hel | --he | -h)
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183 Try \`$0 --help' for more information"
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1212 if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 # Check all directory arguments for consistency.
1221 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1233 # Be sure to have absolute directory names.
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 # There might be people who depend on the old broken behavior: `$host'
1242 # used to hold the argument of --host etc.
1243 # FIXME: To remove some day.
1246 target=$target_alias
1248 # FIXME: To remove some day.
1249 if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 elif test "x$build_alias" != "x$host_alias"; then
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error $? "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error $? "pwd does not report name of working directory"
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1303 ac_srcdir_defaulted=no
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 # Report the --help message.
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1337 \`configure' configures OpenBSM 1.2-alpha5 to adapt to many kinds of systems.
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1344 Defaults for the options are specified in brackets.
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking ...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1368 For better control, use the options below.
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/openbsm]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of OpenBSM 1.2-alpha5:";;
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --enable-maintainer-mode
1416 enable make rules and dependencies not useful (and
1417 sometimes confusing) to the casual installer
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --enable-silent-rules less verbose build output (undo: "make V=1")
1428 --disable-silent-rules verbose build output (undo: "make V=0")
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-native-includes Use the system native include files instead of those
1434 included with openbsm.
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1437 --with-aix-soname=aix|svr4|both
1438 shared library versioning (aka "SONAME") variant to
1439 provide on AIX, [default=aix].
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1442 compiler's sysroot if not specified).
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1453 User-defined run-time library search path.
1455 YACC The `Yet Another Compiler Compiler' implementation to use.
1456 Defaults to the first program found out of: `bison -y', `byacc',
1458 YFLAGS The list of arguments that will be passed by default to $YACC.
1459 This script will default YFLAGS to the empty string to avoid a
1460 default value of `-d' given by some make applications.
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1465 Report bugs to <trustedbsd-audit@TrustedBSD.org>.
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1495 .) # We are building in place.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1528 OpenBSM configure 1.2-alpha5
1529 generated by GNU Autoconf 2.69
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1578 } # ac_fn_c_try_compile
1580 # ac_fn_c_try_link LINENO
1581 # -----------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest$ac_exeext
1587 if { { ac_try="$ac_link"
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_link") 2>conftest.err
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest$ac_exeext && {
1606 test "$cross_compiling" = yes ||
1607 test -x conftest$ac_exeext
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1618 # interfere with the next link command; also delete a directory that is
1619 # left behind by Apple's compiler. We do this before executing the actions.
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_c_try_link
1626 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists and can be compiled using the include files in
1629 # INCLUDES, setting the cache variable VAR accordingly.
1630 ac_fn_c_check_header_compile ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if eval \${$3+:} false; then :
1636 $as_echo_n "(cached) " >&6
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1643 if ac_fn_c_try_compile "$LINENO"; then :
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 } # ac_fn_c_check_header_compile
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } > conftest.i && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1751 #define $2 innocuous_$2
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $2 (); below.
1755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756 <limits.h> exists even on freestanding compilers. */
1759 # include <limits.h>
1761 # include <assert.h>
1766 /* Override any GCC internal prototype to avoid an error.
1767 Use char because int might match the return type of a GCC
1768 builtin and then its argument prototype would still apply. */
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined __stub_$2 || defined __stub___$2
1788 if ac_fn_c_try_link "$LINENO"; then :
1793 rm -f core conftest.err conftest.$ac_objext \
1794 conftest$ac_exeext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 } # ac_fn_c_check_func
1803 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1804 # -------------------------------------------------------
1805 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1806 # the include files in INCLUDES and setting the cache variable VAR
1808 ac_fn_c_check_header_mongrel ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if eval \${$3+:} false; then :
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if eval \${$3+:} false; then :
1815 $as_echo_n "(cached) " >&6
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1821 # Is the header compilable?
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1823 $as_echo_n "checking $2 usability... " >&6; }
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1829 if ac_fn_c_try_compile "$LINENO"; then :
1830 ac_header_compiler=yes
1832 ac_header_compiler=no
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1836 $as_echo "$ac_header_compiler" >&6; }
1838 # Is the header present?
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1840 $as_echo_n "checking $2 presence... " >&6; }
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1845 if ac_fn_c_try_cpp "$LINENO"; then :
1846 ac_header_preproc=yes
1848 ac_header_preproc=no
1850 rm -f conftest.err conftest.i conftest.$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1852 $as_echo "$ac_header_preproc" >&6; }
1854 # So? What about this header?
1855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1858 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1864 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1866 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1868 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1870 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 ( $as_echo "## ---------------------------------------------- ##
1874 ## Report this to trustedbsd-audit@TrustedBSD.org ##
1875 ## ---------------------------------------------- ##"
1876 ) | sed "s/^/$as_me: WARNING: /" >&2
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1884 eval "$3=\$ac_header_compiler"
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_header_mongrel
1894 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1895 # -------------------------------------------
1896 # Tests whether TYPE exists after having included INCLUDES, setting cache
1897 # variable VAR accordingly.
1898 ac_fn_c_check_type ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 } # ac_fn_c_check_type
1948 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1949 # ----------------------------------------------------
1950 # Tries to find if the field MEMBER exists in type AGGR, after including
1951 # INCLUDES, setting cache variable VAR accordingly.
1952 ac_fn_c_check_member ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1956 $as_echo_n "checking for $2.$3... " >&6; }
1957 if eval \${$4+:} false; then :
1958 $as_echo_n "(cached) " >&6
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1973 if ac_fn_c_try_compile "$LINENO"; then :
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1983 if (sizeof ac_aggr.$3)
1989 if ac_fn_c_try_compile "$LINENO"; then :
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_member
2004 cat >config.log <<_ACEOF
2005 This file contains any messages produced by compilers while
2006 running configure, to aid debugging if configure makes a mistake.
2008 It was created by OpenBSM $as_me 1.2-alpha5, which was
2009 generated by GNU Autoconf 2.69. Invocation command line was
2021 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2030 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2031 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2032 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2034 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2035 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2036 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir=.
2045 $as_echo "PATH: $as_dir"
2061 # Keep a trace of the command line.
2062 # Strip out --no-create and --no-recursion so they do not pile up.
2063 # Strip out --silent because we don't want to record it for future runs.
2064 # Also quote any args containing shell meta-characters.
2065 # Make two passes to allow for proper duplicate-argument suppression.
2069 ac_must_keep_next=false
2075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077 | -silent | --silent | --silen | --sile | --sil)
2080 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2083 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2085 as_fn_append ac_configure_args1 " '$ac_arg'"
2086 if test $ac_must_keep_next = true; then
2087 ac_must_keep_next=false # Got value, back to normal.
2090 *=* | --config-cache | -C | -disable-* | --disable-* \
2091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2093 | -with-* | --with-* | -without-* | --without-* | --x)
2094 case "$ac_configure_args0 " in
2095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098 -* ) ac_must_keep_next=true ;;
2101 as_fn_append ac_configure_args " '$ac_arg'"
2106 { ac_configure_args0=; unset ac_configure_args0;}
2107 { ac_configure_args1=; unset ac_configure_args1;}
2109 # When interrupted or exit'd, cleanup temporary files, and complete
2110 # config.log. We remove comments because anyway the quotes in there
2111 # would cause problems or look ugly.
2112 # WARNING: Use '\'' to represent an apostrophe within the trap.
2113 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2114 trap 'exit_status=$?
2115 # Save into config.log some information that might help in debugging.
2119 $as_echo "## ---------------- ##
2120 ## Cache variables. ##
2121 ## ---------------- ##"
2123 # The following way of writing the cache mishandles newlines in values,
2125 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2126 eval ac_val=\$$ac_var
2130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2131 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2134 _ | IFS | as_nl) ;; #(
2135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2136 *) { eval $ac_var=; unset $ac_var;} ;;
2141 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2142 *${as_nl}ac_space=\ *)
2144 "s/'\''/'\''\\\\'\'''\''/g;
2145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2155 $as_echo "## ----------------- ##
2156 ## Output variables. ##
2157 ## ----------------- ##"
2159 for ac_var in $ac_subst_vars
2161 eval ac_val=\$$ac_var
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2165 $as_echo "$ac_var='\''$ac_val'\''"
2169 if test -n "$ac_subst_files"; then
2170 $as_echo "## ------------------- ##
2171 ## File substitutions. ##
2172 ## ------------------- ##"
2174 for ac_var in $ac_subst_files
2176 eval ac_val=\$$ac_var
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180 $as_echo "$ac_var='\''$ac_val'\''"
2185 if test -s confdefs.h; then
2186 $as_echo "## ----------- ##
2193 test "$ac_signal" != 0 &&
2194 $as_echo "$as_me: caught signal $ac_signal"
2195 $as_echo "$as_me: exit $exit_status"
2197 rm -f core *.core core.conftest.* &&
2198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2201 for ac_signal in 1 2 13 15; do
2202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2207 rm -f -r conftest* confdefs.h
2209 $as_echo "/* confdefs.h */" > confdefs.h
2211 # Predefined preprocessor variables.
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_NAME "$PACKAGE_NAME"
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_STRING "$PACKAGE_STRING"
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_URL "$PACKAGE_URL"
2238 # Let the site file select an alternate cache file if it wants to.
2239 # Prefer an explicitly selected file to automatically selected ones.
2242 if test -n "$CONFIG_SITE"; then
2243 # We do not want a PATH search for config.site.
2244 case $CONFIG_SITE in #((
2245 -*) ac_site_file1=./$CONFIG_SITE;;
2246 */*) ac_site_file1=$CONFIG_SITE;;
2247 *) ac_site_file1=./$CONFIG_SITE;;
2249 elif test "x$prefix" != xNONE; then
2250 ac_site_file1=$prefix/share/config.site
2251 ac_site_file2=$prefix/etc/config.site
2253 ac_site_file1=$ac_default_prefix/share/config.site
2254 ac_site_file2=$ac_default_prefix/etc/config.site
2256 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2258 test "x$ac_site_file" = xNONE && continue
2259 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2262 sed 's/^/| /' "$ac_site_file" >&5
2264 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266 as_fn_error $? "failed to load site script $ac_site_file
2267 See \`config.log' for more details" "$LINENO" 5; }
2271 if test -r "$cache_file"; then
2272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276 $as_echo "$as_me: loading cache $cache_file" >&6;}
2278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284 $as_echo "$as_me: creating cache $cache_file" >&6;}
2288 as_fn_append ac_header_list " sys/time.h"
2289 as_fn_append ac_header_list " unistd.h"
2290 as_fn_append ac_func_list " alarm"
2291 # Check that the precious variables saved in the cache have kept the same
2293 ac_cache_corrupted=false
2294 for ac_var in $ac_precious_vars; do
2295 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2296 eval ac_new_set=\$ac_env_${ac_var}_set
2297 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2298 eval ac_new_val=\$ac_env_${ac_var}_value
2299 case $ac_old_set,$ac_new_set in
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2302 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2303 ac_cache_corrupted=: ;;
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2306 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2307 ac_cache_corrupted=: ;;
2310 if test "x$ac_old_val" != "x$ac_new_val"; then
2311 # differences in whitespace do not lead to failure.
2312 ac_old_val_w=`echo x $ac_old_val`
2313 ac_new_val_w=`echo x $ac_new_val`
2314 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2316 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2317 ac_cache_corrupted=:
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2320 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2321 eval $ac_var=\$ac_old_val
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2324 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2326 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2329 # Pass precious variables to config.status.
2330 if test "$ac_new_set" = set; then
2332 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2333 *) ac_arg=$ac_var=$ac_new_val ;;
2335 case " $ac_configure_args " in
2336 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2337 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2341 if $ac_cache_corrupted; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2345 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2346 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2348 ## -------------------- ##
2349 ## Main body of script. ##
2350 ## -------------------- ##
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362 for ac_dir in config "$srcdir"/config; do
2363 if test -f "$ac_dir/install-sh"; then
2365 ac_install_sh="$ac_aux_dir/install-sh -c"
2367 elif test -f "$ac_dir/install.sh"; then
2369 ac_install_sh="$ac_aux_dir/install.sh -c"
2371 elif test -f "$ac_dir/shtool"; then
2373 ac_install_sh="$ac_aux_dir/shtool install -c"
2377 if test -z "$ac_aux_dir"; then
2378 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2381 # These three variables are undocumented and unsupported,
2382 # and are intended to be withdrawn in a future Autoconf release.
2383 # They can cause serious problems if a builder's source tree is in a directory
2384 # whose full name contains unusual characters.
2385 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2386 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2387 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2391 ac_config_headers="$ac_config_headers config/config.h"
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2395 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2396 # Check whether --enable-maintainer-mode was given.
2397 if test "${enable_maintainer_mode+set}" = set; then :
2398 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2400 USE_MAINTAINER_MODE=no
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2404 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2405 if test $USE_MAINTAINER_MODE = yes; then
2406 MAINTAINER_MODE_TRUE=
2407 MAINTAINER_MODE_FALSE='#'
2409 MAINTAINER_MODE_TRUE='#'
2410 MAINTAINER_MODE_FALSE=
2413 MAINT=$MAINTAINER_MODE_TRUE
2417 # --with-native-includes forces the use of the system bsm headers.
2419 # Check whether --with-native-includes was given.
2420 if test "${with_native_includes+set}" = set; then :
2421 withval=$with_native_includes;
2423 $as_echo "#define USE_NATIVE_INCLUDES /**/" >>confdefs.h
2425 use_native_includes=true
2428 use_native_includes=false
2431 if $use_native_includes; then
2432 USE_NATIVE_INCLUDES_TRUE=
2433 USE_NATIVE_INCLUDES_FALSE='#'
2435 USE_NATIVE_INCLUDES_TRUE='#'
2436 USE_NATIVE_INCLUDES_FALSE=
2442 # Extract the first word of "$ac_prog", so it can be a program name with args.
2443 set dummy $ac_prog; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_path_MIG+:} false; then :
2447 $as_echo_n "(cached) " >&6
2451 ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2461 ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 if test -n "$MIG"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
2475 $as_echo "$MIG" >&6; }
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2482 test -n "$MIG" && break
2486 # Checks for programs.
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492 if test -n "$ac_tool_prefix"; then
2493 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2494 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496 $as_echo_n "checking for $ac_word... " >&6; }
2497 if ${ac_cv_prog_CC+:} false; then :
2498 $as_echo_n "(cached) " >&6
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2510 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 if test -n "$CC"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2523 $as_echo "$CC" >&6; }
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526 $as_echo "no" >&6; }
2531 if test -z "$ac_cv_prog_CC"; then
2533 # Extract the first word of "gcc", so it can be a program name with args.
2534 set dummy gcc; ac_word=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2538 $as_echo_n "(cached) " >&6
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_ac_ct_CC="gcc"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561 if test -n "$ac_ct_CC"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2563 $as_echo "$ac_ct_CC" >&6; }
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2569 if test "x$ac_ct_CC" = x; then
2572 case $cross_compiling:$ac_tool_warned in
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2576 ac_tool_warned=yes ;;
2584 if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}cc; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if ${ac_cv_prog_CC+:} false; then :
2591 $as_echo_n "(cached) " >&6
2593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603 ac_cv_prog_CC="${ac_tool_prefix}cc"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 if test -n "$CC"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2616 $as_echo "$CC" >&6; }
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2625 if test -z "$CC"; then
2626 # Extract the first word of "cc", so it can be a program name with args.
2627 set dummy cc; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if ${ac_cv_prog_CC+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2645 ac_prog_rejected=yes
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 if test $ac_prog_rejected = yes; then
2657 # We found a bogon in the path, so make sure we never use it.
2658 set dummy $ac_cv_prog_CC
2660 if test $# != 0; then
2661 # We chose a different compiler from the bogus one.
2662 # However, it has the same basename, so the bogon will be chosen
2663 # first if we set CC to just the basename; use the full file name.
2665 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2671 if test -n "$CC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673 $as_echo "$CC" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2681 if test -z "$CC"; then
2682 if test -n "$ac_tool_prefix"; then
2683 for ac_prog in cl.exe
2685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_CC+:} false; then :
2690 $as_echo_n "(cached) " >&6
2692 if test -n "$CC"; then
2693 ac_cv_prog_CC="$CC" # Let the user override the test.
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 if test -n "$CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2715 $as_echo "$CC" >&6; }
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2722 test -n "$CC" && break
2725 if test -z "$CC"; then
2727 for ac_prog in cl.exe
2729 # Extract the first word of "$ac_prog", so it can be a program name with args.
2730 set dummy $ac_prog; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="$ac_prog"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2757 if test -n "$ac_ct_CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2759 $as_echo "$ac_ct_CC" >&6; }
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2766 test -n "$ac_ct_CC" && break
2769 if test "x$ac_ct_CC" = x; then
2772 case $cross_compiling:$ac_tool_warned in
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 ac_tool_warned=yes ;;
2785 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787 as_fn_error $? "no acceptable C compiler found in \$PATH
2788 See \`config.log' for more details" "$LINENO" 5; }
2790 # Provide some information about the compiler.
2791 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2794 for ac_option in --version -v -V -qversion; do
2795 { { ac_try="$ac_compiler $ac_option >&5"
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2801 $as_echo "$ac_try_echo"; } >&5
2802 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2804 if test -s conftest.err; then
2806 ... rest of stderr output deleted ...
2807 10q' conftest.err >conftest.er1
2808 cat conftest.er1 >&5
2810 rm -f conftest.er1 conftest.err
2811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2812 test $ac_status = 0; }
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2826 ac_clean_files_save=$ac_clean_files
2827 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2828 # Try to create an executable without -o first, disregard a.out.
2829 # It will help us diagnose broken compilers, and finding out an intuition
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2832 $as_echo_n "checking whether the C compiler works... " >&6; }
2833 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2835 # The possible output files:
2836 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2839 for ac_file in $ac_files
2842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2843 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2848 if { { ac_try="$ac_link_default"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854 $as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_link_default") 2>&5
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
2859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2860 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2861 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2862 # so that the user can short-circuit this test for compilers unknown to
2864 for ac_file in $ac_files ''
2866 test -f "$ac_file" || continue
2868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2871 # We found the default executable, but exeext='' is most
2875 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2879 # We set ac_cv_exeext here because the later test for it is not
2880 # safe: cross compilers may not add the suffix if given an `-o'
2881 # argument, so we may need to know it at that point already.
2882 # Even if this section looks crufty: it has the advantage of
2889 test "$ac_cv_exeext" = no && ac_cv_exeext=
2894 if test -z "$ac_file"; then :
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902 as_fn_error 77 "C compiler cannot create executables
2903 See \`config.log' for more details" "$LINENO" 5; }
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906 $as_echo "yes" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2909 $as_echo_n "checking for C compiler default output file name... " >&6; }
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2911 $as_echo "$ac_file" >&6; }
2912 ac_exeext=$ac_cv_exeext
2914 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2915 ac_clean_files=$ac_clean_files_save
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2917 $as_echo_n "checking for suffix of executables... " >&6; }
2918 if { { ac_try="$ac_link"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_link") 2>&5
2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928 test $ac_status = 0; }; then :
2929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2930 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2931 # work properly (i.e., refer to `conftest.exe'), while it won't with
2933 for ac_file in conftest.exe conftest conftest.*; do
2934 test -f "$ac_file" || continue
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2945 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details" "$LINENO" 5; }
2948 rm -f conftest conftest$ac_cv_exeext
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2950 $as_echo "$ac_cv_exeext" >&6; }
2952 rm -f conftest.$ac_ext
2953 EXEEXT=$ac_cv_exeext
2955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956 /* end confdefs.h. */
2961 FILE *f = fopen ("conftest.out", "w");
2962 return ferror (f) || fclose (f) != 0;
2968 ac_clean_files="$ac_clean_files conftest.out"
2969 # Check that the compiler produces executables we can run. If not, either
2970 # the compiler is broken, or we cross compile.
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2972 $as_echo_n "checking whether we are cross compiling... " >&6; }
2973 if test "$cross_compiling" != yes; then
2974 { { ac_try="$ac_link"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_link") 2>&5
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }
2985 if { ac_try='./conftest$ac_cv_exeext'
2986 { { case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 $as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_try") 2>&5
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }; }; then
2998 if test "$cross_compiling" = maybe; then
3001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3003 as_fn_error $? "cannot run C compiled programs.
3004 If you meant to cross compile, use \`--host'.
3005 See \`config.log' for more details" "$LINENO" 5; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3010 $as_echo "$cross_compiling" >&6; }
3012 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3013 ac_clean_files=$ac_clean_files_save
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3015 $as_echo_n "checking for suffix of object files... " >&6; }
3016 if ${ac_cv_objext+:} false; then :
3017 $as_echo_n "(cached) " >&6
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3030 rm -f conftest.o conftest.obj
3031 if { { ac_try="$ac_compile"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_compile") 2>&5
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }; then :
3042 for ac_file in conftest.o conftest.obj conftest.*; do
3043 test -f "$ac_file" || continue;
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3051 $as_echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error $? "cannot compute suffix of object files: cannot compile
3057 See \`config.log' for more details" "$LINENO" 5; }
3059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3062 $as_echo "$ac_cv_objext" >&6; }
3063 OBJEXT=$ac_cv_objext
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3067 if ${ac_cv_c_compiler_gnu+:} false; then :
3068 $as_echo_n "(cached) " >&6
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3084 if ac_fn_c_try_compile "$LINENO"; then :
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3095 if test $ac_compiler_gnu = yes; then
3100 ac_test_CFLAGS=${CFLAGS+set}
3101 ac_save_CFLAGS=$CFLAGS
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3104 if ${ac_cv_prog_cc_g+:} false; then :
3105 $as_echo_n "(cached) " >&6
3107 ac_save_c_werror_flag=$ac_c_werror_flag
3108 ac_c_werror_flag=yes
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3122 if ac_fn_c_try_compile "$LINENO"; then :
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3137 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_c_werror_flag=$ac_save_c_werror_flag
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3153 if ac_fn_c_try_compile "$LINENO"; then :
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 ac_c_werror_flag=$ac_save_c_werror_flag
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3164 $as_echo "$ac_cv_prog_cc_g" >&6; }
3165 if test "$ac_test_CFLAGS" = set; then
3166 CFLAGS=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168 if test "$GCC" = yes; then
3174 if test "$GCC" = yes; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3182 if ${ac_cv_prog_cc_c89+:} false; then :
3183 $as_echo_n "(cached) " >&6
3185 ac_cv_prog_cc_c89=no
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3193 struct buf { int x; };
3194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3195 static char *e (p, i)
3201 static char *f (char * (*g) (char **, int), char **p, ...)
3206 s = g (p, va_arg (v,int));
3211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3212 function prototypes and stuff, but not '\xHH' hex character constants.
3213 These don't provoke an error unfortunately, instead are silently treated
3214 as 'x'. The following induces an error, until -std is added to get
3215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3216 array size at least. It's necessary to write '\x00'==0 to get something
3217 that's true only with -std. */
3218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3221 inside strings and character constants. */
3223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3225 int test (int i, double x);
3226 struct s1 {int (*f) (int a);};
3227 struct s2 {int (*f) (double a);};
3228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3234 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3242 CC="$ac_save_CC $ac_arg"
3243 if ac_fn_c_try_compile "$LINENO"; then :
3244 ac_cv_prog_cc_c89=$ac_arg
3246 rm -f core conftest.err conftest.$ac_objext
3247 test "x$ac_cv_prog_cc_c89" != "xno" && break
3249 rm -f conftest.$ac_ext
3254 case "x$ac_cv_prog_cc_c89" in
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3257 $as_echo "none needed" >&6; } ;;
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3260 $as_echo "unsupported" >&6; } ;;
3262 CC="$CC $ac_cv_prog_cc_c89"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3264 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3266 if test "x$ac_cv_prog_cc_c89" != xno; then :
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 # Expand $ac_aux_dir to an absolute path.
3277 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3285 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3286 if ${am_cv_prog_cc_c_o+:} false; then :
3287 $as_echo_n "(cached) " >&6
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3300 # Make sure it works both with $CC and with simple cc.
3301 # Following AC_PROG_CC_C_O, we do the test twice because some
3302 # compilers refuse to overwrite an existing .o file with -o,
3303 # though they will create one.
3304 am_cv_prog_cc_c_o=yes
3306 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3307 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } \
3311 && test -f conftest2.$ac_objext; then
3314 am_cv_prog_cc_c_o=no
3318 rm -f core conftest*
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3322 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3323 if test "$am_cv_prog_cc_c_o" != yes; then
3324 # Losing compiler, so override with the script.
3325 # FIXME: It is wrong to rewrite CC.
3326 # But if we don't then we get into trouble of one sort or another.
3327 # A longer-term fix would be to have automake use am__CC in this case,
3328 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3329 CC="$am_aux_dir/compile $CC"
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 # Find a good install program. We prefer a C program (faster),
3339 # so one script is as good as another. But avoid the broken or
3340 # incompatible versions:
3341 # SysV /etc/install, /usr/sbin/install
3342 # SunOS /usr/etc/install
3343 # IRIX /sbin/install
3345 # AmigaOS /C/install, which installs bootblocks on floppy discs
3346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3349 # OS/2's system install, which has a completely different semantic
3350 # ./install, which can be erroneously created by make from ./install.sh.
3351 # Reject install programs that cannot install multiple files.
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3353 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3354 if test -z "$INSTALL"; then
3355 if ${ac_cv_path_install+:} false; then :
3356 $as_echo_n "(cached) " >&6
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 # Account for people who put trailing slashes in PATH elements.
3364 case $as_dir/ in #((
3365 ./ | .// | /[cC]/* | \
3366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3367 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3370 # OSF1 and SCO ODT 3.0 have their own names for install.
3371 # Don't use installbsd from OSF since it installs stuff as root
3373 for ac_prog in ginstall scoinst install; do
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3376 if test $ac_prog = install &&
3377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3378 # AIX install. It has an incompatible calling convention.
3380 elif test $ac_prog = install &&
3381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3382 # program-specific install script used by HP pwplus--don't use.
3385 rm -rf conftest.one conftest.two conftest.dir
3386 echo one > conftest.one
3387 echo two > conftest.two
3389 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3390 test -s conftest.one && test -s conftest.two &&
3391 test -s conftest.dir/conftest.one &&
3392 test -s conftest.dir/conftest.two
3394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3407 rm -rf conftest.one conftest.two conftest.dir
3410 if test "${ac_cv_path_install+set}" = set; then
3411 INSTALL=$ac_cv_path_install
3413 # As a last resort, use the slow shell script. Don't cache a
3414 # value for INSTALL within a source directory, because that will
3415 # break other packages using the cache if that directory is
3416 # removed, or if the value is a relative name.
3417 INSTALL=$ac_install_sh
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3421 $as_echo "$INSTALL" >&6; }
3423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3424 # It thinks the first close brace ends the variable substitution.
3425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3427 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3429 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3432 for ac_prog in flex lex
3434 # Extract the first word of "$ac_prog", so it can be a program name with args.
3435 set dummy $ac_prog; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_LEX+:} false; then :
3439 $as_echo_n "(cached) " >&6
3441 if test -n "$LEX"; then
3442 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_LEX="$ac_prog"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 if test -n "$LEX"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3464 $as_echo "$LEX" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3471 test -n "$LEX" && break
3473 test -n "$LEX" || LEX=":"
3475 if test "x$LEX" != "x:"; then
3476 cat >conftest.l <<_ACEOF
3482 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
3483 yyless ((input () != 0)); }
3484 f { unput (yytext[0]); }
3485 . { BEGIN INITIAL; }
3487 #ifdef YYTEXT_POINTER
3488 extern char *yytext;
3493 return ! yylex () + ! yywrap ();
3496 { { ac_try="$LEX conftest.l"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$LEX conftest.l") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3508 $as_echo_n "checking lex output file root... " >&6; }
3509 if ${ac_cv_prog_lex_root+:} false; then :
3510 $as_echo_n "(cached) " >&6
3513 if test -f lex.yy.c; then
3514 ac_cv_prog_lex_root=lex.yy
3515 elif test -f lexyy.c; then
3516 ac_cv_prog_lex_root=lexyy
3518 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3522 $as_echo "$ac_cv_prog_lex_root" >&6; }
3523 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3525 if test -z "${LEXLIB+set}"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3527 $as_echo_n "checking lex library... " >&6; }
3528 if ${ac_cv_lib_lex+:} false; then :
3529 $as_echo_n "(cached) " >&6
3533 ac_cv_lib_lex='none needed'
3534 for ac_lib in '' -lfl -ll; do
3535 LIBS="$ac_lib $ac_save_LIBS"
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538 `cat $LEX_OUTPUT_ROOT.c`
3540 if ac_fn_c_try_link "$LINENO"; then :
3541 ac_cv_lib_lex=$ac_lib
3543 rm -f core conftest.err conftest.$ac_objext \
3544 conftest$ac_exeext conftest.$ac_ext
3545 test "$ac_cv_lib_lex" != 'none needed' && break
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3551 $as_echo "$ac_cv_lib_lex" >&6; }
3552 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3557 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3558 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 # POSIX says lex can declare yytext either as a pointer or an array; the
3562 # default is implementation-dependent. Figure out which it is, since
3563 # not all implementations provide the %pointer and %array declarations.
3564 ac_cv_prog_lex_yytext_pointer=no
3566 LIBS="$LEXLIB $ac_save_LIBS"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3570 #define YYTEXT_POINTER 1
3571 `cat $LEX_OUTPUT_ROOT.c`
3573 if ac_fn_c_try_link "$LINENO"; then :
3574 ac_cv_prog_lex_yytext_pointer=yes
3576 rm -f core conftest.err conftest.$ac_objext \
3577 conftest$ac_exeext conftest.$ac_ext
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3582 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3583 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3585 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3588 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3594 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3599 macro_version='2.4.6'
3600 macro_revision='2.4.6'
3614 ltmain=$ac_aux_dir/ltmain.sh
3616 # Make sure we can run config.sub.
3617 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3618 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3621 $as_echo_n "checking build system type... " >&6; }
3622 if ${ac_cv_build+:} false; then :
3623 $as_echo_n "(cached) " >&6
3625 ac_build_alias=$build_alias
3626 test "x$ac_build_alias" = x &&
3627 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3628 test "x$ac_build_alias" = x &&
3629 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3630 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3631 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3635 $as_echo "$ac_cv_build" >&6; }
3636 case $ac_cv_build in
3638 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3641 ac_save_IFS=$IFS; IFS='-'
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3651 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3655 $as_echo_n "checking host system type... " >&6; }
3656 if ${ac_cv_host+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 if test "x$host_alias" = x; then
3660 ac_cv_host=$ac_cv_build
3662 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3663 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3668 $as_echo "$ac_cv_host" >&6; }
3671 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3674 ac_save_IFS=$IFS; IFS='-'
3680 # Remember, the first character of IFS is used to create $*,
3681 # except with old shells:
3684 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3687 # Backslashify metacharacters that are still active within
3688 # double-quoted strings.
3689 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3691 # Same as above, but do not quote variable references.
3692 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3694 # Sed substitution to delay expansion of an escaped shell variable in a
3695 # double_quote_subst'ed string.
3696 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3698 # Sed substitution to delay expansion of an escaped single quote.
3699 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3701 # Sed substitution to avoid accidental globbing in evaled expressions
3702 no_glob_subst='s/\*/\\\*/g'
3704 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3706 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3709 $as_echo_n "checking how to print strings... " >&6; }
3710 # Test print first, because it will be a builtin if present.
3711 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3712 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3714 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3717 # Use this function as a fallback that always works.
3718 func_fallback_echo ()
3720 eval 'cat <<_LTECHO_EOF
3724 ECHO='func_fallback_echo'
3727 # func_echo_all arg...
3728 # Invoke $ECHO with all args, space-separated.
3735 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3736 $as_echo "printf" >&6; } ;;
3737 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3738 $as_echo "print -r" >&6; } ;;
3739 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3740 $as_echo "cat" >&6; } ;;
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3757 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3758 if ${ac_cv_path_SED+:} false; then :
3759 $as_echo_n "(cached) " >&6
3761 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3762 for ac_i in 1 2 3 4 5 6 7; do
3763 ac_script="$ac_script$as_nl$ac_script"
3765 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3766 { ac_script=; unset ac_script;}
3767 if test -z "$SED"; then
3768 ac_path_SED_found=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir=.
3775 for ac_prog in sed gsed; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3778 as_fn_executable_p "$ac_path_SED" || continue
3779 # Check for GNU ac_path_SED and select it if it is found.
3780 # Check for GNU $ac_path_SED
3781 case `"$ac_path_SED" --version 2>&1` in
3783 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3786 $as_echo_n 0123456789 >"conftest.in"
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 $as_echo '' >> "conftest.nl"
3793 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795 as_fn_arith $ac_count + 1 && ac_count=$as_val
3796 if test $ac_count -gt ${ac_path_SED_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_SED="$ac_path_SED"
3799 ac_path_SED_max=$ac_count
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3807 $ac_path_SED_found && break 3
3812 if test -z "$ac_cv_path_SED"; then
3813 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3821 $as_echo "$ac_cv_path_SED" >&6; }
3822 SED="$ac_cv_path_SED"
3825 test -z "$SED" && SED=sed
3826 Xsed="$SED -e 1s/^X//"
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3839 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3840 if ${ac_cv_path_GREP+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -z "$GREP"; then
3844 ac_path_GREP_found=false
3845 # Loop through the user's path and test for each of PROGNAME-LIST
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850 test -z "$as_dir" && as_dir=.
3851 for ac_prog in grep ggrep; do
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3854 as_fn_executable_p "$ac_path_GREP" || continue
3855 # Check for GNU ac_path_GREP and select it if it is found.
3856 # Check for GNU $ac_path_GREP
3857 case `"$ac_path_GREP" --version 2>&1` in
3859 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3862 $as_echo_n 0123456789 >"conftest.in"
3865 cat "conftest.in" "conftest.in" >"conftest.tmp"
3866 mv "conftest.tmp" "conftest.in"
3867 cp "conftest.in" "conftest.nl"
3868 $as_echo 'GREP' >> "conftest.nl"
3869 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3871 as_fn_arith $ac_count + 1 && ac_count=$as_val
3872 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3873 # Best one so far, save it but keep looking for a better one
3874 ac_cv_path_GREP="$ac_path_GREP"
3875 ac_path_GREP_max=$ac_count
3877 # 10*(2^10) chars as input seems more than enough
3878 test $ac_count -gt 10 && break
3880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883 $ac_path_GREP_found && break 3
3888 if test -z "$ac_cv_path_GREP"; then
3889 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3892 ac_cv_path_GREP=$GREP
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3897 $as_echo "$ac_cv_path_GREP" >&6; }
3898 GREP="$ac_cv_path_GREP"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3902 $as_echo_n "checking for egrep... " >&6; }
3903 if ${ac_cv_path_EGREP+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3907 then ac_cv_path_EGREP="$GREP -E"
3909 if test -z "$EGREP"; then
3910 ac_path_EGREP_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in egrep; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3920 as_fn_executable_p "$ac_path_EGREP" || continue
3921 # Check for GNU ac_path_EGREP and select it if it is found.
3922 # Check for GNU $ac_path_EGREP
3923 case `"$ac_path_EGREP" --version 2>&1` in
3925 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3928 $as_echo_n 0123456789 >"conftest.in"
3931 cat "conftest.in" "conftest.in" >"conftest.tmp"
3932 mv "conftest.tmp" "conftest.in"
3933 cp "conftest.in" "conftest.nl"
3934 $as_echo 'EGREP' >> "conftest.nl"
3935 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937 as_fn_arith $ac_count + 1 && ac_count=$as_val
3938 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3939 # Best one so far, save it but keep looking for a better one
3940 ac_cv_path_EGREP="$ac_path_EGREP"
3941 ac_path_EGREP_max=$ac_count
3943 # 10*(2^10) chars as input seems more than enough
3944 test $ac_count -gt 10 && break
3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 $ac_path_EGREP_found && break 3
3954 if test -z "$ac_cv_path_EGREP"; then
3955 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3958 ac_cv_path_EGREP=$EGREP
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3964 $as_echo "$ac_cv_path_EGREP" >&6; }
3965 EGREP="$ac_cv_path_EGREP"
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3969 $as_echo_n "checking for fgrep... " >&6; }
3970 if ${ac_cv_path_FGREP+:} false; then :
3971 $as_echo_n "(cached) " >&6
3973 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3974 then ac_cv_path_FGREP="$GREP -F"
3976 if test -z "$FGREP"; then
3977 ac_path_FGREP_found=false
3978 # Loop through the user's path and test for each of PROGNAME-LIST
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3983 test -z "$as_dir" && as_dir=.
3984 for ac_prog in fgrep; do
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3987 as_fn_executable_p "$ac_path_FGREP" || continue
3988 # Check for GNU ac_path_FGREP and select it if it is found.
3989 # Check for GNU $ac_path_FGREP
3990 case `"$ac_path_FGREP" --version 2>&1` in
3992 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3995 $as_echo_n 0123456789 >"conftest.in"
3998 cat "conftest.in" "conftest.in" >"conftest.tmp"
3999 mv "conftest.tmp" "conftest.in"
4000 cp "conftest.in" "conftest.nl"
4001 $as_echo 'FGREP' >> "conftest.nl"
4002 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4004 as_fn_arith $ac_count + 1 && ac_count=$as_val
4005 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4006 # Best one so far, save it but keep looking for a better one
4007 ac_cv_path_FGREP="$ac_path_FGREP"
4008 ac_path_FGREP_max=$ac_count
4010 # 10*(2^10) chars as input seems more than enough
4011 test $ac_count -gt 10 && break
4013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 $ac_path_FGREP_found && break 3
4021 if test -z "$ac_cv_path_FGREP"; then
4022 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4025 ac_cv_path_FGREP=$FGREP
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4031 $as_echo "$ac_cv_path_FGREP" >&6; }
4032 FGREP="$ac_cv_path_FGREP"
4035 test -z "$GREP" && GREP=grep
4055 # Check whether --with-gnu-ld was given.
4056 if test "${with_gnu_ld+set}" = set; then :
4057 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4063 if test yes = "$GCC"; then
4064 # Check if gcc -print-prog-name=ld gives a path.
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4066 $as_echo_n "checking for ld used by $CC... " >&6; }
4069 # gcc leaves a trailing carriage return, which upsets mingw
4070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4075 # Accept absolute paths.
4077 re_direlt='/[^/][^/]*/\.\./'
4078 # Canonicalize the pathname of ld
4079 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4080 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4081 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4083 test -z "$LD" && LD=$ac_prog
4086 # If it fails, then pretend we aren't using GCC.
4090 # If it is relative, then search for the first ld in PATH.
4094 elif test yes = "$with_gnu_ld"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4096 $as_echo_n "checking for GNU ld... " >&6; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4099 $as_echo_n "checking for non-GNU ld... " >&6; }
4101 if ${lt_cv_path_LD+:} false; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -z "$LD"; then
4105 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4106 for ac_dir in $PATH; do
4108 test -z "$ac_dir" && ac_dir=.
4109 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4110 lt_cv_path_LD=$ac_dir/$ac_prog
4111 # Check to see if the program is GNU ld. I'd rather use --version,
4112 # but apparently some variants of GNU ld only accept -v.
4113 # Break only if it was the GNU/non-GNU ld that we prefer.
4114 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4115 *GNU* | *'with BFD'*)
4116 test no != "$with_gnu_ld" && break
4119 test yes != "$with_gnu_ld" && break
4126 lt_cv_path_LD=$LD # Let the user override the test with a path.
4131 if test -n "$LD"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4133 $as_echo "$LD" >&6; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4138 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4140 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4141 if ${lt_cv_prog_gnu_ld+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4145 case `$LD -v 2>&1 </dev/null` in
4146 *GNU* | *'with BFD'*)
4147 lt_cv_prog_gnu_ld=yes
4150 lt_cv_prog_gnu_ld=no
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4155 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4156 with_gnu_ld=$lt_cv_prog_gnu_ld
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4167 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4168 if ${lt_cv_path_NM+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 if test -n "$NM"; then
4172 # Let the user override the test.
4175 lt_nm_to_check=${ac_tool_prefix}nm
4176 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4177 lt_nm_to_check="$lt_nm_to_check nm"
4179 for lt_tmp_nm in $lt_nm_to_check; do
4180 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4181 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4183 test -z "$ac_dir" && ac_dir=.
4184 tmp_nm=$ac_dir/$lt_tmp_nm
4185 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4186 # Check to see if the nm accepts a BSD-compat flag.
4187 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4188 # nm: unknown option "B" ignored
4189 # Tru64's nm complains that /dev/null is an invalid object file
4190 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4192 mingw*) lt_bad_file=conftest.nm/nofile ;;
4193 *) lt_bad_file=/dev/null ;;
4195 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4196 *$lt_bad_file* | *'Invalid file or object type'*)
4197 lt_cv_path_NM="$tmp_nm -B"
4201 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4203 lt_cv_path_NM="$tmp_nm -p"
4207 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4208 continue # so that we can try to find one that supports BSD flags
4217 : ${lt_cv_path_NM=no}
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4221 $as_echo "$lt_cv_path_NM" >&6; }
4222 if test no != "$lt_cv_path_NM"; then
4225 # Didn't find any BSD compatible name lister, look for dumpbin.
4226 if test -n "$DUMPBIN"; then :
4227 # Let the user override the test.
4229 if test -n "$ac_tool_prefix"; then
4230 for ac_prog in dumpbin "link -dump"
4232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_DUMPBIN+:} false; then :
4237 $as_echo_n "(cached) " >&6
4239 if test -n "$DUMPBIN"; then
4240 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 DUMPBIN=$ac_cv_prog_DUMPBIN
4260 if test -n "$DUMPBIN"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4262 $as_echo "$DUMPBIN" >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4269 test -n "$DUMPBIN" && break
4272 if test -z "$DUMPBIN"; then
4273 ac_ct_DUMPBIN=$DUMPBIN
4274 for ac_prog in dumpbin "link -dump"
4276 # Extract the first word of "$ac_prog", so it can be a program name with args.
4277 set dummy $ac_prog; ac_word=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4281 $as_echo_n "(cached) " >&6
4283 if test -n "$ac_ct_DUMPBIN"; then
4284 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4304 if test -n "$ac_ct_DUMPBIN"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4306 $as_echo "$ac_ct_DUMPBIN" >&6; }
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4313 test -n "$ac_ct_DUMPBIN" && break
4316 if test "x$ac_ct_DUMPBIN" = x; then
4319 case $cross_compiling:$ac_tool_warned in
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4323 ac_tool_warned=yes ;;
4325 DUMPBIN=$ac_ct_DUMPBIN
4329 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4331 DUMPBIN="$DUMPBIN -symbols -headers"
4339 if test : != "$DUMPBIN"; then
4343 test -z "$NM" && NM=nm
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4351 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4352 if ${lt_cv_nm_interface+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 lt_cv_nm_interface="BSD nm"
4356 echo "int some_variable = 0;" > conftest.$ac_ext
4357 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4358 (eval "$ac_compile" 2>conftest.err)
4359 cat conftest.err >&5
4360 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4361 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4362 cat conftest.err >&5
4363 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4364 cat conftest.out >&5
4365 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4366 lt_cv_nm_interface="MS dumpbin"
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4371 $as_echo "$lt_cv_nm_interface" >&6; }
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4374 $as_echo_n "checking whether ln -s works... " >&6; }
4376 if test "$LN_S" = "ln -s"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 $as_echo "yes" >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4381 $as_echo "no, using $LN_S" >&6; }
4384 # find the maximum length of command line arguments
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4386 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4387 if ${lt_cv_sys_max_cmd_len+:} false; then :
4388 $as_echo_n "(cached) " >&6
4395 # On DJGPP, this test can blow up pretty badly due to problems in libc
4396 # (any single argument exceeding 2000 bytes causes a buffer overrun
4397 # during glob expansion). Even if it were fixed, the result of this
4398 # check would be larger than it should be.
4399 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4403 # Under GNU Hurd, this test is not required because there is
4404 # no limit to the length of command line arguments.
4405 # Libtool will interpret -1 as no limit whatsoever
4406 lt_cv_sys_max_cmd_len=-1;
4409 cygwin* | mingw* | cegcc*)
4410 # On Win9x/ME, this test blows up -- it succeeds, but takes
4411 # about 5 minutes as the teststring grows exponentially.
4412 # Worse, since 9x/ME are not pre-emptively multitasking,
4413 # you end up with a "frozen" computer, even though with patience
4414 # the test eventually succeeds (with a max line length of 256k).
4415 # Instead, let's just punt: use the minimum linelength reported by
4416 # all of the supported platforms: 8192 (on NT/2K/XP).
4417 lt_cv_sys_max_cmd_len=8192;
4421 # On MiNT this can take a long time and run out of memory.
4422 lt_cv_sys_max_cmd_len=8192;
4426 # On AmigaOS with pdksh, this test takes hours, literally.
4427 # So we just punt and use a minimum line length of 8192.
4428 lt_cv_sys_max_cmd_len=8192;
4431 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4432 # This has been around since 386BSD, at least. Likely further.
4433 if test -x /sbin/sysctl; then
4434 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4435 elif test -x /usr/sbin/sysctl; then
4436 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4438 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4440 # And add a safety zone
4441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4446 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4447 lt_cv_sys_max_cmd_len=196608
4451 # The test takes a long time on OS/2.
4452 lt_cv_sys_max_cmd_len=8192
4456 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4457 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4458 # nice to cause kernel panics so lets avoid the loop below.
4459 # First set a reasonable default.
4460 lt_cv_sys_max_cmd_len=16384
4462 if test -x /sbin/sysconfig; then
4463 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4464 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4469 lt_cv_sys_max_cmd_len=102400
4471 sysv5* | sco5v6* | sysv4.2uw2*)
4472 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4473 if test -n "$kargmax"; then
4474 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4476 lt_cv_sys_max_cmd_len=32768
4480 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4481 if test -n "$lt_cv_sys_max_cmd_len" && \
4482 test undefined != "$lt_cv_sys_max_cmd_len"; then
4483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4484 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4486 # Make teststring a little bigger before we do anything with it.
4487 # a 1K string should be a reasonable start.
4488 for i in 1 2 3 4 5 6 7 8; do
4489 teststring=$teststring$teststring
4491 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4492 # If test is not a shell built-in, we'll probably end up computing a
4493 # maximum length that is only half of the actual maximum length, but
4495 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4496 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4497 test 17 != "$i" # 1/2 MB should be enough
4500 teststring=$teststring$teststring
4502 # Only check the string length outside the loop.
4503 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4505 # Add a significant safety factor because C++ compilers can tack on
4506 # massive amounts of additional arguments before passing them to the
4507 # linker. It appears as though 1/2 is a usable value.
4508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4515 if test -n "$lt_cv_sys_max_cmd_len"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4517 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4520 $as_echo "none" >&6; }
4522 max_cmd_len=$lt_cv_sys_max_cmd_len
4533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4543 # test EBCDIC or ASCII
4544 case `echo X|tr X '\101'` in
4545 A) # ASCII based system
4546 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4547 lt_SP2NL='tr \040 \012'
4548 lt_NL2SP='tr \015\012 \040\040'
4550 *) # EBCDIC based system
4551 lt_SP2NL='tr \100 \n'
4552 lt_NL2SP='tr \r\n \100\100'
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4565 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4566 if ${lt_cv_to_host_file_cmd+:} false; then :
4567 $as_echo_n "(cached) " >&6
4572 *-*-mingw* ) # actually msys
4573 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4576 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4578 * ) # otherwise, assume *nix
4579 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4585 *-*-mingw* ) # actually msys
4586 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4589 lt_cv_to_host_file_cmd=func_convert_file_noop
4591 * ) # otherwise, assume *nix
4592 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4596 * ) # unhandled hosts (and "normal" native builds)
4597 lt_cv_to_host_file_cmd=func_convert_file_noop
4603 to_host_file_cmd=$lt_cv_to_host_file_cmd
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4605 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4612 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4613 if ${lt_cv_to_tool_file_cmd+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 #assume ordinary cross tools, or native build.
4617 lt_cv_to_tool_file_cmd=func_convert_file_noop
4621 *-*-mingw* ) # actually msys
4622 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4630 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4632 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4639 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4640 if ${lt_cv_ld_reload_flag+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 lt_cv_ld_reload_flag='-r'
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4646 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4647 reload_flag=$lt_cv_ld_reload_flag
4648 case $reload_flag in
4650 *) reload_flag=" $reload_flag" ;;
4652 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4654 cygwin* | mingw* | pw32* | cegcc*)
4655 if test yes != "$GCC"; then
4660 if test yes = "$GCC"; then
4661 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4663 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4676 if test -n "$ac_tool_prefix"; then
4677 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4678 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_prog_OBJDUMP+:} false; then :
4682 $as_echo_n "(cached) " >&6
4684 if test -n "$OBJDUMP"; then
4685 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 OBJDUMP=$ac_cv_prog_OBJDUMP
4705 if test -n "$OBJDUMP"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4707 $as_echo "$OBJDUMP" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4715 if test -z "$ac_cv_prog_OBJDUMP"; then
4716 ac_ct_OBJDUMP=$OBJDUMP
4717 # Extract the first word of "objdump", so it can be a program name with args.
4718 set dummy objdump; ac_word=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4722 $as_echo_n "(cached) " >&6
4724 if test -n "$ac_ct_OBJDUMP"; then
4725 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4745 if test -n "$ac_ct_OBJDUMP"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4747 $as_echo "$ac_ct_OBJDUMP" >&6; }
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4753 if test "x$ac_ct_OBJDUMP" = x; then
4756 case $cross_compiling:$ac_tool_warned in
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760 ac_tool_warned=yes ;;
4762 OBJDUMP=$ac_ct_OBJDUMP
4765 OBJDUMP="$ac_cv_prog_OBJDUMP"
4768 test -z "$OBJDUMP" && OBJDUMP=objdump
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4779 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4780 if ${lt_cv_deplibs_check_method+:} false; then :
4781 $as_echo_n "(cached) " >&6
4783 lt_cv_file_magic_cmd='$MAGIC_CMD'
4784 lt_cv_file_magic_test_file=
4785 lt_cv_deplibs_check_method='unknown'
4786 # Need to set the preceding variable on all platforms that support
4787 # interlibrary dependencies.
4788 # 'none' -- dependencies not supported.
4789 # 'unknown' -- same as none, but documents that we really don't know.
4790 # 'pass_all' -- all dependencies passed with no checks.
4791 # 'test_compile' -- check by making test program.
4792 # 'file_magic [[regex]]' -- check by looking for files in library path
4793 # that responds to the $file_magic_cmd with a given extended regex.
4794 # If you have 'file' or equivalent on your system and you're not sure
4795 # whether 'pass_all' will *always* work, you probably want this one.
4799 lt_cv_deplibs_check_method=pass_all
4803 lt_cv_deplibs_check_method=pass_all
4807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4808 lt_cv_file_magic_cmd='/usr/bin/file -L'
4809 lt_cv_file_magic_test_file=/shlib/libc.so
4813 # func_win32_libid is a shell function defined in ltmain.sh
4814 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4815 lt_cv_file_magic_cmd='func_win32_libid'
4819 # Base MSYS/MinGW do not provide the 'file' command needed by
4820 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4821 # unless we find 'file', for example because we are cross-compiling.
4822 if ( file / ) >/dev/null 2>&1; then
4823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4824 lt_cv_file_magic_cmd='func_win32_libid'
4826 # Keep this pattern in sync with the one in func_win32_libid.
4827 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4828 lt_cv_file_magic_cmd='$OBJDUMP -f'
4833 # use the weaker test based on 'objdump'. See mingw*.
4834 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4835 lt_cv_file_magic_cmd='$OBJDUMP -f'
4838 darwin* | rhapsody*)
4839 lt_cv_deplibs_check_method=pass_all
4842 freebsd* | dragonfly*)
4843 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4846 # Not sure whether the presence of OpenBSD here was a mistake.
4847 # Let's accept both of them until this is cleared up.
4848 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4849 lt_cv_file_magic_cmd=/usr/bin/file
4850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4854 lt_cv_deplibs_check_method=pass_all
4859 lt_cv_deplibs_check_method=pass_all
4862 hpux10.20* | hpux11*)
4863 lt_cv_file_magic_cmd=/usr/bin/file
4866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4867 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4870 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]'
4871 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4874 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4875 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4881 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4885 irix5* | irix6* | nonstopux*)
4887 *-32|*"-32 ") libmagic=32-bit;;
4888 *-n32|*"-n32 ") libmagic=N32;;
4889 *-64|*"-64 ") libmagic=64-bit;;
4890 *) libmagic=never-match;;
4892 lt_cv_deplibs_check_method=pass_all
4895 # This must be glibc/ELF.
4896 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4897 lt_cv_deplibs_check_method=pass_all
4901 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4910 lt_cv_file_magic_cmd=/usr/bin/file
4911 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4915 lt_cv_deplibs_check_method=pass_all
4919 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4926 osf3* | osf4* | osf5*)
4927 lt_cv_deplibs_check_method=pass_all
4931 lt_cv_deplibs_check_method=pass_all
4935 lt_cv_deplibs_check_method=pass_all
4938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4939 lt_cv_deplibs_check_method=pass_all
4943 case $host_vendor in
4945 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]'
4946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4949 lt_cv_deplibs_check_method=pass_all
4952 lt_cv_file_magic_cmd='/bin/file'
4953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4956 lt_cv_file_magic_cmd='/bin/file'
4957 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4958 lt_cv_file_magic_test_file=/lib/libc.so
4961 lt_cv_deplibs_check_method=pass_all
4964 lt_cv_deplibs_check_method=pass_all
4970 lt_cv_deplibs_check_method=pass_all
4973 lt_cv_deplibs_check_method=pass_all
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4979 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4983 if test "$build" = "$host"; then
4986 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4989 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4995 file_magic_cmd=$lt_cv_file_magic_cmd
4996 deplibs_check_method=$lt_cv_deplibs_check_method
4997 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5020 if test -n "$ac_tool_prefix"; then
5021 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5022 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_DLLTOOL+:} false; then :
5026 $as_echo_n "(cached) " >&6
5028 if test -n "$DLLTOOL"; then
5029 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 DLLTOOL=$ac_cv_prog_DLLTOOL
5049 if test -n "$DLLTOOL"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5051 $as_echo "$DLLTOOL" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5059 if test -z "$ac_cv_prog_DLLTOOL"; then
5060 ac_ct_DLLTOOL=$DLLTOOL
5061 # Extract the first word of "dlltool", so it can be a program name with args.
5062 set dummy dlltool; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5066 $as_echo_n "(cached) " >&6
5068 if test -n "$ac_ct_DLLTOOL"; then
5069 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5089 if test -n "$ac_ct_DLLTOOL"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5091 $as_echo "$ac_ct_DLLTOOL" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5097 if test "x$ac_ct_DLLTOOL" = x; then
5100 case $cross_compiling:$ac_tool_warned in
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5106 DLLTOOL=$ac_ct_DLLTOOL
5109 DLLTOOL="$ac_cv_prog_DLLTOOL"
5112 test -z "$DLLTOOL" && DLLTOOL=dlltool
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5124 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5125 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5126 $as_echo_n "(cached) " >&6
5128 lt_cv_sharedlib_from_linklib_cmd='unknown'
5131 cygwin* | mingw* | pw32* | cegcc*)
5132 # two different shell functions defined in ltmain.sh;
5133 # decide which one to use based on capabilities of $DLLTOOL
5134 case `$DLLTOOL --help 2>&1` in
5135 *--identify-strict*)
5136 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5139 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5144 # fallback: assume linklib IS sharedlib
5145 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5151 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5152 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5153 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5161 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_AR+:} false; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -n "$AR"; then
5172 ac_cv_prog_AR="$AR" # Let the user override the test.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 if test -n "$AR"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5194 $as_echo "$AR" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5201 test -n "$AR" && break
5204 if test -z "$AR"; then
5208 # Extract the first word of "$ac_prog", so it can be a program name with args.
5209 set dummy $ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 if test -n "$ac_ct_AR"; then
5216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_prog_ac_ct_AR="$ac_prog"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5236 if test -n "$ac_ct_AR"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5238 $as_echo "$ac_ct_AR" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5245 test -n "$ac_ct_AR" && break
5248 if test "x$ac_ct_AR" = x; then
5251 case $cross_compiling:$ac_tool_warned in
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5275 $as_echo_n "checking for archiver @FILE support... " >&6; }
5276 if ${lt_cv_ar_at_file+:} false; then :
5277 $as_echo_n "(cached) " >&6
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5291 if ac_fn_c_try_compile "$LINENO"; then :
5292 echo conftest.$ac_objext > conftest.lst
5293 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5295 (eval $lt_ar_try) 2>&5
5297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5298 test $ac_status = 0; }
5299 if test 0 -eq "$ac_status"; then
5300 # Ensure the archiver fails upon bogus file names.
5301 rm -f conftest.$ac_objext libconftest.a
5302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5303 (eval $lt_ar_try) 2>&5
5305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5306 test $ac_status = 0; }
5307 if test 0 -ne "$ac_status"; then
5311 rm -f conftest.* libconftest.a
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5318 $as_echo "$lt_cv_ar_at_file" >&6; }
5320 if test no = "$lt_cv_ar_at_file"; then
5323 archiver_list_spec=$lt_cv_ar_at_file
5332 if test -n "$ac_tool_prefix"; then
5333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5334 set dummy ${ac_tool_prefix}strip; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if ${ac_cv_prog_STRIP+:} false; then :
5338 $as_echo_n "(cached) " >&6
5340 if test -n "$STRIP"; then
5341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 STRIP=$ac_cv_prog_STRIP
5361 if test -n "$STRIP"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5363 $as_echo "$STRIP" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5371 if test -z "$ac_cv_prog_STRIP"; then
5373 # Extract the first word of "strip", so it can be a program name with args.
5374 set dummy strip; ac_word=$2
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5378 $as_echo_n "(cached) " >&6
5380 if test -n "$ac_ct_STRIP"; then
5381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390 ac_cv_prog_ac_ct_STRIP="strip"
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5401 if test -n "$ac_ct_STRIP"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5403 $as_echo "$ac_ct_STRIP" >&6; }
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5409 if test "x$ac_ct_STRIP" = x; then
5412 case $cross_compiling:$ac_tool_warned in
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416 ac_tool_warned=yes ;;
5421 STRIP="$ac_cv_prog_STRIP"
5424 test -z "$STRIP" && STRIP=:
5431 if test -n "$ac_tool_prefix"; then
5432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_RANLIB+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$RANLIB"; then
5440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 RANLIB=$ac_cv_prog_RANLIB
5460 if test -n "$RANLIB"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5462 $as_echo "$RANLIB" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5470 if test -z "$ac_cv_prog_RANLIB"; then
5471 ac_ct_RANLIB=$RANLIB
5472 # Extract the first word of "ranlib", so it can be a program name with args.
5473 set dummy ranlib; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5477 $as_echo_n "(cached) " >&6
5479 if test -n "$ac_ct_RANLIB"; then
5480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir=.
5487 for ac_exec_ext in '' $ac_executable_extensions; do
5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_ac_ct_RANLIB="ranlib"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5500 if test -n "$ac_ct_RANLIB"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5502 $as_echo "$ac_ct_RANLIB" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5508 if test "x$ac_ct_RANLIB" = x; then
5511 case $cross_compiling:$ac_tool_warned in
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515 ac_tool_warned=yes ;;
5517 RANLIB=$ac_ct_RANLIB
5520 RANLIB="$ac_cv_prog_RANLIB"
5523 test -z "$RANLIB" && RANLIB=:
5530 # Determine commands to create old-style static archives.
5531 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5532 old_postinstall_cmds='chmod 644 $oldlib'
5533 old_postuninstall_cmds=
5535 if test -n "$RANLIB"; then
5538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5541 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5544 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5549 lock_old_archive_extraction=yes ;;
5551 lock_old_archive_extraction=no ;;
5574 for ac_prog in gawk mawk nawk awk
5576 # Extract the first word of "$ac_prog", so it can be a program name with args.
5577 set dummy $ac_prog; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_AWK+:} false; then :
5581 $as_echo_n "(cached) " >&6
5583 if test -n "$AWK"; then
5584 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_AWK="$ac_prog"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 if test -n "$AWK"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5606 $as_echo "$AWK" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5613 test -n "$AWK" && break
5634 # If no C compiler was specified, use CC.
5637 # If no C compiler flags were specified, use CFLAGS.
5638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5640 # Allow CC to be a program name with arguments.
5644 # Check for command to grab the raw symbol name followed by C symbol from nm.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5646 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5647 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5648 $as_echo_n "(cached) " >&6
5651 # These are sane defaults that work on at least a few old systems.
5652 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5654 # Character class describing NM global symbol codes.
5655 symcode='[BCDEGRST]'
5657 # Regexp to match symbols that can be accessed directly from C.
5658 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5660 # Define system-specific variables.
5665 cygwin* | mingw* | pw32* | cegcc*)
5666 symcode='[ABCDGISTW]'
5669 if test ia64 = "$host_cpu"; then
5670 symcode='[ABCDEGRST]'
5674 symcode='[BCDEGRST]'
5677 symcode='[BCDEGQRST]'
5688 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5696 # If we're using GNU nm, then use its standard symbol codes.
5697 case `$NM -V 2>&1` in
5698 *GNU* | *'with BFD'*)
5699 symcode='[ABCDGIRSTW]' ;;
5702 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5703 # Gets list of data symbols to import.
5704 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5705 # Adjust the below global symbol transforms to fixup imported variables.
5706 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5707 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5708 lt_c_name_lib_hook="\
5709 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5710 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5712 # Disable hooks by default.
5713 lt_cv_sys_global_symbol_to_import=
5719 # Transform an extracted symbol line into a proper C declaration.
5720 # Some systems (esp. on ia64) link data and code symbols differently,
5721 # so use this general approach.
5722 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5724 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5725 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5727 # Transform an extracted symbol line into symbol name and symbol address
5728 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5730 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5731 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5733 # Transform an extracted symbol line into symbol name with lib prefix and
5735 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5736 $lt_c_name_lib_hook\
5737 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5738 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5739 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5741 # Handle CRLF in mingw tool chain
5745 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5749 # Try without a prefix underscore, then with it.
5750 for ac_symprfx in "" "_"; do
5752 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5753 symxfrm="\\1 $ac_symprfx\\2 \\2"
5755 # Write the raw and C identifiers.
5756 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5757 # Fake it for dumpbin and say T for any non-static function,
5758 # D for any global variable and I for any imported variable.
5759 # Also find C++ and __fastcall symbols from MSVC++,
5760 # which start with @ or ?.
5761 lt_cv_sys_global_symbol_pipe="$AWK '"\
5762 " {last_section=section; section=\$ 3};"\
5763 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5764 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5765 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5766 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5767 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5768 " \$ 0!~/External *\|/{next};"\
5769 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5770 " {if(hide[section]) next};"\
5771 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5772 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5773 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5774 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5775 " ' prfx=^$ac_symprfx"
5777 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5779 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5781 # Check to see that the pipe works correctly.
5785 cat > conftest.$ac_ext <<_LT_EOF
5790 void nm_test_func(void);
5791 void nm_test_func(void){}
5795 int main(){nm_test_var='a';nm_test_func();return(0);}
5798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5799 (eval $ac_compile) 2>&5
5801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5802 test $ac_status = 0; }; then
5803 # Now try to grab the symbols.
5805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5806 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5809 test $ac_status = 0; } && test -s "$nlist"; then
5810 # Try sorting and uniquifying the output.
5811 if sort "$nlist" | uniq > "$nlist"T; then
5812 mv -f "$nlist"T "$nlist"
5817 # Make sure that we snagged all the symbols we need.
5818 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5819 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5820 cat <<_LT_EOF > conftest.$ac_ext
5821 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5822 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5823 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5824 relocations are performed -- see ld's documentation on pseudo-relocs. */
5825 # define LT_DLSYM_CONST
5826 #elif defined __osf__
5827 /* This system does not cope well with relocations in const data. */
5828 # define LT_DLSYM_CONST
5830 # define LT_DLSYM_CONST const
5838 # Now generate the symbol file.
5839 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5841 cat <<_LT_EOF >> conftest.$ac_ext
5843 /* The mapping between symbol names and symbols. */
5844 LT_DLSYM_CONST struct {
5848 lt__PROGRAM__LTX_preloaded_symbols[] =
5850 { "@PROGRAM@", (void *) 0 },
5852 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5853 cat <<\_LT_EOF >> conftest.$ac_ext
5857 /* This works around a problem in FreeBSD linker */
5858 #ifdef FREEBSD_WORKAROUND
5859 static const void *lt_preloaded_setup() {
5860 return lt__PROGRAM__LTX_preloaded_symbols;
5868 # Now try linking the two files.
5869 mv conftest.$ac_objext conftstm.$ac_objext
5870 lt_globsym_save_LIBS=$LIBS
5871 lt_globsym_save_CFLAGS=$CFLAGS
5872 LIBS=conftstm.$ac_objext
5873 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5875 (eval $ac_link) 2>&5
5877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5878 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5881 LIBS=$lt_globsym_save_LIBS
5882 CFLAGS=$lt_globsym_save_CFLAGS
5884 echo "cannot find nm_test_func in $nlist" >&5
5887 echo "cannot find nm_test_var in $nlist" >&5
5890 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5893 echo "$progname: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5896 rm -rf conftest* conftst*
5898 # Do not use the global_symbol_pipe unless it works.
5899 if test yes = "$pipe_works"; then
5902 lt_cv_sys_global_symbol_pipe=
5908 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5909 lt_cv_sys_global_symbol_to_cdecl=
5911 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5913 $as_echo "failed" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5916 $as_echo "ok" >&6; }
5919 # Response file support.
5920 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5921 nm_file_list_spec='@'
5922 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5923 nm_file_list_spec='@'
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5963 $as_echo_n "checking for sysroot... " >&6; }
5965 # Check whether --with-sysroot was given.
5966 if test "${with_sysroot+set}" = set; then :
5967 withval=$with_sysroot;
5974 case $with_sysroot in #(
5976 if test yes = "$GCC"; then
5977 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5981 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5987 $as_echo "$with_sysroot" >&6; }
5988 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5993 $as_echo "${lt_sysroot:-no}" >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6000 $as_echo_n "checking for a working dd... " >&6; }
6001 if ${ac_cv_path_lt_DD+:} false; then :
6002 $as_echo_n "(cached) " >&6
6004 printf 0123456789abcdef0123456789abcdef >conftest.i
6005 cat conftest.i conftest.i >conftest2.i
6007 if test -z "$lt_DD"; then
6008 ac_path_lt_DD_found=false
6009 # Loop through the user's path and test for each of PROGNAME-LIST
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_prog in dd; do
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6018 as_fn_executable_p "$ac_path_lt_DD" || continue
6019 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6020 cmp -s conftest.i conftest.out \
6021 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6023 $ac_path_lt_DD_found && break 3
6028 if test -z "$ac_cv_path_lt_DD"; then
6032 ac_cv_path_lt_DD=$lt_DD
6035 rm -f conftest.i conftest2.i conftest.out
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6038 $as_echo "$ac_cv_path_lt_DD" >&6; }
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6042 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6043 if ${lt_cv_truncate_bin+:} false; then :
6044 $as_echo_n "(cached) " >&6
6046 printf 0123456789abcdef0123456789abcdef >conftest.i
6047 cat conftest.i conftest.i >conftest2.i
6049 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6050 cmp -s conftest.i conftest.out \
6051 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6053 rm -f conftest.i conftest2.i conftest.out
6054 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6057 $as_echo "$lt_cv_truncate_bin" >&6; }
6065 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6068 for cc_temp in $*""; do
6070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6076 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6079 # Check whether --enable-libtool-lock was given.
6080 if test "${enable_libtool_lock+set}" = set; then :
6081 enableval=$enable_libtool_lock;
6084 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6086 # Some flags need to be propagated to the compiler or linker for good
6090 # Find out what ABI is being produced by ac_compile, and set mode
6091 # options accordingly.
6092 echo 'int i;' > conftest.$ac_ext
6093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6094 (eval $ac_compile) 2>&5
6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; }; then
6098 case `/usr/bin/file conftest.$ac_objext` in
6110 # Find out what ABI is being produced by ac_compile, and set linker
6111 # options accordingly.
6112 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6114 (eval $ac_compile) 2>&5
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; }; then
6118 if test yes = "$lt_cv_prog_gnu_ld"; then
6119 case `/usr/bin/file conftest.$ac_objext` in
6121 LD="${LD-ld} -melf32bsmip"
6124 LD="${LD-ld} -melf32bmipn32"
6127 LD="${LD-ld} -melf64bmip"
6131 case `/usr/bin/file conftest.$ac_objext` in
6148 # Find out what ABI is being produced by ac_compile, and set linker
6149 # options accordingly.
6150 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6152 (eval $ac_compile) 2>&5
6154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155 test $ac_status = 0; }; then
6157 case `/usr/bin/file conftest.$ac_objext` in
6165 case `/usr/bin/file conftest.$ac_objext` in
6167 emul="${emul}btsmip"
6170 emul="${emul}ltsmip"
6173 case `/usr/bin/file conftest.$ac_objext` in
6178 LD="${LD-ld} -m $emul"
6183 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6184 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6185 # Find out what ABI is being produced by ac_compile, and set linker
6186 # options accordingly. Note that the listed cases only cover the
6187 # situations where additional linker options are needed (such as when
6188 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6189 # vice versa); the common cases where no linker options are needed do
6190 # not appear in the list.
6191 echo 'int i;' > conftest.$ac_ext
6192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6193 (eval $ac_compile) 2>&5
6195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6196 test $ac_status = 0; }; then
6197 case `/usr/bin/file conftest.o` in
6200 x86_64-*kfreebsd*-gnu)
6201 LD="${LD-ld} -m elf_i386_fbsd"
6204 case `/usr/bin/file conftest.o` in
6206 LD="${LD-ld} -m elf32_x86_64"
6209 LD="${LD-ld} -m elf_i386"
6213 powerpc64le-*linux*)
6214 LD="${LD-ld} -m elf32lppclinux"
6217 LD="${LD-ld} -m elf32ppclinux"
6220 LD="${LD-ld} -m elf_s390"
6223 LD="${LD-ld} -m elf32_sparc"
6229 x86_64-*kfreebsd*-gnu)
6230 LD="${LD-ld} -m elf_x86_64_fbsd"
6233 LD="${LD-ld} -m elf_x86_64"
6236 LD="${LD-ld} -m elf64lppc"
6239 LD="${LD-ld} -m elf64ppc"
6241 s390*-*linux*|s390*-*tpf*)
6242 LD="${LD-ld} -m elf64_s390"
6245 LD="${LD-ld} -m elf64_sparc"
6255 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6257 CFLAGS="$CFLAGS -belf"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6259 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6260 if ${lt_cv_cc_needs_belf+:} false; then :
6261 $as_echo_n "(cached) " >&6
6264 ac_cpp='$CPP $CPPFLAGS'
6265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6280 if ac_fn_c_try_link "$LINENO"; then :
6281 lt_cv_cc_needs_belf=yes
6283 lt_cv_cc_needs_belf=no
6285 rm -f core conftest.err conftest.$ac_objext \
6286 conftest$ac_exeext conftest.$ac_ext
6288 ac_cpp='$CPP $CPPFLAGS'
6289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6295 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6296 if test yes != "$lt_cv_cc_needs_belf"; then
6297 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6302 # Find out what ABI is being produced by ac_compile, and set linker
6303 # options accordingly.
6304 echo 'int i;' > conftest.$ac_ext
6305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6306 (eval $ac_compile) 2>&5
6308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }; then
6310 case `/usr/bin/file conftest.o` in
6312 case $lt_cv_prog_gnu_ld in
6315 i?86-*-solaris*|x86_64-*-solaris*)
6316 LD="${LD-ld} -m elf_x86_64"
6319 LD="${LD-ld} -m elf64_sparc"
6322 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6323 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6328 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6340 need_locks=$enable_libtool_lock
6342 if test -n "$ac_tool_prefix"; then
6343 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6344 set dummy ${ac_tool_prefix}mt; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 if test -n "$MANIFEST_TOOL"; then
6351 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6371 if test -n "$MANIFEST_TOOL"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6373 $as_echo "$MANIFEST_TOOL" >&6; }
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6381 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6382 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6383 # Extract the first word of "mt", so it can be a program name with args.
6384 set dummy mt; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$ac_ct_MANIFEST_TOOL"; then
6391 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6411 if test -n "$ac_ct_MANIFEST_TOOL"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6413 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6419 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6422 case $cross_compiling:$ac_tool_warned in
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6428 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6431 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6434 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6436 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6437 if ${lt_cv_path_mainfest_tool+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 lt_cv_path_mainfest_tool=no
6441 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6442 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6443 cat conftest.err >&5
6444 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6445 lt_cv_path_mainfest_tool=yes
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6450 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6451 if test yes != "$lt_cv_path_mainfest_tool"; then
6461 rhapsody* | darwin*)
6462 if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6468 $as_echo_n "(cached) " >&6
6470 if test -n "$DSYMUTIL"; then
6471 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6491 if test -n "$DSYMUTIL"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6493 $as_echo "$DSYMUTIL" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6501 if test -z "$ac_cv_prog_DSYMUTIL"; then
6502 ac_ct_DSYMUTIL=$DSYMUTIL
6503 # Extract the first word of "dsymutil", so it can be a program name with args.
6504 set dummy dsymutil; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 if test -n "$ac_ct_DSYMUTIL"; then
6511 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6531 if test -n "$ac_ct_DSYMUTIL"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6533 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6539 if test "x$ac_ct_DSYMUTIL" = x; then
6542 case $cross_compiling:$ac_tool_warned in
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6548 DSYMUTIL=$ac_ct_DSYMUTIL
6551 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_NMEDIT+:} false; then :
6560 $as_echo_n "(cached) " >&6
6562 if test -n "$NMEDIT"; then
6563 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 NMEDIT=$ac_cv_prog_NMEDIT
6583 if test -n "$NMEDIT"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6585 $as_echo "$NMEDIT" >&6; }
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6593 if test -z "$ac_cv_prog_NMEDIT"; then
6594 ac_ct_NMEDIT=$NMEDIT
6595 # Extract the first word of "nmedit", so it can be a program name with args.
6596 set dummy nmedit; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6600 $as_echo_n "(cached) " >&6
6602 if test -n "$ac_ct_NMEDIT"; then
6603 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6623 if test -n "$ac_ct_NMEDIT"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6625 $as_echo "$ac_ct_NMEDIT" >&6; }
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6631 if test "x$ac_ct_NMEDIT" = x; then
6634 case $cross_compiling:$ac_tool_warned in
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6640 NMEDIT=$ac_ct_NMEDIT
6643 NMEDIT="$ac_cv_prog_NMEDIT"
6646 if test -n "$ac_tool_prefix"; then
6647 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6648 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_LIPO+:} false; then :
6652 $as_echo_n "(cached) " >&6
6654 if test -n "$LIPO"; then
6655 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 LIPO=$ac_cv_prog_LIPO
6675 if test -n "$LIPO"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6677 $as_echo "$LIPO" >&6; }
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6685 if test -z "$ac_cv_prog_LIPO"; then
6687 # Extract the first word of "lipo", so it can be a program name with args.
6688 set dummy lipo; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6692 $as_echo_n "(cached) " >&6
6694 if test -n "$ac_ct_LIPO"; then
6695 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_ac_ct_LIPO="lipo"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6715 if test -n "$ac_ct_LIPO"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6717 $as_echo "$ac_ct_LIPO" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6723 if test "x$ac_ct_LIPO" = x; then
6726 case $cross_compiling:$ac_tool_warned in
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730 ac_tool_warned=yes ;;
6735 LIPO="$ac_cv_prog_LIPO"
6738 if test -n "$ac_tool_prefix"; then
6739 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}otool; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_OTOOL+:} false; then :
6744 $as_echo_n "(cached) " >&6
6746 if test -n "$OTOOL"; then
6747 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 OTOOL=$ac_cv_prog_OTOOL
6767 if test -n "$OTOOL"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6769 $as_echo "$OTOOL" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6777 if test -z "$ac_cv_prog_OTOOL"; then
6779 # Extract the first word of "otool", so it can be a program name with args.
6780 set dummy otool; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6784 $as_echo_n "(cached) " >&6
6786 if test -n "$ac_ct_OTOOL"; then
6787 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_ac_ct_OTOOL="otool"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6807 if test -n "$ac_ct_OTOOL"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6809 $as_echo "$ac_ct_OTOOL" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6815 if test "x$ac_ct_OTOOL" = x; then
6818 case $cross_compiling:$ac_tool_warned in
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6827 OTOOL="$ac_cv_prog_OTOOL"
6830 if test -n "$ac_tool_prefix"; then
6831 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_OTOOL64+:} false; then :
6836 $as_echo_n "(cached) " >&6
6838 if test -n "$OTOOL64"; then
6839 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 OTOOL64=$ac_cv_prog_OTOOL64
6859 if test -n "$OTOOL64"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6861 $as_echo "$OTOOL64" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6869 if test -z "$ac_cv_prog_OTOOL64"; then
6870 ac_ct_OTOOL64=$OTOOL64
6871 # Extract the first word of "otool64", so it can be a program name with args.
6872 set dummy otool64; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6876 $as_echo_n "(cached) " >&6
6878 if test -n "$ac_ct_OTOOL64"; then
6879 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_ac_ct_OTOOL64="otool64"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6899 if test -n "$ac_ct_OTOOL64"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6901 $as_echo "$ac_ct_OTOOL64" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6907 if test "x$ac_ct_OTOOL64" = x; then
6910 case $cross_compiling:$ac_tool_warned in
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914 ac_tool_warned=yes ;;
6916 OTOOL64=$ac_ct_OTOOL64
6919 OTOOL64="$ac_cv_prog_OTOOL64"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6949 $as_echo_n "checking for -single_module linker flag... " >&6; }
6950 if ${lt_cv_apple_cc_single_mod+:} false; then :
6951 $as_echo_n "(cached) " >&6
6953 lt_cv_apple_cc_single_mod=no
6954 if test -z "$LT_MULTI_MODULE"; then
6955 # By default we will add the -single_module flag. You can override
6956 # by either setting the environment variable LT_MULTI_MODULE
6957 # non-empty at configure time, or by adding -multi_module to the
6959 rm -rf libconftest.dylib*
6960 echo "int foo(void){return 1;}" > conftest.c
6961 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6962 -dynamiclib -Wl,-single_module conftest.c" >&5
6963 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6964 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6966 # If there is a non-empty error log, and "single_module"
6967 # appears in it, assume the flag caused a linker warning
6968 if test -s conftest.err && $GREP single_module conftest.err; then
6969 cat conftest.err >&5
6970 # Otherwise, if the output was created with a 0 exit code from
6971 # the compiler, it worked.
6972 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6973 lt_cv_apple_cc_single_mod=yes
6975 cat conftest.err >&5
6977 rm -rf libconftest.dylib*
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6982 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6985 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6986 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6987 $as_echo_n "(cached) " >&6
6989 lt_cv_ld_exported_symbols_list=no
6990 save_LDFLAGS=$LDFLAGS
6991 echo "_main" > conftest.sym
6992 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
7004 if ac_fn_c_try_link "$LINENO"; then :
7005 lt_cv_ld_exported_symbols_list=yes
7007 lt_cv_ld_exported_symbols_list=no
7009 rm -f core conftest.err conftest.$ac_objext \
7010 conftest$ac_exeext conftest.$ac_ext
7011 LDFLAGS=$save_LDFLAGS
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7015 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7018 $as_echo_n "checking for -force_load linker flag... " >&6; }
7019 if ${lt_cv_ld_force_load+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 lt_cv_ld_force_load=no
7023 cat > conftest.c << _LT_EOF
7024 int forced_loaded() { return 2;}
7026 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7027 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7028 echo "$AR cru libconftest.a conftest.o" >&5
7029 $AR cru libconftest.a conftest.o 2>&5
7030 echo "$RANLIB libconftest.a" >&5
7031 $RANLIB libconftest.a 2>&5
7032 cat > conftest.c << _LT_EOF
7033 int main() { return 0;}
7035 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7036 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7038 if test -s conftest.err && $GREP force_load conftest.err; then
7039 cat conftest.err >&5
7040 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7041 lt_cv_ld_force_load=yes
7043 cat conftest.err >&5
7045 rm -f conftest.err libconftest.a conftest conftest.c
7046 rm -rf conftest.dSYM
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7050 $as_echo "$lt_cv_ld_force_load" >&6; }
7052 rhapsody* | darwin1.[012])
7053 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7055 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7056 darwin*) # darwin 5.x on
7057 # if running on 10.5 or later, the deployment target defaults
7058 # to the OS version, if on x86, and 10.4, the deployment
7059 # target defaults to 10.4. Don't you love it?
7060 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7061 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7062 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7064 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7066 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7070 if test yes = "$lt_cv_apple_cc_single_mod"; then
7071 _lt_dar_single_mod='$single_module'
7073 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7074 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7076 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7078 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7079 _lt_dsymutil='~$DSYMUTIL $lib || :'
7086 # func_munge_path_list VARIABLE PATH
7087 # -----------------------------------
7088 # VARIABLE is name of variable containing _space_ separated list of
7089 # directories to be munged by the contents of PATH, which is string
7092 # string "DIR[ DIR]" will be prepended to VARIABLE
7094 # string "DIR[ DIR]" will be appended to VARIABLE
7095 # "DIRP[:DIRP]::[DIRA:]DIRA"
7096 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7097 # "DIRA[ DIRA]" will be appended to VARIABLE
7099 # VARIABLE will be replaced by "DIR[ DIR]"
7100 func_munge_path_list ()
7106 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7109 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7112 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7113 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7116 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7122 ac_cpp='$CPP $CPPFLAGS'
7123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7127 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7128 # On Suns, sometimes $CPP names a directory.
7129 if test -n "$CPP" && test -d "$CPP"; then
7132 if test -z "$CPP"; then
7133 if ${ac_cv_prog_CPP+:} false; then :
7134 $as_echo_n "(cached) " >&6
7136 # Double quotes because CPP needs to be expanded
7137 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7140 for ac_c_preproc_warn_flag in '' yes
7142 # Use a header file that comes with gcc, so configuring glibc
7143 # with a fresh cross-compiler works.
7144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7145 # <limits.h> exists even on freestanding compilers.
7146 # On the NeXT, cc -E runs the code through the compiler's parser,
7147 # not just through cpp. "Syntax error" is here to catch this case.
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7151 # include <limits.h>
7153 # include <assert.h>
7157 if ac_fn_c_try_cpp "$LINENO"; then :
7160 # Broken: fails on valid input.
7163 rm -f conftest.err conftest.i conftest.$ac_ext
7165 # OK, works on sane cases. Now check whether nonexistent headers
7166 # can be detected and how.
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169 #include <ac_nonexistent.h>
7171 if ac_fn_c_try_cpp "$LINENO"; then :
7172 # Broken: success on invalid input.
7175 # Passes both tests.
7179 rm -f conftest.err conftest.i conftest.$ac_ext
7182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7183 rm -f conftest.i conftest.err conftest.$ac_ext
7184 if $ac_preproc_ok; then :
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7197 $as_echo "$CPP" >&6; }
7199 for ac_c_preproc_warn_flag in '' yes
7201 # Use a header file that comes with gcc, so configuring glibc
7202 # with a fresh cross-compiler works.
7203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204 # <limits.h> exists even on freestanding compilers.
7205 # On the NeXT, cc -E runs the code through the compiler's parser,
7206 # not just through cpp. "Syntax error" is here to catch this case.
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7210 # include <limits.h>
7212 # include <assert.h>
7216 if ac_fn_c_try_cpp "$LINENO"; then :
7219 # Broken: fails on valid input.
7222 rm -f conftest.err conftest.i conftest.$ac_ext
7224 # OK, works on sane cases. Now check whether nonexistent headers
7225 # can be detected and how.
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #include <ac_nonexistent.h>
7230 if ac_fn_c_try_cpp "$LINENO"; then :
7231 # Broken: success on invalid input.
7234 # Passes both tests.
7238 rm -f conftest.err conftest.i conftest.$ac_ext
7241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7242 rm -f conftest.i conftest.err conftest.$ac_ext
7243 if $ac_preproc_ok; then :
7246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7248 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7249 See \`config.log' for more details" "$LINENO" 5; }
7253 ac_cpp='$CPP $CPPFLAGS'
7254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7260 $as_echo_n "checking for ANSI C header files... " >&6; }
7261 if ${ac_cv_header_stdc+:} false; then :
7262 $as_echo_n "(cached) " >&6
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7279 if ac_fn_c_try_compile "$LINENO"; then :
7280 ac_cv_header_stdc=yes
7282 ac_cv_header_stdc=no
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 if test $ac_cv_header_stdc = yes; then
7287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7294 $EGREP "memchr" >/dev/null 2>&1; then :
7297 ac_cv_header_stdc=no
7303 if test $ac_cv_header_stdc = yes; then
7304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 $EGREP "free" >/dev/null 2>&1; then :
7314 ac_cv_header_stdc=no
7320 if test $ac_cv_header_stdc = yes; then
7321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7322 if test "$cross_compiling" = yes; then :
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7329 #if ((' ' & 0x0FF) == 0x020)
7330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7333 # define ISLOWER(c) \
7334 (('a' <= (c) && (c) <= 'i') \
7335 || ('j' <= (c) && (c) <= 'r') \
7336 || ('s' <= (c) && (c) <= 'z'))
7337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7345 for (i = 0; i < 256; i++)
7346 if (XOR (islower (i), ISLOWER (i))
7347 || toupper (i) != TOUPPER (i))
7352 if ac_fn_c_try_run "$LINENO"; then :
7355 ac_cv_header_stdc=no
7357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7358 conftest.$ac_objext conftest.beam conftest.$ac_ext
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7364 $as_echo "$ac_cv_header_stdc" >&6; }
7365 if test $ac_cv_header_stdc = yes; then
7367 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7372 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7373 inttypes.h stdint.h unistd.h
7375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7376 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7378 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7379 cat >>confdefs.h <<_ACEOF
7380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7388 for ac_header in dlfcn.h
7390 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7392 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7393 cat >>confdefs.h <<_ACEOF
7394 #define HAVE_DLFCN_H 1
7415 # Check whether --enable-shared was given.
7416 if test "${enable_shared+set}" = set; then :
7417 enableval=$enable_shared; p=${PACKAGE-default}
7419 yes) enable_shared=yes ;;
7420 no) enable_shared=no ;;
7423 # Look at the argument we got. We use all the common list separators.
7424 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7425 for pkg in $enableval; do
7427 if test "X$pkg" = "X$p"; then
7446 # Check whether --enable-static was given.
7447 if test "${enable_static+set}" = set; then :
7448 enableval=$enable_static; p=${PACKAGE-default}
7450 yes) enable_static=yes ;;
7451 no) enable_static=no ;;
7454 # Look at the argument we got. We use all the common list separators.
7455 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7456 for pkg in $enableval; do
7458 if test "X$pkg" = "X$p"; then
7478 # Check whether --with-pic was given.
7479 if test "${with_pic+set}" = set; then :
7480 withval=$with_pic; lt_p=${PACKAGE-default}
7482 yes|no) pic_mode=$withval ;;
7485 # Look at the argument we got. We use all the common list separators.
7486 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7487 for lt_pkg in $withval; do
7489 if test "X$lt_pkg" = "X$lt_p"; then
7507 # Check whether --enable-fast-install was given.
7508 if test "${enable_fast_install+set}" = set; then :
7509 enableval=$enable_fast_install; p=${PACKAGE-default}
7511 yes) enable_fast_install=yes ;;
7512 no) enable_fast_install=no ;;
7514 enable_fast_install=no
7515 # Look at the argument we got. We use all the common list separators.
7516 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7517 for pkg in $enableval; do
7519 if test "X$pkg" = "X$p"; then
7520 enable_fast_install=yes
7527 enable_fast_install=yes
7537 shared_archive_member_spec=
7538 case $host,$enable_shared in
7539 power*-*-aix[5-9]*,yes)
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7541 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7543 # Check whether --with-aix-soname was given.
7544 if test "${with_aix_soname+set}" = set; then :
7545 withval=$with_aix_soname; case $withval in
7549 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7552 lt_cv_with_aix_soname=$with_aix_soname
7554 if ${lt_cv_with_aix_soname+:} false; then :
7555 $as_echo_n "(cached) " >&6
7557 lt_cv_with_aix_soname=aix
7560 with_aix_soname=$lt_cv_with_aix_soname
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7564 $as_echo "$with_aix_soname" >&6; }
7565 if test aix != "$with_aix_soname"; then
7566 # For the AIX way of multilib, we name the shared archive member
7567 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7568 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7569 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7570 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7571 if test 64 = "${OBJECT_MODE-32}"; then
7572 shared_archive_member_spec=shr_64
7574 shared_archive_member_spec=shr
7592 # This can be used to rebuild libtool when needed
7593 LIBTOOL_DEPS=$ltmain
7595 # Always use our own libtool.
7596 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7627 test -z "$LN_S" && LN_S="ln -s"
7642 if test -n "${ZSH_VERSION+set}"; then
7643 setopt NO_GLOB_SUBST
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7647 $as_echo_n "checking for objdir... " >&6; }
7648 if ${lt_cv_objdir+:} false; then :
7649 $as_echo_n "(cached) " >&6
7651 rm -f .libs 2>/dev/null
7652 mkdir .libs 2>/dev/null
7653 if test -d .libs; then
7656 # MS-DOS does not allow filenames that begin with a dot.
7659 rmdir .libs 2>/dev/null
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7662 $as_echo "$lt_cv_objdir" >&6; }
7663 objdir=$lt_cv_objdir
7669 cat >>confdefs.h <<_ACEOF
7670 #define LT_OBJDIR "$lt_cv_objdir/"
7678 # AIX sometimes has problems with the GCC collect2 program. For some
7679 # reason, if we set the COLLECT_NAMES environment variable, the problems
7680 # vanish in a puff of smoke.
7681 if test set != "${COLLECT_NAMES+set}"; then
7683 export COLLECT_NAMES
7690 can_build_shared=yes
7692 # All known linkers require a '.a' archive for static linking (except MSVC,
7693 # which needs '.lib').
7696 with_gnu_ld=$lt_cv_prog_gnu_ld
7701 # Set sane defaults for various variables
7702 test -z "$CC" && CC=cc
7703 test -z "$LTCC" && LTCC=$CC
7704 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7705 test -z "$LD" && LD=ld
7706 test -z "$ac_objext" && ac_objext=o
7708 func_cc_basename $compiler
7709 cc_basename=$func_cc_basename_result
7712 # Only perform the check for file, if the check method requires it
7713 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7714 case $deplibs_check_method in
7716 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7718 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7719 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7720 $as_echo_n "(cached) " >&6
7724 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7727 lt_save_MAGIC_CMD=$MAGIC_CMD
7728 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7730 for ac_dir in $ac_dummy; do
7732 test -z "$ac_dir" && ac_dir=.
7733 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7734 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7735 if test -n "$file_magic_test_file"; then
7736 case $deplibs_check_method in
7738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7739 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7741 $EGREP "$file_magic_regex" > /dev/null; then
7746 *** Warning: the command libtool uses to detect shared libraries,
7747 *** $file_magic_cmd, produces output that libtool cannot recognize.
7748 *** The result is that libtool may fail to recognize shared libraries
7749 *** as such. This will affect the creation of libtool libraries that
7750 *** depend on shared libraries, but programs linked with such libtool
7751 *** libraries will work regardless of this problem. Nevertheless, you
7752 *** may want to report the problem to your system manager and/or to
7753 *** bug-libtool@gnu.org
7763 MAGIC_CMD=$lt_save_MAGIC_CMD
7768 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7769 if test -n "$MAGIC_CMD"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7771 $as_echo "$MAGIC_CMD" >&6; }
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7781 if test -z "$lt_cv_path_MAGIC_CMD"; then
7782 if test -n "$ac_tool_prefix"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7784 $as_echo_n "checking for file... " >&6; }
7785 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7786 $as_echo_n "(cached) " >&6
7790 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7793 lt_save_MAGIC_CMD=$MAGIC_CMD
7794 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7795 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7796 for ac_dir in $ac_dummy; do
7798 test -z "$ac_dir" && ac_dir=.
7799 if test -f "$ac_dir/file"; then
7800 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7801 if test -n "$file_magic_test_file"; then
7802 case $deplibs_check_method in
7804 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7805 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7806 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7807 $EGREP "$file_magic_regex" > /dev/null; then
7812 *** Warning: the command libtool uses to detect shared libraries,
7813 *** $file_magic_cmd, produces output that libtool cannot recognize.
7814 *** The result is that libtool may fail to recognize shared libraries
7815 *** as such. This will affect the creation of libtool libraries that
7816 *** depend on shared libraries, but programs linked with such libtool
7817 *** libraries will work regardless of this problem. Nevertheless, you
7818 *** may want to report the problem to your system manager and/or to
7819 *** bug-libtool@gnu.org
7829 MAGIC_CMD=$lt_save_MAGIC_CMD
7834 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7835 if test -n "$MAGIC_CMD"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7837 $as_echo "$MAGIC_CMD" >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7853 # Use C for the default configuration in the libtool script
7857 ac_cpp='$CPP $CPPFLAGS'
7858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863 # Source file extension for C test sources.
7866 # Object file extension for compiled C test sources.
7870 # Code to be used in simple compile tests
7871 lt_simple_compile_test_code="int some_variable = 0;"
7873 # Code to be used in simple link tests
7874 lt_simple_link_test_code='int main(){return(0);}'
7882 # If no C compiler was specified, use CC.
7885 # If no C compiler flags were specified, use CFLAGS.
7886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7888 # Allow CC to be a program name with arguments.
7891 # Save the default compiler, since it gets overwritten when the other
7892 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7893 compiler_DEFAULT=$CC
7895 # save warnings/boilerplate of simple test code
7896 ac_outfile=conftest.$ac_objext
7897 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7899 _lt_compiler_boilerplate=`cat conftest.err`
7902 ac_outfile=conftest.$ac_objext
7903 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7905 _lt_linker_boilerplate=`cat conftest.err`
7910 ## There is no encapsulation within the following macros, do not change
7911 ## the running order or otherwise move them around unless you know exactly
7912 ## what you are doing...
7913 if test -n "$compiler"; then
7915 lt_prog_compiler_no_builtin_flag=
7917 if test yes = "$GCC"; then
7918 case $cc_basename in
7920 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7922 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7926 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7927 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7928 $as_echo_n "(cached) " >&6
7930 lt_cv_prog_compiler_rtti_exceptions=no
7931 ac_outfile=conftest.$ac_objext
7932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7933 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7934 # Insert the option either (1) after the last *FLAGS variable, or
7935 # (2) before a word containing "conftest.", or (3) at the end.
7936 # Note that $ac_compile itself does not contain backslashes and begins
7937 # with a dollar sign (not a hyphen), so the echo should work correctly.
7938 # The option is referenced via a variable to avoid confusing sed.
7939 lt_compile=`echo "$ac_compile" | $SED \
7940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7942 -e 's:$: $lt_compiler_flag:'`
7943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7944 (eval "$lt_compile" 2>conftest.err)
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 if (exit $ac_status) && test -s "$ac_outfile"; then
7949 # The compiler can only warn and ignore the option if not recognized
7950 # So say no if there are warnings other than the usual output.
7951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7954 lt_cv_prog_compiler_rtti_exceptions=yes
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7961 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7963 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7964 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7976 lt_prog_compiler_wl=
7977 lt_prog_compiler_pic=
7978 lt_prog_compiler_static=
7981 if test yes = "$GCC"; then
7982 lt_prog_compiler_wl='-Wl,'
7983 lt_prog_compiler_static='-static'
7987 # All AIX code is PIC.
7988 if test ia64 = "$host_cpu"; then
7989 # AIX 5 now supports IA64 processor
7990 lt_prog_compiler_static='-Bstatic'
7992 lt_prog_compiler_pic='-fPIC'
7998 # see comment about AmigaOS4 .so support
7999 lt_prog_compiler_pic='-fPIC'
8002 # FIXME: we need at least 68020 code to build shared libraries, but
8003 # adding the '-m68020' flag to GCC prevents building anything better,
8005 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8010 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8011 # PIC is the default for these OSes.
8014 mingw* | cygwin* | pw32* | os2* | cegcc*)
8015 # This hack is so that the source file can tell whether it is being
8016 # built for inclusion in a dll (and should export symbols for example).
8017 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8018 # (--disable-auto-import) libraries
8019 lt_prog_compiler_pic='-DDLL_EXPORT'
8022 lt_prog_compiler_static='$wl-static'
8027 darwin* | rhapsody*)
8028 # PIC is the default on this platform
8029 # Common symbols not allowed in MH_DYLIB files
8030 lt_prog_compiler_pic='-fno-common'
8034 # PIC is the default for Haiku.
8035 # The "-static" flag exists, but is broken.
8036 lt_prog_compiler_static=
8040 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8041 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8042 # sets the default TLS model and affects inlining.
8048 lt_prog_compiler_pic='-fPIC'
8054 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8055 # Instead, we relocate shared libraries at runtime.
8059 # Just because we use GCC doesn't mean we suddenly get shared libraries
8060 # on systems that don't support them.
8061 lt_prog_compiler_can_build_shared=no
8066 # QNX uses GNU C++, but need to define -shared option too, otherwise
8068 lt_prog_compiler_pic='-fPIC -shared'
8072 if test -d /usr/nec; then
8073 lt_prog_compiler_pic=-Kconform_pic
8078 lt_prog_compiler_pic='-fPIC'
8082 case $cc_basename in
8083 nvcc*) # Cuda Compiler Driver 2.2
8084 lt_prog_compiler_wl='-Xlinker '
8085 if test -n "$lt_prog_compiler_pic"; then
8086 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8091 # PORTME Check for flag to pass linker flags through the system compiler.
8094 lt_prog_compiler_wl='-Wl,'
8095 if test ia64 = "$host_cpu"; then
8096 # AIX 5 now supports IA64 processor
8097 lt_prog_compiler_static='-Bstatic'
8099 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8103 darwin* | rhapsody*)
8104 # PIC is the default on this platform
8105 # Common symbols not allowed in MH_DYLIB files
8106 lt_prog_compiler_pic='-fno-common'
8107 case $cc_basename in
8109 # NAG Fortran compiler
8110 lt_prog_compiler_wl='-Wl,-Wl,,'
8111 lt_prog_compiler_pic='-PIC'
8112 lt_prog_compiler_static='-Bstatic'
8117 mingw* | cygwin* | pw32* | os2* | cegcc*)
8118 # This hack is so that the source file can tell whether it is being
8119 # built for inclusion in a dll (and should export symbols for example).
8120 lt_prog_compiler_pic='-DDLL_EXPORT'
8123 lt_prog_compiler_static='$wl-static'
8128 hpux9* | hpux10* | hpux11*)
8129 lt_prog_compiler_wl='-Wl,'
8130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8137 lt_prog_compiler_pic='+Z'
8140 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8141 lt_prog_compiler_static='$wl-a ${wl}archive'
8144 irix5* | irix6* | nonstopux*)
8145 lt_prog_compiler_wl='-Wl,'
8146 # PIC (with -KPIC) is the default.
8147 lt_prog_compiler_static='-non_shared'
8150 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8151 case $cc_basename in
8152 # old Intel for x86_64, which still supported -KPIC.
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_pic='-KPIC'
8156 lt_prog_compiler_static='-static'
8158 # icc used to be incompatible with GCC.
8159 # ICC 10 doesn't accept -KPIC any more.
8161 lt_prog_compiler_wl='-Wl,'
8162 lt_prog_compiler_pic='-fPIC'
8163 lt_prog_compiler_static='-static'
8165 # Lahey Fortran 8.1.
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='--shared'
8169 lt_prog_compiler_static='--static'
8172 # NAG Fortran compiler
8173 lt_prog_compiler_wl='-Wl,-Wl,,'
8174 lt_prog_compiler_pic='-PIC'
8175 lt_prog_compiler_static='-Bstatic'
8178 # Fabrice Bellard et al's Tiny C Compiler
8179 lt_prog_compiler_wl='-Wl,'
8180 lt_prog_compiler_pic='-fPIC'
8181 lt_prog_compiler_static='-static'
8183 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8184 # Portland Group compilers (*not* the Pentium gcc compiler,
8185 # which looks to be a dead project)
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='-fpic'
8188 lt_prog_compiler_static='-Bstatic'
8191 lt_prog_compiler_wl='-Wl,'
8192 # All Alpha code is PIC.
8193 lt_prog_compiler_static='-non_shared'
8195 xl* | bgxl* | bgf* | mpixl*)
8196 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8197 lt_prog_compiler_wl='-Wl,'
8198 lt_prog_compiler_pic='-qpic'
8199 lt_prog_compiler_static='-qstaticlink'
8202 case `$CC -V 2>&1 | sed 5q` in
8203 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8204 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8205 lt_prog_compiler_pic='-KPIC'
8206 lt_prog_compiler_static='-Bstatic'
8207 lt_prog_compiler_wl=''
8209 *Sun\ F* | *Sun*Fortran*)
8210 lt_prog_compiler_pic='-KPIC'
8211 lt_prog_compiler_static='-Bstatic'
8212 lt_prog_compiler_wl='-Qoption ld '
8216 lt_prog_compiler_pic='-KPIC'
8217 lt_prog_compiler_static='-Bstatic'
8218 lt_prog_compiler_wl='-Wl,'
8220 *Intel*\ [CF]*Compiler*)
8221 lt_prog_compiler_wl='-Wl,'
8222 lt_prog_compiler_pic='-fPIC'
8223 lt_prog_compiler_static='-static'
8226 lt_prog_compiler_wl='-Wl,'
8227 lt_prog_compiler_pic='-fpic'
8228 lt_prog_compiler_static='-Bstatic'
8236 lt_prog_compiler_pic='-KPIC'
8237 lt_prog_compiler_static='-Bstatic'
8241 # QNX uses GNU C++, but need to define -shared option too, otherwise
8243 lt_prog_compiler_pic='-fPIC -shared'
8246 osf3* | osf4* | osf5*)
8247 lt_prog_compiler_wl='-Wl,'
8248 # All OSF/1 code is PIC.
8249 lt_prog_compiler_static='-non_shared'
8253 lt_prog_compiler_static='-non_shared'
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
8259 case $cc_basename in
8260 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8261 lt_prog_compiler_wl='-Qoption ld ';;
8263 lt_prog_compiler_wl='-Wl,';;
8268 lt_prog_compiler_wl='-Qoption ld '
8269 lt_prog_compiler_pic='-PIC'
8270 lt_prog_compiler_static='-Bstatic'
8273 sysv4 | sysv4.2uw2* | sysv4.3*)
8274 lt_prog_compiler_wl='-Wl,'
8275 lt_prog_compiler_pic='-KPIC'
8276 lt_prog_compiler_static='-Bstatic'
8280 if test -d /usr/nec; then
8281 lt_prog_compiler_pic='-Kconform_pic'
8282 lt_prog_compiler_static='-Bstatic'
8286 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8287 lt_prog_compiler_wl='-Wl,'
8288 lt_prog_compiler_pic='-KPIC'
8289 lt_prog_compiler_static='-Bstatic'
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_can_build_shared=no
8298 lt_prog_compiler_pic='-pic'
8299 lt_prog_compiler_static='-Bstatic'
8303 lt_prog_compiler_can_build_shared=no
8309 # For platforms that do not support PIC, -DPIC is meaningless:
8311 lt_prog_compiler_pic=
8314 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8319 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8320 if ${lt_cv_prog_compiler_pic+:} false; then :
8321 $as_echo_n "(cached) " >&6
8323 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8326 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8327 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8330 # Check to make sure the PIC flag actually works.
8332 if test -n "$lt_prog_compiler_pic"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8334 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8335 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8336 $as_echo_n "(cached) " >&6
8338 lt_cv_prog_compiler_pic_works=no
8339 ac_outfile=conftest.$ac_objext
8340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8341 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8342 # Insert the option either (1) after the last *FLAGS variable, or
8343 # (2) before a word containing "conftest.", or (3) at the end.
8344 # Note that $ac_compile itself does not contain backslashes and begins
8345 # with a dollar sign (not a hyphen), so the echo should work correctly.
8346 # The option is referenced via a variable to avoid confusing sed.
8347 lt_compile=`echo "$ac_compile" | $SED \
8348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8350 -e 's:$: $lt_compiler_flag:'`
8351 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8352 (eval "$lt_compile" 2>conftest.err)
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 if (exit $ac_status) && test -s "$ac_outfile"; then
8357 # The compiler can only warn and ignore the option if not recognized
8358 # So say no if there are warnings other than the usual output.
8359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8362 lt_cv_prog_compiler_pic_works=yes
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8369 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8371 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8372 case $lt_prog_compiler_pic in
8374 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8377 lt_prog_compiler_pic=
8378 lt_prog_compiler_can_build_shared=no
8394 # Check to make sure the static flag actually works.
8396 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8398 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8399 if ${lt_cv_prog_compiler_static_works+:} false; then :
8400 $as_echo_n "(cached) " >&6
8402 lt_cv_prog_compiler_static_works=no
8403 save_LDFLAGS=$LDFLAGS
8404 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8405 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8406 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8407 # The linker can only warn and ignore the option if not recognized
8408 # So say no if there are warnings
8409 if test -s conftest.err; then
8410 # Append any errors to the config.log.
8411 cat conftest.err 1>&5
8412 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8414 if diff conftest.exp conftest.er2 >/dev/null; then
8415 lt_cv_prog_compiler_static_works=yes
8418 lt_cv_prog_compiler_static_works=yes
8422 LDFLAGS=$save_LDFLAGS
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8426 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8428 if test yes = "$lt_cv_prog_compiler_static_works"; then
8431 lt_prog_compiler_static=
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8441 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8442 if ${lt_cv_prog_compiler_c_o+:} false; then :
8443 $as_echo_n "(cached) " >&6
8445 lt_cv_prog_compiler_c_o=no
8446 $RM -r conftest 2>/dev/null
8450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8452 lt_compiler_flag="-o out/conftest2.$ac_objext"
8453 # Insert the option either (1) after the last *FLAGS variable, or
8454 # (2) before a word containing "conftest.", or (3) at the end.
8455 # Note that $ac_compile itself does not contain backslashes and begins
8456 # with a dollar sign (not a hyphen), so the echo should work correctly.
8457 lt_compile=`echo "$ac_compile" | $SED \
8458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8460 -e 's:$: $lt_compiler_flag:'`
8461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8462 (eval "$lt_compile" 2>out/conftest.err)
8464 cat out/conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8468 # The compiler can only warn and ignore the option if not recognized
8469 # So say no if there are warnings
8470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8473 lt_cv_prog_compiler_c_o=yes
8478 # SGI C++ compiler will create directory out/ii_files/ for
8479 # template instantiation
8480 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8481 $RM out/* && rmdir out
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8488 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8496 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8497 if ${lt_cv_prog_compiler_c_o+:} false; then :
8498 $as_echo_n "(cached) " >&6
8500 lt_cv_prog_compiler_c_o=no
8501 $RM -r conftest 2>/dev/null
8505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8507 lt_compiler_flag="-o out/conftest2.$ac_objext"
8508 # Insert the option either (1) after the last *FLAGS variable, or
8509 # (2) before a word containing "conftest.", or (3) at the end.
8510 # Note that $ac_compile itself does not contain backslashes and begins
8511 # with a dollar sign (not a hyphen), so the echo should work correctly.
8512 lt_compile=`echo "$ac_compile" | $SED \
8513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8515 -e 's:$: $lt_compiler_flag:'`
8516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8517 (eval "$lt_compile" 2>out/conftest.err)
8519 cat out/conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8523 # The compiler can only warn and ignore the option if not recognized
8524 # So say no if there are warnings
8525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8528 lt_cv_prog_compiler_c_o=yes
8533 # SGI C++ compiler will create directory out/ii_files/ for
8534 # template instantiation
8535 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8536 $RM out/* && rmdir out
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8543 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8548 hard_links=nottested
8549 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8550 # do not overwrite the value of need_locks provided by the user
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8552 $as_echo_n "checking if we can lock with hard links... " >&6; }
8555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8557 ln conftest.a conftest.b 2>&5 || hard_links=no
8558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8560 $as_echo "$hard_links" >&6; }
8561 if test no = "$hard_links"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8563 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8576 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8579 allow_undefined_flag=
8580 always_export_symbols=no
8582 archive_expsym_cmds=
8583 compiler_needs_object=no
8584 enable_shared_with_static_runtimes=no
8585 export_dynamic_flag_spec=
8586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8587 hardcode_automatic=no
8589 hardcode_direct_absolute=no
8590 hardcode_libdir_flag_spec=
8591 hardcode_libdir_separator=
8593 hardcode_shlibpath_var=unsupported
8595 link_all_deplibs=unknown
8598 old_archive_from_new_cmds=
8599 old_archive_from_expsyms_cmds=
8600 thread_safe_flag_spec=
8601 whole_archive_flag_spec=
8602 # include_expsyms should be a list of space-separated symbols to be *always*
8603 # included in the symbol list
8605 # exclude_expsyms can be an extended regexp of symbols to exclude
8606 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8607 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8608 # as well as any symbol that contains 'd'.
8609 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8610 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8611 # platforms (ab)use it in PIC code, but their linkers get confused if
8612 # the symbol is explicitly referenced. Since portable code cannot
8613 # rely on this symbol name, it's probably fine to never include it in
8614 # preloaded symbol tables.
8615 # Exclude shared library initialization/finalization symbols.
8616 extract_expsyms_cmds=
8619 cygwin* | mingw* | pw32* | cegcc*)
8620 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8621 # When not using gcc, we currently assume that we are using
8622 # Microsoft Visual C++.
8623 if test yes != "$GCC"; then
8628 # we just hope/assume this is gcc and not c89 (= MSVC++)
8638 # On some targets, GNU ld is compatible enough with the native linker
8639 # that we're better off using the native interface for both.
8640 lt_use_gnu_ld_interface=no
8641 if test yes = "$with_gnu_ld"; then
8644 # The AIX port of GNU ld has always aspired to compatibility
8645 # with the native linker. However, as the warning in the GNU ld
8646 # block says, versions before 2.19.5* couldn't really create working
8647 # shared libraries, regardless of the interface used.
8648 case `$LD -v 2>&1` in
8649 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8650 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8651 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8653 lt_use_gnu_ld_interface=yes
8658 lt_use_gnu_ld_interface=yes
8663 if test yes = "$lt_use_gnu_ld_interface"; then
8664 # If archive_cmds runs LD, not CC, wlarc should be empty
8667 # Set some defaults for GNU ld with shared library support. These
8668 # are reset later if shared libraries are not supported. Putting them
8669 # here allows them to be overridden if necessary.
8670 runpath_var=LD_RUN_PATH
8671 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8672 export_dynamic_flag_spec='$wl--export-dynamic'
8673 # ancient GNU ld didn't support --whole-archive et. al.
8674 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8675 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8677 whole_archive_flag_spec=
8679 supports_anon_versioning=no
8680 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8681 *GNU\ gold*) supports_anon_versioning=yes ;;
8682 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8683 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8684 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8685 *\ 2.11.*) ;; # other 2.11 versions
8686 *) supports_anon_versioning=yes ;;
8689 # See if GNU ld supports shared libraries.
8692 # On AIX/PPC, the GNU linker is very broken
8693 if test ia64 != "$host_cpu"; then
8697 *** Warning: the GNU linker, at least up to release 2.19, is reported
8698 *** to be unable to reliably create shared libraries on AIX.
8699 *** Therefore, libtool is disabling shared libraries support. If you
8700 *** really care for shared libraries, you may want to install binutils
8701 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8702 *** You will then need to restart the configuration process.
8711 # see comment about AmigaOS4 .so support
8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8713 archive_expsym_cmds=''
8716 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)'
8717 hardcode_libdir_flag_spec='-L$libdir'
8718 hardcode_minus_L=yes
8724 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8725 allow_undefined_flag=unsupported
8726 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8727 # support --undefined. This deserves some investigation. FIXME
8728 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8734 cygwin* | mingw* | pw32* | cegcc*)
8735 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8736 # as there is no search path for DLLs.
8737 hardcode_libdir_flag_spec='-L$libdir'
8738 export_dynamic_flag_spec='$wl--export-all-symbols'
8739 allow_undefined_flag=unsupported
8740 always_export_symbols=no
8741 enable_shared_with_static_runtimes=yes
8742 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'
8743 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8745 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8747 # If the export-symbols file already is a .def file, use it as
8748 # is; otherwise, prepend EXPORTS...
8749 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8750 cp $export_symbols $output_objdir/$soname.def;
8752 echo EXPORTS > $output_objdir/$soname.def;
8753 cat $export_symbols >> $output_objdir/$soname.def;
8755 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8763 link_all_deplibs=yes
8767 hardcode_libdir_flag_spec='-L$libdir'
8768 hardcode_minus_L=yes
8769 allow_undefined_flag=unsupported
8771 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8772 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8773 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8774 $ECHO EXPORTS >> $output_objdir/$libname.def~
8775 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8776 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8777 emximp -o $lib $output_objdir/$libname.def'
8778 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8779 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8780 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8781 $ECHO EXPORTS >> $output_objdir/$libname.def~
8783 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8784 prefix_cmds="$prefix_cmds -e 1d";
8786 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8787 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8788 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8789 emximp -o $lib $output_objdir/$libname.def'
8790 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8791 enable_shared_with_static_runtimes=yes
8796 hardcode_shlibpath_var=no
8797 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8798 export_dynamic_flag_spec='$wl-E'
8799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8800 # Instead, shared libraries are loaded at an image base (0x10000000 by
8801 # default) and relocated if they conflict, which is a slow very memory
8802 # consuming and fragmenting process. To avoid this, we pick a random,
8803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8804 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8805 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8806 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'
8809 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8811 if test linux-dietlibc = "$host_os"; then
8812 case $cc_basename in
8813 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8816 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8817 && test no = "$tmp_diet"
8819 tmp_addflag=' $pic_flag'
8820 tmp_sharedflag='-shared'
8821 case $cc_basename,$host_cpu in
8822 pgcc*) # Portland Group C compiler
8823 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'
8824 tmp_addflag=' $pic_flag'
8826 pgf77* | pgf90* | pgf95* | pgfortran*)
8827 # Portland Group f77 and f90 compilers
8828 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'
8829 tmp_addflag=' $pic_flag -Mnomain' ;;
8830 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8831 tmp_addflag=' -i_dynamic' ;;
8832 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8833 tmp_addflag=' -i_dynamic -nofor_main' ;;
8834 ifc* | ifort*) # Intel Fortran compiler
8835 tmp_addflag=' -nofor_main' ;;
8836 lf95*) # Lahey Fortran 8.1
8837 whole_archive_flag_spec=
8838 tmp_sharedflag='--shared' ;;
8839 nagfor*) # NAGFOR 5.3
8840 tmp_sharedflag='-Wl,-shared' ;;
8841 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8842 tmp_sharedflag='-qmkshrobj'
8844 nvcc*) # Cuda Compiler Driver 2.2
8845 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'
8846 compiler_needs_object=yes
8849 case `$CC -V 2>&1 | sed 5q` in
8850 *Sun\ C*) # Sun C 5.9
8851 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'
8852 compiler_needs_object=yes
8853 tmp_sharedflag='-G' ;;
8854 *Sun\ F*) # Sun Fortran 8.3
8855 tmp_sharedflag='-G' ;;
8857 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8859 if test yes = "$supports_anon_versioning"; then
8860 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8861 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8862 echo "local: *; };" >> $output_objdir/$libname.ver~
8863 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8866 case $cc_basename in
8868 export_dynamic_flag_spec='-rdynamic'
8870 xlf* | bgf* | bgxlf* | mpixlf*)
8871 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8872 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8874 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8875 if test yes = "$supports_anon_versioning"; then
8876 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8878 echo "local: *; };" >> $output_objdir/$libname.ver~
8879 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8890 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8894 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8899 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8903 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8904 *** create shared libraries on Solaris systems. Therefore, libtool
8905 *** is disabling shared libraries support. We urge you to upgrade GNU
8906 *** binutils to release 2.9.1 or newer. Another option is to modify
8907 *** your PATH or compiler configuration so that the native linker is
8908 *** used, and then restart.
8911 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8912 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8913 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8920 case `$LD -v 2>&1` in
8921 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8925 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8926 *** reliably create shared libraries on SCO systems. Therefore, libtool
8927 *** is disabling shared libraries support. We urge you to upgrade GNU
8928 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8929 *** your PATH or compiler configuration so that the native linker is
8930 *** used, and then restart.
8935 # For security reasons, it is highly recommended that you always
8936 # use absolute paths for naming shared libraries, and exclude the
8937 # DT_RUNPATH tag from executables and libraries. But doing so
8938 # requires that you compile everything twice, which is a pain.
8939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8940 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8951 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8954 hardcode_shlibpath_var=no
8958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8960 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8967 if test no = "$ld_shlibs"; then
8969 hardcode_libdir_flag_spec=
8970 export_dynamic_flag_spec=
8971 whole_archive_flag_spec=
8974 # PORTME fill in a description of your system's linker (not GNU ld)
8977 allow_undefined_flag=unsupported
8978 always_export_symbols=yes
8979 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'
8980 # Note: this linker hardcodes the directories in LIBPATH if there
8981 # are no directories specified by -L.
8982 hardcode_minus_L=yes
8983 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8984 # Neither direct hardcoding nor static linking is supported with a
8986 hardcode_direct=unsupported
8991 if test ia64 = "$host_cpu"; then
8992 # On IA64, the linker does run time linking by default, so we don't
8993 # have to do anything special.
8994 aix_use_runtimelinking=no
8995 exp_sym_flag='-Bexport'
8998 # If we're using GNU nm, then we don't want the "-C" option.
8999 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9000 # Without the "-l" option, or with the "-B" option, AIX nm treats
9001 # weak defined symbols like other global defined symbols, whereas
9002 # GNU nm marks them as "W".
9003 # While the 'weak' keyword is ignored in the Export File, we need
9004 # it in the Import File for the 'aix-soname' feature, so we have
9005 # to replace the "-B" option with "-P" for AIX nm.
9006 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9007 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'
9009 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'
9011 aix_use_runtimelinking=no
9013 # Test if we are trying to use run time linking or normal
9014 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9015 # have runtime linking enabled, and use it for executables.
9016 # For shared libraries, we enable/disable runtime linking
9017 # depending on the kind of the shared library created -
9018 # when "with_aix_soname,aix_use_runtimelinking" is:
9019 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9020 # "aix,yes" lib.so shared, rtl:yes, for executables
9021 # lib.a static archive
9022 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9023 # lib.a(lib.so.V) shared, rtl:no, for executables
9024 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9025 # lib.a(lib.so.V) shared, rtl:no
9026 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9027 # lib.a static archive
9028 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9029 for ld_flag in $LDFLAGS; do
9030 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9031 aix_use_runtimelinking=yes
9035 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9036 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9037 # so we don't have lib.a shared libs to link our executables.
9038 # We have to force runtime linking in this case.
9039 aix_use_runtimelinking=yes
9040 LDFLAGS="$LDFLAGS -Wl,-brtl"
9045 exp_sym_flag='-bexport'
9046 no_entry_flag='-bnoentry'
9049 # When large executables or shared objects are built, AIX ld can
9050 # have problems creating the table of contents. If linking a library
9051 # or program results in "error TOC overflow" add -mminimal-toc to
9052 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9053 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9057 hardcode_direct_absolute=yes
9058 hardcode_libdir_separator=':'
9059 link_all_deplibs=yes
9060 file_list_spec='$wl-f,'
9061 case $with_aix_soname,$aix_use_runtimelinking in
9062 aix,*) ;; # traditional, no import file
9063 svr4,* | *,yes) # use import file
9064 # The Import File defines what to hardcode.
9066 hardcode_direct_absolute=no
9070 if test yes = "$GCC"; then
9071 case $host_os in aix4.[012]|aix4.[012].*)
9072 # We only want to do this on AIX 4.2 and lower, the check
9073 # below for broken collect2 doesn't work under 4.3+
9074 collect2name=`$CC -print-prog-name=collect2`
9075 if test -f "$collect2name" &&
9076 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9078 # We have reworked collect2
9081 # We have old collect2
9082 hardcode_direct=unsupported
9083 # It fails to find uninstalled libraries when the uninstalled
9084 # path is not listed in the libpath. Setting hardcode_minus_L
9085 # to unsupported forces relinking
9086 hardcode_minus_L=yes
9087 hardcode_libdir_flag_spec='-L$libdir'
9088 hardcode_libdir_separator=
9092 shared_flag='-shared'
9093 if test yes = "$aix_use_runtimelinking"; then
9094 shared_flag="$shared_flag "'$wl-G'
9096 # Need to ensure runtime linking is disabled for the traditional
9097 # shared library, or the linker may eventually find shared libraries
9098 # /with/ Import File - we do not want to mix them.
9099 shared_flag_aix='-shared'
9100 shared_flag_svr4='-shared $wl-G'
9103 if test ia64 = "$host_cpu"; then
9104 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9105 # chokes on -Wl,-G. The following line is correct:
9108 if test yes = "$aix_use_runtimelinking"; then
9111 shared_flag='$wl-bM:SRE'
9113 shared_flag_aix='$wl-bM:SRE'
9114 shared_flag_svr4='$wl-G'
9118 export_dynamic_flag_spec='$wl-bexpall'
9119 # It seems that -bexpall does not export symbols beginning with
9120 # underscore (_), so it is better to generate a list of symbols to export.
9121 always_export_symbols=yes
9122 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9123 # Warning - without using the other runtime loading flags (-brtl),
9124 # -berok will link without error, but may produce a broken library.
9125 allow_undefined_flag='-berok'
9126 # Determine the default libpath from the value encoded in an
9128 if test set = "${lt_cv_aix_libpath+set}"; then
9129 aix_libpath=$lt_cv_aix_libpath
9131 if ${lt_cv_aix_libpath_+:} false; then :
9132 $as_echo_n "(cached) " >&6
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9145 if ac_fn_c_try_link "$LINENO"; then :
9147 lt_aix_libpath_sed='
9148 /Import File Strings/,/^$/ {
9150 s/^0 *\([^ ]*\) *$/\1/
9154 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9155 # Check for a 64-bit object if we didn't find anything.
9156 if test -z "$lt_cv_aix_libpath_"; then
9157 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 if test -z "$lt_cv_aix_libpath_"; then
9163 lt_cv_aix_libpath_=/usr/lib:/lib
9168 aix_libpath=$lt_cv_aix_libpath_
9171 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9172 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
9174 if test ia64 = "$host_cpu"; then
9175 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9176 allow_undefined_flag="-z nodefs"
9177 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"
9179 # Determine the default libpath from the value encoded in an
9181 if test set = "${lt_cv_aix_libpath+set}"; then
9182 aix_libpath=$lt_cv_aix_libpath
9184 if ${lt_cv_aix_libpath_+:} false; then :
9185 $as_echo_n "(cached) " >&6
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9198 if ac_fn_c_try_link "$LINENO"; then :
9200 lt_aix_libpath_sed='
9201 /Import File Strings/,/^$/ {
9203 s/^0 *\([^ ]*\) *$/\1/
9207 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208 # Check for a 64-bit object if we didn't find anything.
9209 if test -z "$lt_cv_aix_libpath_"; then
9210 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9213 rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215 if test -z "$lt_cv_aix_libpath_"; then
9216 lt_cv_aix_libpath_=/usr/lib:/lib
9221 aix_libpath=$lt_cv_aix_libpath_
9224 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9225 # Warning - without using the other run time loading flags,
9226 # -berok will link without error, but may produce a broken library.
9227 no_undefined_flag=' $wl-bernotok'
9228 allow_undefined_flag=' $wl-berok'
9229 if test yes = "$with_gnu_ld"; then
9230 # We only use this code for GNU lds that support --whole-archive.
9231 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9233 # Exported symbols can be pulled into shared objects from archives
9234 whole_archive_flag_spec='$convenience'
9236 archive_cmds_need_lc=yes
9237 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9238 # -brtl affects multiple linker settings, -berok does not and is overridden later
9239 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9240 if test svr4 != "$with_aix_soname"; then
9241 # This is similar to how AIX traditionally builds its shared libraries.
9242 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'
9244 if test aix != "$with_aix_soname"; then
9245 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'
9247 # used by -dlpreopen to get the symbols
9248 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9250 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9258 # see comment about AmigaOS4 .so support
9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9260 archive_expsym_cmds=''
9263 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)'
9264 hardcode_libdir_flag_spec='-L$libdir'
9265 hardcode_minus_L=yes
9271 export_dynamic_flag_spec=-rdynamic
9274 cygwin* | mingw* | pw32* | cegcc*)
9275 # When not using gcc, we currently assume that we are using
9276 # Microsoft Visual C++.
9277 # hardcode_libdir_flag_spec is actually meaningless, as there is
9278 # no search path for DLLs.
9279 case $cc_basename in
9282 hardcode_libdir_flag_spec=' '
9283 allow_undefined_flag=unsupported
9284 always_export_symbols=yes
9286 # Tell ltmain to make .lib files, not .a files.
9288 # Tell ltmain to make .dll files, not .so files.
9290 # FIXME: Setting linknames here is a bad hack.
9291 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9292 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9293 cp "$export_symbols" "$output_objdir/$soname.def";
9294 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9296 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9298 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9300 # The linker will not automatically build a static lib if we build a DLL.
9301 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9302 enable_shared_with_static_runtimes=yes
9303 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9304 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9306 old_postinstall_cmds='chmod 644 $oldlib'
9307 postlink_cmds='lt_outputfile="@OUTPUT@"~
9308 lt_tool_outputfile="@TOOL_OUTPUT@"~
9309 case $lt_outputfile in
9312 lt_outputfile=$lt_outputfile.exe
9313 lt_tool_outputfile=$lt_tool_outputfile.exe
9316 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9317 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9318 $RM "$lt_outputfile.manifest";
9322 # Assume MSVC wrapper
9323 hardcode_libdir_flag_spec=' '
9324 allow_undefined_flag=unsupported
9325 # Tell ltmain to make .lib files, not .a files.
9327 # Tell ltmain to make .dll files, not .so files.
9329 # FIXME: Setting linknames here is a bad hack.
9330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9331 # The linker will automatically build a .lib file if we build a DLL.
9332 old_archive_from_new_cmds='true'
9333 # FIXME: Should let the user specify the lib program.
9334 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9335 enable_shared_with_static_runtimes=yes
9340 darwin* | rhapsody*)
9343 archive_cmds_need_lc=no
9345 hardcode_automatic=yes
9346 hardcode_shlibpath_var=unsupported
9347 if test yes = "$lt_cv_ld_force_load"; then
9348 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\"`'
9351 whole_archive_flag_spec=''
9353 link_all_deplibs=yes
9354 allow_undefined_flag=$_lt_dar_allow_undefined
9355 case $cc_basename in
9356 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9357 *) _lt_dar_can_shared=$GCC ;;
9359 if test yes = "$_lt_dar_can_shared"; then
9360 output_verbose_link_cmd=func_echo_all
9361 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9362 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9363 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"
9364 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"
9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_libdir_flag_spec='-L$libdir'
9375 hardcode_shlibpath_var=no
9378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9379 # support. Future versions do this automatically, but an explicit c++rt0.o
9380 # does not break anything, and helps significantly (at the cost of a little
9383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9384 hardcode_libdir_flag_spec='-R$libdir'
9386 hardcode_shlibpath_var=no
9389 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_minus_L=yes
9394 hardcode_shlibpath_var=no
9397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9398 freebsd* | dragonfly*)
9399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9400 hardcode_libdir_flag_spec='-R$libdir'
9402 hardcode_shlibpath_var=no
9406 if test yes = "$GCC"; then
9407 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'
9409 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'
9411 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9412 hardcode_libdir_separator=:
9415 # hardcode_minus_L: Not really in the search PATH,
9416 # but as the default location of the library.
9417 hardcode_minus_L=yes
9418 export_dynamic_flag_spec='$wl-E'
9422 if test yes,no = "$GCC,$with_gnu_ld"; then
9423 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9427 if test no = "$with_gnu_ld"; then
9428 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9429 hardcode_libdir_separator=:
9431 hardcode_direct_absolute=yes
9432 export_dynamic_flag_spec='$wl-E'
9433 # hardcode_minus_L: Not really in the search PATH,
9434 # but as the default location of the library.
9435 hardcode_minus_L=yes
9440 if test yes,no = "$GCC,$with_gnu_ld"; then
9443 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9462 # Older versions of the 11.00 compiler do not understand -b yet
9463 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9465 $as_echo_n "checking if $CC understands -b... " >&6; }
9466 if ${lt_cv_prog_compiler__b+:} false; then :
9467 $as_echo_n "(cached) " >&6
9469 lt_cv_prog_compiler__b=no
9470 save_LDFLAGS=$LDFLAGS
9471 LDFLAGS="$LDFLAGS -b"
9472 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9473 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9474 # The linker can only warn and ignore the option if not recognized
9475 # So say no if there are warnings
9476 if test -s conftest.err; then
9477 # Append any errors to the config.log.
9478 cat conftest.err 1>&5
9479 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9481 if diff conftest.exp conftest.er2 >/dev/null; then
9482 lt_cv_prog_compiler__b=yes
9485 lt_cv_prog_compiler__b=yes
9489 LDFLAGS=$save_LDFLAGS
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9493 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9495 if test yes = "$lt_cv_prog_compiler__b"; then
9496 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9504 if test no = "$with_gnu_ld"; then
9505 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9506 hardcode_libdir_separator=:
9511 hardcode_shlibpath_var=no
9515 hardcode_direct_absolute=yes
9516 export_dynamic_flag_spec='$wl-E'
9518 # hardcode_minus_L: Not really in the search PATH,
9519 # but as the default location of the library.
9520 hardcode_minus_L=yes
9526 irix5* | irix6* | nonstopux*)
9527 if test yes = "$GCC"; then
9528 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'
9529 # Try to use the -exported_symbol ld option, if it does not
9530 # work, assume that -exports_file does not work either and
9531 # implicitly export all symbols.
9532 # This should be the same for all languages, so no per-tag cache variable.
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9534 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9535 if ${lt_cv_irix_exported_symbol+:} false; then :
9536 $as_echo_n "(cached) " >&6
9538 save_LDFLAGS=$LDFLAGS
9539 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 int foo (void) { return 0; }
9544 if ac_fn_c_try_link "$LINENO"; then :
9545 lt_cv_irix_exported_symbol=yes
9547 lt_cv_irix_exported_symbol=no
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551 LDFLAGS=$save_LDFLAGS
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9554 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9555 if test yes = "$lt_cv_irix_exported_symbol"; then
9556 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'
9559 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'
9560 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'
9562 archive_cmds_need_lc='no'
9563 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9564 hardcode_libdir_separator=:
9566 link_all_deplibs=yes
9570 case $cc_basename in
9572 # Fabrice Bellard et al's Tiny C Compiler
9574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9583 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9585 hardcode_libdir_flag_spec='-R$libdir'
9587 hardcode_shlibpath_var=no
9591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9594 hardcode_libdir_separator=:
9595 hardcode_shlibpath_var=no
9602 if test -f /usr/libexec/ld.so; then
9604 hardcode_shlibpath_var=no
9605 hardcode_direct_absolute=yes
9606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9609 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9610 export_dynamic_flag_spec='$wl-E'
9612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9613 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9621 hardcode_libdir_flag_spec='-L$libdir'
9622 hardcode_minus_L=yes
9623 allow_undefined_flag=unsupported
9625 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9626 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9627 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9628 $ECHO EXPORTS >> $output_objdir/$libname.def~
9629 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9630 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9631 emximp -o $lib $output_objdir/$libname.def'
9632 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9633 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9634 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9635 $ECHO EXPORTS >> $output_objdir/$libname.def~
9637 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9638 prefix_cmds="$prefix_cmds -e 1d";
9640 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9641 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9642 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9643 emximp -o $lib $output_objdir/$libname.def'
9644 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9645 enable_shared_with_static_runtimes=yes
9649 if test yes = "$GCC"; then
9650 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9651 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'
9653 allow_undefined_flag=' -expect_unresolved \*'
9654 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'
9656 archive_cmds_need_lc='no'
9657 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9658 hardcode_libdir_separator=:
9661 osf4* | osf5*) # as osf3* with the addition of -msym flag
9662 if test yes = "$GCC"; then
9663 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9664 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'
9665 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9667 allow_undefined_flag=' -expect_unresolved \*'
9668 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'
9669 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~
9670 $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'
9672 # Both c and cxx compiler support -rpath directly
9673 hardcode_libdir_flag_spec='-rpath $libdir'
9675 archive_cmds_need_lc='no'
9676 hardcode_libdir_separator=:
9680 no_undefined_flag=' -z defs'
9681 if test yes = "$GCC"; then
9683 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9685 $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'
9687 case `$CC -V 2>&1` in
9690 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9692 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9696 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9698 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9702 hardcode_libdir_flag_spec='-R$libdir'
9703 hardcode_shlibpath_var=no
9705 solaris2.[0-5] | solaris2.[0-5].*) ;;
9707 # The compiler driver will combine and reorder linker options,
9708 # but understands '-z linker_flag'. GCC discards it without '$wl',
9709 # but is careful enough not to reorder.
9710 # Supported since Solaris 2.6 (maybe 2.5.1?)
9711 if test yes = "$GCC"; then
9712 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9714 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9718 link_all_deplibs=yes
9722 if test sequent = "$host_vendor"; then
9723 # Use $CC to link under sequent, because it throws in some extra .o
9724 # files that make .init and .fini sections work.
9725 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9729 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_minus_L=yes
9732 hardcode_shlibpath_var=no
9736 case $host_vendor in
9738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739 hardcode_direct=yes # is this really true???
9742 ## LD is ld it makes a PLAMLIB
9743 ## CC just makes a GrossModule.
9744 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9745 reload_cmds='$CC -r -o $output$reload_objs'
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9753 runpath_var='LD_RUN_PATH'
9754 hardcode_shlibpath_var=no
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_shlibpath_var=no
9760 export_dynamic_flag_spec='-Bexport'
9764 if test -d /usr/nec; then
9765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_shlibpath_var=no
9767 runpath_var=LD_RUN_PATH
9768 hardcode_runpath_var=yes
9773 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9774 no_undefined_flag='$wl-z,text'
9775 archive_cmds_need_lc=no
9776 hardcode_shlibpath_var=no
9777 runpath_var='LD_RUN_PATH'
9779 if test yes = "$GCC"; then
9780 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9788 sysv5* | sco3.2v5* | sco5v6*)
9789 # Note: We CANNOT use -z defs as we might desire, because we do not
9790 # link with -lc, and that would cause any symbols used from libc to
9791 # always be unresolved, which means just about no library would
9792 # ever link correctly. If we're not using GNU ld we use -z text
9793 # though, which does catch some bad symbols but isn't as heavy-handed
9795 no_undefined_flag='$wl-z,text'
9796 allow_undefined_flag='$wl-z,nodefs'
9797 archive_cmds_need_lc=no
9798 hardcode_shlibpath_var=no
9799 hardcode_libdir_flag_spec='$wl-R,$libdir'
9800 hardcode_libdir_separator=':'
9801 link_all_deplibs=yes
9802 export_dynamic_flag_spec='$wl-Bexport'
9803 runpath_var='LD_RUN_PATH'
9805 if test yes = "$GCC"; then
9806 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9809 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9810 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_libdir_flag_spec='-L$libdir'
9817 hardcode_shlibpath_var=no
9825 if test sni = "$host_vendor"; then
9827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9828 export_dynamic_flag_spec='$wl-Blargedynsym'
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9835 $as_echo "$ld_shlibs" >&6; }
9836 test no = "$ld_shlibs" && can_build_shared=no
9838 with_gnu_ld=$with_gnu_ld
9855 # Do we need to explicitly link libc?
9857 case "x$archive_cmds_need_lc" in
9859 # Assume -lc should be added
9860 archive_cmds_need_lc=yes
9862 if test yes,yes = "$GCC,$enable_shared"; then
9863 case $archive_cmds in
9865 # FIXME: we may have to deal with multi-command sequences.
9868 # Test whether the compiler implicitly links with -lc since on some
9869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9870 # to ld, don't add -lc before -lgcc.
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9872 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9873 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9874 $as_echo_n "(cached) " >&6
9877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9880 (eval $ac_compile) 2>&5
9882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9883 test $ac_status = 0; } 2>conftest.err; then
9886 libobjs=conftest.$ac_objext
9888 wl=$lt_prog_compiler_wl
9889 pic_flag=$lt_prog_compiler_pic
9895 lt_save_allow_undefined_flag=$allow_undefined_flag
9896 allow_undefined_flag=
9897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9898 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9901 test $ac_status = 0; }
9903 lt_cv_archive_cmds_need_lc=no
9905 lt_cv_archive_cmds_need_lc=yes
9907 allow_undefined_flag=$lt_save_allow_undefined_flag
9909 cat conftest.err 1>&5
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9915 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9916 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10075 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10077 if test yes = "$GCC"; then
10079 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10080 *) lt_awk_arg='/^libraries:/' ;;
10083 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10084 *) lt_sed_strip_eq='s|=/|/|g' ;;
10086 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10087 case $lt_search_path_spec in
10089 # if the path contains ";" then we assume it to be the separator
10090 # otherwise default to the standard path separator (i.e. ":") - it is
10091 # assumed that no part of a normal pathname contains ";" but that should
10092 # okay in the real world where ";" in dirpaths is itself problematic.
10093 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10096 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10099 # Ok, now we have the path, separated by spaces, we can step through it
10100 # and add multilib dir if necessary...
10101 lt_tmp_lt_search_path_spec=
10102 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10103 # ...but if some path component already ends with the multilib dir we assume
10104 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10105 case "$lt_multi_os_dir; $lt_search_path_spec " in
10106 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10110 for lt_sys_path in $lt_search_path_spec; do
10111 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10112 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10113 elif test -n "$lt_multi_os_dir"; then
10114 test -d "$lt_sys_path" && \
10115 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10118 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10119 BEGIN {RS = " "; FS = "/|\n";} {
10122 for (lt_i = NF; lt_i > 0; lt_i--) {
10123 if ($lt_i != "" && $lt_i != ".") {
10124 if ($lt_i == "..") {
10127 if (lt_count == 0) {
10128 lt_foo = "/" $lt_i lt_foo;
10135 if (lt_foo != "") { lt_freq[lt_foo]++; }
10136 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10138 # AWK program above erroneously prepends '/' to C:/dos/paths
10141 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10142 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10144 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10146 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10148 library_names_spec=
10149 libname_spec='lib$name'
10153 postuninstall_cmds=
10157 shlibpath_overrides_runpath=unknown
10159 dynamic_linker="$host_os ld.so"
10160 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10161 need_lib_prefix=unknown
10162 hardcode_into_libs=no
10164 # when you set need_version to no, make sure it does not cause -set_version
10165 # flags to be left without arguments
10166 need_version=unknown
10172 version_type=linux # correct to gnu/linux during the next big refactor
10173 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10174 shlibpath_var=LIBPATH
10176 # AIX 3 has no versioning support, so we append a major version to the name.
10177 soname_spec='$libname$release$shared_ext$major'
10181 version_type=linux # correct to gnu/linux during the next big refactor
10184 hardcode_into_libs=yes
10185 if test ia64 = "$host_cpu"; then
10186 # AIX 5 supports IA64
10187 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10188 shlibpath_var=LD_LIBRARY_PATH
10190 # With GCC up to 2.95.x, collect2 would create an import file
10191 # for dependence libraries. The import file would start with
10192 # the line '#! .'. This would cause the generated library to
10193 # depend on '.', always an invalid library. This was fixed in
10194 # development snapshots of GCC prior to 3.0.
10196 aix4 | aix4.[01] | aix4.[01].*)
10197 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10199 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10202 can_build_shared=no
10206 # Using Import Files as archive members, it is possible to support
10207 # filename-based versioning of shared library archives on AIX. While
10208 # this would work for both with and without runtime linking, it will
10209 # prevent static linking of such archives. So we do filename-based
10210 # shared library versioning with .so extension only, which is used
10211 # when both runtime linking and shared linking is enabled.
10212 # Unfortunately, runtime linking may impact performance, so we do
10213 # not want this to be the default eventually. Also, we use the
10214 # versioned .so libs for executables only if there is the -brtl
10215 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10216 # To allow for filename-based versioning support, we need to create
10217 # libNAME.so.V as an archive file, containing:
10218 # *) an Import File, referring to the versioned filename of the
10219 # archive as well as the shared archive member, telling the
10220 # bitwidth (32 or 64) of that shared object, and providing the
10221 # list of exported symbols of that shared object, eventually
10222 # decorated with the 'weak' keyword
10223 # *) the shared object with the F_LOADONLY flag set, to really avoid
10224 # it being seen by the linker.
10225 # At run time we better use the real file rather than another symlink,
10226 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10228 case $with_aix_soname,$aix_use_runtimelinking in
10229 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10230 # soname into executable. Probably we can add versioning support to
10231 # collect2, so additional links can be useful in future.
10232 aix,yes) # traditional libtool
10233 dynamic_linker='AIX unversionable lib.so'
10234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10235 # instead of lib<name>.a to let people know that these are not
10236 # typical AIX shared libraries.
10237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10239 aix,no) # traditional AIX only
10240 dynamic_linker='AIX lib.a(lib.so.V)'
10241 # We preserve .a as extension for shared libraries through AIX4.2
10242 # and later when we are not doing run time linking.
10243 library_names_spec='$libname$release.a $libname.a'
10244 soname_spec='$libname$release$shared_ext$major'
10246 svr4,*) # full svr4 only
10247 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10248 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10249 # We do not specify a path in Import Files, so LIBPATH fires.
10250 shlibpath_overrides_runpath=yes
10252 *,yes) # both, prefer svr4
10253 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10254 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10255 # unpreferred sharedlib libNAME.a needs extra handling
10256 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"'
10257 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"'
10258 # We do not specify a path in Import Files, so LIBPATH fires.
10259 shlibpath_overrides_runpath=yes
10261 *,no) # both, prefer aix
10262 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10263 library_names_spec='$libname$release.a $libname.a'
10264 soname_spec='$libname$release$shared_ext$major'
10265 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10266 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)'
10267 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"'
10270 shlibpath_var=LIBPATH
10277 # Since July 2007 AmigaOS4 officially supports .so libraries.
10278 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10282 library_names_spec='$libname.ixlibrary $libname.a'
10283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10284 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'
10290 library_names_spec='$libname$shared_ext'
10291 dynamic_linker="$host_os ld.so"
10292 shlibpath_var=LIBRARY_PATH
10296 version_type=linux # correct to gnu/linux during the next big refactor
10298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10299 soname_spec='$libname$release$shared_ext$major'
10300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10304 # the default ld.so.conf also contains /usr/contrib/lib and
10305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10306 # libtool to hard-code these into programs
10309 cygwin* | mingw* | pw32* | cegcc*)
10310 version_type=windows
10315 case $GCC,$cc_basename in
10318 library_names_spec='$libname.dll.a'
10319 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10320 postinstall_cmds='base_file=`basename \$file`~
10321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10322 dldir=$destdir/`dirname \$dlpath`~
10323 test -d \$dldir || mkdir -p \$dldir~
10324 $install_prog $dir/$dlname \$dldir/$dlname~
10325 chmod a+x \$dldir/$dlname~
10326 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10327 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10330 dlpath=$dir/\$dldll~
10332 shlibpath_overrides_runpath=yes
10336 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10337 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10339 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10342 # MinGW DLLs use traditional 'lib' prefix
10343 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10346 # pw32 DLLs use 'pw' prefix rather than 'lib'
10347 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10350 dynamic_linker='Win32 ld.exe'
10355 libname_spec='$name'
10356 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10357 library_names_spec='$libname.dll.lib'
10361 sys_lib_search_path_spec=
10364 for lt_path in $LIB
10367 # Let DOS variable expansion print the short 8.3 style file name.
10368 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10369 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10372 # Convert to MSYS style.
10373 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10376 # Convert to unix form, then to dos form, then back to unix form
10377 # but this time dos style (no spaces!) so that the unix form looks
10378 # like /cygdrive/c/PROGRA~1:/cygdr...
10379 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10380 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10381 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10384 sys_lib_search_path_spec=$LIB
10385 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10386 # It is most probably a Windows format PATH.
10387 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10391 # FIXME: find the short name or the path components, as spaces are
10392 # common. (e.g. "Program Files" -> "PROGRA~1")
10396 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10397 postinstall_cmds='base_file=`basename \$file`~
10398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10399 dldir=$destdir/`dirname \$dlpath`~
10400 test -d \$dldir || mkdir -p \$dldir~
10401 $install_prog $dir/$dlname \$dldir/$dlname'
10402 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10403 dlpath=$dir/\$dldll~
10405 shlibpath_overrides_runpath=yes
10406 dynamic_linker='Win32 link.exe'
10410 # Assume MSVC wrapper
10411 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10412 dynamic_linker='Win32 ld.exe'
10415 # FIXME: first we should search . and the directory the executable is in
10419 darwin* | rhapsody*)
10420 dynamic_linker="$host_os dyld"
10421 version_type=darwin
10424 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10425 soname_spec='$libname$release$major$shared_ext'
10426 shlibpath_overrides_runpath=yes
10427 shlibpath_var=DYLD_LIBRARY_PATH
10428 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10435 version_type=linux # correct to gnu/linux during the next big refactor
10438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10439 soname_spec='$libname$release$shared_ext$major'
10440 shlibpath_var=LD_LIBRARY_PATH
10443 freebsd* | dragonfly*)
10444 # DragonFly does not have aout. When/if they implement a new
10445 # versioning mechanism, adjust this.
10446 if test -x /usr/bin/objformat; then
10447 objformat=`/usr/bin/objformat`
10450 freebsd[23].*) objformat=aout ;;
10451 *) objformat=elf ;;
10454 version_type=freebsd-$objformat
10455 case $version_type in
10457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10458 soname_spec='$libname$release$shared_ext$major'
10463 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10467 shlibpath_var=LD_LIBRARY_PATH
10470 shlibpath_overrides_runpath=yes
10472 freebsd3.[01]* | freebsdelf3.[01]*)
10473 shlibpath_overrides_runpath=yes
10474 hardcode_into_libs=yes
10476 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10477 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10478 shlibpath_overrides_runpath=no
10479 hardcode_into_libs=yes
10481 *) # from 4.6 on, and DragonFly
10482 shlibpath_overrides_runpath=yes
10483 hardcode_into_libs=yes
10489 version_type=linux # correct to gnu/linux during the next big refactor
10492 dynamic_linker="$host_os runtime_loader"
10493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10494 soname_spec='$libname$release$shared_ext$major'
10495 shlibpath_var=LIBRARY_PATH
10496 shlibpath_overrides_runpath=no
10497 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10498 hardcode_into_libs=yes
10501 hpux9* | hpux10* | hpux11*)
10502 # Give a soname corresponding to the major version so that dld.sl refuses to
10503 # link against other versions.
10510 hardcode_into_libs=yes
10511 dynamic_linker="$host_os dld.so"
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10515 soname_spec='$libname$release$shared_ext$major'
10516 if test 32 = "$HPUX_IA64_MODE"; then
10517 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10518 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10520 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10521 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10526 hardcode_into_libs=yes
10527 dynamic_linker="$host_os dld.sl"
10528 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10531 soname_spec='$libname$release$shared_ext$major'
10532 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10537 dynamic_linker="$host_os dld.sl"
10538 shlibpath_var=SHLIB_PATH
10539 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10541 soname_spec='$libname$release$shared_ext$major'
10544 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10545 postinstall_cmds='chmod 555 $lib'
10546 # or fails outright, so override atomically:
10547 install_override_mode=555
10551 version_type=linux # correct to gnu/linux during the next big refactor
10554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10555 soname_spec='$libname$release$shared_ext$major'
10556 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 hardcode_into_libs=yes
10562 irix5* | irix6* | nonstopux*)
10564 nonstopux*) version_type=nonstopux ;;
10566 if test yes = "$lt_cv_prog_gnu_ld"; then
10567 version_type=linux # correct to gnu/linux during the next big refactor
10574 soname_spec='$libname$release$shared_ext$major'
10575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10577 irix5* | nonstopux*)
10578 libsuff= shlibsuff=
10581 case $LD in # libtool.m4 will add one of these switches to LD
10582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10583 libsuff= shlibsuff= libmagic=32-bit;;
10584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10585 libsuff=32 shlibsuff=N32 libmagic=N32;;
10586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10587 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10588 *) libsuff= shlibsuff= libmagic=never-match;;
10592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10593 shlibpath_overrides_runpath=no
10594 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10595 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10596 hardcode_into_libs=yes
10599 # No shared lib support for Linux oldld, aout, or coff.
10600 linux*oldld* | linux*aout* | linux*coff*)
10605 version_type=none # Android doesn't support versioned libraries.
10608 library_names_spec='$libname$release$shared_ext'
10609 soname_spec='$libname$release$shared_ext'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes
10614 # This implies no fast_install, which is unacceptable.
10615 # Some rework will be needed to allow for fast_install
10616 # before this can be enabled.
10617 hardcode_into_libs=yes
10619 dynamic_linker='Android linker'
10620 # Don't embed -rpath directories since the linker doesn't support them.
10621 hardcode_libdir_flag_spec='-L$libdir'
10624 # This must be glibc/ELF.
10625 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10626 version_type=linux # correct to gnu/linux during the next big refactor
10629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10630 soname_spec='$libname$release$shared_ext$major'
10631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=no
10635 # Some binutils ld are patched to set DT_RUNPATH
10636 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 lt_cv_shlibpath_overrides_runpath=no
10640 save_LDFLAGS=$LDFLAGS
10641 save_libdir=$libdir
10642 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10643 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10655 if ac_fn_c_try_link "$LINENO"; then :
10656 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10657 lt_cv_shlibpath_overrides_runpath=yes
10660 rm -f core conftest.err conftest.$ac_objext \
10661 conftest$ac_exeext conftest.$ac_ext
10662 LDFLAGS=$save_LDFLAGS
10663 libdir=$save_libdir
10667 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10669 # This implies no fast_install, which is unacceptable.
10670 # Some rework will be needed to allow for fast_install
10671 # before this can be enabled.
10672 hardcode_into_libs=yes
10674 # Ideally, we could use ldconfig to report *all* directores which are
10675 # searched for libraries, however this is still not possible. Aside from not
10676 # being certain /sbin/ldconfig is available, command
10677 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10678 # even though it is searched at run-time. Try to do the best guess by
10679 # appending ld.so.conf contents (and includes) to the search path.
10680 if test -f /etc/ld.so.conf; then
10681 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' ' '`
10682 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10685 # We used to test for /lib/ld.so.1 and disable shared libraries on
10686 # powerpc, because MkLinux only supported shared libraries with the
10687 # GNU dynamic linker. Since this was broken with cross compilers,
10688 # most powerpc-linux boxes support dynamic linking these days and
10689 # people can always --disable-shared, the test was removed, and we
10690 # assume the GNU/Linux dynamic linker is in use.
10691 dynamic_linker='GNU/Linux ld.so'
10698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10699 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10701 dynamic_linker='NetBSD (a.out) ld.so'
10703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10704 soname_spec='$libname$release$shared_ext$major'
10705 dynamic_linker='NetBSD ld.elf_so'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 hardcode_into_libs=yes
10713 version_type=linux # correct to gnu/linux during the next big refactor
10714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes
10723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10724 soname_spec='$libname$release$shared_ext$major'
10725 shlibpath_var=LD_LIBRARY_PATH
10726 shlibpath_overrides_runpath=no
10727 hardcode_into_libs=yes
10728 dynamic_linker='ldqnx.so'
10731 openbsd* | bitrig*)
10733 sys_lib_dlsearch_path_spec=/usr/lib
10735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10740 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10742 shlibpath_var=LD_LIBRARY_PATH
10743 shlibpath_overrides_runpath=yes
10747 libname_spec='$name'
10748 version_type=windows
10752 # OS/2 can only load a DLL with a base name of 8 characters or less.
10753 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10754 v=$($ECHO $release$versuffix | tr -d .-);
10755 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10756 $ECHO $n$v`$shared_ext'
10757 library_names_spec='${libname}_dll.$libext'
10758 dynamic_linker='OS/2 ld.exe'
10759 shlibpath_var=BEGINLIBPATH
10760 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10762 postinstall_cmds='base_file=`basename \$file`~
10763 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10764 dldir=$destdir/`dirname \$dlpath`~
10765 test -d \$dldir || mkdir -p \$dldir~
10766 $install_prog $dir/$dlname \$dldir/$dlname~
10767 chmod a+x \$dldir/$dlname~
10768 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10769 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10772 dlpath=$dir/\$dldll~
10776 osf3* | osf4* | osf5*)
10780 soname_spec='$libname$release$shared_ext$major'
10781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10792 version_type=linux # correct to gnu/linux during the next big refactor
10795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10796 soname_spec='$libname$release$shared_ext$major'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=yes
10799 hardcode_into_libs=yes
10800 # ldd complains unless libraries are executable
10801 postinstall_cmds='chmod +x $lib'
10806 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10807 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=yes
10810 if test yes = "$with_gnu_ld"; then
10817 version_type=linux # correct to gnu/linux during the next big refactor
10818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10819 soname_spec='$libname$release$shared_ext$major'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 case $host_vendor in
10823 shlibpath_overrides_runpath=no
10825 runpath_var=LD_RUN_PATH
10833 shlibpath_overrides_runpath=no
10834 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10840 if test -d /usr/nec; then
10841 version_type=linux # correct to gnu/linux during the next big refactor
10842 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10843 soname_spec='$libname$shared_ext.$major'
10844 shlibpath_var=LD_LIBRARY_PATH
10848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10853 soname_spec='$libname$release$shared_ext$major'
10854 shlibpath_var=LD_LIBRARY_PATH
10855 shlibpath_overrides_runpath=yes
10856 hardcode_into_libs=yes
10857 if test yes = "$with_gnu_ld"; then
10858 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10860 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10863 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10867 sys_lib_dlsearch_path_spec='/usr/lib'
10871 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10872 version_type=linux # correct to gnu/linux during the next big refactor
10875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=no
10878 hardcode_into_libs=yes
10882 version_type=linux # correct to gnu/linux during the next big refactor
10883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10884 soname_spec='$libname$release$shared_ext$major'
10885 shlibpath_var=LD_LIBRARY_PATH
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10893 $as_echo "$dynamic_linker" >&6; }
10894 test no = "$dynamic_linker" && can_build_shared=no
10896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10897 if test yes = "$GCC"; then
10898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10901 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10902 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10905 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10906 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10909 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10910 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10912 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10913 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10915 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10916 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11015 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11017 if test -n "$hardcode_libdir_flag_spec" ||
11018 test -n "$runpath_var" ||
11019 test yes = "$hardcode_automatic"; then
11021 # We can hardcode non-existent directories.
11022 if test no != "$hardcode_direct" &&
11023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11024 # have to relink, otherwise we might link with an installed library
11025 # when we should be linking with a yet-to-be-installed one
11026 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11027 test no != "$hardcode_minus_L"; then
11028 # Linking always hardcodes the temporary library directory.
11029 hardcode_action=relink
11031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11032 hardcode_action=immediate
11035 # We cannot hardcode anything, or else we can only hardcode existing
11037 hardcode_action=unsupported
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11040 $as_echo "$hardcode_action" >&6; }
11042 if test relink = "$hardcode_action" ||
11043 test yes = "$inherit_rpath"; then
11044 # Fast installation is not supported
11045 enable_fast_install=no
11046 elif test yes = "$shlibpath_overrides_runpath" ||
11047 test no = "$enable_shared"; then
11048 # Fast installation is not necessary
11049 enable_fast_install=needless
11057 if test yes != "$enable_dlopen"; then
11058 enable_dlopen=unknown
11059 enable_dlopen_self=unknown
11060 enable_dlopen_self_static=unknown
11067 lt_cv_dlopen=load_add_on
11069 lt_cv_dlopen_self=yes
11072 mingw* | pw32* | cegcc*)
11073 lt_cv_dlopen=LoadLibrary
11078 lt_cv_dlopen=dlopen
11083 # if libdl is installed we need to link against it
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11085 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11086 if ${ac_cv_lib_dl_dlopen+:} false; then :
11087 $as_echo_n "(cached) " >&6
11089 ac_check_lib_save_LIBS=$LIBS
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 ac_cv_lib_dl_dlopen=yes
11112 ac_cv_lib_dl_dlopen=no
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11119 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11120 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11121 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11126 lt_cv_dlopen_self=yes
11133 # Don't try to run any link tests for TPF. We know it's impossible
11134 # because TPF is a cross-compiler, and we know how we open DSOs.
11135 lt_cv_dlopen=dlopen
11137 lt_cv_dlopen_self=no
11141 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11142 if test "x$ac_cv_func_shl_load" = xyes; then :
11143 lt_cv_dlopen=shl_load
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11146 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11147 if ${ac_cv_lib_dld_shl_load+:} false; then :
11148 $as_echo_n "(cached) " >&6
11150 ac_check_lib_save_LIBS=$LIBS
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11155 /* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11165 return shl_load ();
11170 if ac_fn_c_try_link "$LINENO"; then :
11171 ac_cv_lib_dld_shl_load=yes
11173 ac_cv_lib_dld_shl_load=no
11175 rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
11177 LIBS=$ac_check_lib_save_LIBS
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11180 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11181 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11182 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11184 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11185 if test "x$ac_cv_func_dlopen" = xyes; then :
11186 lt_cv_dlopen=dlopen
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11189 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11190 if ${ac_cv_lib_dl_dlopen+:} false; then :
11191 $as_echo_n "(cached) " >&6
11193 ac_check_lib_save_LIBS=$LIBS
11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11213 if ac_fn_c_try_link "$LINENO"; then :
11214 ac_cv_lib_dl_dlopen=yes
11216 ac_cv_lib_dl_dlopen=no
11218 rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11220 LIBS=$ac_check_lib_save_LIBS
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11223 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11224 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11225 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11228 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11229 if ${ac_cv_lib_svld_dlopen+:} false; then :
11230 $as_echo_n "(cached) " >&6
11232 ac_check_lib_save_LIBS=$LIBS
11233 LIBS="-lsvld $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 ac_cv_lib_svld_dlopen=yes
11255 ac_cv_lib_svld_dlopen=no
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11262 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11263 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11264 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11267 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11268 if ${ac_cv_lib_dld_dld_link+:} false; then :
11269 $as_echo_n "(cached) " >&6
11271 ac_check_lib_save_LIBS=$LIBS
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11276 /* Override any GCC internal prototype to avoid an error.
11277 Use char because int might match the return type of a GCC
11278 builtin and then its argument prototype would still apply. */
11286 return dld_link ();
11291 if ac_fn_c_try_link "$LINENO"; then :
11292 ac_cv_lib_dld_dld_link=yes
11294 ac_cv_lib_dld_dld_link=no
11296 rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_lib_save_LIBS
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11301 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11302 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11303 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11324 if test no = "$lt_cv_dlopen"; then
11330 case $lt_cv_dlopen in
11332 save_CPPFLAGS=$CPPFLAGS
11333 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11335 save_LDFLAGS=$LDFLAGS
11336 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11339 LIBS="$lt_cv_dlopen_libs $LIBS"
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11342 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11343 if ${lt_cv_dlopen_self+:} false; then :
11344 $as_echo_n "(cached) " >&6
11346 if test yes = "$cross_compiling"; then :
11347 lt_cv_dlopen_self=cross
11349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11350 lt_status=$lt_dlunknown
11351 cat > conftest.$ac_ext <<_LT_EOF
11352 #line $LINENO "configure"
11353 #include "confdefs.h"
11362 # define LT_DLGLOBAL RTLD_GLOBAL
11365 # define LT_DLGLOBAL DL_GLOBAL
11367 # define LT_DLGLOBAL 0
11371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11372 find out it does not work in some platform. */
11373 #ifndef LT_DLLAZY_OR_NOW
11375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11378 # define LT_DLLAZY_OR_NOW DL_LAZY
11381 # define LT_DLLAZY_OR_NOW RTLD_NOW
11384 # define LT_DLLAZY_OR_NOW DL_NOW
11386 # define LT_DLLAZY_OR_NOW 0
11393 /* When -fvisibility=hidden is used, assume the code has been annotated
11394 correspondingly for the symbols needed. */
11395 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11396 int fnord () __attribute__((visibility("default")));
11399 int fnord () { return 42; }
11402 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11403 int status = $lt_dlunknown;
11407 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11410 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11411 else puts (dlerror ());
11413 /* dlclose (self); */
11421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11422 (eval $ac_link) 2>&5
11424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11425 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11426 (./conftest; exit; ) >&5 2>/dev/null
11428 case x$lt_status in
11429 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11430 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11431 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11434 # compilation failed
11435 lt_cv_dlopen_self=no
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11443 $as_echo "$lt_cv_dlopen_self" >&6; }
11445 if test yes = "$lt_cv_dlopen_self"; then
11446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11448 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11449 if ${lt_cv_dlopen_self_static+:} false; then :
11450 $as_echo_n "(cached) " >&6
11452 if test yes = "$cross_compiling"; then :
11453 lt_cv_dlopen_self_static=cross
11455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11456 lt_status=$lt_dlunknown
11457 cat > conftest.$ac_ext <<_LT_EOF
11458 #line $LINENO "configure"
11459 #include "confdefs.h"
11468 # define LT_DLGLOBAL RTLD_GLOBAL
11471 # define LT_DLGLOBAL DL_GLOBAL
11473 # define LT_DLGLOBAL 0
11477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11478 find out it does not work in some platform. */
11479 #ifndef LT_DLLAZY_OR_NOW
11481 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11484 # define LT_DLLAZY_OR_NOW DL_LAZY
11487 # define LT_DLLAZY_OR_NOW RTLD_NOW
11490 # define LT_DLLAZY_OR_NOW DL_NOW
11492 # define LT_DLLAZY_OR_NOW 0
11499 /* When -fvisibility=hidden is used, assume the code has been annotated
11500 correspondingly for the symbols needed. */
11501 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11502 int fnord () __attribute__((visibility("default")));
11505 int fnord () { return 42; }
11508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11509 int status = $lt_dlunknown;
11513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11516 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11517 else puts (dlerror ());
11519 /* dlclose (self); */
11527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11528 (eval $ac_link) 2>&5
11530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11531 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11532 (./conftest; exit; ) >&5 2>/dev/null
11534 case x$lt_status in
11535 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11536 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11537 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11540 # compilation failed
11541 lt_cv_dlopen_self_static=no
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11549 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11552 CPPFLAGS=$save_CPPFLAGS
11553 LDFLAGS=$save_LDFLAGS
11558 case $lt_cv_dlopen_self in
11559 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11560 *) enable_dlopen_self=unknown ;;
11563 case $lt_cv_dlopen_self_static in
11564 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11565 *) enable_dlopen_self_static=unknown ;;
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11588 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11589 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11590 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11591 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11593 $as_echo "yes" >&6; }
11595 # FIXME - insert some real tests, host_os isn't really good enough
11598 if test -n "$STRIP"; then
11599 striplib="$STRIP -x"
11600 old_striplib="$STRIP -S"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11602 $as_echo "yes" >&6; }
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11626 # Report what library types will actually be built
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11628 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11630 $as_echo "$can_build_shared" >&6; }
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11633 $as_echo_n "checking whether to build shared libraries... " >&6; }
11634 test no = "$can_build_shared" && enable_shared=no
11636 # On AIX, shared libraries and static libraries use the same namespace, and
11637 # are all built from PIC.
11640 test yes = "$enable_shared" && enable_static=no
11641 if test -n "$RANLIB"; then
11642 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11643 postinstall_cmds='$RANLIB $lib'
11648 if test ia64 != "$host_cpu"; then
11649 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11650 yes,aix,yes) ;; # shared object as lib.so file only
11651 yes,svr4,*) ;; # shared object as lib.so archive member only
11652 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11658 $as_echo "$enable_shared" >&6; }
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11661 $as_echo_n "checking whether to build static libraries... " >&6; }
11662 # Make sure either enable_shared or enable_static is yes.
11663 test yes = "$enable_shared" || enable_static=yes
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11665 $as_echo "$enable_static" >&6; }
11672 ac_cpp='$CPP $CPPFLAGS'
11673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11693 ac_config_commands="$ac_config_commands libtool"
11698 # Only expand once:
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11702 $as_echo_n "checking whether ln -s works... " >&6; }
11704 if test "$LN_S" = "ln -s"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11706 $as_echo "yes" >&6; }
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11709 $as_echo "no, using $LN_S" >&6; }
11712 for ac_prog in 'bison -y' byacc
11714 # Extract the first word of "$ac_prog", so it can be a program name with args.
11715 set dummy $ac_prog; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if ${ac_cv_prog_YACC+:} false; then :
11719 $as_echo_n "(cached) " >&6
11721 if test -n "$YACC"; then
11722 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11731 ac_cv_prog_YACC="$ac_prog"
11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 YACC=$ac_cv_prog_YACC
11742 if test -n "$YACC"; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11744 $as_echo "$YACC" >&6; }
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747 $as_echo "no" >&6; }
11751 test -n "$YACC" && break
11753 test -n "$YACC" || YACC="yacc"
11756 am__api_version='1.15'
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11759 $as_echo_n "checking whether build environment is sane... " >&6; }
11760 # Reject unsafe characters in $srcdir or the absolute working directory
11761 # name. Accept space and tab only in the latter.
11765 *[\\\"\#\$\&\'\`$am_lf]*)
11766 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11769 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11770 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11773 # Do 'set' in a subshell so we don't clobber the current shell's
11774 # arguments. Must try -L first in case configure is actually a
11775 # symlink; some systems play weird games with the mod time of symlinks
11776 # (eg FreeBSD returns the mod time of the symlink's containing
11780 for am_try in 1 2; do
11781 echo "timestamp, slept: $am_has_slept" > conftest.file
11782 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11783 if test "$*" = "X"; then
11785 set X `ls -t "$srcdir/configure" conftest.file`
11787 if test "$*" != "X $srcdir/configure conftest.file" \
11788 && test "$*" != "X conftest.file $srcdir/configure"; then
11790 # If neither matched, then we have a broken ls. This can happen
11791 # if, for instance, CONFIG_SHELL is bash and it inherits a
11792 # broken ls alias from the environment. This has actually
11793 # happened. Such a system could not be considered "sane".
11794 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
11795 alias in your environment" "$LINENO" 5
11797 if test "$2" = conftest.file || test $am_try -eq 2; then
11804 test "$2" = conftest.file
11810 as_fn_error $? "newly created file is older than distributed files!
11811 Check your system clock" "$LINENO" 5
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11814 $as_echo "yes" >&6; }
11815 # If we didn't sleep, we still need to ensure time stamps of config.status and
11816 # generated files are strictly newer.
11818 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11823 rm -f conftest.file
11825 test "$program_prefix" != NONE &&
11826 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11827 # Use a double $ so make ignores it.
11828 test "$program_suffix" != NONE &&
11829 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11830 # Double any \ or $.
11831 # By default was `s,x,x', remove it if useless.
11832 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11833 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11835 if test x"${MISSING+set}" != xset; then
11836 case $am_aux_dir in
11838 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11840 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11843 # Use eval to expand $SHELL
11844 if eval "$MISSING --is-lightweight"; then
11845 am_missing_run="$MISSING "
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11849 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11852 if test x"${install_sh+set}" != xset; then
11853 case $am_aux_dir in
11855 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11857 install_sh="\${SHELL} $am_aux_dir/install-sh"
11861 # Installed binaries are usually stripped using 'strip' when the user
11862 # run "make install-strip". However 'strip' might not be the right
11863 # tool to use in cross-compilation environments, therefore Automake
11864 # will honor the 'STRIP' environment variable to overrule this program.
11865 if test "$cross_compiling" != no; then
11866 if test -n "$ac_tool_prefix"; then
11867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11868 set dummy ${ac_tool_prefix}strip; ac_word=$2
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870 $as_echo_n "checking for $ac_word... " >&6; }
11871 if ${ac_cv_prog_STRIP+:} false; then :
11872 $as_echo_n "(cached) " >&6
11874 if test -n "$STRIP"; then
11875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
11883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11894 STRIP=$ac_cv_prog_STRIP
11895 if test -n "$STRIP"; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11897 $as_echo "$STRIP" >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11905 if test -z "$ac_cv_prog_STRIP"; then
11907 # Extract the first word of "strip", so it can be a program name with args.
11908 set dummy strip; ac_word=$2
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 $as_echo_n "checking for $ac_word... " >&6; }
11911 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11912 $as_echo_n "(cached) " >&6
11914 if test -n "$ac_ct_STRIP"; then
11915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_prog_ac_ct_STRIP="strip"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11935 if test -n "$ac_ct_STRIP"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11937 $as_echo "$ac_ct_STRIP" >&6; }
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11943 if test "x$ac_ct_STRIP" = x; then
11946 case $cross_compiling:$ac_tool_warned in
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11950 ac_tool_warned=yes ;;
11955 STRIP="$ac_cv_prog_STRIP"
11959 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11962 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11963 if test -z "$MKDIR_P"; then
11964 if ${ac_cv_path_mkdir+:} false; then :
11965 $as_echo_n "(cached) " >&6
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11971 test -z "$as_dir" && as_dir=.
11972 for ac_prog in mkdir gmkdir; do
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11975 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11976 'mkdir (GNU coreutils) '* | \
11977 'mkdir (coreutils) '* | \
11978 'mkdir (fileutils) '4.1*)
11979 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11989 test -d ./--version && rmdir ./--version
11990 if test "${ac_cv_path_mkdir+set}" = set; then
11991 MKDIR_P="$ac_cv_path_mkdir -p"
11993 # As a last resort, use the slow shell script. Don't cache a
11994 # value for MKDIR_P within a source directory, because that will
11995 # break other packages using the cache if that directory is
11996 # removed, or if the value is a relative name.
11997 MKDIR_P="$ac_install_sh -d"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12001 $as_echo "$MKDIR_P" >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12004 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12006 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12007 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12008 $as_echo_n "(cached) " >&6
12010 cat >conftest.make <<\_ACEOF
12013 @echo '@@@%%%=$(MAKE)=@@@%%%'
12015 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12016 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12017 *@@@%%%=?*=@@@%%%*)
12018 eval ac_cv_prog_make_${ac_make}_set=yes;;
12020 eval ac_cv_prog_make_${ac_make}_set=no;;
12022 rm -f conftest.make
12024 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026 $as_echo "yes" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12031 SET_MAKE="MAKE=${MAKE-make}"
12034 rm -rf .tst 2>/dev/null
12035 mkdir .tst 2>/dev/null
12036 if test -d .tst; then
12041 rmdir .tst 2>/dev/null
12043 DEPDIR="${am__leading_dot}deps"
12045 ac_config_commands="$ac_config_commands depfiles"
12048 am_make=${MAKE-make}
12049 cat > confinc << 'END'
12051 @echo this is the am__doit target
12054 # If we don't find an include directive, just comment out the code.
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
12056 $as_echo_n "checking for style of include used by $am_make... " >&6; }
12060 # First try GNU make style include.
12061 echo "include confinc" > confmf
12062 # Ignore all kinds of additional output from 'make'.
12063 case `$am_make -s -f confmf 2> /dev/null` in #(
12064 *the\ am__doit\ target*)
12065 am__include=include
12070 # Now try BSD make style include.
12071 if test "$am__include" = "#"; then
12072 echo '.include "confinc"' > confmf
12073 case `$am_make -s -f confmf 2> /dev/null` in #(
12074 *the\ am__doit\ target*)
12075 am__include=.include
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
12084 $as_echo "$_am_result" >&6; }
12085 rm -f confinc confmf
12087 # Check whether --enable-dependency-tracking was given.
12088 if test "${enable_dependency_tracking+set}" = set; then :
12089 enableval=$enable_dependency_tracking;
12092 if test "x$enable_dependency_tracking" != xno; then
12093 am_depcomp="$ac_aux_dir/depcomp"
12097 if test "x$enable_dependency_tracking" != xno; then
12106 # Check whether --enable-silent-rules was given.
12107 if test "${enable_silent_rules+set}" = set; then :
12108 enableval=$enable_silent_rules;
12111 case $enable_silent_rules in # (((
12112 yes) AM_DEFAULT_VERBOSITY=0;;
12113 no) AM_DEFAULT_VERBOSITY=1;;
12114 *) AM_DEFAULT_VERBOSITY=1;;
12116 am_make=${MAKE-make}
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12118 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12119 if ${am_cv_make_support_nested_variables+:} false; then :
12120 $as_echo_n "(cached) " >&6
12122 if $as_echo 'TRUE=$(BAR$(V))
12128 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12129 am_cv_make_support_nested_variables=yes
12131 am_cv_make_support_nested_variables=no
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12135 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12136 if test $am_cv_make_support_nested_variables = yes; then
12138 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12140 AM_V=$AM_DEFAULT_VERBOSITY
12141 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12145 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12146 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12147 # is not polluted with repeated "-I."
12148 am__isrc=' -I$(srcdir)'
12149 # test to see if srcdir already configured
12150 if test -f $srcdir/config.status; then
12151 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12155 # test whether we have cygpath
12156 if test -z "$CYGPATH_W"; then
12157 if (cygpath --version) >/dev/null 2>/dev/null; then
12158 CYGPATH_W='cygpath -w'
12165 # Define the identity of the package.
12171 cat >>confdefs.h <<_ACEOF
12172 #define PACKAGE "$PACKAGE"
12176 cat >>confdefs.h <<_ACEOF
12177 #define VERSION "$VERSION"
12180 # Some tools Automake needs.
12182 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12185 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12188 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12191 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12194 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12196 # For better backward compatibility. To be removed once Automake 1.9.x
12197 # dies out for good. For more background, see:
12198 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12199 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12200 mkdir_p='$(MKDIR_P)'
12202 # We need awk for the "check" target (and possibly the TAP driver). The
12203 # system "awk" is bad on some platforms.
12204 # Always define AMTAR for backward compatibility. Yes, it's still used
12205 # in the wild :-( We should find a proper way to deprecate it ...
12206 AMTAR='$${TAR-tar}'
12209 # We'll loop over all known methods to create a tar archive until one works.
12210 _am_tools='gnutar pax cpio none'
12212 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12218 depcc="$CC" am_compiler_list=
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12221 $as_echo_n "checking dependency style of $depcc... " >&6; }
12222 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12223 $as_echo_n "(cached) " >&6
12225 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12226 # We make a subdir and do the tests there. Otherwise we can end up
12227 # making bogus files that we don't know about and never remove. For
12228 # instance it was reported that on HP-UX the gcc test will end up
12229 # making a dummy file named 'D' -- because '-MD' means "put the output
12231 rm -rf conftest.dir
12233 # Copy depcomp to subdir because otherwise we won't find it if we're
12234 # using a relative directory.
12235 cp "$am_depcomp" conftest.dir
12237 # We will build objects and dependencies in a subdirectory because
12238 # it helps to detect inapplicable dependency modes. For instance
12239 # both Tru64's cc and ICC support -MD to output dependencies as a
12240 # side effect of compilation, but ICC will put the dependencies in
12241 # the current directory while Tru64 will put them in the object
12245 am_cv_CC_dependencies_compiler_type=none
12246 if test "$am_compiler_list" = ""; then
12247 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12249 am__universal=false
12250 case " $depcc " in #(
12251 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12254 for depmode in $am_compiler_list; do
12255 # Setup a source with many dependencies, because some compilers
12256 # like to wrap large dependency lists on column 80 (with \), and
12257 # we should not choose a depcomp mode which is confused by this.
12259 # We need to recreate these files for each test, as the compiler may
12260 # overwrite some of them when testing with obscure command lines.
12261 # This happens at least with the AIX C compiler.
12263 for i in 1 2 3 4 5 6; do
12264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12265 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12266 # Solaris 10 /bin/sh.
12267 echo '/* dummy */' > sub/conftst$i.h
12269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12271 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12272 # mode. It turns out that the SunPro C++ compiler does not properly
12273 # handle '-M -o', and we need to detect this. Also, some Intel
12274 # versions had trouble with output in subdirs.
12275 am__obj=sub/conftest.${OBJEXT-o}
12276 am__minus_obj="-o $am__obj"
12279 # This depmode causes a compiler race in universal mode.
12280 test "$am__universal" = false || continue
12283 # After this tag, mechanisms are not by side-effect, so they'll
12284 # only be used when explicitly requested.
12285 if test "x$enable_dependency_tracking" = xyes; then
12291 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12292 # This compiler won't grok '-c -o', but also, the minuso test has
12293 # not run yet. These depmodes are late enough in the game, and
12294 # so weak that their functioning should not be impacted.
12295 am__obj=conftest.${OBJEXT-o}
12300 if depmode=$depmode \
12301 source=sub/conftest.c object=$am__obj \
12302 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12303 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12304 >/dev/null 2>conftest.err &&
12305 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12306 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12307 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12308 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12309 # icc doesn't choke on unknown options, it will just issue warnings
12310 # or remarks (even with -Werror). So we grep stderr for any message
12311 # that says an option was ignored or not supported.
12312 # When given -MP, icc 7.0 and 7.1 complain thusly:
12313 # icc: Command line warning: ignoring option '-M'; no argument required
12314 # The diagnosis changed in icc 8.0:
12315 # icc: Command line remark: option '-MP' not supported
12316 if (grep 'ignoring option' conftest.err ||
12317 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12318 am_cv_CC_dependencies_compiler_type=$depmode
12325 rm -rf conftest.dir
12327 am_cv_CC_dependencies_compiler_type=none
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12332 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12333 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12336 test "x$enable_dependency_tracking" != xno \
12337 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12338 am__fastdepCC_TRUE=
12339 am__fastdepCC_FALSE='#'
12341 am__fastdepCC_TRUE='#'
12342 am__fastdepCC_FALSE=
12347 # POSIX will say in a future version that running "rm -f" with no argument
12348 # is OK; and we want to be able to make that assumption in our Makefile
12349 # recipes. So use an aggressive probe to check that the usage we want is
12350 # actually supported "in the wild" to an acceptable degree.
12351 # See automake bug#10828.
12352 # To make any issue more visible, cause the running configure to be aborted
12353 # by default if the 'rm' program in use doesn't match our expectations; the
12354 # user can still override this though.
12355 if rm -f && rm -fr && rm -rf; then : OK; else
12359 Your 'rm' program seems unable to run without file operands specified
12360 on the command line, even when the '-f' option is present. This is contrary
12361 to the behaviour of most rm programs out there, and not conforming with
12362 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12364 Please tell bug-automake@gnu.org about your system, including the value
12365 of your $PATH and any error possibly output before this message. This
12366 can help us improve future automake versions.
12369 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12370 echo 'Configuration will proceed anyway, since you have set the' >&2
12371 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12375 Aborting the configuration process, to ensure you take notice of the issue.
12377 You can download and install GNU coreutils to get an 'rm' implementation
12378 that behaves properly: <http://www.gnu.org/software/coreutils/>.
12380 If you want to complete the configuration process using your problematic
12381 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12382 to "yes", and re-run configure.
12385 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
12391 $as_echo_n "checking for library containing dlsym... " >&6; }
12392 if ${ac_cv_search_dlsym+:} false; then :
12393 $as_echo_n "(cached) " >&6
12395 ac_func_search_save_LIBS=$LIBS
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12414 for ac_lib in '' dl; do
12415 if test -z "$ac_lib"; then
12416 ac_res="none required"
12419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12421 if ac_fn_c_try_link "$LINENO"; then :
12422 ac_cv_search_dlsym=$ac_res
12424 rm -f core conftest.err conftest.$ac_objext \
12426 if ${ac_cv_search_dlsym+:} false; then :
12430 if ${ac_cv_search_dlsym+:} false; then :
12433 ac_cv_search_dlsym=no
12435 rm conftest.$ac_ext
12436 LIBS=$ac_func_search_save_LIBS
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
12439 $as_echo "$ac_cv_search_dlsym" >&6; }
12440 ac_res=$ac_cv_search_dlsym
12441 if test "$ac_res" != no; then :
12442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12447 $as_echo_n "checking for library containing pthread_create... " >&6; }
12448 if ${ac_cv_search_pthread_create+:} false; then :
12449 $as_echo_n "(cached) " >&6
12451 ac_func_search_save_LIBS=$LIBS
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12455 /* Override any GCC internal prototype to avoid an error.
12456 Use char because int might match the return type of a GCC
12457 builtin and then its argument prototype would still apply. */
12461 char pthread_create ();
12465 return pthread_create ();
12470 for ac_lib in '' pthread; do
12471 if test -z "$ac_lib"; then
12472 ac_res="none required"
12475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12477 if ac_fn_c_try_link "$LINENO"; then :
12478 ac_cv_search_pthread_create=$ac_res
12480 rm -f core conftest.err conftest.$ac_objext \
12482 if ${ac_cv_search_pthread_create+:} false; then :
12486 if ${ac_cv_search_pthread_create+:} false; then :
12489 ac_cv_search_pthread_create=no
12491 rm conftest.$ac_ext
12492 LIBS=$ac_func_search_save_LIBS
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12495 $as_echo "$ac_cv_search_pthread_create" >&6; }
12496 ac_res=$ac_cv_search_pthread_create
12497 if test "$ac_res" != no; then :
12498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12503 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12504 if ${ac_cv_search_clock_gettime+:} false; then :
12505 $as_echo_n "(cached) " >&6
12507 ac_func_search_save_LIBS=$LIBS
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12511 /* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12517 char clock_gettime ();
12521 return clock_gettime ();
12526 for ac_lib in '' rt; do
12527 if test -z "$ac_lib"; then
12528 ac_res="none required"
12531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12533 if ac_fn_c_try_link "$LINENO"; then :
12534 ac_cv_search_clock_gettime=$ac_res
12536 rm -f core conftest.err conftest.$ac_objext \
12538 if ${ac_cv_search_clock_gettime+:} false; then :
12542 if ${ac_cv_search_clock_gettime+:} false; then :
12545 ac_cv_search_clock_gettime=no
12547 rm conftest.$ac_ext
12548 LIBS=$ac_func_search_save_LIBS
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12551 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12552 ac_res=$ac_cv_search_clock_gettime
12553 if test "$ac_res" != no; then :
12554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_connect" >&5
12559 $as_echo_n "checking for library containing SSL_connect... " >&6; }
12560 if ${ac_cv_search_SSL_connect+:} false; then :
12561 $as_echo_n "(cached) " >&6
12563 ac_func_search_save_LIBS=$LIBS
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12567 /* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
12573 char SSL_connect ();
12577 return SSL_connect ();
12582 for ac_lib in '' ssl; do
12583 if test -z "$ac_lib"; then
12584 ac_res="none required"
12587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12589 if ac_fn_c_try_link "$LINENO"; then :
12590 ac_cv_search_SSL_connect=$ac_res
12592 rm -f core conftest.err conftest.$ac_objext \
12594 if ${ac_cv_search_SSL_connect+:} false; then :
12598 if ${ac_cv_search_SSL_connect+:} false; then :
12601 ac_cv_search_SSL_connect=no
12603 rm conftest.$ac_ext
12604 LIBS=$ac_func_search_save_LIBS
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_connect" >&5
12607 $as_echo "$ac_cv_search_SSL_connect" >&6; }
12608 ac_res=$ac_cv_search_SSL_connect
12609 if test "$ac_res" != no; then :
12610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing humanize_number" >&5
12615 $as_echo_n "checking for library containing humanize_number... " >&6; }
12616 if ${ac_cv_search_humanize_number+:} false; then :
12617 $as_echo_n "(cached) " >&6
12619 ac_func_search_save_LIBS=$LIBS
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 /* Override any GCC internal prototype to avoid an error.
12624 Use char because int might match the return type of a GCC
12625 builtin and then its argument prototype would still apply. */
12629 char humanize_number ();
12633 return humanize_number ();
12638 for ac_lib in '' util; do
12639 if test -z "$ac_lib"; then
12640 ac_res="none required"
12643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12645 if ac_fn_c_try_link "$LINENO"; then :
12646 ac_cv_search_humanize_number=$ac_res
12648 rm -f core conftest.err conftest.$ac_objext \
12650 if ${ac_cv_search_humanize_number+:} false; then :
12654 if ${ac_cv_search_humanize_number+:} false; then :
12657 ac_cv_search_humanize_number=no
12659 rm conftest.$ac_ext
12660 LIBS=$ac_func_search_save_LIBS
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_humanize_number" >&5
12663 $as_echo "$ac_cv_search_humanize_number" >&6; }
12664 ac_res=$ac_cv_search_humanize_number
12665 if test "$ac_res" != no; then :
12666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pidfile_open" >&5
12671 $as_echo_n "checking for library containing pidfile_open... " >&6; }
12672 if ${ac_cv_search_pidfile_open+:} false; then :
12673 $as_echo_n "(cached) " >&6
12675 ac_func_search_save_LIBS=$LIBS
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12685 char pidfile_open ();
12689 return pidfile_open ();
12694 for ac_lib in '' util; do
12695 if test -z "$ac_lib"; then
12696 ac_res="none required"
12699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12701 if ac_fn_c_try_link "$LINENO"; then :
12702 ac_cv_search_pidfile_open=$ac_res
12704 rm -f core conftest.err conftest.$ac_objext \
12706 if ${ac_cv_search_pidfile_open+:} false; then :
12710 if ${ac_cv_search_pidfile_open+:} false; then :
12713 ac_cv_search_pidfile_open=no
12715 rm conftest.$ac_ext
12716 LIBS=$ac_func_search_save_LIBS
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pidfile_open" >&5
12719 $as_echo "$ac_cv_search_pidfile_open" >&6; }
12720 ac_res=$ac_cv_search_pidfile_open
12721 if test "$ac_res" != no; then :
12722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12727 # Checks for header files.
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12729 $as_echo_n "checking for ANSI C header files... " >&6; }
12730 if ${ac_cv_header_stdc+:} false; then :
12731 $as_echo_n "(cached) " >&6
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 #include <stdlib.h>
12736 #include <stdarg.h>
12737 #include <string.h>
12748 if ac_fn_c_try_compile "$LINENO"; then :
12749 ac_cv_header_stdc=yes
12751 ac_cv_header_stdc=no
12753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755 if test $ac_cv_header_stdc = yes; then
12756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759 #include <string.h>
12762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12763 $EGREP "memchr" >/dev/null 2>&1; then :
12766 ac_cv_header_stdc=no
12772 if test $ac_cv_header_stdc = yes; then
12773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12776 #include <stdlib.h>
12779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12780 $EGREP "free" >/dev/null 2>&1; then :
12783 ac_cv_header_stdc=no
12789 if test $ac_cv_header_stdc = yes; then
12790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12791 if test "$cross_compiling" = yes; then :
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12797 #include <stdlib.h>
12798 #if ((' ' & 0x0FF) == 0x020)
12799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12802 # define ISLOWER(c) \
12803 (('a' <= (c) && (c) <= 'i') \
12804 || ('j' <= (c) && (c) <= 'r') \
12805 || ('s' <= (c) && (c) <= 'z'))
12806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12814 for (i = 0; i < 256; i++)
12815 if (XOR (islower (i), ISLOWER (i))
12816 || toupper (i) != TOUPPER (i))
12821 if ac_fn_c_try_run "$LINENO"; then :
12824 ac_cv_header_stdc=no
12826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12827 conftest.$ac_objext conftest.beam conftest.$ac_ext
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12833 $as_echo "$ac_cv_header_stdc" >&6; }
12834 if test $ac_cv_header_stdc = yes; then
12836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12841 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12842 if ${ac_cv_header_sys_wait_h+:} false; then :
12843 $as_echo_n "(cached) " >&6
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 #include <sys/types.h>
12848 #include <sys/wait.h>
12849 #ifndef WEXITSTATUS
12850 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12853 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12861 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12866 if ac_fn_c_try_compile "$LINENO"; then :
12867 ac_cv_header_sys_wait_h=yes
12869 ac_cv_header_sys_wait_h=no
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12874 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12875 if test $ac_cv_header_sys_wait_h = yes; then
12877 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12881 for ac_header in mach/mach.h stdint.h pthread_np.h printf.h
12883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12884 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12885 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12886 cat >>confdefs.h <<_ACEOF
12887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12896 $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
12899 # Checks for typedefs, structures, and compiler characteristics.
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12901 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12902 if ${ac_cv_c_const+:} false; then :
12903 $as_echo_n "(cached) " >&6
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12912 #ifndef __cplusplus
12913 /* Ultrix mips cc rejects this sort of thing. */
12914 typedef int charset[2];
12915 const charset cs = { 0, 0 };
12916 /* SunOS 4.1.1 cc rejects this. */
12917 char const *const *pcpcc;
12919 /* NEC SVR4.0.2 mips cc rejects this. */
12920 struct point {int x, y;};
12921 static struct point const zero = {0,0};
12922 /* AIX XL C 1.02.0.0 rejects this.
12923 It does not let you subtract one const X* pointer from another in
12924 an arm of an if-expression whose if-part is not a constant
12926 const char *g = "string";
12927 pcpcc = &g + (g ? g-g : 0);
12928 /* HPUX 7.0 cc rejects these. */
12930 ppc = (char**) pcpcc;
12931 pcpcc = (char const *const *) ppc;
12932 { /* SCO 3.2v4 cc rejects this sort of thing. */
12935 char const *s = 0 ? (char *) 0 : (char const *) 0;
12940 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12941 int x[] = {25, 17};
12942 const int *foo = &x[0];
12945 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12946 typedef const int *iptr;
12950 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12951 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12952 struct s { int j; const int *ap[3]; } bx;
12953 struct s *b = &bx; b->j = 5;
12955 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12956 const int foo = 10;
12957 if (!foo) return 0;
12959 return !cs[0] && !zero.x;
12966 if ac_fn_c_try_compile "$LINENO"; then :
12971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12974 $as_echo "$ac_cv_c_const" >&6; }
12975 if test $ac_cv_c_const = no; then
12977 $as_echo "#define const /**/" >>confdefs.h
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12982 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12983 if ${ac_cv_type_uid_t+:} false; then :
12984 $as_echo_n "(cached) " >&6
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988 #include <sys/types.h>
12991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12992 $EGREP "uid_t" >/dev/null 2>&1; then :
12993 ac_cv_type_uid_t=yes
12995 ac_cv_type_uid_t=no
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13001 $as_echo "$ac_cv_type_uid_t" >&6; }
13002 if test $ac_cv_type_uid_t = no; then
13004 $as_echo "#define uid_t int" >>confdefs.h
13007 $as_echo "#define gid_t int" >>confdefs.h
13011 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13012 if test "x$ac_cv_type_pid_t" = xyes; then :
13016 cat >>confdefs.h <<_ACEOF
13022 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13023 if test "x$ac_cv_type_size_t" = xyes; then :
13027 cat >>confdefs.h <<_ACEOF
13028 #define size_t unsigned int
13033 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13034 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
13036 cat >>confdefs.h <<_ACEOF
13037 #define HAVE_STRUCT_STAT_ST_RDEV 1
13044 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "__key" "ac_cv_member_struct_ipc_perm___key" "
13045 #include <sys/types.h>
13046 #include <sys/ipc.h>
13049 if test "x$ac_cv_member_struct_ipc_perm___key" = xyes; then :
13051 $as_echo "#define HAVE_IPC_PERM___KEY /**/" >>confdefs.h
13056 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "_key" "ac_cv_member_struct_ipc_perm__key" "
13057 #include <sys/types.h>
13058 #include <sys/ipc.h>
13061 if test "x$ac_cv_member_struct_ipc_perm__key" = xyes; then :
13063 $as_echo "#define HAVE_IPC_PERM__KEY /**/" >>confdefs.h
13068 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "__seq" "ac_cv_member_struct_ipc_perm___seq" "
13069 #include <sys/types.h>
13070 #include <sys/ipc.h>
13073 if test "x$ac_cv_member_struct_ipc_perm___seq" = xyes; then :
13075 $as_echo "#define HAVE_IPC_PERM___SEQ /**/" >>confdefs.h
13080 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "_seq" "ac_cv_member_struct_ipc_perm__seq" "
13081 #include <sys/types.h>
13082 #include <sys/ipc.h>
13085 if test "x$ac_cv_member_struct_ipc_perm__seq" = xyes; then :
13087 $as_echo "#define HAVE_IPC_PERM__SEQ /**/" >>confdefs.h
13092 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "
13093 #include <sys/types.h>
13094 #include <sys/socket.h>
13097 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
13099 $as_echo "#define HAVE_SOCKADDR_STORAGE_SS_LEN /**/" >>confdefs.h
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13105 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13106 if ${ac_cv_header_time+:} false; then :
13107 $as_echo_n "(cached) " >&6
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 #include <sys/types.h>
13112 #include <sys/time.h>
13118 if ((struct tm *) 0)
13124 if ac_fn_c_try_compile "$LINENO"; then :
13125 ac_cv_header_time=yes
13127 ac_cv_header_time=no
13129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13132 $as_echo "$ac_cv_header_time" >&6; }
13133 if test $ac_cv_header_time = yes; then
13135 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13140 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13141 if ${ac_cv_struct_tm+:} false; then :
13142 $as_echo_n "(cached) " >&6
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146 #include <sys/types.h>
13153 int *p = &tm.tm_sec;
13159 if ac_fn_c_try_compile "$LINENO"; then :
13160 ac_cv_struct_tm=time.h
13162 ac_cv_struct_tm=sys/time.h
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13167 $as_echo "$ac_cv_struct_tm" >&6; }
13168 if test $ac_cv_struct_tm = sys/time.h; then
13170 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13175 # Checks for library functions.
13176 for ac_header in unistd.h
13178 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13179 if test "x$ac_cv_header_unistd_h" = xyes; then :
13180 cat >>confdefs.h <<_ACEOF
13181 #define HAVE_UNISTD_H 1
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
13189 $as_echo_n "checking for working chown... " >&6; }
13190 if ${ac_cv_func_chown_works+:} false; then :
13191 $as_echo_n "(cached) " >&6
13193 if test "$cross_compiling" = yes; then :
13194 ac_cv_func_chown_works=no
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13198 $ac_includes_default
13204 char *f = "conftest.chown";
13205 struct stat before, after;
13207 if (creat (f, 0600) < 0)
13209 if (stat (f, &before) < 0)
13211 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
13213 if (stat (f, &after) < 0)
13215 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
13221 if ac_fn_c_try_run "$LINENO"; then :
13222 ac_cv_func_chown_works=yes
13224 ac_cv_func_chown_works=no
13226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13227 conftest.$ac_objext conftest.beam conftest.$ac_ext
13230 rm -f conftest.chown
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
13234 $as_echo "$ac_cv_func_chown_works" >&6; }
13235 if test $ac_cv_func_chown_works = yes; then
13237 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
13241 for ac_header in vfork.h
13243 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13244 if test "x$ac_cv_header_vfork_h" = xyes; then :
13245 cat >>confdefs.h <<_ACEOF
13246 #define HAVE_VFORK_H 1
13253 for ac_func in fork vfork
13255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13258 cat >>confdefs.h <<_ACEOF
13259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13265 if test "x$ac_cv_func_fork" = xyes; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13267 $as_echo_n "checking for working fork... " >&6; }
13268 if ${ac_cv_func_fork_works+:} false; then :
13269 $as_echo_n "(cached) " >&6
13271 if test "$cross_compiling" = yes; then :
13272 ac_cv_func_fork_works=cross
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276 $ac_includes_default
13281 /* By Ruediger Kuhlmann. */
13282 return fork () < 0;
13288 if ac_fn_c_try_run "$LINENO"; then :
13289 ac_cv_func_fork_works=yes
13291 ac_cv_func_fork_works=no
13293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13294 conftest.$ac_objext conftest.beam conftest.$ac_ext
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13299 $as_echo "$ac_cv_func_fork_works" >&6; }
13302 ac_cv_func_fork_works=$ac_cv_func_fork
13304 if test "x$ac_cv_func_fork_works" = xcross; then
13306 *-*-amigaos* | *-*-msdosdjgpp*)
13307 # Override, as these systems have only a dummy fork() stub
13308 ac_cv_func_fork_works=no
13311 ac_cv_func_fork_works=yes
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13315 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13317 ac_cv_func_vfork_works=$ac_cv_func_vfork
13318 if test "x$ac_cv_func_vfork" = xyes; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13320 $as_echo_n "checking for working vfork... " >&6; }
13321 if ${ac_cv_func_vfork_works+:} false; then :
13322 $as_echo_n "(cached) " >&6
13324 if test "$cross_compiling" = yes; then :
13325 ac_cv_func_vfork_works=cross
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 /* Thanks to Paul Eggert for this test. */
13330 $ac_includes_default
13331 #include <sys/wait.h>
13332 #ifdef HAVE_VFORK_H
13333 # include <vfork.h>
13335 /* On some sparc systems, changes by the child to local and incoming
13336 argument registers are propagated back to the parent. The compiler
13337 is told about this with #include <vfork.h>, but some compilers
13338 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13339 static variable whose address is put into a register that is
13340 clobbered by the vfork. */
13343 sparc_address_test (int arg)
13345 sparc_address_test (arg) int arg;
13348 static pid_t child;
13366 pid_t parent = getpid ();
13369 sparc_address_test (0);
13374 /* Here is another test for sparc vfork register problems. This
13375 test uses lots of local variables, at least as many local
13376 variables as main has allocated so far including compiler
13377 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13378 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13379 reuse the register of parent for one of the local variables,
13380 since it will think that parent can't possibly be used any more
13381 in this routine. Assigning to the local variable will thus
13382 munge parent in the parent process. */
13384 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13385 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13386 /* Convince the compiler that p..p7 are live; otherwise, it might
13387 use the same hardware register for all 8 local variables. */
13388 if (p != p1 || p != p2 || p != p3 || p != p4
13389 || p != p5 || p != p6 || p != p7)
13392 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13393 from child file descriptors. If the child closes a descriptor
13394 before it execs or exits, this munges the parent's descriptor
13395 as well. Test for this by closing stdout in the child. */
13396 _exit(close(fileno(stdout)) != 0);
13401 while (wait(&status) != child)
13404 /* Was there some problem with vforking? */
13407 /* Did the child fail? (This shouldn't happen.) */
13410 /* Did the vfork/compiler bug occur? */
13411 || parent != getpid()
13413 /* Did the file descriptor bug occur? */
13414 || fstat(fileno(stdout), &st) != 0
13419 if ac_fn_c_try_run "$LINENO"; then :
13420 ac_cv_func_vfork_works=yes
13422 ac_cv_func_vfork_works=no
13424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13425 conftest.$ac_objext conftest.beam conftest.$ac_ext
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13430 $as_echo "$ac_cv_func_vfork_works" >&6; }
13433 if test "x$ac_cv_func_fork_works" = xcross; then
13434 ac_cv_func_vfork_works=$ac_cv_func_vfork
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13436 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13439 if test "x$ac_cv_func_vfork_works" = xyes; then
13441 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13445 $as_echo "#define vfork fork" >>confdefs.h
13448 if test "x$ac_cv_func_fork_works" = xyes; then
13450 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13454 for ac_header in stdlib.h
13456 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13457 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13458 cat >>confdefs.h <<_ACEOF
13459 #define HAVE_STDLIB_H 1
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13467 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13468 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13469 $as_echo_n "(cached) " >&6
13471 if test "$cross_compiling" = yes; then :
13472 ac_cv_func_malloc_0_nonnull=no
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13476 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13477 # include <stdlib.h>
13485 return ! malloc (0);
13490 if ac_fn_c_try_run "$LINENO"; then :
13491 ac_cv_func_malloc_0_nonnull=yes
13493 ac_cv_func_malloc_0_nonnull=no
13495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13496 conftest.$ac_objext conftest.beam conftest.$ac_ext
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13501 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13502 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13504 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13507 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13509 case " $LIBOBJS " in
13510 *" malloc.$ac_objext "* ) ;;
13511 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13516 $as_echo "#define malloc rpl_malloc" >>confdefs.h
13524 for ac_header in $ac_header_list
13526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13527 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13530 cat >>confdefs.h <<_ACEOF
13531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13545 for ac_func in $ac_func_list
13547 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13548 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13549 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13550 cat >>confdefs.h <<_ACEOF
13551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13562 $as_echo_n "checking for working mktime... " >&6; }
13563 if ${ac_cv_func_working_mktime+:} false; then :
13564 $as_echo_n "(cached) " >&6
13566 if test "$cross_compiling" = yes; then :
13567 ac_cv_func_working_mktime=no
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13571 /* Test program from Paul Eggert and Tony Leneis. */
13572 #ifdef TIME_WITH_SYS_TIME
13573 # include <sys/time.h>
13576 # ifdef HAVE_SYS_TIME_H
13577 # include <sys/time.h>
13583 #include <limits.h>
13584 #include <stdlib.h>
13586 #ifdef HAVE_UNISTD_H
13587 # include <unistd.h>
13591 # define alarm(X) /* empty */
13594 /* Work around redefinition to rpl_putenv by other config tests. */
13597 static time_t time_t_max;
13598 static time_t time_t_min;
13600 /* Values we'll use to set the TZ environment variable. */
13601 static const char *tz_strings[] = {
13602 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
13603 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13605 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13607 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13608 Based on a problem report from Andreas Jaeger. */
13610 spring_forward_gap ()
13612 /* glibc (up to about 1998-10-07) failed this test. */
13615 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13616 instead of "TZ=America/Vancouver" in order to detect the bug even
13617 on systems that don't support the Olson extension, or don't have the
13618 full zoneinfo tables installed. */
13619 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
13628 return mktime (&tm) != (time_t) -1;
13632 mktime_test1 (time_t now)
13635 return ! (lt = localtime (&now)) || mktime (lt) == now;
13639 mktime_test (time_t now)
13641 return (mktime_test1 (now)
13642 && mktime_test1 ((time_t) (time_t_max - now))
13643 && mktime_test1 ((time_t) (time_t_min + now)));
13649 /* Based on code from Ariel Faigon. */
13659 return tm.tm_mon == 2 && tm.tm_mday == 31;
13663 bigtime_test (int j)
13667 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13668 now = mktime (&tm);
13669 if (now != (time_t) -1)
13671 struct tm *lt = localtime (&now);
13673 && lt->tm_year == tm.tm_year
13674 && lt->tm_mon == tm.tm_mon
13675 && lt->tm_mday == tm.tm_mday
13676 && lt->tm_hour == tm.tm_hour
13677 && lt->tm_min == tm.tm_min
13678 && lt->tm_sec == tm.tm_sec
13679 && lt->tm_yday == tm.tm_yday
13680 && lt->tm_wday == tm.tm_wday
13681 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13682 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13691 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13692 ignoring leap seconds. */
13693 unsigned long int answer = 2527315200UL;
13697 tm.tm_year = 2050 - 1900;
13700 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13703 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13704 instead of "TZ=America/Vancouver" in order to detect the bug even
13705 on systems that don't support the Olson extension, or don't have the
13706 full zoneinfo tables installed. */
13707 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
13711 /* Check that the result is either a failure, or close enough
13712 to the correct answer that we can assume the discrepancy is
13713 due to leap seconds. */
13714 return (t == (time_t) -1
13715 || (0 < t && answer - 120 <= t && t <= answer + 120));
13724 /* This test makes some buggy mktime implementations loop.
13725 Give up after 60 seconds; a mktime slower than that
13726 isn't worth using anyway. */
13731 t = (time_t_max << 1) + 1;
13732 if (t <= time_t_max)
13736 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
13738 delta = time_t_max / 997; /* a suitable prime number */
13739 for (i = 0; i < N_STRINGS; i++)
13742 putenv ((char*) tz_strings[i]);
13744 for (t = 0; t <= time_t_max - delta; t += delta)
13745 if (! mktime_test (t))
13747 if (! (mktime_test ((time_t) 1)
13748 && mktime_test ((time_t) (60 * 60))
13749 && mktime_test ((time_t) (60 * 60 * 24))))
13752 for (j = 1; ; j <<= 1)
13753 if (! bigtime_test (j))
13755 else if (INT_MAX / 2 < j)
13757 if (! bigtime_test (INT_MAX))
13760 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
13763 if ac_fn_c_try_run "$LINENO"; then :
13764 ac_cv_func_working_mktime=yes
13766 ac_cv_func_working_mktime=no
13768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13769 conftest.$ac_objext conftest.beam conftest.$ac_ext
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
13774 $as_echo "$ac_cv_func_working_mktime" >&6; }
13775 if test $ac_cv_func_working_mktime = no; then
13776 case " $LIBOBJS " in
13777 *" mktime.$ac_objext "* ) ;;
13778 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13785 $as_echo_n "checking return type of signal handlers... " >&6; }
13786 if ${ac_cv_type_signal+:} false; then :
13787 $as_echo_n "(cached) " >&6
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13791 #include <sys/types.h>
13792 #include <signal.h>
13797 return *(signal (0, 0)) (0) == 1;
13802 if ac_fn_c_try_compile "$LINENO"; then :
13803 ac_cv_type_signal=int
13805 ac_cv_type_signal=void
13807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13810 $as_echo "$ac_cv_type_signal" >&6; }
13812 cat >>confdefs.h <<_ACEOF
13813 #define RETSIGTYPE $ac_cv_type_signal
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13818 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13819 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13820 $as_echo_n "(cached) " >&6
13822 rm -f conftest.sym conftest.file
13823 echo >conftest.file
13824 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13825 if test "$cross_compiling" = yes; then :
13826 ac_cv_func_lstat_dereferences_slashed_symlink=no
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 $ac_includes_default
13835 /* Linux will dereference the symlink and fail, as required by POSIX.
13836 That is better in the sense that it means we will not
13837 have to compile and use the lstat wrapper. */
13838 return lstat ("conftest.sym/", &sbuf) == 0;
13843 if ac_fn_c_try_run "$LINENO"; then :
13844 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13846 ac_cv_func_lstat_dereferences_slashed_symlink=no
13848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13849 conftest.$ac_objext conftest.beam conftest.$ac_ext
13853 # If the `ln -s' command failed, then we probably don't even
13854 # have an lstat function.
13855 ac_cv_func_lstat_dereferences_slashed_symlink=no
13857 rm -f conftest.sym conftest.file
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13861 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13863 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13865 cat >>confdefs.h <<_ACEOF
13866 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13870 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13871 case " $LIBOBJS " in
13872 *" lstat.$ac_objext "* ) ;;
13873 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13880 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
13881 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
13882 $as_echo_n "(cached) " >&6
13884 if test "$cross_compiling" = yes; then :
13885 ac_cv_func_stat_empty_string_bug=yes
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13889 $ac_includes_default
13894 return stat ("", &sbuf) == 0;
13899 if ac_fn_c_try_run "$LINENO"; then :
13900 ac_cv_func_stat_empty_string_bug=no
13902 ac_cv_func_stat_empty_string_bug=yes
13904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13905 conftest.$ac_objext conftest.beam conftest.$ac_ext
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13910 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13911 if test $ac_cv_func_stat_empty_string_bug = yes; then
13912 case " $LIBOBJS " in
13913 *" stat.$ac_objext "* ) ;;
13914 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_STAT_EMPTY_STRING_BUG 1
13925 for ac_func in strftime
13927 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13928 if test "x$ac_cv_func_strftime" = xyes; then :
13929 cat >>confdefs.h <<_ACEOF
13930 #define HAVE_STRFTIME 1
13934 # strftime is in -lintl on SCO UNIX.
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13936 $as_echo_n "checking for strftime in -lintl... " >&6; }
13937 if ${ac_cv_lib_intl_strftime+:} false; then :
13938 $as_echo_n "(cached) " >&6
13940 ac_check_lib_save_LIBS=$LIBS
13941 LIBS="-lintl $LIBS"
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13945 /* Override any GCC internal prototype to avoid an error.
13946 Use char because int might match the return type of a GCC
13947 builtin and then its argument prototype would still apply. */
13955 return strftime ();
13960 if ac_fn_c_try_link "$LINENO"; then :
13961 ac_cv_lib_intl_strftime=yes
13963 ac_cv_lib_intl_strftime=no
13965 rm -f core conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13967 LIBS=$ac_check_lib_save_LIBS
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13970 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13971 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13972 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13974 LIBS="-lintl $LIBS"
13980 for ac_func in arc4random arc4random_buf bzero cap_enter clock_gettime closefrom faccessat fdopendir fstatat ftruncate getresgid getresuid gettimeofday inet_ntoa jail kqueue memset openat pthread_cond_timedwait_relative_np pthread_condattr_setclock pthread_mutex_lock renameat setproctitle sigtimedwait strchr strerror strlcat strlcpy strndup strrchr strstr strtol strtoul unlinkat vis
13982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13983 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13984 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13985 cat >>confdefs.h <<_ACEOF
13986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13993 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
13994 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
13995 # all of them, and are necessary for OpenBSM.
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13999 #include <sys/queue.h>
14007 #error LIST_FIRST missing
14009 #ifndef TAILQ_FOREACH_SAFE
14010 #error TAILQ_FOREACH_SAFE
14017 if ac_fn_c_try_link "$LINENO"; then :
14020 $as_echo "#define HAVE_FULL_QUEUE_H /**/" >>confdefs.h
14024 rm -f core conftest.err conftest.$ac_objext \
14025 conftest$ac_exeext conftest.$ac_ext
14027 # Systems may not define key audit system calls, in which case libbsm cannot
14028 # depend on them or it will generate link-time or run-time errors. Test for
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14033 #include <stddef.h>
14035 extern int auditon(int, void *, int);
14043 err = auditon(0, NULL, 0);
14049 if ac_fn_c_try_link "$LINENO"; then :
14052 $as_echo "#define HAVE_AUDIT_SYSCALLS /**/" >>confdefs.h
14054 have_audit_syscalls=true
14058 have_audit_syscalls=false
14061 rm -f core conftest.err conftest.$ac_objext \
14062 conftest$ac_exeext conftest.$ac_ext
14063 if $have_audit_syscalls; then
14064 HAVE_AUDIT_SYSCALLS_TRUE=
14065 HAVE_AUDIT_SYSCALLS_FALSE='#'
14067 HAVE_AUDIT_SYSCALLS_TRUE='#'
14068 HAVE_AUDIT_SYSCALLS_FALSE=
14073 # We rely on the BSD be32toh() and be32enc()-style endian macros to perform
14074 # byte order conversions. Availability of these varies considerably -- in
14075 # general, a system might have neither, be32toh(), or be32toh() and be32enc().
14076 # There is also variation in which headers are even present, and whether they
14077 # are macros or functions. Try to organise the world into some simpler cases.
14078 # The following macros may be set at the end:
14082 # USE_MACHINE_ENDIAN_H
14083 # USE_COMPAT_ENDIAN_H
14084 # USE_COMPAT_ENDIAN_ENC_H
14086 # First, decide which system endian.h to use.
14088 for ac_header in endian.h
14090 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
14091 if test "x$ac_cv_header_endian_h" = xyes; then :
14092 cat >>confdefs.h <<_ACEOF
14093 #define HAVE_ENDIAN_H 1
14107 for ac_header in sys/endian.h
14109 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
14110 if test "x$ac_cv_header_sys_endian_h" = xyes; then :
14111 cat >>confdefs.h <<_ACEOF
14112 #define HAVE_SYS_ENDIAN_H 1
14115 have_sys_endian_h=yes
14119 have_sys_endian_h=no
14126 for ac_header in machine/endian.h
14128 ac_fn_c_check_header_mongrel "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
14129 if test "x$ac_cv_header_machine_endian_h" = xyes; then :
14130 cat >>confdefs.h <<_ACEOF
14131 #define HAVE_MACHINE_ENDIAN_H 1
14134 have_machine_endian_h=yes
14138 have_machine_endian_h=no
14145 if test $have_endian_h = yes; then
14147 $as_echo "#define USE_ENDIAN_H /**/" >>confdefs.h
14149 elif test $have_sys_endian_h = yes; then
14151 $as_echo "#define USE_SYS_ENDIAN_H /**/" >>confdefs.h
14153 elif test $have_machine_endian_h = yes; then
14155 $as_echo "#define USE_MACHINE_ENDIAN_H /**/" >>confdefs.h
14158 as_fn_error $? "no endian.h" "$LINENO" 5
14162 # Next, decide if we need to supplement with compat headers.
14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14167 #ifdef USE_ENDIAN_H
14168 #include <endian.h>
14170 #ifdef USE_SYS_ENDIAN_H
14171 #include <sys/endian.h>
14173 #ifdef USE_MACHINE_ENDIAN_H
14174 #include <machine/endian.h>
14187 if ac_fn_c_try_link "$LINENO"; then :
14192 $as_echo "#define USE_COMPAT_ENDIAN_H /**/" >>confdefs.h
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using compat/endian.h" >&5
14195 $as_echo "using compat/endian.h" >&6; }
14198 rm -f core conftest.err conftest.$ac_objext \
14199 conftest$ac_exeext conftest.$ac_ext
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14204 #ifdef USE_ENDIAN_H
14205 #include <endian.h>
14207 #ifdef USE_SYS_ENDIAN_H
14208 #include <sys/endian.h>
14210 #ifdef USE_MACHINE_ENDIAN_H
14211 #include <machine/endian.h>
14213 #ifdef USE_COMPAT_ENDIAN_H
14214 #include "compat/endian.h"
14216 #include <stdlib.h>
14235 if ac_fn_c_try_link "$LINENO"; then :
14240 $as_echo "#define USE_COMPAT_ENDIAN_ENC_H /**/" >>confdefs.h
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using compat/endian_enc.h" >&5
14243 $as_echo "using compat/endian_enc.h" >&6; }
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14249 # Check to see if Mach IPC is used for trigger messages. If so, use Mach IPC
14250 # instead of the default for sending trigger messages to the audit components.
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/mach/audit_triggers.defs" >&5
14252 $as_echo_n "checking for /usr/include/mach/audit_triggers.defs... " >&6; }
14253 if ${ac_cv_file__usr_include_mach_audit_triggers_defs+:} false; then :
14254 $as_echo_n "(cached) " >&6
14256 test "$cross_compiling" = yes &&
14257 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
14258 if test -r "/usr/include/mach/audit_triggers.defs"; then
14259 ac_cv_file__usr_include_mach_audit_triggers_defs=yes
14261 ac_cv_file__usr_include_mach_audit_triggers_defs=no
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
14265 $as_echo "$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
14266 if test "x$ac_cv_file__usr_include_mach_audit_triggers_defs" = xyes; then :
14269 $as_echo "#define USE_MACH_IPC /**/" >>confdefs.h
14279 if $use_mach_ipc; then
14281 USE_MACH_IPC_FALSE='#'
14283 USE_MACH_IPC_TRUE='#'
14284 USE_MACH_IPC_FALSE=
14288 ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditdistd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libauditd/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile sys/Makefile sys/bsm/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
14291 cat >confcache <<\_ACEOF
14292 # This file is a shell script that caches the results of configure
14293 # tests run on this system so they can be shared between configure
14294 # scripts and configure runs, see configure's option --config-cache.
14295 # It is not useful on other systems. If it contains results you don't
14296 # want to keep, you may remove or edit it.
14298 # config.status only pays attention to the cache file if you give it
14299 # the --recheck option to rerun configure.
14301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14303 # following values.
14307 # The following way of writing the cache mishandles newlines in values,
14308 # but we know of no workaround that is simple, portable, and efficient.
14309 # So, we kill variables containing newlines.
14310 # Ultrix sh set writes to stderr and can't be redirected directly,
14311 # and sets the high bit in the cache file unless we assign to the vars.
14313 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14314 eval ac_val=\$$ac_var
14318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14322 _ | IFS | as_nl) ;; #(
14323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14324 *) { eval $ac_var=; unset $ac_var;} ;;
14330 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14331 *${as_nl}ac_space=\ *)
14332 # `set' does not quote correctly, so add quotes: double-quote
14333 # substitution turns \\\\ into \\, and sed turns \\ into \.
14336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14339 # `set' quotes correctly as required by POSIX, so do not add quotes.
14340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14351 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14353 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14354 if test -w "$cache_file"; then
14355 if test "x$cache_file" != "x/dev/null"; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14357 $as_echo "$as_me: updating cache $cache_file" >&6;}
14358 if test ! -f "$cache_file" || test -h "$cache_file"; then
14359 cat confcache >"$cache_file"
14361 case $cache_file in #(
14363 mv -f confcache "$cache_file"$$ &&
14364 mv -f "$cache_file"$$ "$cache_file" ;; #(
14366 mv -f confcache "$cache_file" ;;
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14372 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14378 # Let make expand exec_prefix.
14379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14381 DEFS=-DHAVE_CONFIG_H
14386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14387 # 1. Remove the extension, and $U if already installed.
14388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14389 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14391 # will be set to the directory where LIBOBJS objects are built.
14392 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14393 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14395 LIBOBJS=$ac_libobjs
14397 LTLIBOBJS=$ac_ltlibobjs
14400 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14401 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14404 if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
14405 as_fn_error $? "conditional \"USE_NATIVE_INCLUDES\" was never defined.
14406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14409 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14410 if test -n "$am_sleep_pid"; then
14411 # Hide warnings about reused PIDs.
14412 wait $am_sleep_pid 2>/dev/null
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14415 $as_echo "done" >&6; }
14416 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14417 as_fn_error $? "conditional \"AMDEP\" was never defined.
14418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14420 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14421 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14424 if test -n "$EXEEXT"; then
14426 am__EXEEXT_FALSE='#'
14428 am__EXEEXT_TRUE='#'
14432 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
14433 as_fn_error $? "conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
14434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14436 if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
14437 as_fn_error $? "conditional \"USE_MACH_IPC\" was never defined.
14438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14441 : "${CONFIG_STATUS=./config.status}"
14443 ac_clean_files_save=$ac_clean_files
14444 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14446 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14448 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14450 # Generated by $as_me.
14451 # Run this file to recreate the current configuration.
14452 # Compiler output produced by configure, useful for debugging
14453 # configure, is in config.log if it exists.
14456 ac_cs_recheck=false
14459 SHELL=\${CONFIG_SHELL-$SHELL}
14462 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14463 ## -------------------- ##
14464 ## M4sh Initialization. ##
14465 ## -------------------- ##
14467 # Be more Bourne compatible
14468 DUALCASE=1; export DUALCASE # for MKS sh
14469 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14472 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14473 # is contrary to our usage. Disable this feature.
14474 alias -g '${1+"$@"}'='"$@"'
14475 setopt NO_GLOB_SUBST
14477 case `(set -o) 2>/dev/null` in #(
14489 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14490 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14491 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14492 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14493 # Prefer a ksh shell builtin over an external printf program on Solaris,
14494 # but without wasting forks for bash or zsh.
14495 if test -z "$BASH_VERSION$ZSH_VERSION" \
14496 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14497 as_echo='print -r --'
14498 as_echo_n='print -rn --'
14499 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14500 as_echo='printf %s\n'
14501 as_echo_n='printf %s'
14503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14505 as_echo_n='/usr/ucb/echo -n'
14507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14508 as_echo_n_body='eval
14512 expr "X$arg" : "X\\(.*\\)$as_nl";
14513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14517 export as_echo_n_body
14518 as_echo_n='sh -c $as_echo_n_body as_echo'
14520 export as_echo_body
14521 as_echo='sh -c $as_echo_body as_echo'
14524 # The user is always right.
14525 if test "${PATH_SEPARATOR+set}" != set; then
14527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14535 # We need space, tab and new line, in precisely that order. Quoting is
14536 # there to prevent editors from complaining about space-tab.
14537 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14538 # splitting by setting IFS to empty value.)
14541 # Find who we are. Look in the path if we contain no directory separator.
14544 *[\\/]* ) as_myself=$0 ;;
14545 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546 for as_dir in $PATH
14549 test -z "$as_dir" && as_dir=.
14550 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14556 # We did not find ourselves, most probably we were run as `sh COMMAND'
14557 # in which case we are not to be found in the path.
14558 if test "x$as_myself" = x; then
14561 if test ! -f "$as_myself"; then
14562 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14566 # Unset variables that we do not need and which cause bugs (e.g. in
14567 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14568 # suppresses any "Segmentation fault" message there. '((' could
14569 # trigger a bug in pdksh 5.2.14.
14570 for as_var in BASH_ENV ENV MAIL MAILPATH
14571 do eval test x\${$as_var+set} = xset \
14572 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14588 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14589 # ----------------------------------------
14590 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14591 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14592 # script with STATUS, using 1 if that was 0.
14595 as_status=$1; test $as_status -eq 0 && as_status=1
14597 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14598 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14600 $as_echo "$as_me: error: $2" >&2
14601 as_fn_exit $as_status
14605 # as_fn_set_status STATUS
14606 # -----------------------
14607 # Set $? to STATUS, without forking.
14608 as_fn_set_status ()
14611 } # as_fn_set_status
14613 # as_fn_exit STATUS
14614 # -----------------
14615 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14619 as_fn_set_status $1
14625 # Portably unset VAR.
14628 { eval $1=; unset $1;}
14630 as_unset=as_fn_unset
14631 # as_fn_append VAR VALUE
14632 # ----------------------
14633 # Append the text in VALUE to the end of the definition contained in VAR. Take
14634 # advantage of any shell optimizations that allow amortized linear growth over
14635 # repeated appends, instead of the typical quadratic growth present in naive
14637 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14638 eval 'as_fn_append ()
14649 # as_fn_arith ARG...
14650 # ------------------
14651 # Perform arithmetic evaluation on the ARGs, and store the result in the
14652 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14653 # must be portable across $(()) and expr.
14654 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14655 eval 'as_fn_arith ()
14662 as_val=`expr "$@" || test $? -eq 1`
14667 if expr a : '\(a\)' >/dev/null 2>&1 &&
14668 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14674 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14675 as_basename=basename
14680 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14686 as_me=`$as_basename -- "$0" ||
14687 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14688 X"$0" : 'X\(//\)$' \| \
14689 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14691 sed '/^.*\/\([^/][^/]*\)\/*$/{
14705 # Avoid depending upon Character Ranges.
14706 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14707 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14708 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14709 as_cr_digits='0123456789'
14710 as_cr_alnum=$as_cr_Letters$as_cr_digits
14712 ECHO_C= ECHO_N= ECHO_T=
14713 case `echo -n x` in #(((((
14715 case `echo 'xy\c'` in
14716 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14718 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14725 rm -f conf$$ conf$$.exe conf$$.file
14726 if test -d conf$$.dir; then
14727 rm -f conf$$.dir/conf$$.file
14730 mkdir conf$$.dir 2>/dev/null
14732 if (echo >conf$$.file) 2>/dev/null; then
14733 if ln -s conf$$.file conf$$ 2>/dev/null; then
14735 # ... but there are two gotchas:
14736 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14737 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14738 # In both cases, we have to default to `cp -pR'.
14739 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14741 elif ln conf$$.file conf$$ 2>/dev/null; then
14749 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14750 rmdir conf$$.dir 2>/dev/null
14755 # Create "$as_dir" as a directory, including parents if necessary.
14760 -*) as_dir=./$as_dir;;
14762 test -d "$as_dir" || eval $as_mkdir_p || {
14766 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14767 *) as_qdir=$as_dir;;
14769 as_dirs="'$as_qdir' $as_dirs"
14770 as_dir=`$as_dirname -- "$as_dir" ||
14771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14772 X"$as_dir" : 'X\(//\)[^/]' \| \
14773 X"$as_dir" : 'X\(//\)$' \| \
14774 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14775 $as_echo X"$as_dir" |
14776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14780 /^X\(\/\/\)[^/].*/{
14793 test -d "$as_dir" && break
14795 test -z "$as_dirs" || eval "mkdir $as_dirs"
14796 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14800 if mkdir -p . 2>/dev/null; then
14801 as_mkdir_p='mkdir -p "$as_dir"'
14803 test -d ./-p && rmdir ./-p
14808 # as_fn_executable_p FILE
14809 # -----------------------
14810 # Test if FILE is an executable regular file.
14811 as_fn_executable_p ()
14813 test -f "$1" && test -x "$1"
14814 } # as_fn_executable_p
14815 as_test_x='test -x'
14816 as_executable_p=as_fn_executable_p
14818 # Sed expression to map a string onto a valid CPP name.
14819 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14821 # Sed expression to map a string onto a valid variable name.
14822 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14826 ## ----------------------------------- ##
14827 ## Main body of $CONFIG_STATUS script. ##
14828 ## ----------------------------------- ##
14830 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14833 # Save the log message, to keep $0 and so on meaningful, and to
14834 # report actual input values of CONFIG_FILES etc. instead of their
14835 # values after options handling.
14837 This file was extended by OpenBSM $as_me 1.2-alpha5, which was
14838 generated by GNU Autoconf 2.69. Invocation command line was
14840 CONFIG_FILES = $CONFIG_FILES
14841 CONFIG_HEADERS = $CONFIG_HEADERS
14842 CONFIG_LINKS = $CONFIG_LINKS
14843 CONFIG_COMMANDS = $CONFIG_COMMANDS
14846 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14851 case $ac_config_files in *"
14852 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14855 case $ac_config_headers in *"
14856 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14861 # Files that config.status was made for.
14862 config_files="$ac_config_files"
14863 config_headers="$ac_config_headers"
14864 config_commands="$ac_config_commands"
14868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14870 \`$as_me' instantiates files and other configuration actions
14871 from templates according to the current configuration. Unless the files
14872 and actions are specified as TAGs, all are instantiated by default.
14874 Usage: $0 [OPTION]... [TAG]...
14876 -h, --help print this help, then exit
14877 -V, --version print version number and configuration settings, then exit
14878 --config print configuration, then exit
14879 -q, --quiet, --silent
14880 do not print progress messages
14881 -d, --debug don't remove temporary files
14882 --recheck update $as_me by reconfiguring in the same conditions
14883 --file=FILE[:TEMPLATE]
14884 instantiate the configuration file FILE
14885 --header=FILE[:TEMPLATE]
14886 instantiate the configuration header FILE
14888 Configuration files:
14891 Configuration headers:
14894 Configuration commands:
14897 Report bugs to <trustedbsd-audit@TrustedBSD.org>."
14900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14901 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14903 OpenBSM config.status 1.2-alpha5
14904 configured by $0, generated by GNU Autoconf 2.69,
14905 with options \\"\$ac_cs_config\\"
14907 Copyright (C) 2012 Free Software Foundation, Inc.
14908 This config.status script is free software; the Free Software Foundation
14909 gives unlimited permission to copy, distribute and modify it."
14916 test -n "\$AWK" || AWK=awk
14919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14920 # The default lists apply if the user does not specify any file.
14926 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14927 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14943 # Handling of the options.
14944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14947 $as_echo "$ac_cs_version"; exit ;;
14948 --config | --confi | --conf | --con | --co | --c )
14949 $as_echo "$ac_cs_config"; exit ;;
14950 --debug | --debu | --deb | --de | --d | -d )
14952 --file | --fil | --fi | --f )
14955 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14956 '') as_fn_error $? "missing file argument" ;;
14958 as_fn_append CONFIG_FILES " '$ac_optarg'"
14959 ac_need_defaults=false;;
14960 --header | --heade | --head | --hea )
14963 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14965 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14966 ac_need_defaults=false;;
14968 # Conflict between --help and --header
14969 as_fn_error $? "ambiguous option: \`$1'
14970 Try \`$0 --help' for more information.";;
14971 --help | --hel | -h )
14972 $as_echo "$ac_cs_usage"; exit ;;
14973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14974 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14977 # This is an error.
14978 -*) as_fn_error $? "unrecognized option: \`$1'
14979 Try \`$0 --help' for more information." ;;
14981 *) as_fn_append ac_config_targets " $1"
14982 ac_need_defaults=false ;;
14988 ac_configure_extra_args=
14990 if $ac_cs_silent; then
14992 ac_configure_extra_args="$ac_configure_extra_args --silent"
14996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14997 if \$ac_cs_recheck; then
14998 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15000 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15001 CONFIG_SHELL='$SHELL'
15002 export CONFIG_SHELL
15007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15012 ## Running $as_me. ##
15018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15024 # The HP-UX ksh and POSIX shell print the target directory to stdout
15025 # if CDPATH is set.
15026 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15028 sed_quote_subst='$sed_quote_subst'
15029 double_quote_subst='$double_quote_subst'
15030 delay_variable_subst='$delay_variable_subst'
15031 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15032 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15033 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15034 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15035 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15036 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15037 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15038 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15039 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15040 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15041 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15042 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15043 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15044 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15045 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15046 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15047 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15048 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15049 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15050 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15051 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15052 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15053 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15054 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15055 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15056 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15057 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15058 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15059 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15060 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15061 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15062 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15063 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15064 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15065 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15066 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15067 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15068 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15069 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15070 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15071 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15072 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15073 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15074 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15075 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15076 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15077 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15078 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15079 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15080 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15081 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15082 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15083 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15084 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15085 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15086 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15087 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15088 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15089 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"`'
15090 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15091 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15092 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15093 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15094 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15095 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15096 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15097 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15098 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15099 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15100 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15101 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15102 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15103 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15104 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15105 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15106 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15107 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15108 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15109 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15110 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15111 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15112 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15113 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15114 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15115 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15116 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15117 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15118 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15119 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15120 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15121 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15122 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15123 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15124 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15125 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15126 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15127 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15128 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15129 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15130 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15131 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15132 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15133 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15134 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15135 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15136 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15137 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15138 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15139 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15140 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15141 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15142 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15143 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15144 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15145 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15146 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15147 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15148 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15149 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15150 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15151 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15152 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15153 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15154 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15155 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15156 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15157 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15158 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15159 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15160 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15161 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15162 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15163 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15164 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15165 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15168 LTCFLAGS='$LTCFLAGS'
15169 compiler='$compiler_DEFAULT'
15171 # A function that is used when there is no print builtin or printf.
15172 func_fallback_echo ()
15174 eval 'cat <<_LTECHO_EOF
15179 # Quote evaled strings.
15194 deplibs_check_method \
15199 sharedlib_from_linklib_cmd \
15202 archiver_list_spec \
15208 lt_cv_sys_global_symbol_pipe \
15209 lt_cv_sys_global_symbol_to_cdecl \
15210 lt_cv_sys_global_symbol_to_import \
15211 lt_cv_sys_global_symbol_to_c_name_address \
15212 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15213 lt_cv_nm_interface \
15214 nm_file_list_spec \
15215 lt_cv_truncate_bin \
15216 lt_prog_compiler_no_builtin_flag \
15217 lt_prog_compiler_pic \
15218 lt_prog_compiler_wl \
15219 lt_prog_compiler_static \
15220 lt_cv_prog_compiler_c_o \
15229 export_dynamic_flag_spec \
15230 whole_archive_flag_spec \
15231 compiler_needs_object \
15233 allow_undefined_flag \
15234 no_undefined_flag \
15235 hardcode_libdir_flag_spec \
15236 hardcode_libdir_separator \
15240 variables_saved_for_relink \
15242 library_names_spec \
15244 install_override_mode \
15248 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15249 *[\\\\\\\`\\"\\\$]*)
15250 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15253 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15258 # Double-quote double-evaled strings.
15259 for var in reload_cmds \
15260 old_postinstall_cmds \
15261 old_postuninstall_cmds \
15263 extract_expsyms_cmds \
15264 old_archive_from_new_cmds \
15265 old_archive_from_expsyms_cmds \
15267 archive_expsym_cmds \
15269 module_expsym_cmds \
15270 export_symbols_cmds \
15274 postuninstall_cmds \
15276 sys_lib_search_path_spec \
15277 configure_time_dlsearch_path \
15278 configure_time_lt_sys_library_path; do
15279 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15280 *[\\\\\\\`\\"\\\$]*)
15281 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15284 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15289 ac_aux_dir='$ac_aux_dir'
15291 # See if we are running on zsh, and set the options that allow our
15292 # commands through without removal of \ escapes INIT.
15293 if test -n "\${ZSH_VERSION+set}"; then
15294 setopt NO_GLOB_SUBST
15305 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15311 # Handling of arguments.
15312 for ac_config_target in $ac_config_targets
15314 case $ac_config_target in
15315 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
15316 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15317 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15318 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15319 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
15320 "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
15321 "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
15322 "bin/auditdistd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditdistd/Makefile" ;;
15323 "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
15324 "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
15325 "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
15326 "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
15327 "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
15328 "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
15329 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15330 "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
15331 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15332 "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
15333 "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
15334 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15335 "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
15336 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15338 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15343 # If the user did not use the arguments to specify the items to instantiate,
15344 # then the envvar interface is used. Set only those that are not.
15345 # We use the long form for the default assignment because of an extremely
15346 # bizarre bug on SunOS 4.1.3.
15347 if $ac_need_defaults; then
15348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15350 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15353 # Have a temporary directory for convenience. Make it in the build tree
15354 # simply because there is no reason against having it here, and in addition,
15355 # creating and moving files from /tmp can sometimes cause problems.
15356 # Hook for its removal unless debugging.
15357 # Note that there is a small window in which the directory will not be cleaned:
15358 # after its creation but before its name has been assigned to `$tmp'.
15362 trap 'exit_status=$?
15363 : "${ac_tmp:=$tmp}"
15364 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15366 trap 'as_fn_exit 1' 1 2 13 15
15368 # Create a (secure) tmp directory for tmp files.
15371 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15375 tmp=./conf$$-$RANDOM
15376 (umask 077 && mkdir "$tmp")
15377 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15380 # Set up the scripts for CONFIG_FILES section.
15381 # No need to generate them if there are no CONFIG_FILES.
15382 # This happens for instance with `./config.status config.h'.
15383 if test -n "$CONFIG_FILES"; then
15386 ac_cr=`echo X | tr X '\015'`
15387 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15388 # But we know of no other shell where ac_cr would be empty at this
15389 # point, so we can use a bashism as a fallback.
15390 if test "x$ac_cr" = x; then
15391 eval ac_cr=\$\'\\r\'
15393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15397 ac_cs_awk_cr=$ac_cr
15400 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15405 echo "cat >conf$$subs.awk <<_ACEOF" &&
15406 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15408 } >conf$$subs.sh ||
15409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15410 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15412 for ac_last_try in false false false false false :; do
15413 . ./conf$$subs.sh ||
15414 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15416 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15417 if test $ac_delim_n = $ac_delim_num; then
15419 elif $ac_last_try; then
15420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15425 rm -f conf$$subs.sh
15427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15428 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15432 s/^/S["/; s/!.*/"]=/
15442 s/\(.\{148\}\)..*/\1/
15444 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15449 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15456 s/\(.\{148\}\)..*/\1/
15458 s/["\\]/\\&/g; s/^/"/; s/$/"/
15462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15467 ' <conf$$subs.awk | sed '
15472 ' >>$CONFIG_STATUS || ac_write_fail=1
15473 rm -f conf$$subs.awk
15474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15476 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15477 for (key in S) S_is_set[key] = 1
15483 nfields = split(line, field, "@")
15485 len = length(field[1])
15486 for (i = 2; i < nfields; i++) {
15488 keylen = length(key)
15489 if (S_is_set[key]) {
15491 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15492 len += length(value) + length(field[++i])
15503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15504 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15505 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15508 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15509 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15512 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15513 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15514 # trailing colons and then remove the whole line if VPATH becomes empty
15515 # (actually we leave an empty line to preserve line numbers).
15516 if test "x$srcdir" = x.; then
15517 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15536 fi # test -n "$CONFIG_FILES"
15538 # Set up the scripts for CONFIG_HEADERS section.
15539 # No need to generate them if there are no CONFIG_HEADERS.
15540 # This happens for instance with `./config.status Makefile'.
15541 if test -n "$CONFIG_HEADERS"; then
15542 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15546 # Transform confdefs.h into an awk script `defines.awk', embedded as
15547 # here-document in config.status, that substitutes the proper values into
15548 # config.h.in to produce config.h.
15550 # Create a delimiter string that does not exist in confdefs.h, to ease
15551 # handling of long lines.
15553 for ac_last_try in false false :; do
15554 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15555 if test -z "$ac_tt"; then
15557 elif $ac_last_try; then
15558 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15564 # For the awk script, D is an array of macro values keyed by name,
15565 # likewise P contains macro parameters if any. Preserve backslash
15566 # newline sequences.
15568 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15570 s/.\{148\}/&'"$ac_delim"'/g
15573 s/^[ ]*#[ ]*define[ ][ ]*/ /
15580 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15586 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15587 D["\1"]=" \3\\\\\\n"\\/p
15589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15594 s/.\{148\}/&'"$ac_delim"'/g
15599 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15602 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15604 ' <confdefs.h | sed '
15605 s/'"$ac_delim"'/"\\\
15606 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15609 for (key in D) D_is_set[key] = 1
15612 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15614 split(line, arg, " ")
15615 if (arg[1] == "#") {
15619 defundef = substr(arg[1], 2)
15622 split(mac1, mac2, "(") #)
15624 prefix = substr(line, 1, index(line, defundef) - 1)
15625 if (D_is_set[macro]) {
15626 # Preserve the white space surrounding the "#".
15627 print prefix "define", macro P[macro] D[macro]
15630 # Replace #undef with comments. This is necessary, for example,
15631 # in the case of _POSIX_SOURCE, which is predefined and required
15632 # on some systems where configure will not decide to define it.
15633 if (defundef == "undef") {
15634 print "/*", prefix defundef, macro, "*/"
15642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15643 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15644 fi # test -n "$CONFIG_HEADERS"
15647 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15652 :[FHLC]) ac_mode=$ac_tag; continue;;
15654 case $ac_mode$ac_tag in
15656 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15657 :[FH]-) ac_tag=-:-;;
15658 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15675 -) ac_f="$ac_tmp/stdin";;
15676 *) # Look for the file first in the build tree, then in the source tree
15677 # (if the path is not absolute). The absolute path cannot be DOS-style,
15678 # because $ac_f cannot contain `:'.
15682 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15684 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15686 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15687 as_fn_append ac_file_inputs " '$ac_f'"
15690 # Let's still pretend it is `configure' which instantiates (i.e., don't
15691 # use $as_me), people would be surprised to read:
15692 # /* config.h. Generated by config.status. */
15693 configure_input='Generated from '`
15694 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15696 if test x"$ac_file" != x-; then
15697 configure_input="$ac_file. $configure_input"
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15699 $as_echo "$as_me: creating $ac_file" >&6;}
15701 # Neutralize special characters interpreted by sed in replacement strings.
15702 case $configure_input in #(
15703 *\&* | *\|* | *\\* )
15704 ac_sed_conf_input=`$as_echo "$configure_input" |
15705 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15706 *) ac_sed_conf_input=$configure_input;;
15710 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15711 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15716 ac_dir=`$as_dirname -- "$ac_file" ||
15717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15718 X"$ac_file" : 'X\(//\)[^/]' \| \
15719 X"$ac_file" : 'X\(//\)$' \| \
15720 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15721 $as_echo X"$ac_file" |
15722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15726 /^X\(\/\/\)[^/].*/{
15739 as_dir="$ac_dir"; as_fn_mkdir_p
15743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15746 # A ".." for each directory in $ac_dir_suffix.
15747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15748 case $ac_top_builddir_sub in
15749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15753 ac_abs_top_builddir=$ac_pwd
15754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15755 # for backward compatibility:
15756 ac_top_builddir=$ac_top_build_prefix
15759 .) # We are building in place.
15761 ac_top_srcdir=$ac_top_builddir_sub
15762 ac_abs_top_srcdir=$ac_pwd ;;
15763 [\\/]* | ?:[\\/]* ) # Absolute name.
15764 ac_srcdir=$srcdir$ac_dir_suffix;
15765 ac_top_srcdir=$srcdir
15766 ac_abs_top_srcdir=$srcdir ;;
15767 *) # Relative name.
15768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15769 ac_top_srcdir=$ac_top_build_prefix$srcdir
15770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15783 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15785 ac_MKDIR_P=$MKDIR_P
15787 [\\/$]* | ?:[\\/]* ) ;;
15788 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15793 # If the template does not know about datarootdir, expand it.
15794 # FIXME: This hack should be removed a few years after 2.60.
15795 ac_datarootdir_hack=; ac_datarootdir_seen=
15806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15807 *datarootdir*) ac_datarootdir_seen=yes;;
15808 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15813 ac_datarootdir_hack='
15814 s&@datadir@&$datadir&g
15815 s&@docdir@&$docdir&g
15816 s&@infodir@&$infodir&g
15817 s&@localedir@&$localedir&g
15818 s&@mandir@&$mandir&g
15819 s&\\\${datarootdir}&$datarootdir&g' ;;
15823 # Neutralize VPATH when `$srcdir' = `.'.
15824 # Shell code in configure.ac might set extrasub.
15825 # FIXME: do we really want to maintain this feature?
15826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15827 ac_sed_extra="$ac_vpsub
15830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15833 s|@configure_input@|$ac_sed_conf_input|;t t
15834 s&@top_builddir@&$ac_top_builddir_sub&;t t
15835 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15836 s&@srcdir@&$ac_srcdir&;t t
15837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15838 s&@top_srcdir@&$ac_top_srcdir&;t t
15839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15840 s&@builddir@&$ac_builddir&;t t
15841 s&@abs_builddir@&$ac_abs_builddir&;t t
15842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15843 s&@INSTALL@&$ac_INSTALL&;t t
15844 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15845 $ac_datarootdir_hack
15847 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15848 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15850 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15851 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15852 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15853 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15855 which seems to be undefined. Please make sure it is defined" >&5
15856 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15857 which seems to be undefined. Please make sure it is defined" >&2;}
15859 rm -f "$ac_tmp/stdin"
15861 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15862 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15870 if test x"$ac_file" != x-; then
15872 $as_echo "/* $configure_input */" \
15873 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15874 } >"$ac_tmp/config.h" \
15875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15876 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15878 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15881 mv "$ac_tmp/config.h" "$ac_file" \
15882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15885 $as_echo "/* $configure_input */" \
15886 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15887 || as_fn_error $? "could not create -" "$LINENO" 5
15889 # Compute "$ac_file"'s index in $config_headers.
15892 for _am_header in $config_headers :; do
15893 case $_am_header in
15894 $_am_arg | $_am_arg:* )
15897 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15900 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15901 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15902 X"$_am_arg" : 'X\(//\)[^/]' \| \
15903 X"$_am_arg" : 'X\(//\)$' \| \
15904 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15905 $as_echo X"$_am_arg" |
15906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15910 /^X\(\/\/\)[^/].*/{
15922 s/.*/./; q'`/stamp-h$_am_stamp_count
15925 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15926 $as_echo "$as_me: executing $ac_file commands" >&6;}
15931 case $ac_file$ac_mode in
15934 # See if we are running on zsh, and set the options that allow our
15935 # commands through without removal of \ escapes.
15936 if test -n "${ZSH_VERSION+set}"; then
15937 setopt NO_GLOB_SUBST
15941 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15944 cat <<_LT_EOF >> "$cfgfile"
15946 # Generated automatically by $as_me ($PACKAGE) $VERSION
15947 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15948 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15950 # Provide generalized library-building support services.
15951 # Written by Gordon Matzigkeit, 1996
15953 # Copyright (C) 2014 Free Software Foundation, Inc.
15954 # This is free software; see the source for copying conditions. There is NO
15955 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15957 # GNU Libtool is free software; you can redistribute it and/or modify
15958 # it under the terms of the GNU General Public License as published by
15959 # the Free Software Foundation; either version 2 of of the License, or
15960 # (at your option) any later version.
15962 # As a special exception to the GNU General Public License, if you
15963 # distribute this file as part of a program or library that is built
15964 # using GNU Libtool, you may include this file under the same
15965 # distribution terms that you use for the rest of that program.
15967 # GNU Libtool is distributed in the hope that it will be useful, but
15968 # WITHOUT ANY WARRANTY; without even the implied warranty of
15969 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15970 # GNU General Public License for more details.
15972 # You should have received a copy of the GNU General Public License
15973 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15976 # The names of the tagged configurations supported by this script.
15979 # Configured defaults for sys_lib_dlsearch_path munging.
15980 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15982 # ### BEGIN LIBTOOL CONFIG
15984 # Which release of libtool.m4 was used?
15985 macro_version=$macro_version
15986 macro_revision=$macro_revision
15988 # Whether or not to build shared libraries.
15989 build_libtool_libs=$enable_shared
15991 # Whether or not to build static libraries.
15992 build_old_libs=$enable_static
15994 # What type of objects to build.
15997 # Whether or not to optimize for fast installation.
15998 fast_install=$enable_fast_install
16000 # Shared archive member basename,for filename based shared library versioning on AIX.
16001 shared_archive_member_spec=$shared_archive_member_spec
16003 # Shell to use when invoking shell scripts.
16006 # An echo program that protects backslashes.
16009 # The PATH separator for the build system.
16010 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16013 host_alias=$host_alias
16017 # The build system.
16018 build_alias=$build_alias
16022 # A sed program that does not truncate output.
16025 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16026 Xsed="\$SED -e 1s/^X//"
16028 # A grep program that handles long lines.
16034 # A literal string matcher.
16037 # A BSD- or MS-compatible name lister.
16040 # Whether we need soft or hard links.
16043 # What is the maximum length of a command?
16044 max_cmd_len=$max_cmd_len
16046 # Object file suffix (normally "o").
16049 # Executable file suffix (normally "").
16052 # whether the shell understands "unset".
16055 # turn spaces into newlines.
16058 # turn newlines into spaces.
16061 # convert \$build file names to \$host format.
16062 to_host_file_cmd=$lt_cv_to_host_file_cmd
16064 # convert \$build files to toolchain format.
16065 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16067 # An object symbol dumper.
16068 OBJDUMP=$lt_OBJDUMP
16070 # Method to check whether dependent libraries are shared objects.
16071 deplibs_check_method=$lt_deplibs_check_method
16073 # Command to use when deplibs_check_method = "file_magic".
16074 file_magic_cmd=$lt_file_magic_cmd
16076 # How to find potential files when deplibs_check_method = "file_magic".
16077 file_magic_glob=$lt_file_magic_glob
16079 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16080 want_nocaseglob=$lt_want_nocaseglob
16082 # DLL creation program.
16083 DLLTOOL=$lt_DLLTOOL
16085 # Command to associate shared and link libraries.
16086 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16091 # Flags to create an archive.
16092 AR_FLAGS=$lt_AR_FLAGS
16094 # How to feed a file listing to the archiver.
16095 archiver_list_spec=$lt_archiver_list_spec
16097 # A symbol stripping program.
16100 # Commands used to install an old-style archive.
16102 old_postinstall_cmds=$lt_old_postinstall_cmds
16103 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16105 # Whether to use a lock for old archive extraction.
16106 lock_old_archive_extraction=$lock_old_archive_extraction
16111 # LTCC compiler flags.
16112 LTCFLAGS=$lt_CFLAGS
16114 # Take the output of nm and produce a listing of raw symbols and C names.
16115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16117 # Transform the output of nm in a proper C declaration.
16118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16120 # Transform the output of nm into a list of symbols to manually relocate.
16121 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16123 # Transform the output of nm in a C name address pair.
16124 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16126 # Transform the output of nm in a C name address pair when lib prefix is needed.
16127 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16129 # The name lister interface.
16130 nm_interface=$lt_lt_cv_nm_interface
16132 # Specify filename containing input files for \$NM.
16133 nm_file_list_spec=$lt_nm_file_list_spec
16135 # The root where to search for dependent libraries,and where our libraries should be installed.
16136 lt_sysroot=$lt_sysroot
16138 # Command to truncate a binary pipe.
16139 lt_truncate_bin=$lt_lt_cv_truncate_bin
16141 # The name of the directory that contains temporary libtool files.
16144 # Used to examine libraries when file_magic_cmd begins with "file".
16145 MAGIC_CMD=$MAGIC_CMD
16147 # Must we lock files when doing compilation?
16148 need_locks=$lt_need_locks
16151 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16153 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16154 DSYMUTIL=$lt_DSYMUTIL
16156 # Tool to change global to local symbols on Mac OS X.
16159 # Tool to manipulate fat objects and archives on Mac OS X.
16162 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16165 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16166 OTOOL64=$lt_OTOOL64
16168 # Old archive suffix (normally "a").
16171 # Shared library suffix (normally ".so").
16172 shrext_cmds=$lt_shrext_cmds
16174 # The commands to extract the exported symbol list from a shared archive.
16175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16177 # Variables whose values should be saved in libtool wrapper scripts and
16178 # restored at link time.
16179 variables_saved_for_relink=$lt_variables_saved_for_relink
16181 # Do we need the "lib" prefix for modules?
16182 need_lib_prefix=$need_lib_prefix
16184 # Do we need a version for libraries?
16185 need_version=$need_version
16187 # Library versioning type.
16188 version_type=$version_type
16190 # Shared library runtime path variable.
16191 runpath_var=$runpath_var
16193 # Shared library path variable.
16194 shlibpath_var=$shlibpath_var
16196 # Is shlibpath searched before the hard-coded library search path?
16197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16199 # Format of library name prefix.
16200 libname_spec=$lt_libname_spec
16202 # List of archive names. First name is the real one, the rest are links.
16203 # The last name is the one that the linker finds with -lNAME
16204 library_names_spec=$lt_library_names_spec
16206 # The coded name of the library, if different from the real name.
16207 soname_spec=$lt_soname_spec
16209 # Permission mode override for installation of shared libraries.
16210 install_override_mode=$lt_install_override_mode
16212 # Command to use after installation of a shared archive.
16213 postinstall_cmds=$lt_postinstall_cmds
16215 # Command to use after uninstallation of a shared archive.
16216 postuninstall_cmds=$lt_postuninstall_cmds
16218 # Commands used to finish a libtool library installation in a directory.
16219 finish_cmds=$lt_finish_cmds
16221 # As "finish_cmds", except a single script fragment to be evaled but
16223 finish_eval=$lt_finish_eval
16225 # Whether we should hardcode library paths into libraries.
16226 hardcode_into_libs=$hardcode_into_libs
16228 # Compile-time system search path for libraries.
16229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16231 # Detected run-time system search path for libraries.
16232 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16234 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16235 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16237 # Whether dlopen is supported.
16238 dlopen_support=$enable_dlopen
16240 # Whether dlopen of programs is supported.
16241 dlopen_self=$enable_dlopen_self
16243 # Whether dlopen of statically linked programs is supported.
16244 dlopen_self_static=$enable_dlopen_self_static
16246 # Commands to strip libraries.
16247 old_striplib=$lt_old_striplib
16248 striplib=$lt_striplib
16251 # The linker used to build libraries.
16254 # How to create reloadable object files.
16255 reload_flag=$lt_reload_flag
16256 reload_cmds=$lt_reload_cmds
16258 # Commands used to build an old-style archive.
16259 old_archive_cmds=$lt_old_archive_cmds
16261 # A language specific compiler.
16264 # Is the compiler the GNU compiler?
16267 # Compiler flag to turn off builtin functions.
16268 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16270 # Additional compiler flags for building library objects.
16271 pic_flag=$lt_lt_prog_compiler_pic
16273 # How to pass a linker flag through the compiler.
16274 wl=$lt_lt_prog_compiler_wl
16276 # Compiler flag to prevent dynamic linking.
16277 link_static_flag=$lt_lt_prog_compiler_static
16279 # Does compiler simultaneously support -c and -o options?
16280 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16282 # Whether or not to add -lc for building shared libraries.
16283 build_libtool_need_lc=$archive_cmds_need_lc
16285 # Whether or not to disallow shared libs when runtime libs are static.
16286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16288 # Compiler flag to allow reflexive dlopens.
16289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16291 # Compiler flag to generate shared objects directly from archives.
16292 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16294 # Whether the compiler copes with passing no objects directly.
16295 compiler_needs_object=$lt_compiler_needs_object
16297 # Create an old-style archive from a shared archive.
16298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16300 # Create a temporary old-style archive to link instead of a shared archive.
16301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16303 # Commands used to build a shared archive.
16304 archive_cmds=$lt_archive_cmds
16305 archive_expsym_cmds=$lt_archive_expsym_cmds
16307 # Commands used to build a loadable module if different from building
16308 # a shared archive.
16309 module_cmds=$lt_module_cmds
16310 module_expsym_cmds=$lt_module_expsym_cmds
16312 # Whether we are building with GNU ld or not.
16313 with_gnu_ld=$lt_with_gnu_ld
16315 # Flag that allows shared libraries with undefined symbols to be built.
16316 allow_undefined_flag=$lt_allow_undefined_flag
16318 # Flag that enforces no undefined symbols.
16319 no_undefined_flag=$lt_no_undefined_flag
16321 # Flag to hardcode \$libdir into a binary during linking.
16322 # This must work even if \$libdir does not exist
16323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16325 # Whether we need a single "-rpath" flag with a separated argument.
16326 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16328 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16329 # DIR into the resulting binary.
16330 hardcode_direct=$hardcode_direct
16332 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16333 # DIR into the resulting binary and the resulting library dependency is
16334 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16335 # library is relocated.
16336 hardcode_direct_absolute=$hardcode_direct_absolute
16338 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16339 # into the resulting binary.
16340 hardcode_minus_L=$hardcode_minus_L
16342 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16343 # into the resulting binary.
16344 hardcode_shlibpath_var=$hardcode_shlibpath_var
16346 # Set to "yes" if building a shared library automatically hardcodes DIR
16347 # into the library and all subsequent libraries and executables linked
16349 hardcode_automatic=$hardcode_automatic
16351 # Set to yes if linker adds runtime paths of dependent libraries
16352 # to runtime path list.
16353 inherit_rpath=$inherit_rpath
16355 # Whether libtool must link a program against all its dependency libraries.
16356 link_all_deplibs=$link_all_deplibs
16358 # Set to "yes" if exported symbols are required.
16359 always_export_symbols=$always_export_symbols
16361 # The commands to list exported symbols.
16362 export_symbols_cmds=$lt_export_symbols_cmds
16364 # Symbols that should not be listed in the preloaded symbols.
16365 exclude_expsyms=$lt_exclude_expsyms
16367 # Symbols that must always be exported.
16368 include_expsyms=$lt_include_expsyms
16370 # Commands necessary for linking programs (against libraries) with templates.
16371 prelink_cmds=$lt_prelink_cmds
16373 # Commands necessary for finishing linking programs.
16374 postlink_cmds=$lt_postlink_cmds
16376 # Specify filename containing input files.
16377 file_list_spec=$lt_file_list_spec
16379 # How to hardcode a shared library path into an executable.
16380 hardcode_action=$hardcode_action
16382 # ### END LIBTOOL CONFIG
16386 cat <<'_LT_EOF' >> "$cfgfile"
16388 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16390 # func_munge_path_list VARIABLE PATH
16391 # -----------------------------------
16392 # VARIABLE is name of variable containing _space_ separated list of
16393 # directories to be munged by the contents of PATH, which is string
16396 # string "DIR[ DIR]" will be prepended to VARIABLE
16398 # string "DIR[ DIR]" will be appended to VARIABLE
16399 # "DIRP[:DIRP]::[DIRA:]DIRA"
16400 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16401 # "DIRA[ DIRA]" will be appended to VARIABLE
16403 # VARIABLE will be replaced by "DIR[ DIR]"
16404 func_munge_path_list ()
16410 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16413 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16416 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16417 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16420 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16426 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16427 func_cc_basename ()
16429 for cc_temp in $*""; do
16431 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16432 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16437 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16441 # ### END FUNCTIONS SHARED WITH CONFIGURE
16447 cat <<\_LT_EOF >> "$cfgfile"
16448 # AIX sometimes has problems with the GCC collect2 program. For some
16449 # reason, if we set the COLLECT_NAMES environment variable, the problems
16450 # vanish in a puff of smoke.
16451 if test set != "${COLLECT_NAMES+set}"; then
16453 export COLLECT_NAMES
16460 ltmain=$ac_aux_dir/ltmain.sh
16463 # We use sed instead of cat because bash on DJGPP gets confused if
16464 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16465 # text mode, it properly converts lines to CR/LF. This bash problem
16466 # is reportedly fixed, but why not run on old versions too?
16467 sed '$q' "$ltmain" >> "$cfgfile" \
16468 || (rm -f "$cfgfile"; exit 1)
16470 mv -f "$cfgfile" "$ofile" ||
16471 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16475 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16476 # Older Autoconf quotes --file arguments for eval, but not when files
16477 # are listed without --file. Let's play safe and only enable the eval
16478 # if we detect the quoting.
16479 case $CONFIG_FILES in
16480 *\'*) eval set x "$CONFIG_FILES" ;;
16481 *) set x $CONFIG_FILES ;;
16486 # Strip MF so we end up with the name of the file.
16487 mf=`echo "$mf" | sed -e 's/:.*$//'`
16488 # Check whether this is an Automake generated Makefile or not.
16489 # We used to match only the files named 'Makefile.in', but
16490 # some people rename them; so instead we look at the file content.
16491 # Grep'ing the first line is not enough: some people post-process
16492 # each Makefile.in and add a new line on top of each file to say so.
16493 # Grep'ing the whole file is not good either: AIX grep has a line
16494 # limit of 2048, but all sed's we know have understand at least 4000.
16495 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16496 dirpart=`$as_dirname -- "$mf" ||
16497 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16498 X"$mf" : 'X\(//\)[^/]' \| \
16499 X"$mf" : 'X\(//\)$' \| \
16500 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16506 /^X\(\/\/\)[^/].*/{
16522 # Extract the definition of DEPDIR, am__include, and am__quote
16523 # from the Makefile without running 'make'.
16524 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16525 test -z "$DEPDIR" && continue
16526 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16527 test -z "$am__include" && continue
16528 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16529 # Find all dependency output files, they are included files with
16530 # $(DEPDIR) in their names. We invoke sed twice because it is the
16531 # simplest approach to changing $(DEPDIR) to its actual value in the
16533 for file in `sed -n "
16534 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16535 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16536 # Make sure the directory exists.
16537 test -f "$dirpart/$file" && continue
16538 fdir=`$as_dirname -- "$file" ||
16539 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16540 X"$file" : 'X\(//\)[^/]' \| \
16541 X"$file" : 'X\(//\)$' \| \
16542 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16543 $as_echo X"$file" |
16544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16548 /^X\(\/\/\)[^/].*/{
16561 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16562 # echo "creating $dirpart/$file"
16563 echo '# dummy' > "$dirpart/$file"
16575 ac_clean_files=$ac_clean_files_save
16577 test $ac_write_fail = 0 ||
16578 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16581 # configure is writing to config.log, and then calls config.status.
16582 # config.status does its own redirection, appending to config.log.
16583 # Unfortunately, on DOS this fails, as config.log is still kept open
16584 # by configure, so config.status won't be able to write to it; its
16585 # output is simply discarded. So we exec the FD to /dev/null,
16586 # effectively closing config.log, so it can be properly (re)opened and
16587 # appended to by config.status. When coming back to configure, we
16588 # need to make the FD available again.
16589 if test "$no_create" != yes; then
16591 ac_config_status_args=
16592 test "$silent" = yes &&
16593 ac_config_status_args="$ac_config_status_args --quiet"
16595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16598 # would make configure fail if this is the last instruction.
16599 $ac_cs_success || as_fn_exit 1
16601 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16603 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}