2 # From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#65 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for OpenBSM 1.2-alpha3.
6 # Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: trustedbsd-audit@TrustesdBSD.org about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='OpenBSM'
593 PACKAGE_TARNAME='openbsm'
594 PACKAGE_VERSION='1.2-alpha3'
595 PACKAGE_STRING='OpenBSM 1.2-alpha3'
596 PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
599 ac_unique_file="bin/auditreduce/auditreduce.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
638 ac_subst_vars='am__EXEEXT_FALSE
643 HAVE_AUDIT_SYSCALLS_FALSE
644 HAVE_AUDIT_SYSCALLS_TRUE
663 INSTALL_STRIP_PROGRAM
722 USE_NATIVE_INCLUDES_FALSE
723 USE_NATIVE_INCLUDES_TRUE
725 MAINTAINER_MODE_FALSE
754 program_transform_name
767 enable_option_checking
768 enable_maintainer_mode
777 enable_dependency_tracking
779 ac_precious_vars='build_alias
792 # Initialize some variables set by options.
794 ac_init_version=false
795 ac_unrecognized_opts=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name=s,x,x,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
950 -help | --help | --hel | --he | -h)
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1099 -site=* | --site=* | --sit=*)
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1155 eval with_$ac_useropt=no ;;
1158 # Obsolete; use --with-x.
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1226 # Be sure to have absolute directory names.
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures OpenBSM 1.2-alpha3 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/openbsm]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of OpenBSM 1.2-alpha3:";;
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-maintainer-mode
1409 enable make rules and dependencies not useful (and
1410 sometimes confusing) to the casual installer
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-native-includes Use the system native include files instead of those
1425 included with openbsm.
1426 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 --with-sysroot=DIR Search for dependent libraries within DIR
1430 (or the compiler's sysroot if not specified).
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1441 YACC The `Yet Another Compiler Compiler' implementation to use.
1442 Defaults to the first program found out of: `bison -y', `byacc',
1444 YFLAGS The list of arguments that will be passed by default to $YACC.
1445 This script will default YFLAGS to the empty string to avoid a
1446 default value of `-d' given by some make applications.
1448 Use these variables to override the choices made by `configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1451 Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1481 .) # We are building in place.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1514 OpenBSM configure 1.2-alpha3
1515 generated by GNU Autoconf 2.69
1517 Copyright (C) 2012 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1564 } # ac_fn_c_try_compile
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest$ac_exeext
1573 if { { ac_try="$ac_link"
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 test -x conftest$ac_exeext
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1610 } # ac_fn_c_try_link
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if eval \${$3+:} false; then :
1622 $as_echo_n "(cached) " >&6
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1629 if ac_fn_c_try_compile "$LINENO"; then :
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 } # ac_fn_c_check_header_compile
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } > conftest.i && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=$ac_status
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1745 # include <limits.h>
1747 # include <assert.h>
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1774 if ac_fn_c_try_link "$LINENO"; then :
1779 rm -f core conftest.err conftest.$ac_objext \
1780 conftest$ac_exeext conftest.$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 } # ac_fn_c_check_func
1789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790 # -------------------------------------------------------
1791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792 # the include files in INCLUDES and setting the cache variable VAR
1794 ac_fn_c_check_header_mongrel ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if eval \${$3+:} false; then :
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if eval \${$3+:} false; then :
1801 $as_echo_n "(cached) " >&6
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 # Is the header compilable?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809 $as_echo_n "checking $2 usability... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 ac_header_compiler=yes
1818 ac_header_compiler=no
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822 $as_echo "$ac_header_compiler" >&6; }
1824 # Is the header present?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826 $as_echo_n "checking $2 presence... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1831 if ac_fn_c_try_cpp "$LINENO"; then :
1832 ac_header_preproc=yes
1834 ac_header_preproc=no
1836 rm -f conftest.err conftest.i conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838 $as_echo "$ac_header_preproc" >&6; }
1840 # So? What about this header?
1841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ( $as_echo "## ----------------------------------------------- ##
1860 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
1861 ## ----------------------------------------------- ##"
1862 ) | sed "s/^/$as_me: WARNING: /" >&2
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1870 eval "$3=\$ac_header_compiler"
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_header_mongrel
1880 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1881 # -------------------------------------------
1882 # Tests whether TYPE exists after having included INCLUDES, setting cache
1883 # variable VAR accordingly.
1884 ac_fn_c_check_type ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1918 if ac_fn_c_try_compile "$LINENO"; then :
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_type
1934 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1935 # ----------------------------------------------------
1936 # Tries to find if the field MEMBER exists in type AGGR, after including
1937 # INCLUDES, setting cache variable VAR accordingly.
1938 ac_fn_c_check_member ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1942 $as_echo_n "checking for $2.$3... " >&6; }
1943 if eval \${$4+:} false; then :
1944 $as_echo_n "(cached) " >&6
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1959 if ac_fn_c_try_compile "$LINENO"; then :
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1969 if (sizeof ac_aggr.$3)
1975 if ac_fn_c_try_compile "$LINENO"; then :
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_member
1990 cat >config.log <<_ACEOF
1991 This file contains any messages produced by compilers while
1992 running configure, to aid debugging if configure makes a mistake.
1994 It was created by OpenBSM $as_me 1.2-alpha3, which was
1995 generated by GNU Autoconf 2.69. Invocation command line was
2007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2019 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 $as_echo "PATH: $as_dir"
2047 # Keep a trace of the command line.
2048 # Strip out --no-create and --no-recursion so they do not pile up.
2049 # Strip out --silent because we don't want to record it for future runs.
2050 # Also quote any args containing shell meta-characters.
2051 # Make two passes to allow for proper duplicate-argument suppression.
2055 ac_must_keep_next=false
2061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2063 | -silent | --silent | --silen | --sile | --sil)
2066 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071 as_fn_append ac_configure_args1 " '$ac_arg'"
2072 if test $ac_must_keep_next = true; then
2073 ac_must_keep_next=false # Got value, back to normal.
2076 *=* | --config-cache | -C | -disable-* | --disable-* \
2077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2079 | -with-* | --with-* | -without-* | --without-* | --x)
2080 case "$ac_configure_args0 " in
2081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2084 -* ) ac_must_keep_next=true ;;
2087 as_fn_append ac_configure_args " '$ac_arg'"
2092 { ac_configure_args0=; unset ac_configure_args0;}
2093 { ac_configure_args1=; unset ac_configure_args1;}
2095 # When interrupted or exit'd, cleanup temporary files, and complete
2096 # config.log. We remove comments because anyway the quotes in there
2097 # would cause problems or look ugly.
2098 # WARNING: Use '\'' to represent an apostrophe within the trap.
2099 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2100 trap 'exit_status=$?
2101 # Save into config.log some information that might help in debugging.
2105 $as_echo "## ---------------- ##
2106 ## Cache variables. ##
2107 ## ---------------- ##"
2109 # The following way of writing the cache mishandles newlines in values,
2111 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2112 eval ac_val=\$$ac_var
2116 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2117 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2120 _ | IFS | as_nl) ;; #(
2121 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2122 *) { eval $ac_var=; unset $ac_var;} ;;
2127 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2128 *${as_nl}ac_space=\ *)
2130 "s/'\''/'\''\\\\'\'''\''/g;
2131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2141 $as_echo "## ----------------- ##
2142 ## Output variables. ##
2143 ## ----------------- ##"
2145 for ac_var in $ac_subst_vars
2147 eval ac_val=\$$ac_var
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 $as_echo "$ac_var='\''$ac_val'\''"
2155 if test -n "$ac_subst_files"; then
2156 $as_echo "## ------------------- ##
2157 ## File substitutions. ##
2158 ## ------------------- ##"
2160 for ac_var in $ac_subst_files
2162 eval ac_val=\$$ac_var
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 $as_echo "$ac_var='\''$ac_val'\''"
2171 if test -s confdefs.h; then
2172 $as_echo "## ----------- ##
2179 test "$ac_signal" != 0 &&
2180 $as_echo "$as_me: caught signal $ac_signal"
2181 $as_echo "$as_me: exit $exit_status"
2183 rm -f core *.core core.conftest.* &&
2184 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2187 for ac_signal in 1 2 13 15; do
2188 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2193 rm -f -r conftest* confdefs.h
2195 $as_echo "/* confdefs.h */" > confdefs.h
2197 # Predefined preprocessor variables.
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_NAME "$PACKAGE_NAME"
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_STRING "$PACKAGE_STRING"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_URL "$PACKAGE_URL"
2224 # Let the site file select an alternate cache file if it wants to.
2225 # Prefer an explicitly selected file to automatically selected ones.
2228 if test -n "$CONFIG_SITE"; then
2229 # We do not want a PATH search for config.site.
2230 case $CONFIG_SITE in #((
2231 -*) ac_site_file1=./$CONFIG_SITE;;
2232 */*) ac_site_file1=$CONFIG_SITE;;
2233 *) ac_site_file1=./$CONFIG_SITE;;
2235 elif test "x$prefix" != xNONE; then
2236 ac_site_file1=$prefix/share/config.site
2237 ac_site_file2=$prefix/etc/config.site
2239 ac_site_file1=$ac_default_prefix/share/config.site
2240 ac_site_file2=$ac_default_prefix/etc/config.site
2242 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2244 test "x$ac_site_file" = xNONE && continue
2245 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2247 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2248 sed 's/^/| /' "$ac_site_file" >&5
2250 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 as_fn_error $? "failed to load site script $ac_site_file
2253 See \`config.log' for more details" "$LINENO" 5; }
2257 if test -r "$cache_file"; then
2258 # Some versions of bash will fail to source /dev/null (special files
2259 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2260 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2262 $as_echo "$as_me: loading cache $cache_file" >&6;}
2264 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2265 *) . "./$cache_file";;
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2270 $as_echo "$as_me: creating cache $cache_file" >&6;}
2274 as_fn_append ac_header_list " sys/time.h"
2275 as_fn_append ac_header_list " unistd.h"
2276 as_fn_append ac_func_list " alarm"
2277 # Check that the precious variables saved in the cache have kept the same
2279 ac_cache_corrupted=false
2280 for ac_var in $ac_precious_vars; do
2281 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2282 eval ac_new_set=\$ac_env_${ac_var}_set
2283 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2284 eval ac_new_val=\$ac_env_${ac_var}_value
2285 case $ac_old_set,$ac_new_set in
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2288 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2289 ac_cache_corrupted=: ;;
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2292 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2293 ac_cache_corrupted=: ;;
2296 if test "x$ac_old_val" != "x$ac_new_val"; then
2297 # differences in whitespace do not lead to failure.
2298 ac_old_val_w=`echo x $ac_old_val`
2299 ac_new_val_w=`echo x $ac_new_val`
2300 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2302 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2303 ac_cache_corrupted=:
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2306 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2307 eval $ac_var=\$ac_old_val
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2310 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2312 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2315 # Pass precious variables to config.status.
2316 if test "$ac_new_set" = set; then
2318 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2319 *) ac_arg=$ac_var=$ac_new_val ;;
2321 case " $ac_configure_args " in
2322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2323 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2327 if $ac_cache_corrupted; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2331 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2332 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2334 ## -------------------- ##
2335 ## Main body of script. ##
2336 ## -------------------- ##
2339 ac_cpp='$CPP $CPPFLAGS'
2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349 for ac_dir in config "$srcdir"/config; do
2350 if test -f "$ac_dir/install-sh"; then
2352 ac_install_sh="$ac_aux_dir/install-sh -c"
2354 elif test -f "$ac_dir/install.sh"; then
2356 ac_install_sh="$ac_aux_dir/install.sh -c"
2358 elif test -f "$ac_dir/shtool"; then
2360 ac_install_sh="$ac_aux_dir/shtool install -c"
2364 if test -z "$ac_aux_dir"; then
2365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2368 # These three variables are undocumented and unsupported,
2369 # and are intended to be withdrawn in a future Autoconf release.
2370 # They can cause serious problems if a builder's source tree is in a directory
2371 # whose full name contains unusual characters.
2372 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2373 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2374 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2378 ac_config_headers="$ac_config_headers config/config.h"
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2382 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2383 # Check whether --enable-maintainer-mode was given.
2384 if test "${enable_maintainer_mode+set}" = set; then :
2385 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2387 USE_MAINTAINER_MODE=no
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2391 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2392 if test $USE_MAINTAINER_MODE = yes; then
2393 MAINTAINER_MODE_TRUE=
2394 MAINTAINER_MODE_FALSE='#'
2396 MAINTAINER_MODE_TRUE='#'
2397 MAINTAINER_MODE_FALSE=
2400 MAINT=$MAINTAINER_MODE_TRUE
2404 # --with-native-includes forces the use of the system bsm headers.
2406 # Check whether --with-native-includes was given.
2407 if test "${with_native_includes+set}" = set; then :
2408 withval=$with_native_includes;
2410 $as_echo "#define USE_NATIVE_INCLUDES /**/" >>confdefs.h
2412 use_native_includes=true
2415 use_native_includes=false
2418 if $use_native_includes; then
2419 USE_NATIVE_INCLUDES_TRUE=
2420 USE_NATIVE_INCLUDES_FALSE='#'
2422 USE_NATIVE_INCLUDES_TRUE='#'
2423 USE_NATIVE_INCLUDES_FALSE=
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if ${ac_cv_path_MIG+:} false; then :
2434 $as_echo_n "(cached) " >&6
2438 ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448 ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 if test -n "$MIG"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
2462 $as_echo "$MIG" >&6; }
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465 $as_echo "no" >&6; }
2469 test -n "$MIG" && break
2473 # Checks for programs.
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479 if test -n "$ac_tool_prefix"; then
2480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2481 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if ${ac_cv_prog_CC+:} false; then :
2485 $as_echo_n "(cached) " >&6
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 if test -n "$CC"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2510 $as_echo "$CC" >&6; }
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513 $as_echo "no" >&6; }
2518 if test -z "$ac_cv_prog_CC"; then
2520 # Extract the first word of "gcc", so it can be a program name with args.
2521 set dummy gcc; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2525 $as_echo_n "(cached) " >&6
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_CC="gcc"
2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548 if test -n "$ac_ct_CC"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2550 $as_echo "$ac_ct_CC" >&6; }
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2556 if test "x$ac_ct_CC" = x; then
2559 case $cross_compiling:$ac_tool_warned in
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2563 ac_tool_warned=yes ;;
2571 if test -z "$CC"; then
2572 if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}cc; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_CC+:} false; then :
2578 $as_echo_n "(cached) " >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_CC="${ac_tool_prefix}cc"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 if test -n "$CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603 $as_echo "$CC" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2612 if test -z "$CC"; then
2613 # Extract the first word of "cc", so it can be a program name with args.
2614 set dummy cc; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_CC+:} false; then :
2618 $as_echo_n "(cached) " >&6
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2632 ac_prog_rejected=yes
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 if test $ac_prog_rejected = yes; then
2644 # We found a bogon in the path, so make sure we never use it.
2645 set dummy $ac_cv_prog_CC
2647 if test $# != 0; then
2648 # We chose a different compiler from the bogus one.
2649 # However, it has the same basename, so the bogon will be chosen
2650 # first if we set CC to just the basename; use the full file name.
2652 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2658 if test -n "$CC"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660 $as_echo "$CC" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2668 if test -z "$CC"; then
2669 if test -n "$ac_tool_prefix"; then
2670 for ac_prog in cl.exe
2672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2709 test -n "$CC" && break
2712 if test -z "$CC"; then
2714 for ac_prog in cl.exe
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$ac_ct_CC"; then
2724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CC="$ac_prog"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2744 if test -n "$ac_ct_CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2746 $as_echo "$ac_ct_CC" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2753 test -n "$ac_ct_CC" && break
2756 if test "x$ac_ct_CC" = x; then
2759 case $cross_compiling:$ac_tool_warned in
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2772 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774 as_fn_error $? "no acceptable C compiler found in \$PATH
2775 See \`config.log' for more details" "$LINENO" 5; }
2777 # Provide some information about the compiler.
2778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2781 for ac_option in --version -v -V -qversion; do
2782 { { ac_try="$ac_compiler $ac_option >&5"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2791 if test -s conftest.err; then
2793 ... rest of stderr output deleted ...
2794 10q' conftest.err >conftest.er1
2795 cat conftest.er1 >&5
2797 rm -f conftest.er1 conftest.err
2798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2799 test $ac_status = 0; }
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2813 ac_clean_files_save=$ac_clean_files
2814 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2815 # Try to create an executable without -o first, disregard a.out.
2816 # It will help us diagnose broken compilers, and finding out an intuition
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2819 $as_echo_n "checking whether the C compiler works... " >&6; }
2820 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2822 # The possible output files:
2823 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2826 for ac_file in $ac_files
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2830 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2835 if { { ac_try="$ac_link_default"
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841 $as_echo "$ac_try_echo"; } >&5
2842 (eval "$ac_link_default") 2>&5
2844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2845 test $ac_status = 0; }; then :
2846 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2847 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2848 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2849 # so that the user can short-circuit this test for compilers unknown to
2851 for ac_file in $ac_files ''
2853 test -f "$ac_file" || continue
2855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2858 # We found the default executable, but exeext='' is most
2862 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2864 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866 # We set ac_cv_exeext here because the later test for it is not
2867 # safe: cross compilers may not add the suffix if given an `-o'
2868 # argument, so we may need to know it at that point already.
2869 # Even if this section looks crufty: it has the advantage of
2876 test "$ac_cv_exeext" = no && ac_cv_exeext=
2881 if test -z "$ac_file"; then :
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883 $as_echo "no" >&6; }
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2889 as_fn_error 77 "C compiler cannot create executables
2890 See \`config.log' for more details" "$LINENO" 5; }
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893 $as_echo "yes" >&6; }
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2896 $as_echo_n "checking for C compiler default output file name... " >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2898 $as_echo "$ac_file" >&6; }
2899 ac_exeext=$ac_cv_exeext
2901 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2902 ac_clean_files=$ac_clean_files_save
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2904 $as_echo_n "checking for suffix of executables... " >&6; }
2905 if { { ac_try="$ac_link"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912 (eval "$ac_link") 2>&5
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }; then :
2916 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2917 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2918 # work properly (i.e., refer to `conftest.exe'), while it won't with
2920 for ac_file in conftest.exe conftest conftest.*; do
2921 test -f "$ac_file" || continue
2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2924 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2933 See \`config.log' for more details" "$LINENO" 5; }
2935 rm -f conftest conftest$ac_cv_exeext
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2937 $as_echo "$ac_cv_exeext" >&6; }
2939 rm -f conftest.$ac_ext
2940 EXEEXT=$ac_cv_exeext
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943 /* end confdefs.h. */
2948 FILE *f = fopen ("conftest.out", "w");
2949 return ferror (f) || fclose (f) != 0;
2955 ac_clean_files="$ac_clean_files conftest.out"
2956 # Check that the compiler produces executables we can run. If not, either
2957 # the compiler is broken, or we cross compile.
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2959 $as_echo_n "checking whether we are cross compiling... " >&6; }
2960 if test "$cross_compiling" != yes; then
2961 { { ac_try="$ac_link"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_link") 2>&5
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }
2972 if { ac_try='./conftest$ac_cv_exeext'
2973 { { case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 $as_echo "$ac_try_echo"; } >&5
2979 (eval "$ac_try") 2>&5
2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }; }; then
2985 if test "$cross_compiling" = maybe; then
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "cannot run C compiled programs.
2991 If you meant to cross compile, use \`--host'.
2992 See \`config.log' for more details" "$LINENO" 5; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2997 $as_echo "$cross_compiling" >&6; }
2999 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3000 ac_clean_files=$ac_clean_files_save
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3002 $as_echo_n "checking for suffix of object files... " >&6; }
3003 if ${ac_cv_objext+:} false; then :
3004 $as_echo_n "(cached) " >&6
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3017 rm -f conftest.o conftest.obj
3018 if { { ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_compile") 2>&5
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
3029 for ac_file in conftest.o conftest.obj conftest.*; do
3030 test -f "$ac_file" || continue;
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3038 $as_echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 as_fn_error $? "cannot compute suffix of object files: cannot compile
3044 See \`config.log' for more details" "$LINENO" 5; }
3046 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3049 $as_echo "$ac_cv_objext" >&6; }
3050 OBJEXT=$ac_cv_objext
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3053 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3054 if ${ac_cv_c_compiler_gnu+:} false; then :
3055 $as_echo_n "(cached) " >&6
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3071 if ac_fn_c_try_compile "$LINENO"; then :
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3081 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3082 if test $ac_compiler_gnu = yes; then
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3090 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3091 if ${ac_cv_prog_cc_g+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3109 if ac_fn_c_try_compile "$LINENO"; then :
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3124 if ac_fn_c_try_compile "$LINENO"; then :
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3130 /* end confdefs.h. */
3140 if ac_fn_c_try_compile "$LINENO"; then :
3143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 ac_c_werror_flag=$ac_save_c_werror_flag
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3151 $as_echo "$ac_cv_prog_cc_g" >&6; }
3152 if test "$ac_test_CFLAGS" = set; then
3153 CFLAGS=$ac_save_CFLAGS
3154 elif test $ac_cv_prog_cc_g = yes; then
3155 if test "$GCC" = yes; then
3161 if test "$GCC" = yes; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3168 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3169 if ${ac_cv_prog_cc_c89+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 ac_cv_prog_cc_c89=no
3174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3180 struct buf { int x; };
3181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3182 static char *e (p, i)
3188 static char *f (char * (*g) (char **, int), char **p, ...)
3193 s = g (p, va_arg (v,int));
3198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3199 function prototypes and stuff, but not '\xHH' hex character constants.
3200 These don't provoke an error unfortunately, instead are silently treated
3201 as 'x'. The following induces an error, until -std is added to get
3202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3203 array size at least. It's necessary to write '\x00'==0 to get something
3204 that's true only with -std. */
3205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3208 inside strings and character constants. */
3210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3212 int test (int i, double x);
3213 struct s1 {int (*f) (int a);};
3214 struct s2 {int (*f) (double a);};
3215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3229 CC="$ac_save_CC $ac_arg"
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_cv_prog_cc_c89=$ac_arg
3233 rm -f core conftest.err conftest.$ac_objext
3234 test "x$ac_cv_prog_cc_c89" != "xno" && break
3236 rm -f conftest.$ac_ext
3241 case "x$ac_cv_prog_cc_c89" in
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3244 $as_echo "none needed" >&6; } ;;
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3247 $as_echo "unsupported" >&6; } ;;
3249 CC="$CC $ac_cv_prog_cc_c89"
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3251 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3253 if test "x$ac_cv_prog_cc_c89" != xno; then :
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 # Find a good install program. We prefer a C program (faster),
3264 # so one script is as good as another. But avoid the broken or
3265 # incompatible versions:
3266 # SysV /etc/install, /usr/sbin/install
3267 # SunOS /usr/etc/install
3268 # IRIX /sbin/install
3270 # AmigaOS /C/install, which installs bootblocks on floppy discs
3271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3274 # OS/2's system install, which has a completely different semantic
3275 # ./install, which can be erroneously created by make from ./install.sh.
3276 # Reject install programs that cannot install multiple files.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3278 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3279 if test -z "$INSTALL"; then
3280 if ${ac_cv_path_install+:} false; then :
3281 $as_echo_n "(cached) " >&6
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 # Account for people who put trailing slashes in PATH elements.
3289 case $as_dir/ in #((
3290 ./ | .// | /[cC]/* | \
3291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3292 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3295 # OSF1 and SCO ODT 3.0 have their own names for install.
3296 # Don't use installbsd from OSF since it installs stuff as root
3298 for ac_prog in ginstall scoinst install; do
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3301 if test $ac_prog = install &&
3302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303 # AIX install. It has an incompatible calling convention.
3305 elif test $ac_prog = install &&
3306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307 # program-specific install script used by HP pwplus--don't use.
3310 rm -rf conftest.one conftest.two conftest.dir
3311 echo one > conftest.one
3312 echo two > conftest.two
3314 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3315 test -s conftest.one && test -s conftest.two &&
3316 test -s conftest.dir/conftest.one &&
3317 test -s conftest.dir/conftest.two
3319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3332 rm -rf conftest.one conftest.two conftest.dir
3335 if test "${ac_cv_path_install+set}" = set; then
3336 INSTALL=$ac_cv_path_install
3338 # As a last resort, use the slow shell script. Don't cache a
3339 # value for INSTALL within a source directory, because that will
3340 # break other packages using the cache if that directory is
3341 # removed, or if the value is a relative name.
3342 INSTALL=$ac_install_sh
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3346 $as_echo "$INSTALL" >&6; }
3348 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3349 # It thinks the first close brace ends the variable substitution.
3350 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3352 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3354 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3357 for ac_prog in flex lex
3359 # Extract the first word of "$ac_prog", so it can be a program name with args.
3360 set dummy $ac_prog; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_LEX+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 if test -n "$LEX"; then
3367 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_LEX="$ac_prog"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 if test -n "$LEX"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3389 $as_echo "$LEX" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3396 test -n "$LEX" && break
3398 test -n "$LEX" || LEX=":"
3400 if test "x$LEX" != "x:"; then
3401 cat >conftest.l <<_ACEOF
3407 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
3408 yyless ((input () != 0)); }
3409 f { unput (yytext[0]); }
3410 . { BEGIN INITIAL; }
3412 #ifdef YYTEXT_POINTER
3413 extern char *yytext;
3418 return ! yylex () + ! yywrap ();
3421 { { ac_try="$LEX conftest.l"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$LEX conftest.l") 2>&5
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3433 $as_echo_n "checking lex output file root... " >&6; }
3434 if ${ac_cv_prog_lex_root+:} false; then :
3435 $as_echo_n "(cached) " >&6
3438 if test -f lex.yy.c; then
3439 ac_cv_prog_lex_root=lex.yy
3440 elif test -f lexyy.c; then
3441 ac_cv_prog_lex_root=lexyy
3443 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3447 $as_echo "$ac_cv_prog_lex_root" >&6; }
3448 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3450 if test -z "${LEXLIB+set}"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3452 $as_echo_n "checking lex library... " >&6; }
3453 if ${ac_cv_lib_lex+:} false; then :
3454 $as_echo_n "(cached) " >&6
3458 ac_cv_lib_lex='none needed'
3459 for ac_lib in '' -lfl -ll; do
3460 LIBS="$ac_lib $ac_save_LIBS"
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463 `cat $LEX_OUTPUT_ROOT.c`
3465 if ac_fn_c_try_link "$LINENO"; then :
3466 ac_cv_lib_lex=$ac_lib
3468 rm -f core conftest.err conftest.$ac_objext \
3469 conftest$ac_exeext conftest.$ac_ext
3470 test "$ac_cv_lib_lex" != 'none needed' && break
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3476 $as_echo "$ac_cv_lib_lex" >&6; }
3477 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3482 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3483 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 # POSIX says lex can declare yytext either as a pointer or an array; the
3487 # default is implementation-dependent. Figure out which it is, since
3488 # not all implementations provide the %pointer and %array declarations.
3489 ac_cv_prog_lex_yytext_pointer=no
3491 LIBS="$LEXLIB $ac_save_LIBS"
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3495 #define YYTEXT_POINTER 1
3496 `cat $LEX_OUTPUT_ROOT.c`
3498 if ac_fn_c_try_link "$LINENO"; then :
3499 ac_cv_prog_lex_yytext_pointer=yes
3501 rm -f core conftest.err conftest.$ac_objext \
3502 conftest$ac_exeext conftest.$ac_ext
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3507 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3508 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3510 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3513 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3519 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3524 macro_version='2.4.2'
3525 macro_revision='1.3337'
3539 ltmain="$ac_aux_dir/ltmain.sh"
3541 # Make sure we can run config.sub.
3542 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3543 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3546 $as_echo_n "checking build system type... " >&6; }
3547 if ${ac_cv_build+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 ac_build_alias=$build_alias
3551 test "x$ac_build_alias" = x &&
3552 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3553 test "x$ac_build_alias" = x &&
3554 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3555 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3556 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3560 $as_echo "$ac_cv_build" >&6; }
3561 case $ac_cv_build in
3563 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3566 ac_save_IFS=$IFS; IFS='-'
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3576 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3580 $as_echo_n "checking host system type... " >&6; }
3581 if ${ac_cv_host+:} false; then :
3582 $as_echo_n "(cached) " >&6
3584 if test "x$host_alias" = x; then
3585 ac_cv_host=$ac_cv_build
3587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3593 $as_echo "$ac_cv_host" >&6; }
3596 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3599 ac_save_IFS=$IFS; IFS='-'
3605 # Remember, the first character of IFS is used to create $*,
3606 # except with old shells:
3609 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3612 # Backslashify metacharacters that are still active within
3613 # double-quoted strings.
3614 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3616 # Same as above, but do not quote variable references.
3617 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3619 # Sed substitution to delay expansion of an escaped shell variable in a
3620 # double_quote_subst'ed string.
3621 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3623 # Sed substitution to delay expansion of an escaped single quote.
3624 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3626 # Sed substitution to avoid accidental globbing in evaled expressions
3627 no_glob_subst='s/\*/\\\*/g'
3629 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3630 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3631 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3634 $as_echo_n "checking how to print strings... " >&6; }
3635 # Test print first, because it will be a builtin if present.
3636 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3637 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3639 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3642 # Use this function as a fallback that always works.
3643 func_fallback_echo ()
3645 eval 'cat <<_LTECHO_EOF
3649 ECHO='func_fallback_echo'
3652 # func_echo_all arg...
3653 # Invoke $ECHO with all args, space-separated.
3660 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3661 $as_echo "printf" >&6; } ;;
3662 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3663 $as_echo "print -r" >&6; } ;;
3664 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3665 $as_echo "cat" >&6; } ;;
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3682 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3683 if ${ac_cv_path_SED+:} false; then :
3684 $as_echo_n "(cached) " >&6
3686 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3687 for ac_i in 1 2 3 4 5 6 7; do
3688 ac_script="$ac_script$as_nl$ac_script"
3690 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3691 { ac_script=; unset ac_script;}
3692 if test -z "$SED"; then
3693 ac_path_SED_found=false
3694 # Loop through the user's path and test for each of PROGNAME-LIST
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_prog in sed gsed; do
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3703 as_fn_executable_p "$ac_path_SED" || continue
3704 # Check for GNU ac_path_SED and select it if it is found.
3705 # Check for GNU $ac_path_SED
3706 case `"$ac_path_SED" --version 2>&1` in
3708 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3711 $as_echo_n 0123456789 >"conftest.in"
3714 cat "conftest.in" "conftest.in" >"conftest.tmp"
3715 mv "conftest.tmp" "conftest.in"
3716 cp "conftest.in" "conftest.nl"
3717 $as_echo '' >> "conftest.nl"
3718 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3720 as_fn_arith $ac_count + 1 && ac_count=$as_val
3721 if test $ac_count -gt ${ac_path_SED_max-0}; then
3722 # Best one so far, save it but keep looking for a better one
3723 ac_cv_path_SED="$ac_path_SED"
3724 ac_path_SED_max=$ac_count
3726 # 10*(2^10) chars as input seems more than enough
3727 test $ac_count -gt 10 && break
3729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732 $ac_path_SED_found && break 3
3737 if test -z "$ac_cv_path_SED"; then
3738 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3746 $as_echo "$ac_cv_path_SED" >&6; }
3747 SED="$ac_cv_path_SED"
3750 test -z "$SED" && SED=sed
3751 Xsed="$SED -e 1s/^X//"
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3764 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3765 if ${ac_cv_path_GREP+:} false; then :
3766 $as_echo_n "(cached) " >&6
3768 if test -z "$GREP"; then
3769 ac_path_GREP_found=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in grep ggrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3779 as_fn_executable_p "$ac_path_GREP" || continue
3780 # Check for GNU ac_path_GREP and select it if it is found.
3781 # Check for GNU $ac_path_GREP
3782 case `"$ac_path_GREP" --version 2>&1` in
3784 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3787 $as_echo_n 0123456789 >"conftest.in"
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 $as_echo 'GREP' >> "conftest.nl"
3794 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 as_fn_arith $ac_count + 1 && ac_count=$as_val
3797 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_GREP="$ac_path_GREP"
3800 ac_path_GREP_max=$ac_count
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3808 $ac_path_GREP_found && break 3
3813 if test -z "$ac_cv_path_GREP"; then
3814 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3817 ac_cv_path_GREP=$GREP
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3822 $as_echo "$ac_cv_path_GREP" >&6; }
3823 GREP="$ac_cv_path_GREP"
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3827 $as_echo_n "checking for egrep... " >&6; }
3828 if ${ac_cv_path_EGREP+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3832 then ac_cv_path_EGREP="$GREP -E"
3834 if test -z "$EGREP"; then
3835 ac_path_EGREP_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in egrep; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3845 as_fn_executable_p "$ac_path_EGREP" || continue
3846 # Check for GNU ac_path_EGREP and select it if it is found.
3847 # Check for GNU $ac_path_EGREP
3848 case `"$ac_path_EGREP" --version 2>&1` in
3850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3853 $as_echo_n 0123456789 >"conftest.in"
3856 cat "conftest.in" "conftest.in" >"conftest.tmp"
3857 mv "conftest.tmp" "conftest.in"
3858 cp "conftest.in" "conftest.nl"
3859 $as_echo 'EGREP' >> "conftest.nl"
3860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3862 as_fn_arith $ac_count + 1 && ac_count=$as_val
3863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_EGREP="$ac_path_EGREP"
3866 ac_path_EGREP_max=$ac_count
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3874 $ac_path_EGREP_found && break 3
3879 if test -z "$ac_cv_path_EGREP"; then
3880 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3883 ac_cv_path_EGREP=$EGREP
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3889 $as_echo "$ac_cv_path_EGREP" >&6; }
3890 EGREP="$ac_cv_path_EGREP"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3894 $as_echo_n "checking for fgrep... " >&6; }
3895 if ${ac_cv_path_FGREP+:} false; then :
3896 $as_echo_n "(cached) " >&6
3898 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3899 then ac_cv_path_FGREP="$GREP -F"
3901 if test -z "$FGREP"; then
3902 ac_path_FGREP_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 test -z "$as_dir" && as_dir=.
3909 for ac_prog in fgrep; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3912 as_fn_executable_p "$ac_path_FGREP" || continue
3913 # Check for GNU ac_path_FGREP and select it if it is found.
3914 # Check for GNU $ac_path_FGREP
3915 case `"$ac_path_FGREP" --version 2>&1` in
3917 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3920 $as_echo_n 0123456789 >"conftest.in"
3923 cat "conftest.in" "conftest.in" >"conftest.tmp"
3924 mv "conftest.tmp" "conftest.in"
3925 cp "conftest.in" "conftest.nl"
3926 $as_echo 'FGREP' >> "conftest.nl"
3927 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929 as_fn_arith $ac_count + 1 && ac_count=$as_val
3930 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_FGREP="$ac_path_FGREP"
3933 ac_path_FGREP_max=$ac_count
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 $ac_path_FGREP_found && break 3
3946 if test -z "$ac_cv_path_FGREP"; then
3947 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3950 ac_cv_path_FGREP=$FGREP
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3956 $as_echo "$ac_cv_path_FGREP" >&6; }
3957 FGREP="$ac_cv_path_FGREP"
3960 test -z "$GREP" && GREP=grep
3980 # Check whether --with-gnu-ld was given.
3981 if test "${with_gnu_ld+set}" = set; then :
3982 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3988 if test "$GCC" = yes; then
3989 # Check if gcc -print-prog-name=ld gives a path.
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3991 $as_echo_n "checking for ld used by $CC... " >&6; }
3994 # gcc leaves a trailing carriage return which upsets mingw
3995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4000 # Accept absolute paths.
4002 re_direlt='/[^/][^/]*/\.\./'
4003 # Canonicalize the pathname of ld
4004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4008 test -z "$LD" && LD="$ac_prog"
4011 # If it fails, then pretend we aren't using GCC.
4015 # If it is relative, then search for the first ld in PATH.
4019 elif test "$with_gnu_ld" = yes; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4021 $as_echo_n "checking for GNU ld... " >&6; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4024 $as_echo_n "checking for non-GNU ld... " >&6; }
4026 if ${lt_cv_path_LD+:} false; then :
4027 $as_echo_n "(cached) " >&6
4029 if test -z "$LD"; then
4030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4031 for ac_dir in $PATH; do
4033 test -z "$ac_dir" && ac_dir=.
4034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4035 lt_cv_path_LD="$ac_dir/$ac_prog"
4036 # Check to see if the program is GNU ld. I'd rather use --version,
4037 # but apparently some variants of GNU ld only accept -v.
4038 # Break only if it was the GNU/non-GNU ld that we prefer.
4039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041 test "$with_gnu_ld" != no && break
4044 test "$with_gnu_ld" != yes && break
4051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4056 if test -n "$LD"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4058 $as_echo "$LD" >&6; }
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4063 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4065 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4066 if ${lt_cv_prog_gnu_ld+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4070 case `$LD -v 2>&1 </dev/null` in
4071 *GNU* | *'with BFD'*)
4072 lt_cv_prog_gnu_ld=yes
4075 lt_cv_prog_gnu_ld=no
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4080 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4081 with_gnu_ld=$lt_cv_prog_gnu_ld
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4092 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4093 if ${lt_cv_path_NM+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -n "$NM"; then
4097 # Let the user override the test.
4100 lt_nm_to_check="${ac_tool_prefix}nm"
4101 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4102 lt_nm_to_check="$lt_nm_to_check nm"
4104 for lt_tmp_nm in $lt_nm_to_check; do
4105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4106 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4108 test -z "$ac_dir" && ac_dir=.
4109 tmp_nm="$ac_dir/$lt_tmp_nm"
4110 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4111 # Check to see if the nm accepts a BSD-compat flag.
4112 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4113 # nm: unknown option "B" ignored
4114 # Tru64's nm complains that /dev/null is an invalid object file
4115 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4116 */dev/null* | *'Invalid file or object type'*)
4117 lt_cv_path_NM="$tmp_nm -B"
4121 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4123 lt_cv_path_NM="$tmp_nm -p"
4127 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4128 continue # so that we can try to find one that supports BSD flags
4137 : ${lt_cv_path_NM=no}
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4141 $as_echo "$lt_cv_path_NM" >&6; }
4142 if test "$lt_cv_path_NM" != "no"; then
4145 # Didn't find any BSD compatible name lister, look for dumpbin.
4146 if test -n "$DUMPBIN"; then :
4147 # Let the user override the test.
4149 if test -n "$ac_tool_prefix"; then
4150 for ac_prog in dumpbin "link -dump"
4152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if ${ac_cv_prog_DUMPBIN+:} false; then :
4157 $as_echo_n "(cached) " >&6
4159 if test -n "$DUMPBIN"; then
4160 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 DUMPBIN=$ac_cv_prog_DUMPBIN
4180 if test -n "$DUMPBIN"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4182 $as_echo "$DUMPBIN" >&6; }
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4189 test -n "$DUMPBIN" && break
4192 if test -z "$DUMPBIN"; then
4193 ac_ct_DUMPBIN=$DUMPBIN
4194 for ac_prog in dumpbin "link -dump"
4196 # Extract the first word of "$ac_prog", so it can be a program name with args.
4197 set dummy $ac_prog; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$ac_ct_DUMPBIN"; then
4204 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4224 if test -n "$ac_ct_DUMPBIN"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4226 $as_echo "$ac_ct_DUMPBIN" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 test -n "$ac_ct_DUMPBIN" && break
4236 if test "x$ac_ct_DUMPBIN" = x; then
4239 case $cross_compiling:$ac_tool_warned in
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4245 DUMPBIN=$ac_ct_DUMPBIN
4249 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4251 DUMPBIN="$DUMPBIN -symbols"
4259 if test "$DUMPBIN" != ":"; then
4263 test -z "$NM" && NM=nm
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4271 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4272 if ${lt_cv_nm_interface+:} false; then :
4273 $as_echo_n "(cached) " >&6
4275 lt_cv_nm_interface="BSD nm"
4276 echo "int some_variable = 0;" > conftest.$ac_ext
4277 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4278 (eval "$ac_compile" 2>conftest.err)
4279 cat conftest.err >&5
4280 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4281 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4282 cat conftest.err >&5
4283 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4284 cat conftest.out >&5
4285 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4286 lt_cv_nm_interface="MS dumpbin"
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4291 $as_echo "$lt_cv_nm_interface" >&6; }
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4294 $as_echo_n "checking whether ln -s works... " >&6; }
4296 if test "$LN_S" = "ln -s"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298 $as_echo "yes" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4301 $as_echo "no, using $LN_S" >&6; }
4304 # find the maximum length of command line arguments
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4306 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4307 if ${lt_cv_sys_max_cmd_len+:} false; then :
4308 $as_echo_n "(cached) " >&6
4315 # On DJGPP, this test can blow up pretty badly due to problems in libc
4316 # (any single argument exceeding 2000 bytes causes a buffer overrun
4317 # during glob expansion). Even if it were fixed, the result of this
4318 # check would be larger than it should be.
4319 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4323 # Under GNU Hurd, this test is not required because there is
4324 # no limit to the length of command line arguments.
4325 # Libtool will interpret -1 as no limit whatsoever
4326 lt_cv_sys_max_cmd_len=-1;
4329 cygwin* | mingw* | cegcc*)
4330 # On Win9x/ME, this test blows up -- it succeeds, but takes
4331 # about 5 minutes as the teststring grows exponentially.
4332 # Worse, since 9x/ME are not pre-emptively multitasking,
4333 # you end up with a "frozen" computer, even though with patience
4334 # the test eventually succeeds (with a max line length of 256k).
4335 # Instead, let's just punt: use the minimum linelength reported by
4336 # all of the supported platforms: 8192 (on NT/2K/XP).
4337 lt_cv_sys_max_cmd_len=8192;
4341 # On MiNT this can take a long time and run out of memory.
4342 lt_cv_sys_max_cmd_len=8192;
4346 # On AmigaOS with pdksh, this test takes hours, literally.
4347 # So we just punt and use a minimum line length of 8192.
4348 lt_cv_sys_max_cmd_len=8192;
4351 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4352 # This has been around since 386BSD, at least. Likely further.
4353 if test -x /sbin/sysctl; then
4354 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4355 elif test -x /usr/sbin/sysctl; then
4356 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4358 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4360 # And add a safety zone
4361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4366 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4367 lt_cv_sys_max_cmd_len=196608
4371 # The test takes a long time on OS/2.
4372 lt_cv_sys_max_cmd_len=8192
4376 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4377 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4378 # nice to cause kernel panics so lets avoid the loop below.
4379 # First set a reasonable default.
4380 lt_cv_sys_max_cmd_len=16384
4382 if test -x /sbin/sysconfig; then
4383 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4384 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4389 lt_cv_sys_max_cmd_len=102400
4391 sysv5* | sco5v6* | sysv4.2uw2*)
4392 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4393 if test -n "$kargmax"; then
4394 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4396 lt_cv_sys_max_cmd_len=32768
4400 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4401 if test -n "$lt_cv_sys_max_cmd_len"; then
4402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4405 # Make teststring a little bigger before we do anything with it.
4406 # a 1K string should be a reasonable start.
4407 for i in 1 2 3 4 5 6 7 8 ; do
4408 teststring=$teststring$teststring
4410 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4411 # If test is not a shell built-in, we'll probably end up computing a
4412 # maximum length that is only half of the actual maximum length, but
4414 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4415 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4416 test $i != 17 # 1/2 MB should be enough
4419 teststring=$teststring$teststring
4421 # Only check the string length outside the loop.
4422 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4424 # Add a significant safety factor because C++ compilers can tack on
4425 # massive amounts of additional arguments before passing them to the
4426 # linker. It appears as though 1/2 is a usable value.
4427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4434 if test -n $lt_cv_sys_max_cmd_len ; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4436 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4439 $as_echo "none" >&6; }
4441 max_cmd_len=$lt_cv_sys_max_cmd_len
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4453 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4454 # Try some XSI features
4457 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4459 && eval 'test $(( 1 + 1 )) -eq 2 \
4460 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4463 $as_echo "$xsi_shell" >&6; }
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4467 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4469 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4471 && lt_shell_append=yes
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4473 $as_echo "$lt_shell_append" >&6; }
4476 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4486 # test EBCDIC or ASCII
4487 case `echo X|tr X '\101'` in
4488 A) # ASCII based system
4489 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4490 lt_SP2NL='tr \040 \012'
4491 lt_NL2SP='tr \015\012 \040\040'
4493 *) # EBCDIC based system
4494 lt_SP2NL='tr \100 \n'
4495 lt_NL2SP='tr \r\n \100\100'
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4508 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4509 if ${lt_cv_to_host_file_cmd+:} false; then :
4510 $as_echo_n "(cached) " >&6
4515 *-*-mingw* ) # actually msys
4516 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4519 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4521 * ) # otherwise, assume *nix
4522 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4528 *-*-mingw* ) # actually msys
4529 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4532 lt_cv_to_host_file_cmd=func_convert_file_noop
4534 * ) # otherwise, assume *nix
4535 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4539 * ) # unhandled hosts (and "normal" native builds)
4540 lt_cv_to_host_file_cmd=func_convert_file_noop
4546 to_host_file_cmd=$lt_cv_to_host_file_cmd
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4548 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4555 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4556 if ${lt_cv_to_tool_file_cmd+:} false; then :
4557 $as_echo_n "(cached) " >&6
4559 #assume ordinary cross tools, or native build.
4560 lt_cv_to_tool_file_cmd=func_convert_file_noop
4564 *-*-mingw* ) # actually msys
4565 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4573 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4575 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4582 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4583 if ${lt_cv_ld_reload_flag+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 lt_cv_ld_reload_flag='-r'
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4589 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4590 reload_flag=$lt_cv_ld_reload_flag
4591 case $reload_flag in
4593 *) reload_flag=" $reload_flag" ;;
4595 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4597 cygwin* | mingw* | pw32* | cegcc*)
4598 if test "$GCC" != yes; then
4603 if test "$GCC" = yes; then
4604 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4606 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4621 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if ${ac_cv_prog_OBJDUMP+:} false; then :
4625 $as_echo_n "(cached) " >&6
4627 if test -n "$OBJDUMP"; then
4628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 OBJDUMP=$ac_cv_prog_OBJDUMP
4648 if test -n "$OBJDUMP"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4650 $as_echo "$OBJDUMP" >&6; }
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4658 if test -z "$ac_cv_prog_OBJDUMP"; then
4659 ac_ct_OBJDUMP=$OBJDUMP
4660 # Extract the first word of "objdump", so it can be a program name with args.
4661 set dummy objdump; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$ac_ct_OBJDUMP"; then
4668 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4688 if test -n "$ac_ct_OBJDUMP"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4690 $as_echo "$ac_ct_OBJDUMP" >&6; }
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4696 if test "x$ac_ct_OBJDUMP" = x; then
4699 case $cross_compiling:$ac_tool_warned in
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703 ac_tool_warned=yes ;;
4705 OBJDUMP=$ac_ct_OBJDUMP
4708 OBJDUMP="$ac_cv_prog_OBJDUMP"
4711 test -z "$OBJDUMP" && OBJDUMP=objdump
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4722 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4723 if ${lt_cv_deplibs_check_method+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 lt_cv_file_magic_cmd='$MAGIC_CMD'
4727 lt_cv_file_magic_test_file=
4728 lt_cv_deplibs_check_method='unknown'
4729 # Need to set the preceding variable on all platforms that support
4730 # interlibrary dependencies.
4731 # 'none' -- dependencies not supported.
4732 # `unknown' -- same as none, but documents that we really don't know.
4733 # 'pass_all' -- all dependencies passed with no checks.
4734 # 'test_compile' -- check by making test program.
4735 # 'file_magic [[regex]]' -- check by looking for files in library path
4736 # which responds to the $file_magic_cmd with a given extended regex.
4737 # If you have `file' or equivalent on your system and you're not sure
4738 # whether `pass_all' will *always* work, you probably want this one.
4742 lt_cv_deplibs_check_method=pass_all
4746 lt_cv_deplibs_check_method=pass_all
4750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4751 lt_cv_file_magic_cmd='/usr/bin/file -L'
4752 lt_cv_file_magic_test_file=/shlib/libc.so
4756 # func_win32_libid is a shell function defined in ltmain.sh
4757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4758 lt_cv_file_magic_cmd='func_win32_libid'
4762 # Base MSYS/MinGW do not provide the 'file' command needed by
4763 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4764 # unless we find 'file', for example because we are cross-compiling.
4765 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4766 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4768 lt_cv_file_magic_cmd='func_win32_libid'
4770 # Keep this pattern in sync with the one in func_win32_libid.
4771 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4772 lt_cv_file_magic_cmd='$OBJDUMP -f'
4777 # use the weaker test based on 'objdump'. See mingw*.
4778 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4779 lt_cv_file_magic_cmd='$OBJDUMP -f'
4782 darwin* | rhapsody*)
4783 lt_cv_deplibs_check_method=pass_all
4786 freebsd* | dragonfly*)
4787 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4790 # Not sure whether the presence of OpenBSD here was a mistake.
4791 # Let's accept both of them until this is cleared up.
4792 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4793 lt_cv_file_magic_cmd=/usr/bin/file
4794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4798 lt_cv_deplibs_check_method=pass_all
4803 lt_cv_deplibs_check_method=pass_all
4807 lt_cv_deplibs_check_method=pass_all
4810 hpux10.20* | hpux11*)
4811 lt_cv_file_magic_cmd=/usr/bin/file
4814 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4815 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4818 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]'
4819 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4822 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4823 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4829 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4833 irix5* | irix6* | nonstopux*)
4835 *-32|*"-32 ") libmagic=32-bit;;
4836 *-n32|*"-n32 ") libmagic=N32;;
4837 *-64|*"-64 ") libmagic=64-bit;;
4838 *) libmagic=never-match;;
4840 lt_cv_deplibs_check_method=pass_all
4843 # This must be glibc/ELF.
4844 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4845 lt_cv_deplibs_check_method=pass_all
4849 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4858 lt_cv_file_magic_cmd=/usr/bin/file
4859 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4863 lt_cv_deplibs_check_method=pass_all
4867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4874 osf3* | osf4* | osf5*)
4875 lt_cv_deplibs_check_method=pass_all
4879 lt_cv_deplibs_check_method=pass_all
4883 lt_cv_deplibs_check_method=pass_all
4886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4887 lt_cv_deplibs_check_method=pass_all
4891 case $host_vendor in
4893 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]'
4894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4897 lt_cv_deplibs_check_method=pass_all
4900 lt_cv_file_magic_cmd='/bin/file'
4901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4904 lt_cv_file_magic_cmd='/bin/file'
4905 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4906 lt_cv_file_magic_test_file=/lib/libc.so
4909 lt_cv_deplibs_check_method=pass_all
4912 lt_cv_deplibs_check_method=pass_all
4918 lt_cv_deplibs_check_method=pass_all
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4924 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4928 if test "$build" = "$host"; then
4931 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4934 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4940 file_magic_cmd=$lt_cv_file_magic_cmd
4941 deplibs_check_method=$lt_cv_deplibs_check_method
4942 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_DLLTOOL+:} false; then :
4971 $as_echo_n "(cached) " >&6
4973 if test -n "$DLLTOOL"; then
4974 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 DLLTOOL=$ac_cv_prog_DLLTOOL
4994 if test -n "$DLLTOOL"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4996 $as_echo "$DLLTOOL" >&6; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5004 if test -z "$ac_cv_prog_DLLTOOL"; then
5005 ac_ct_DLLTOOL=$DLLTOOL
5006 # Extract the first word of "dlltool", so it can be a program name with args.
5007 set dummy dlltool; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5011 $as_echo_n "(cached) " >&6
5013 if test -n "$ac_ct_DLLTOOL"; then
5014 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5034 if test -n "$ac_ct_DLLTOOL"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5036 $as_echo "$ac_ct_DLLTOOL" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5042 if test "x$ac_ct_DLLTOOL" = x; then
5045 case $cross_compiling:$ac_tool_warned in
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049 ac_tool_warned=yes ;;
5051 DLLTOOL=$ac_ct_DLLTOOL
5054 DLLTOOL="$ac_cv_prog_DLLTOOL"
5057 test -z "$DLLTOOL" && DLLTOOL=dlltool
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5069 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5070 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5071 $as_echo_n "(cached) " >&6
5073 lt_cv_sharedlib_from_linklib_cmd='unknown'
5076 cygwin* | mingw* | pw32* | cegcc*)
5077 # two different shell functions defined in ltmain.sh
5078 # decide which to use based on capabilities of $DLLTOOL
5079 case `$DLLTOOL --help 2>&1` in
5080 *--identify-strict*)
5081 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5084 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5089 # fallback: assume linklib IS sharedlib
5090 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5096 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5097 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5098 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5106 if test -n "$ac_tool_prefix"; then
5109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_prog_AR+:} false; then :
5114 $as_echo_n "(cached) " >&6
5116 if test -n "$AR"; then
5117 ac_cv_prog_AR="$AR" # Let the user override the test.
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 if test -n "$AR"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5139 $as_echo "$AR" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5146 test -n "$AR" && break
5149 if test -z "$AR"; then
5153 # Extract the first word of "$ac_prog", so it can be a program name with args.
5154 set dummy $ac_prog; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -n "$ac_ct_AR"; then
5161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 ac_cv_prog_ac_ct_AR="$ac_prog"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5181 if test -n "$ac_ct_AR"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5183 $as_echo "$ac_ct_AR" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5190 test -n "$ac_ct_AR" && break
5193 if test "x$ac_ct_AR" = x; then
5196 case $cross_compiling:$ac_tool_warned in
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200 ac_tool_warned=yes ;;
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5220 $as_echo_n "checking for archiver @FILE support... " >&6; }
5221 if ${lt_cv_ar_at_file+:} false; then :
5222 $as_echo_n "(cached) " >&6
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5236 if ac_fn_c_try_compile "$LINENO"; then :
5237 echo conftest.$ac_objext > conftest.lst
5238 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5240 (eval $lt_ar_try) 2>&5
5242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5243 test $ac_status = 0; }
5244 if test "$ac_status" -eq 0; then
5245 # Ensure the archiver fails upon bogus file names.
5246 rm -f conftest.$ac_objext libconftest.a
5247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5248 (eval $lt_ar_try) 2>&5
5250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5251 test $ac_status = 0; }
5252 if test "$ac_status" -ne 0; then
5256 rm -f conftest.* libconftest.a
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5263 $as_echo "$lt_cv_ar_at_file" >&6; }
5265 if test "x$lt_cv_ar_at_file" = xno; then
5268 archiver_list_spec=$lt_cv_ar_at_file
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}strip; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if ${ac_cv_prog_STRIP+:} false; then :
5283 $as_echo_n "(cached) " >&6
5285 if test -n "$STRIP"; then
5286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 STRIP=$ac_cv_prog_STRIP
5306 if test -n "$STRIP"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5308 $as_echo "$STRIP" >&6; }
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5316 if test -z "$ac_cv_prog_STRIP"; then
5318 # Extract the first word of "strip", so it can be a program name with args.
5319 set dummy strip; ac_word=$2
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321 $as_echo_n "checking for $ac_word... " >&6; }
5322 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5323 $as_echo_n "(cached) " >&6
5325 if test -n "$ac_ct_STRIP"; then
5326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 test -z "$as_dir" && as_dir=.
5333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335 ac_cv_prog_ac_ct_STRIP="strip"
5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5346 if test -n "$ac_ct_STRIP"; then
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5348 $as_echo "$ac_ct_STRIP" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5354 if test "x$ac_ct_STRIP" = x; then
5357 case $cross_compiling:$ac_tool_warned in
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5366 STRIP="$ac_cv_prog_STRIP"
5369 test -z "$STRIP" && STRIP=:
5376 if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_RANLIB+:} false; then :
5382 $as_echo_n "(cached) " >&6
5384 if test -n "$RANLIB"; then
5385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 RANLIB=$ac_cv_prog_RANLIB
5405 if test -n "$RANLIB"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5407 $as_echo "$RANLIB" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5415 if test -z "$ac_cv_prog_RANLIB"; then
5416 ac_ct_RANLIB=$RANLIB
5417 # Extract the first word of "ranlib", so it can be a program name with args.
5418 set dummy ranlib; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 if test -n "$ac_ct_RANLIB"; then
5425 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_ac_ct_RANLIB="ranlib"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5445 if test -n "$ac_ct_RANLIB"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5447 $as_echo "$ac_ct_RANLIB" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5453 if test "x$ac_ct_RANLIB" = x; then
5456 case $cross_compiling:$ac_tool_warned in
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460 ac_tool_warned=yes ;;
5462 RANLIB=$ac_ct_RANLIB
5465 RANLIB="$ac_cv_prog_RANLIB"
5468 test -z "$RANLIB" && RANLIB=:
5475 # Determine commands to create old-style static archives.
5476 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5477 old_postinstall_cmds='chmod 644 $oldlib'
5478 old_postuninstall_cmds=
5480 if test -n "$RANLIB"; then
5483 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5486 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5489 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5494 lock_old_archive_extraction=yes ;;
5496 lock_old_archive_extraction=no ;;
5519 for ac_prog in gawk mawk nawk awk
5521 # Extract the first word of "$ac_prog", so it can be a program name with args.
5522 set dummy $ac_prog; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_AWK+:} false; then :
5526 $as_echo_n "(cached) " >&6
5528 if test -n "$AWK"; then
5529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_prog_AWK="$ac_prog"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 if test -n "$AWK"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5551 $as_echo "$AWK" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5558 test -n "$AWK" && break
5579 # If no C compiler was specified, use CC.
5582 # If no C compiler flags were specified, use CFLAGS.
5583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5585 # Allow CC to be a program name with arguments.
5589 # Check for command to grab the raw symbol name followed by C symbol from nm.
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5591 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5592 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5593 $as_echo_n "(cached) " >&6
5596 # These are sane defaults that work on at least a few old systems.
5597 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5599 # Character class describing NM global symbol codes.
5600 symcode='[BCDEGRST]'
5602 # Regexp to match symbols that can be accessed directly from C.
5603 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5605 # Define system-specific variables.
5610 cygwin* | mingw* | pw32* | cegcc*)
5611 symcode='[ABCDGISTW]'
5614 if test "$host_cpu" = ia64; then
5615 symcode='[ABCDEGRST]'
5619 symcode='[BCDEGRST]'
5622 symcode='[BCDEGQRST]'
5633 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5641 # If we're using GNU nm, then use its standard symbol codes.
5642 case `$NM -V 2>&1` in
5643 *GNU* | *'with BFD'*)
5644 symcode='[ABCDGIRSTW]' ;;
5647 # Transform an extracted symbol line into a proper C declaration.
5648 # Some systems (esp. on ia64) link data and code symbols differently,
5649 # so use this general approach.
5650 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5652 # Transform an extracted symbol line into symbol name and symbol address
5653 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5654 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5656 # Handle CRLF in mingw tool chain
5660 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5664 # Try without a prefix underscore, then with it.
5665 for ac_symprfx in "" "_"; do
5667 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5668 symxfrm="\\1 $ac_symprfx\\2 \\2"
5670 # Write the raw and C identifiers.
5671 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5672 # Fake it for dumpbin and say T for any non-static function
5673 # and D for any global variable.
5674 # Also find C++ and __fastcall symbols from MSVC++,
5675 # which start with @ or ?.
5676 lt_cv_sys_global_symbol_pipe="$AWK '"\
5677 " {last_section=section; section=\$ 3};"\
5678 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5679 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5680 " \$ 0!~/External *\|/{next};"\
5681 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5682 " {if(hide[section]) next};"\
5683 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5684 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5685 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5686 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5687 " ' prfx=^$ac_symprfx"
5689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5691 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5693 # Check to see that the pipe works correctly.
5697 cat > conftest.$ac_ext <<_LT_EOF
5702 void nm_test_func(void);
5703 void nm_test_func(void){}
5707 int main(){nm_test_var='a';nm_test_func();return(0);}
5710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5711 (eval $ac_compile) 2>&5
5713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714 test $ac_status = 0; }; then
5715 # Now try to grab the symbols.
5717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5718 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; } && test -s "$nlist"; then
5722 # Try sorting and uniquifying the output.
5723 if sort "$nlist" | uniq > "$nlist"T; then
5724 mv -f "$nlist"T "$nlist"
5729 # Make sure that we snagged all the symbols we need.
5730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5732 cat <<_LT_EOF > conftest.$ac_ext
5733 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5734 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5735 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5736 relocations are performed -- see ld's documentation on pseudo-relocs. */
5737 # define LT_DLSYM_CONST
5738 #elif defined(__osf__)
5739 /* This system does not cope well with relocations in const data. */
5740 # define LT_DLSYM_CONST
5742 # define LT_DLSYM_CONST const
5750 # Now generate the symbol file.
5751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5753 cat <<_LT_EOF >> conftest.$ac_ext
5755 /* The mapping between symbol names and symbols. */
5756 LT_DLSYM_CONST struct {
5760 lt__PROGRAM__LTX_preloaded_symbols[] =
5762 { "@PROGRAM@", (void *) 0 },
5764 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5765 cat <<\_LT_EOF >> conftest.$ac_ext
5769 /* This works around a problem in FreeBSD linker */
5770 #ifdef FREEBSD_WORKAROUND
5771 static const void *lt_preloaded_setup() {
5772 return lt__PROGRAM__LTX_preloaded_symbols;
5780 # Now try linking the two files.
5781 mv conftest.$ac_objext conftstm.$ac_objext
5782 lt_globsym_save_LIBS=$LIBS
5783 lt_globsym_save_CFLAGS=$CFLAGS
5784 LIBS="conftstm.$ac_objext"
5785 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5787 (eval $ac_link) 2>&5
5789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5790 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5793 LIBS=$lt_globsym_save_LIBS
5794 CFLAGS=$lt_globsym_save_CFLAGS
5796 echo "cannot find nm_test_func in $nlist" >&5
5799 echo "cannot find nm_test_var in $nlist" >&5
5802 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5805 echo "$progname: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5808 rm -rf conftest* conftst*
5810 # Do not use the global_symbol_pipe unless it works.
5811 if test "$pipe_works" = yes; then
5814 lt_cv_sys_global_symbol_pipe=
5820 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5821 lt_cv_sys_global_symbol_to_cdecl=
5823 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5825 $as_echo "failed" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5828 $as_echo "ok" >&6; }
5831 # Response file support.
5832 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5833 nm_file_list_spec='@'
5834 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5835 nm_file_list_spec='@'
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5865 $as_echo_n "checking for sysroot... " >&6; }
5867 # Check whether --with-sysroot was given.
5868 if test "${with_sysroot+set}" = set; then :
5869 withval=$with_sysroot;
5876 case ${with_sysroot} in #(
5878 if test "$GCC" = yes; then
5879 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5883 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5889 $as_echo "${with_sysroot}" >&6; }
5890 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5895 $as_echo "${lt_sysroot:-no}" >&6; }
5901 # Check whether --enable-libtool-lock was given.
5902 if test "${enable_libtool_lock+set}" = set; then :
5903 enableval=$enable_libtool_lock;
5906 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5908 # Some flags need to be propagated to the compiler or linker for good
5912 # Find out which ABI we are using.
5913 echo 'int i;' > conftest.$ac_ext
5914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5915 (eval $ac_compile) 2>&5
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; }; then
5919 case `/usr/bin/file conftest.$ac_objext` in
5931 # Find out which ABI we are using.
5932 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5934 (eval $ac_compile) 2>&5
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; }; then
5938 if test "$lt_cv_prog_gnu_ld" = yes; then
5939 case `/usr/bin/file conftest.$ac_objext` in
5941 LD="${LD-ld} -melf32bsmip"
5944 LD="${LD-ld} -melf32bmipn32"
5947 LD="${LD-ld} -melf64bmip"
5951 case `/usr/bin/file conftest.$ac_objext` in
5967 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5968 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5969 # Find out which ABI we are using.
5970 echo 'int i;' > conftest.$ac_ext
5971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5972 (eval $ac_compile) 2>&5
5974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975 test $ac_status = 0; }; then
5976 case `/usr/bin/file conftest.o` in
5979 x86_64-*kfreebsd*-gnu)
5980 LD="${LD-ld} -m elf_i386_fbsd"
5983 LD="${LD-ld} -m elf_i386"
5985 ppc64-*linux*|powerpc64-*linux*)
5986 LD="${LD-ld} -m elf32ppclinux"
5989 LD="${LD-ld} -m elf_s390"
5992 LD="${LD-ld} -m elf32_sparc"
5998 x86_64-*kfreebsd*-gnu)
5999 LD="${LD-ld} -m elf_x86_64_fbsd"
6002 LD="${LD-ld} -m elf_x86_64"
6004 ppc*-*linux*|powerpc*-*linux*)
6005 LD="${LD-ld} -m elf64ppc"
6007 s390*-*linux*|s390*-*tpf*)
6008 LD="${LD-ld} -m elf64_s390"
6011 LD="${LD-ld} -m elf64_sparc"
6021 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6022 SAVE_CFLAGS="$CFLAGS"
6023 CFLAGS="$CFLAGS -belf"
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6025 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6026 if ${lt_cv_cc_needs_belf+:} false; then :
6027 $as_echo_n "(cached) " >&6
6030 ac_cpp='$CPP $CPPFLAGS'
6031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6046 if ac_fn_c_try_link "$LINENO"; then :
6047 lt_cv_cc_needs_belf=yes
6049 lt_cv_cc_needs_belf=no
6051 rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6054 ac_cpp='$CPP $CPPFLAGS'
6055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6061 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6062 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6063 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6064 CFLAGS="$SAVE_CFLAGS"
6068 # Find out which ABI we are using.
6069 echo 'int i;' > conftest.$ac_ext
6070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6071 (eval $ac_compile) 2>&5
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; }; then
6075 case `/usr/bin/file conftest.o` in
6077 case $lt_cv_prog_gnu_ld in
6081 LD="${LD-ld} -m elf_x86_64"
6084 LD="${LD-ld} -m elf64_sparc"
6087 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6088 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6093 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6105 need_locks="$enable_libtool_lock"
6107 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}mt; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6113 $as_echo_n "(cached) " >&6
6115 if test -n "$MANIFEST_TOOL"; then
6116 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6136 if test -n "$MANIFEST_TOOL"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6138 $as_echo "$MANIFEST_TOOL" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6146 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6147 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6148 # Extract the first word of "mt", so it can be a program name with args.
6149 set dummy mt; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6153 $as_echo_n "(cached) " >&6
6155 if test -n "$ac_ct_MANIFEST_TOOL"; then
6156 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6176 if test -n "$ac_ct_MANIFEST_TOOL"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6178 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6184 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6187 case $cross_compiling:$ac_tool_warned in
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191 ac_tool_warned=yes ;;
6193 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6196 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6199 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6201 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6202 if ${lt_cv_path_mainfest_tool+:} false; then :
6203 $as_echo_n "(cached) " >&6
6205 lt_cv_path_mainfest_tool=no
6206 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6207 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6208 cat conftest.err >&5
6209 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6210 lt_cv_path_mainfest_tool=yes
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6215 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6216 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6226 rhapsody* | darwin*)
6227 if test -n "$ac_tool_prefix"; then
6228 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6229 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6233 $as_echo_n "(cached) " >&6
6235 if test -n "$DSYMUTIL"; then
6236 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6256 if test -n "$DSYMUTIL"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6258 $as_echo "$DSYMUTIL" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6266 if test -z "$ac_cv_prog_DSYMUTIL"; then
6267 ac_ct_DSYMUTIL=$DSYMUTIL
6268 # Extract the first word of "dsymutil", so it can be a program name with args.
6269 set dummy dsymutil; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6273 $as_echo_n "(cached) " >&6
6275 if test -n "$ac_ct_DSYMUTIL"; then
6276 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6296 if test -n "$ac_ct_DSYMUTIL"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6298 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6304 if test "x$ac_ct_DSYMUTIL" = x; then
6307 case $cross_compiling:$ac_tool_warned in
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311 ac_tool_warned=yes ;;
6313 DSYMUTIL=$ac_ct_DSYMUTIL
6316 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_NMEDIT+:} false; then :
6325 $as_echo_n "(cached) " >&6
6327 if test -n "$NMEDIT"; then
6328 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 NMEDIT=$ac_cv_prog_NMEDIT
6348 if test -n "$NMEDIT"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6350 $as_echo "$NMEDIT" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6358 if test -z "$ac_cv_prog_NMEDIT"; then
6359 ac_ct_NMEDIT=$NMEDIT
6360 # Extract the first word of "nmedit", so it can be a program name with args.
6361 set dummy nmedit; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6365 $as_echo_n "(cached) " >&6
6367 if test -n "$ac_ct_NMEDIT"; then
6368 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6388 if test -n "$ac_ct_NMEDIT"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6390 $as_echo "$ac_ct_NMEDIT" >&6; }
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6396 if test "x$ac_ct_NMEDIT" = x; then
6399 case $cross_compiling:$ac_tool_warned in
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6405 NMEDIT=$ac_ct_NMEDIT
6408 NMEDIT="$ac_cv_prog_NMEDIT"
6411 if test -n "$ac_tool_prefix"; then
6412 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_LIPO+:} false; then :
6417 $as_echo_n "(cached) " >&6
6419 if test -n "$LIPO"; then
6420 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 LIPO=$ac_cv_prog_LIPO
6440 if test -n "$LIPO"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6442 $as_echo "$LIPO" >&6; }
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6450 if test -z "$ac_cv_prog_LIPO"; then
6452 # Extract the first word of "lipo", so it can be a program name with args.
6453 set dummy lipo; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6457 $as_echo_n "(cached) " >&6
6459 if test -n "$ac_ct_LIPO"; then
6460 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_ac_ct_LIPO="lipo"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6480 if test -n "$ac_ct_LIPO"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6482 $as_echo "$ac_ct_LIPO" >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6488 if test "x$ac_ct_LIPO" = x; then
6491 case $cross_compiling:$ac_tool_warned in
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6500 LIPO="$ac_cv_prog_LIPO"
6503 if test -n "$ac_tool_prefix"; then
6504 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}otool; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_OTOOL+:} false; then :
6509 $as_echo_n "(cached) " >&6
6511 if test -n "$OTOOL"; then
6512 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 OTOOL=$ac_cv_prog_OTOOL
6532 if test -n "$OTOOL"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6534 $as_echo "$OTOOL" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6542 if test -z "$ac_cv_prog_OTOOL"; then
6544 # Extract the first word of "otool", so it can be a program name with args.
6545 set dummy otool; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6549 $as_echo_n "(cached) " >&6
6551 if test -n "$ac_ct_OTOOL"; then
6552 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_ac_ct_OTOOL="otool"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6572 if test -n "$ac_ct_OTOOL"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6574 $as_echo "$ac_ct_OTOOL" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6580 if test "x$ac_ct_OTOOL" = x; then
6583 case $cross_compiling:$ac_tool_warned in
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587 ac_tool_warned=yes ;;
6592 OTOOL="$ac_cv_prog_OTOOL"
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6597 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if ${ac_cv_prog_OTOOL64+:} false; then :
6601 $as_echo_n "(cached) " >&6
6603 if test -n "$OTOOL64"; then
6604 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 OTOOL64=$ac_cv_prog_OTOOL64
6624 if test -n "$OTOOL64"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6626 $as_echo "$OTOOL64" >&6; }
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629 $as_echo "no" >&6; }
6634 if test -z "$ac_cv_prog_OTOOL64"; then
6635 ac_ct_OTOOL64=$OTOOL64
6636 # Extract the first word of "otool64", so it can be a program name with args.
6637 set dummy otool64; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6641 $as_echo_n "(cached) " >&6
6643 if test -n "$ac_ct_OTOOL64"; then
6644 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_ac_ct_OTOOL64="otool64"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6664 if test -n "$ac_ct_OTOOL64"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6666 $as_echo "$ac_ct_OTOOL64" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6672 if test "x$ac_ct_OTOOL64" = x; then
6675 case $cross_compiling:$ac_tool_warned in
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679 ac_tool_warned=yes ;;
6681 OTOOL64=$ac_ct_OTOOL64
6684 OTOOL64="$ac_cv_prog_OTOOL64"
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6714 $as_echo_n "checking for -single_module linker flag... " >&6; }
6715 if ${lt_cv_apple_cc_single_mod+:} false; then :
6716 $as_echo_n "(cached) " >&6
6718 lt_cv_apple_cc_single_mod=no
6719 if test -z "${LT_MULTI_MODULE}"; then
6720 # By default we will add the -single_module flag. You can override
6721 # by either setting the environment variable LT_MULTI_MODULE
6722 # non-empty at configure time, or by adding -multi_module to the
6724 rm -rf libconftest.dylib*
6725 echo "int foo(void){return 1;}" > conftest.c
6726 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6727 -dynamiclib -Wl,-single_module conftest.c" >&5
6728 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6729 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6731 # If there is a non-empty error log, and "single_module"
6732 # appears in it, assume the flag caused a linker warning
6733 if test -s conftest.err && $GREP single_module conftest.err; then
6734 cat conftest.err >&5
6735 # Otherwise, if the output was created with a 0 exit code from
6736 # the compiler, it worked.
6737 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6738 lt_cv_apple_cc_single_mod=yes
6740 cat conftest.err >&5
6742 rm -rf libconftest.dylib*
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6747 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6750 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6751 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 lt_cv_ld_exported_symbols_list=no
6755 save_LDFLAGS=$LDFLAGS
6756 echo "_main" > conftest.sym
6757 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6769 if ac_fn_c_try_link "$LINENO"; then :
6770 lt_cv_ld_exported_symbols_list=yes
6772 lt_cv_ld_exported_symbols_list=no
6774 rm -f core conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6776 LDFLAGS="$save_LDFLAGS"
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6780 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6783 $as_echo_n "checking for -force_load linker flag... " >&6; }
6784 if ${lt_cv_ld_force_load+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 lt_cv_ld_force_load=no
6788 cat > conftest.c << _LT_EOF
6789 int forced_loaded() { return 2;}
6791 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6792 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6793 echo "$AR cru libconftest.a conftest.o" >&5
6794 $AR cru libconftest.a conftest.o 2>&5
6795 echo "$RANLIB libconftest.a" >&5
6796 $RANLIB libconftest.a 2>&5
6797 cat > conftest.c << _LT_EOF
6798 int main() { return 0;}
6800 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6801 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6803 if test -s conftest.err && $GREP force_load conftest.err; then
6804 cat conftest.err >&5
6805 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6806 lt_cv_ld_force_load=yes
6808 cat conftest.err >&5
6810 rm -f conftest.err libconftest.a conftest conftest.c
6811 rm -rf conftest.dSYM
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6815 $as_echo "$lt_cv_ld_force_load" >&6; }
6817 rhapsody* | darwin1.[012])
6818 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6820 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6821 darwin*) # darwin 5.x on
6822 # if running on 10.5 or later, the deployment target defaults
6823 # to the OS version, if on x86, and 10.4, the deployment
6824 # target defaults to 10.4. Don't you love it?
6825 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6826 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6827 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6829 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6831 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6835 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6836 _lt_dar_single_mod='$single_module'
6838 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6839 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6841 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6843 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6844 _lt_dsymutil='~$DSYMUTIL $lib || :'
6852 ac_cpp='$CPP $CPPFLAGS'
6853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6857 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6858 # On Suns, sometimes $CPP names a directory.
6859 if test -n "$CPP" && test -d "$CPP"; then
6862 if test -z "$CPP"; then
6863 if ${ac_cv_prog_CPP+:} false; then :
6864 $as_echo_n "(cached) " >&6
6866 # Double quotes because CPP needs to be expanded
6867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6870 for ac_c_preproc_warn_flag in '' yes
6872 # Use a header file that comes with gcc, so configuring glibc
6873 # with a fresh cross-compiler works.
6874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6875 # <limits.h> exists even on freestanding compilers.
6876 # On the NeXT, cc -E runs the code through the compiler's parser,
6877 # not just through cpp. "Syntax error" is here to catch this case.
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6881 # include <limits.h>
6883 # include <assert.h>
6887 if ac_fn_c_try_cpp "$LINENO"; then :
6890 # Broken: fails on valid input.
6893 rm -f conftest.err conftest.i conftest.$ac_ext
6895 # OK, works on sane cases. Now check whether nonexistent headers
6896 # can be detected and how.
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <ac_nonexistent.h>
6901 if ac_fn_c_try_cpp "$LINENO"; then :
6902 # Broken: success on invalid input.
6905 # Passes both tests.
6909 rm -f conftest.err conftest.i conftest.$ac_ext
6912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6913 rm -f conftest.i conftest.err conftest.$ac_ext
6914 if $ac_preproc_ok; then :
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6927 $as_echo "$CPP" >&6; }
6929 for ac_c_preproc_warn_flag in '' yes
6931 # Use a header file that comes with gcc, so configuring glibc
6932 # with a fresh cross-compiler works.
6933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934 # <limits.h> exists even on freestanding compilers.
6935 # On the NeXT, cc -E runs the code through the compiler's parser,
6936 # not just through cpp. "Syntax error" is here to catch this case.
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6940 # include <limits.h>
6942 # include <assert.h>
6946 if ac_fn_c_try_cpp "$LINENO"; then :
6949 # Broken: fails on valid input.
6952 rm -f conftest.err conftest.i conftest.$ac_ext
6954 # OK, works on sane cases. Now check whether nonexistent headers
6955 # can be detected and how.
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6958 #include <ac_nonexistent.h>
6960 if ac_fn_c_try_cpp "$LINENO"; then :
6961 # Broken: success on invalid input.
6964 # Passes both tests.
6968 rm -f conftest.err conftest.i conftest.$ac_ext
6971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6972 rm -f conftest.i conftest.err conftest.$ac_ext
6973 if $ac_preproc_ok; then :
6976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6978 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6979 See \`config.log' for more details" "$LINENO" 5; }
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6990 $as_echo_n "checking for ANSI C header files... " >&6; }
6991 if ${ac_cv_header_stdc+:} false; then :
6992 $as_echo_n "(cached) " >&6
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 ac_cv_header_stdc=yes
7012 ac_cv_header_stdc=no
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 if test $ac_cv_header_stdc = yes; then
7017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7024 $EGREP "memchr" >/dev/null 2>&1; then :
7027 ac_cv_header_stdc=no
7033 if test $ac_cv_header_stdc = yes; then
7034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041 $EGREP "free" >/dev/null 2>&1; then :
7044 ac_cv_header_stdc=no
7050 if test $ac_cv_header_stdc = yes; then
7051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7052 if test "$cross_compiling" = yes; then :
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7059 #if ((' ' & 0x0FF) == 0x020)
7060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7063 # define ISLOWER(c) \
7064 (('a' <= (c) && (c) <= 'i') \
7065 || ('j' <= (c) && (c) <= 'r') \
7066 || ('s' <= (c) && (c) <= 'z'))
7067 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7070 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7075 for (i = 0; i < 256; i++)
7076 if (XOR (islower (i), ISLOWER (i))
7077 || toupper (i) != TOUPPER (i))
7082 if ac_fn_c_try_run "$LINENO"; then :
7085 ac_cv_header_stdc=no
7087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7088 conftest.$ac_objext conftest.beam conftest.$ac_ext
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7094 $as_echo "$ac_cv_header_stdc" >&6; }
7095 if test $ac_cv_header_stdc = yes; then
7097 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7101 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7103 inttypes.h stdint.h unistd.h
7105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7109 cat >>confdefs.h <<_ACEOF
7110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7118 for ac_header in dlfcn.h
7120 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7122 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7123 cat >>confdefs.h <<_ACEOF
7124 #define HAVE_DLFCN_H 1
7145 # Check whether --enable-shared was given.
7146 if test "${enable_shared+set}" = set; then :
7147 enableval=$enable_shared; p=${PACKAGE-default}
7149 yes) enable_shared=yes ;;
7150 no) enable_shared=no ;;
7153 # Look at the argument we got. We use all the common list separators.
7154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7155 for pkg in $enableval; do
7157 if test "X$pkg" = "X$p"; then
7176 # Check whether --enable-static was given.
7177 if test "${enable_static+set}" = set; then :
7178 enableval=$enable_static; p=${PACKAGE-default}
7180 yes) enable_static=yes ;;
7181 no) enable_static=no ;;
7184 # Look at the argument we got. We use all the common list separators.
7185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7186 for pkg in $enableval; do
7188 if test "X$pkg" = "X$p"; then
7208 # Check whether --with-pic was given.
7209 if test "${with_pic+set}" = set; then :
7210 withval=$with_pic; lt_p=${PACKAGE-default}
7212 yes|no) pic_mode=$withval ;;
7215 # Look at the argument we got. We use all the common list separators.
7216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7217 for lt_pkg in $withval; do
7219 if test "X$lt_pkg" = "X$lt_p"; then
7231 test -z "$pic_mode" && pic_mode=default
7239 # Check whether --enable-fast-install was given.
7240 if test "${enable_fast_install+set}" = set; then :
7241 enableval=$enable_fast_install; p=${PACKAGE-default}
7243 yes) enable_fast_install=yes ;;
7244 no) enable_fast_install=no ;;
7246 enable_fast_install=no
7247 # Look at the argument we got. We use all the common list separators.
7248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7249 for pkg in $enableval; do
7251 if test "X$pkg" = "X$p"; then
7252 enable_fast_install=yes
7259 enable_fast_install=yes
7272 # This can be used to rebuild libtool when needed
7273 LIBTOOL_DEPS="$ltmain"
7275 # Always use our own libtool.
7276 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7307 test -z "$LN_S" && LN_S="ln -s"
7322 if test -n "${ZSH_VERSION+set}" ; then
7323 setopt NO_GLOB_SUBST
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7327 $as_echo_n "checking for objdir... " >&6; }
7328 if ${lt_cv_objdir+:} false; then :
7329 $as_echo_n "(cached) " >&6
7331 rm -f .libs 2>/dev/null
7332 mkdir .libs 2>/dev/null
7333 if test -d .libs; then
7336 # MS-DOS does not allow filenames that begin with a dot.
7339 rmdir .libs 2>/dev/null
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7342 $as_echo "$lt_cv_objdir" >&6; }
7343 objdir=$lt_cv_objdir
7349 cat >>confdefs.h <<_ACEOF
7350 #define LT_OBJDIR "$lt_cv_objdir/"
7358 # AIX sometimes has problems with the GCC collect2 program. For some
7359 # reason, if we set the COLLECT_NAMES environment variable, the problems
7360 # vanish in a puff of smoke.
7361 if test "X${COLLECT_NAMES+set}" != Xset; then
7363 export COLLECT_NAMES
7370 can_build_shared=yes
7372 # All known linkers require a `.a' archive for static linking (except MSVC,
7373 # which needs '.lib').
7376 with_gnu_ld="$lt_cv_prog_gnu_ld"
7379 old_CFLAGS="$CFLAGS"
7381 # Set sane defaults for various variables
7382 test -z "$CC" && CC=cc
7383 test -z "$LTCC" && LTCC=$CC
7384 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7385 test -z "$LD" && LD=ld
7386 test -z "$ac_objext" && ac_objext=o
7388 for cc_temp in $compiler""; do
7390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7396 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7399 # Only perform the check for file, if the check method requires it
7400 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7401 case $deplibs_check_method in
7403 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7405 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7407 $as_echo_n "(cached) " >&6
7411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7414 lt_save_MAGIC_CMD="$MAGIC_CMD"
7415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7417 for ac_dir in $ac_dummy; do
7419 test -z "$ac_dir" && ac_dir=.
7420 if test -f $ac_dir/${ac_tool_prefix}file; then
7421 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7422 if test -n "$file_magic_test_file"; then
7423 case $deplibs_check_method in
7425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7428 $EGREP "$file_magic_regex" > /dev/null; then
7433 *** Warning: the command libtool uses to detect shared libraries,
7434 *** $file_magic_cmd, produces output that libtool cannot recognize.
7435 *** The result is that libtool may fail to recognize shared libraries
7436 *** as such. This will affect the creation of libtool libraries that
7437 *** depend on shared libraries, but programs linked with such libtool
7438 *** libraries will work regardless of this problem. Nevertheless, you
7439 *** may want to report the problem to your system manager and/or to
7440 *** bug-libtool@gnu.org
7450 MAGIC_CMD="$lt_save_MAGIC_CMD"
7455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7456 if test -n "$MAGIC_CMD"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7458 $as_echo "$MAGIC_CMD" >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7468 if test -z "$lt_cv_path_MAGIC_CMD"; then
7469 if test -n "$ac_tool_prefix"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7471 $as_echo_n "checking for file... " >&6; }
7472 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7473 $as_echo_n "(cached) " >&6
7477 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7480 lt_save_MAGIC_CMD="$MAGIC_CMD"
7481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7482 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7483 for ac_dir in $ac_dummy; do
7485 test -z "$ac_dir" && ac_dir=.
7486 if test -f $ac_dir/file; then
7487 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7488 if test -n "$file_magic_test_file"; then
7489 case $deplibs_check_method in
7491 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7493 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7494 $EGREP "$file_magic_regex" > /dev/null; then
7499 *** Warning: the command libtool uses to detect shared libraries,
7500 *** $file_magic_cmd, produces output that libtool cannot recognize.
7501 *** The result is that libtool may fail to recognize shared libraries
7502 *** as such. This will affect the creation of libtool libraries that
7503 *** depend on shared libraries, but programs linked with such libtool
7504 *** libraries will work regardless of this problem. Nevertheless, you
7505 *** may want to report the problem to your system manager and/or to
7506 *** bug-libtool@gnu.org
7516 MAGIC_CMD="$lt_save_MAGIC_CMD"
7521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522 if test -n "$MAGIC_CMD"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7524 $as_echo "$MAGIC_CMD" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7540 # Use C for the default configuration in the libtool script
7544 ac_cpp='$CPP $CPPFLAGS'
7545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7550 # Source file extension for C test sources.
7553 # Object file extension for compiled C test sources.
7557 # Code to be used in simple compile tests
7558 lt_simple_compile_test_code="int some_variable = 0;"
7560 # Code to be used in simple link tests
7561 lt_simple_link_test_code='int main(){return(0);}'
7569 # If no C compiler was specified, use CC.
7572 # If no C compiler flags were specified, use CFLAGS.
7573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7575 # Allow CC to be a program name with arguments.
7578 # Save the default compiler, since it gets overwritten when the other
7579 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7580 compiler_DEFAULT=$CC
7582 # save warnings/boilerplate of simple test code
7583 ac_outfile=conftest.$ac_objext
7584 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7585 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7586 _lt_compiler_boilerplate=`cat conftest.err`
7589 ac_outfile=conftest.$ac_objext
7590 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7591 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7592 _lt_linker_boilerplate=`cat conftest.err`
7596 if test -n "$compiler"; then
7598 lt_prog_compiler_no_builtin_flag=
7600 if test "$GCC" = yes; then
7601 case $cc_basename in
7603 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7605 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7609 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7610 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7611 $as_echo_n "(cached) " >&6
7613 lt_cv_prog_compiler_rtti_exceptions=no
7614 ac_outfile=conftest.$ac_objext
7615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7616 lt_compiler_flag="-fno-rtti -fno-exceptions"
7617 # Insert the option either (1) after the last *FLAGS variable, or
7618 # (2) before a word containing "conftest.", or (3) at the end.
7619 # Note that $ac_compile itself does not contain backslashes and begins
7620 # with a dollar sign (not a hyphen), so the echo should work correctly.
7621 # The option is referenced via a variable to avoid confusing sed.
7622 lt_compile=`echo "$ac_compile" | $SED \
7623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7625 -e 's:$: $lt_compiler_flag:'`
7626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7627 (eval "$lt_compile" 2>conftest.err)
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 if (exit $ac_status) && test -s "$ac_outfile"; then
7632 # The compiler can only warn and ignore the option if not recognized
7633 # So say no if there are warnings other than the usual output.
7634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7637 lt_cv_prog_compiler_rtti_exceptions=yes
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7644 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7646 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7647 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7659 lt_prog_compiler_wl=
7660 lt_prog_compiler_pic=
7661 lt_prog_compiler_static=
7664 if test "$GCC" = yes; then
7665 lt_prog_compiler_wl='-Wl,'
7666 lt_prog_compiler_static='-static'
7670 # All AIX code is PIC.
7671 if test "$host_cpu" = ia64; then
7672 # AIX 5 now supports IA64 processor
7673 lt_prog_compiler_static='-Bstatic'
7680 # see comment about AmigaOS4 .so support
7681 lt_prog_compiler_pic='-fPIC'
7684 # FIXME: we need at least 68020 code to build shared libraries, but
7685 # adding the `-m68020' flag to GCC prevents building anything better,
7687 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7692 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7693 # PIC is the default for these OSes.
7696 mingw* | cygwin* | pw32* | os2* | cegcc*)
7697 # This hack is so that the source file can tell whether it is being
7698 # built for inclusion in a dll (and should export symbols for example).
7699 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7700 # (--disable-auto-import) libraries
7701 lt_prog_compiler_pic='-DDLL_EXPORT'
7704 darwin* | rhapsody*)
7705 # PIC is the default on this platform
7706 # Common symbols not allowed in MH_DYLIB files
7707 lt_prog_compiler_pic='-fno-common'
7711 # PIC is the default for Haiku.
7712 # The "-static" flag exists, but is broken.
7713 lt_prog_compiler_static=
7717 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7718 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7719 # sets the default TLS model and affects inlining.
7725 lt_prog_compiler_pic='-fPIC'
7731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7732 # Instead, we relocate shared libraries at runtime.
7736 # Just because we use GCC doesn't mean we suddenly get shared libraries
7737 # on systems that don't support them.
7738 lt_prog_compiler_can_build_shared=no
7743 # QNX uses GNU C++, but need to define -shared option too, otherwise
7745 lt_prog_compiler_pic='-fPIC -shared'
7749 if test -d /usr/nec; then
7750 lt_prog_compiler_pic=-Kconform_pic
7755 lt_prog_compiler_pic='-fPIC'
7759 case $cc_basename in
7760 nvcc*) # Cuda Compiler Driver 2.2
7761 lt_prog_compiler_wl='-Xlinker '
7762 if test -n "$lt_prog_compiler_pic"; then
7763 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7768 # PORTME Check for flag to pass linker flags through the system compiler.
7771 lt_prog_compiler_wl='-Wl,'
7772 if test "$host_cpu" = ia64; then
7773 # AIX 5 now supports IA64 processor
7774 lt_prog_compiler_static='-Bstatic'
7776 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7780 mingw* | cygwin* | pw32* | os2* | cegcc*)
7781 # This hack is so that the source file can tell whether it is being
7782 # built for inclusion in a dll (and should export symbols for example).
7783 lt_prog_compiler_pic='-DDLL_EXPORT'
7786 hpux9* | hpux10* | hpux11*)
7787 lt_prog_compiler_wl='-Wl,'
7788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7795 lt_prog_compiler_pic='+Z'
7798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7799 lt_prog_compiler_static='${wl}-a ${wl}archive'
7802 irix5* | irix6* | nonstopux*)
7803 lt_prog_compiler_wl='-Wl,'
7804 # PIC (with -KPIC) is the default.
7805 lt_prog_compiler_static='-non_shared'
7808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7809 case $cc_basename in
7810 # old Intel for x86_64 which still supported -KPIC.
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-static'
7816 # icc used to be incompatible with GCC.
7817 # ICC 10 doesn't accept -KPIC any more.
7819 lt_prog_compiler_wl='-Wl,'
7820 lt_prog_compiler_pic='-fPIC'
7821 lt_prog_compiler_static='-static'
7823 # Lahey Fortran 8.1.
7825 lt_prog_compiler_wl='-Wl,'
7826 lt_prog_compiler_pic='--shared'
7827 lt_prog_compiler_static='--static'
7830 # NAG Fortran compiler
7831 lt_prog_compiler_wl='-Wl,-Wl,,'
7832 lt_prog_compiler_pic='-PIC'
7833 lt_prog_compiler_static='-Bstatic'
7835 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7836 # Portland Group compilers (*not* the Pentium gcc compiler,
7837 # which looks to be a dead project)
7838 lt_prog_compiler_wl='-Wl,'
7839 lt_prog_compiler_pic='-fpic'
7840 lt_prog_compiler_static='-Bstatic'
7843 lt_prog_compiler_wl='-Wl,'
7844 # All Alpha code is PIC.
7845 lt_prog_compiler_static='-non_shared'
7847 xl* | bgxl* | bgf* | mpixl*)
7848 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7849 lt_prog_compiler_wl='-Wl,'
7850 lt_prog_compiler_pic='-qpic'
7851 lt_prog_compiler_static='-qstaticlink'
7854 case `$CC -V 2>&1 | sed 5q` in
7855 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7856 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7857 lt_prog_compiler_pic='-KPIC'
7858 lt_prog_compiler_static='-Bstatic'
7859 lt_prog_compiler_wl=''
7861 *Sun\ F* | *Sun*Fortran*)
7862 lt_prog_compiler_pic='-KPIC'
7863 lt_prog_compiler_static='-Bstatic'
7864 lt_prog_compiler_wl='-Qoption ld '
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-Bstatic'
7870 lt_prog_compiler_wl='-Wl,'
7872 *Intel*\ [CF]*Compiler*)
7873 lt_prog_compiler_wl='-Wl,'
7874 lt_prog_compiler_pic='-fPIC'
7875 lt_prog_compiler_static='-static'
7878 lt_prog_compiler_wl='-Wl,'
7879 lt_prog_compiler_pic='-fpic'
7880 lt_prog_compiler_static='-Bstatic'
7888 lt_prog_compiler_pic='-KPIC'
7889 lt_prog_compiler_static='-Bstatic'
7893 # QNX uses GNU C++, but need to define -shared option too, otherwise
7895 lt_prog_compiler_pic='-fPIC -shared'
7898 osf3* | osf4* | osf5*)
7899 lt_prog_compiler_wl='-Wl,'
7900 # All OSF/1 code is PIC.
7901 lt_prog_compiler_static='-non_shared'
7905 lt_prog_compiler_static='-non_shared'
7909 lt_prog_compiler_pic='-KPIC'
7910 lt_prog_compiler_static='-Bstatic'
7911 case $cc_basename in
7912 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7913 lt_prog_compiler_wl='-Qoption ld ';;
7915 lt_prog_compiler_wl='-Wl,';;
7920 lt_prog_compiler_wl='-Qoption ld '
7921 lt_prog_compiler_pic='-PIC'
7922 lt_prog_compiler_static='-Bstatic'
7925 sysv4 | sysv4.2uw2* | sysv4.3*)
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_pic='-KPIC'
7928 lt_prog_compiler_static='-Bstatic'
7932 if test -d /usr/nec ;then
7933 lt_prog_compiler_pic='-Kconform_pic'
7934 lt_prog_compiler_static='-Bstatic'
7938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7939 lt_prog_compiler_wl='-Wl,'
7940 lt_prog_compiler_pic='-KPIC'
7941 lt_prog_compiler_static='-Bstatic'
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_can_build_shared=no
7950 lt_prog_compiler_pic='-pic'
7951 lt_prog_compiler_static='-Bstatic'
7955 lt_prog_compiler_can_build_shared=no
7961 # For platforms which do not support PIC, -DPIC is meaningless:
7963 lt_prog_compiler_pic=
7966 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7971 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7972 if ${lt_cv_prog_compiler_pic+:} false; then :
7973 $as_echo_n "(cached) " >&6
7975 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7978 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7979 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7982 # Check to make sure the PIC flag actually works.
7984 if test -n "$lt_prog_compiler_pic"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7986 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7987 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7988 $as_echo_n "(cached) " >&6
7990 lt_cv_prog_compiler_pic_works=no
7991 ac_outfile=conftest.$ac_objext
7992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7993 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7994 # Insert the option either (1) after the last *FLAGS variable, or
7995 # (2) before a word containing "conftest.", or (3) at the end.
7996 # Note that $ac_compile itself does not contain backslashes and begins
7997 # with a dollar sign (not a hyphen), so the echo should work correctly.
7998 # The option is referenced via a variable to avoid confusing sed.
7999 lt_compile=`echo "$ac_compile" | $SED \
8000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8002 -e 's:$: $lt_compiler_flag:'`
8003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8004 (eval "$lt_compile" 2>conftest.err)
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 if (exit $ac_status) && test -s "$ac_outfile"; then
8009 # The compiler can only warn and ignore the option if not recognized
8010 # So say no if there are warnings other than the usual output.
8011 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8013 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8014 lt_cv_prog_compiler_pic_works=yes
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8021 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8023 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8024 case $lt_prog_compiler_pic in
8026 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8029 lt_prog_compiler_pic=
8030 lt_prog_compiler_can_build_shared=no
8046 # Check to make sure the static flag actually works.
8048 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8050 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8051 if ${lt_cv_prog_compiler_static_works+:} false; then :
8052 $as_echo_n "(cached) " >&6
8054 lt_cv_prog_compiler_static_works=no
8055 save_LDFLAGS="$LDFLAGS"
8056 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8057 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8058 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8059 # The linker can only warn and ignore the option if not recognized
8060 # So say no if there are warnings
8061 if test -s conftest.err; then
8062 # Append any errors to the config.log.
8063 cat conftest.err 1>&5
8064 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8066 if diff conftest.exp conftest.er2 >/dev/null; then
8067 lt_cv_prog_compiler_static_works=yes
8070 lt_cv_prog_compiler_static_works=yes
8074 LDFLAGS="$save_LDFLAGS"
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8078 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8080 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8083 lt_prog_compiler_static=
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8093 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8094 if ${lt_cv_prog_compiler_c_o+:} false; then :
8095 $as_echo_n "(cached) " >&6
8097 lt_cv_prog_compiler_c_o=no
8098 $RM -r conftest 2>/dev/null
8102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8104 lt_compiler_flag="-o out/conftest2.$ac_objext"
8105 # Insert the option either (1) after the last *FLAGS variable, or
8106 # (2) before a word containing "conftest.", or (3) at the end.
8107 # Note that $ac_compile itself does not contain backslashes and begins
8108 # with a dollar sign (not a hyphen), so the echo should work correctly.
8109 lt_compile=`echo "$ac_compile" | $SED \
8110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112 -e 's:$: $lt_compiler_flag:'`
8113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8114 (eval "$lt_compile" 2>out/conftest.err)
8116 cat out/conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8120 # The compiler can only warn and ignore the option if not recognized
8121 # So say no if there are warnings
8122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8125 lt_cv_prog_compiler_c_o=yes
8130 # SGI C++ compiler will create directory out/ii_files/ for
8131 # template instantiation
8132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8133 $RM out/* && rmdir out
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8140 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8148 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8149 if ${lt_cv_prog_compiler_c_o+:} false; then :
8150 $as_echo_n "(cached) " >&6
8152 lt_cv_prog_compiler_c_o=no
8153 $RM -r conftest 2>/dev/null
8157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8159 lt_compiler_flag="-o out/conftest2.$ac_objext"
8160 # Insert the option either (1) after the last *FLAGS variable, or
8161 # (2) before a word containing "conftest.", or (3) at the end.
8162 # Note that $ac_compile itself does not contain backslashes and begins
8163 # with a dollar sign (not a hyphen), so the echo should work correctly.
8164 lt_compile=`echo "$ac_compile" | $SED \
8165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8167 -e 's:$: $lt_compiler_flag:'`
8168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8169 (eval "$lt_compile" 2>out/conftest.err)
8171 cat out/conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8175 # The compiler can only warn and ignore the option if not recognized
8176 # So say no if there are warnings
8177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8180 lt_cv_prog_compiler_c_o=yes
8185 # SGI C++ compiler will create directory out/ii_files/ for
8186 # template instantiation
8187 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8188 $RM out/* && rmdir out
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8195 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8200 hard_links="nottested"
8201 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8202 # do not overwrite the value of need_locks provided by the user
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8204 $as_echo_n "checking if we can lock with hard links... " >&6; }
8207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8209 ln conftest.a conftest.b 2>&5 || hard_links=no
8210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8212 $as_echo "$hard_links" >&6; }
8213 if test "$hard_links" = no; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8215 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8228 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8231 allow_undefined_flag=
8232 always_export_symbols=no
8234 archive_expsym_cmds=
8235 compiler_needs_object=no
8236 enable_shared_with_static_runtimes=no
8237 export_dynamic_flag_spec=
8238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8239 hardcode_automatic=no
8241 hardcode_direct_absolute=no
8242 hardcode_libdir_flag_spec=
8243 hardcode_libdir_separator=
8245 hardcode_shlibpath_var=unsupported
8247 link_all_deplibs=unknown
8250 old_archive_from_new_cmds=
8251 old_archive_from_expsyms_cmds=
8252 thread_safe_flag_spec=
8253 whole_archive_flag_spec=
8254 # include_expsyms should be a list of space-separated symbols to be *always*
8255 # included in the symbol list
8257 # exclude_expsyms can be an extended regexp of symbols to exclude
8258 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8259 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8260 # as well as any symbol that contains `d'.
8261 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8262 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8263 # platforms (ab)use it in PIC code, but their linkers get confused if
8264 # the symbol is explicitly referenced. Since portable code cannot
8265 # rely on this symbol name, it's probably fine to never include it in
8266 # preloaded symbol tables.
8267 # Exclude shared library initialization/finalization symbols.
8268 extract_expsyms_cmds=
8271 cygwin* | mingw* | pw32* | cegcc*)
8272 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8273 # When not using gcc, we currently assume that we are using
8274 # Microsoft Visual C++.
8275 if test "$GCC" != yes; then
8280 # we just hope/assume this is gcc and not c89 (= MSVC++)
8290 # On some targets, GNU ld is compatible enough with the native linker
8291 # that we're better off using the native interface for both.
8292 lt_use_gnu_ld_interface=no
8293 if test "$with_gnu_ld" = yes; then
8296 # The AIX port of GNU ld has always aspired to compatibility
8297 # with the native linker. However, as the warning in the GNU ld
8298 # block says, versions before 2.19.5* couldn't really create working
8299 # shared libraries, regardless of the interface used.
8300 case `$LD -v 2>&1` in
8301 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8302 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8303 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8305 lt_use_gnu_ld_interface=yes
8310 lt_use_gnu_ld_interface=yes
8315 if test "$lt_use_gnu_ld_interface" = yes; then
8316 # If archive_cmds runs LD, not CC, wlarc should be empty
8319 # Set some defaults for GNU ld with shared library support. These
8320 # are reset later if shared libraries are not supported. Putting them
8321 # here allows them to be overridden if necessary.
8322 runpath_var=LD_RUN_PATH
8323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324 export_dynamic_flag_spec='${wl}--export-dynamic'
8325 # ancient GNU ld didn't support --whole-archive et. al.
8326 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8327 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8329 whole_archive_flag_spec=
8331 supports_anon_versioning=no
8332 case `$LD -v 2>&1` in
8333 *GNU\ gold*) supports_anon_versioning=yes ;;
8334 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8335 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8336 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8337 *\ 2.11.*) ;; # other 2.11 versions
8338 *) supports_anon_versioning=yes ;;
8341 # See if GNU ld supports shared libraries.
8344 # On AIX/PPC, the GNU linker is very broken
8345 if test "$host_cpu" != ia64; then
8349 *** Warning: the GNU linker, at least up to release 2.19, is reported
8350 *** to be unable to reliably create shared libraries on AIX.
8351 *** Therefore, libtool is disabling shared libraries support. If you
8352 *** really care for shared libraries, you may want to install binutils
8353 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8354 *** You will then need to restart the configuration process.
8363 # see comment about AmigaOS4 .so support
8364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365 archive_expsym_cmds=''
8368 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)'
8369 hardcode_libdir_flag_spec='-L$libdir'
8370 hardcode_minus_L=yes
8376 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8377 allow_undefined_flag=unsupported
8378 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8379 # support --undefined. This deserves some investigation. FIXME
8380 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8386 cygwin* | mingw* | pw32* | cegcc*)
8387 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8388 # as there is no search path for DLLs.
8389 hardcode_libdir_flag_spec='-L$libdir'
8390 export_dynamic_flag_spec='${wl}--export-all-symbols'
8391 allow_undefined_flag=unsupported
8392 always_export_symbols=no
8393 enable_shared_with_static_runtimes=yes
8394 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'
8395 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8397 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8399 # If the export-symbols file already is a .def file (1st line
8400 # is EXPORTS), use it as is; otherwise, prepend...
8401 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8402 cp $export_symbols $output_objdir/$soname.def;
8404 echo EXPORTS > $output_objdir/$soname.def;
8405 cat $export_symbols >> $output_objdir/$soname.def;
8407 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415 link_all_deplibs=yes
8420 hardcode_shlibpath_var=no
8421 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8422 export_dynamic_flag_spec='${wl}-E'
8423 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8424 # Instead, shared libraries are loaded at an image base (0x10000000 by
8425 # default) and relocated if they conflict, which is a slow very memory
8426 # consuming and fragmenting process. To avoid this, we pick a random,
8427 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8428 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8429 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8430 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'
8433 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8435 if test "$host_os" = linux-dietlibc; then
8436 case $cc_basename in
8437 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8440 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8441 && test "$tmp_diet" = no
8443 tmp_addflag=' $pic_flag'
8444 tmp_sharedflag='-shared'
8445 case $cc_basename,$host_cpu in
8446 pgcc*) # Portland Group C compiler
8447 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'
8448 tmp_addflag=' $pic_flag'
8450 pgf77* | pgf90* | pgf95* | pgfortran*)
8451 # Portland Group f77 and f90 compilers
8452 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'
8453 tmp_addflag=' $pic_flag -Mnomain' ;;
8454 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8455 tmp_addflag=' -i_dynamic' ;;
8456 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8457 tmp_addflag=' -i_dynamic -nofor_main' ;;
8458 ifc* | ifort*) # Intel Fortran compiler
8459 tmp_addflag=' -nofor_main' ;;
8460 lf95*) # Lahey Fortran 8.1
8461 whole_archive_flag_spec=
8462 tmp_sharedflag='--shared' ;;
8463 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8464 tmp_sharedflag='-qmkshrobj'
8466 nvcc*) # Cuda Compiler Driver 2.2
8467 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'
8468 compiler_needs_object=yes
8471 case `$CC -V 2>&1 | sed 5q` in
8472 *Sun\ C*) # Sun C 5.9
8473 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'
8474 compiler_needs_object=yes
8475 tmp_sharedflag='-G' ;;
8476 *Sun\ F*) # Sun Fortran 8.3
8477 tmp_sharedflag='-G' ;;
8479 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8481 if test "x$supports_anon_versioning" = xyes; then
8482 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8484 echo "local: *; };" >> $output_objdir/$libname.ver~
8485 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8488 case $cc_basename in
8489 xlf* | bgf* | bgxlf* | mpixlf*)
8490 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8491 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8493 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8494 if test "x$supports_anon_versioning" = xyes; then
8495 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8496 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8497 echo "local: *; };" >> $output_objdir/$libname.ver~
8498 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8509 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8518 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8522 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8523 *** create shared libraries on Solaris systems. Therefore, libtool
8524 *** is disabling shared libraries support. We urge you to upgrade GNU
8525 *** binutils to release 2.9.1 or newer. Another option is to modify
8526 *** your PATH or compiler configuration so that the native linker is
8527 *** used, and then restart.
8530 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8531 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8539 case `$LD -v 2>&1` in
8540 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8544 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8545 *** reliably create shared libraries on SCO systems. Therefore, libtool
8546 *** is disabling shared libraries support. We urge you to upgrade GNU
8547 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8548 *** your PATH or compiler configuration so that the native linker is
8549 *** used, and then restart.
8554 # For security reasons, it is highly recommended that you always
8555 # use absolute paths for naming shared libraries, and exclude the
8556 # DT_RUNPATH tag from executables and libraries. But doing so
8557 # requires that you compile everything twice, which is a pain.
8558 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8570 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8573 hardcode_shlibpath_var=no
8577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8586 if test "$ld_shlibs" = no; then
8588 hardcode_libdir_flag_spec=
8589 export_dynamic_flag_spec=
8590 whole_archive_flag_spec=
8593 # PORTME fill in a description of your system's linker (not GNU ld)
8596 allow_undefined_flag=unsupported
8597 always_export_symbols=yes
8598 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'
8599 # Note: this linker hardcodes the directories in LIBPATH if there
8600 # are no directories specified by -L.
8601 hardcode_minus_L=yes
8602 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8603 # Neither direct hardcoding nor static linking is supported with a
8605 hardcode_direct=unsupported
8610 if test "$host_cpu" = ia64; then
8611 # On IA64, the linker does run time linking by default, so we don't
8612 # have to do anything special.
8613 aix_use_runtimelinking=no
8614 exp_sym_flag='-Bexport'
8617 # If we're using GNU nm, then we don't want the "-C" option.
8618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8619 # Also, AIX nm treats weak defined symbols like other global
8620 # defined symbols, whereas GNU nm marks them as "W".
8621 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8622 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8624 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8626 aix_use_runtimelinking=no
8628 # Test if we are trying to use run time linking or normal
8629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8630 # need to do runtime linking.
8631 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8632 for ld_flag in $LDFLAGS; do
8633 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8634 aix_use_runtimelinking=yes
8641 exp_sym_flag='-bexport'
8642 no_entry_flag='-bnoentry'
8645 # When large executables or shared objects are built, AIX ld can
8646 # have problems creating the table of contents. If linking a library
8647 # or program results in "error TOC overflow" add -mminimal-toc to
8648 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8649 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8653 hardcode_direct_absolute=yes
8654 hardcode_libdir_separator=':'
8655 link_all_deplibs=yes
8656 file_list_spec='${wl}-f,'
8658 if test "$GCC" = yes; then
8659 case $host_os in aix4.[012]|aix4.[012].*)
8660 # We only want to do this on AIX 4.2 and lower, the check
8661 # below for broken collect2 doesn't work under 4.3+
8662 collect2name=`${CC} -print-prog-name=collect2`
8663 if test -f "$collect2name" &&
8664 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8666 # We have reworked collect2
8669 # We have old collect2
8670 hardcode_direct=unsupported
8671 # It fails to find uninstalled libraries when the uninstalled
8672 # path is not listed in the libpath. Setting hardcode_minus_L
8673 # to unsupported forces relinking
8674 hardcode_minus_L=yes
8675 hardcode_libdir_flag_spec='-L$libdir'
8676 hardcode_libdir_separator=
8680 shared_flag='-shared'
8681 if test "$aix_use_runtimelinking" = yes; then
8682 shared_flag="$shared_flag "'${wl}-G'
8686 if test "$host_cpu" = ia64; then
8687 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8688 # chokes on -Wl,-G. The following line is correct:
8691 if test "$aix_use_runtimelinking" = yes; then
8692 shared_flag='${wl}-G'
8694 shared_flag='${wl}-bM:SRE'
8699 export_dynamic_flag_spec='${wl}-bexpall'
8700 # It seems that -bexpall does not export symbols beginning with
8701 # underscore (_), so it is better to generate a list of symbols to export.
8702 always_export_symbols=yes
8703 if test "$aix_use_runtimelinking" = yes; then
8704 # Warning - without using the other runtime loading flags (-brtl),
8705 # -berok will link without error, but may produce a broken library.
8706 allow_undefined_flag='-berok'
8707 # Determine the default libpath from the value encoded in an
8709 if test "${lt_cv_aix_libpath+set}" = set; then
8710 aix_libpath=$lt_cv_aix_libpath
8712 if ${lt_cv_aix_libpath_+:} false; then :
8713 $as_echo_n "(cached) " >&6
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8726 if ac_fn_c_try_link "$LINENO"; then :
8728 lt_aix_libpath_sed='
8729 /Import File Strings/,/^$/ {
8731 s/^0 *\([^ ]*\) *$/\1/
8735 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8736 # Check for a 64-bit object if we didn't find anything.
8737 if test -z "$lt_cv_aix_libpath_"; then
8738 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8741 rm -f core conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8743 if test -z "$lt_cv_aix_libpath_"; then
8744 lt_cv_aix_libpath_="/usr/lib:/lib"
8749 aix_libpath=$lt_cv_aix_libpath_
8752 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8753 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8755 if test "$host_cpu" = ia64; then
8756 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8757 allow_undefined_flag="-z nodefs"
8758 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"
8760 # Determine the default libpath from the value encoded in an
8762 if test "${lt_cv_aix_libpath+set}" = set; then
8763 aix_libpath=$lt_cv_aix_libpath
8765 if ${lt_cv_aix_libpath_+:} false; then :
8766 $as_echo_n "(cached) " >&6
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8779 if ac_fn_c_try_link "$LINENO"; then :
8781 lt_aix_libpath_sed='
8782 /Import File Strings/,/^$/ {
8784 s/^0 *\([^ ]*\) *$/\1/
8788 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8789 # Check for a 64-bit object if we didn't find anything.
8790 if test -z "$lt_cv_aix_libpath_"; then
8791 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8794 rm -f core conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8796 if test -z "$lt_cv_aix_libpath_"; then
8797 lt_cv_aix_libpath_="/usr/lib:/lib"
8802 aix_libpath=$lt_cv_aix_libpath_
8805 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8806 # Warning - without using the other run time loading flags,
8807 # -berok will link without error, but may produce a broken library.
8808 no_undefined_flag=' ${wl}-bernotok'
8809 allow_undefined_flag=' ${wl}-berok'
8810 if test "$with_gnu_ld" = yes; then
8811 # We only use this code for GNU lds that support --whole-archive.
8812 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8814 # Exported symbols can be pulled into shared objects from archives
8815 whole_archive_flag_spec='$convenience'
8817 archive_cmds_need_lc=yes
8818 # This is similar to how AIX traditionally builds its shared libraries.
8819 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8827 # see comment about AmigaOS4 .so support
8828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829 archive_expsym_cmds=''
8832 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)'
8833 hardcode_libdir_flag_spec='-L$libdir'
8834 hardcode_minus_L=yes
8840 export_dynamic_flag_spec=-rdynamic
8843 cygwin* | mingw* | pw32* | cegcc*)
8844 # When not using gcc, we currently assume that we are using
8845 # Microsoft Visual C++.
8846 # hardcode_libdir_flag_spec is actually meaningless, as there is
8847 # no search path for DLLs.
8848 case $cc_basename in
8851 hardcode_libdir_flag_spec=' '
8852 allow_undefined_flag=unsupported
8853 always_export_symbols=yes
8855 # Tell ltmain to make .lib files, not .a files.
8857 # Tell ltmain to make .dll files, not .so files.
8859 # FIXME: Setting linknames here is a bad hack.
8860 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8861 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8862 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8864 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8866 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8868 # The linker will not automatically build a static lib if we build a DLL.
8869 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8870 enable_shared_with_static_runtimes=yes
8871 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8874 old_postinstall_cmds='chmod 644 $oldlib'
8875 postlink_cmds='lt_outputfile="@OUTPUT@"~
8876 lt_tool_outputfile="@TOOL_OUTPUT@"~
8877 case $lt_outputfile in
8880 lt_outputfile="$lt_outputfile.exe"
8881 lt_tool_outputfile="$lt_tool_outputfile.exe"
8884 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8885 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8886 $RM "$lt_outputfile.manifest";
8890 # Assume MSVC wrapper
8891 hardcode_libdir_flag_spec=' '
8892 allow_undefined_flag=unsupported
8893 # Tell ltmain to make .lib files, not .a files.
8895 # Tell ltmain to make .dll files, not .so files.
8897 # FIXME: Setting linknames here is a bad hack.
8898 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8899 # The linker will automatically build a .lib file if we build a DLL.
8900 old_archive_from_new_cmds='true'
8901 # FIXME: Should let the user specify the lib program.
8902 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8903 enable_shared_with_static_runtimes=yes
8908 darwin* | rhapsody*)
8911 archive_cmds_need_lc=no
8913 hardcode_automatic=yes
8914 hardcode_shlibpath_var=unsupported
8915 if test "$lt_cv_ld_force_load" = "yes"; then
8916 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\"`'
8919 whole_archive_flag_spec=''
8921 link_all_deplibs=yes
8922 allow_undefined_flag="$_lt_dar_allow_undefined"
8923 case $cc_basename in
8924 ifort*) _lt_dar_can_shared=yes ;;
8925 *) _lt_dar_can_shared=$GCC ;;
8927 if test "$_lt_dar_can_shared" = "yes"; then
8928 output_verbose_link_cmd=func_echo_all
8929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8931 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}"
8932 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}"
8941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_libdir_flag_spec='-L$libdir'
8943 hardcode_shlibpath_var=no
8946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8947 # support. Future versions do this automatically, but an explicit c++rt0.o
8948 # does not break anything, and helps significantly (at the cost of a little
8951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8952 hardcode_libdir_flag_spec='-R$libdir'
8954 hardcode_shlibpath_var=no
8957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8961 hardcode_minus_L=yes
8962 hardcode_shlibpath_var=no
8965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8966 freebsd* | dragonfly*)
8967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8968 hardcode_libdir_flag_spec='-R$libdir'
8970 hardcode_shlibpath_var=no
8974 if test "$GCC" = yes; then
8975 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8977 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8980 hardcode_libdir_separator=:
8983 # hardcode_minus_L: Not really in the search PATH,
8984 # but as the default location of the library.
8985 hardcode_minus_L=yes
8986 export_dynamic_flag_spec='${wl}-E'
8990 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8991 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8995 if test "$with_gnu_ld" = no; then
8996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8997 hardcode_libdir_separator=:
8999 hardcode_direct_absolute=yes
9000 export_dynamic_flag_spec='${wl}-E'
9001 # hardcode_minus_L: Not really in the search PATH,
9002 # but as the default location of the library.
9003 hardcode_minus_L=yes
9008 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9011 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9014 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9023 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9026 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9030 # Older versions of the 11.00 compiler do not understand -b yet
9031 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9033 $as_echo_n "checking if $CC understands -b... " >&6; }
9034 if ${lt_cv_prog_compiler__b+:} false; then :
9035 $as_echo_n "(cached) " >&6
9037 lt_cv_prog_compiler__b=no
9038 save_LDFLAGS="$LDFLAGS"
9039 LDFLAGS="$LDFLAGS -b"
9040 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9041 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9042 # The linker can only warn and ignore the option if not recognized
9043 # So say no if there are warnings
9044 if test -s conftest.err; then
9045 # Append any errors to the config.log.
9046 cat conftest.err 1>&5
9047 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9049 if diff conftest.exp conftest.er2 >/dev/null; then
9050 lt_cv_prog_compiler__b=yes
9053 lt_cv_prog_compiler__b=yes
9057 LDFLAGS="$save_LDFLAGS"
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9061 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9063 if test x"$lt_cv_prog_compiler__b" = xyes; then
9064 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9066 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9072 if test "$with_gnu_ld" = no; then
9073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9074 hardcode_libdir_separator=:
9079 hardcode_shlibpath_var=no
9083 hardcode_direct_absolute=yes
9084 export_dynamic_flag_spec='${wl}-E'
9086 # hardcode_minus_L: Not really in the search PATH,
9087 # but as the default location of the library.
9088 hardcode_minus_L=yes
9094 irix5* | irix6* | nonstopux*)
9095 if test "$GCC" = yes; then
9096 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'
9097 # Try to use the -exported_symbol ld option, if it does not
9098 # work, assume that -exports_file does not work either and
9099 # implicitly export all symbols.
9100 # This should be the same for all languages, so no per-tag cache variable.
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9102 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9103 if ${lt_cv_irix_exported_symbol+:} false; then :
9104 $as_echo_n "(cached) " >&6
9106 save_LDFLAGS="$LDFLAGS"
9107 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110 int foo (void) { return 0; }
9112 if ac_fn_c_try_link "$LINENO"; then :
9113 lt_cv_irix_exported_symbol=yes
9115 lt_cv_irix_exported_symbol=no
9117 rm -f core conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119 LDFLAGS="$save_LDFLAGS"
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9122 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9123 if test "$lt_cv_irix_exported_symbol" = yes; then
9124 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'
9127 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'
9128 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'
9130 archive_cmds_need_lc='no'
9131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9132 hardcode_libdir_separator=:
9134 link_all_deplibs=yes
9138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9141 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9143 hardcode_libdir_flag_spec='-R$libdir'
9145 hardcode_shlibpath_var=no
9149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9152 hardcode_libdir_separator=:
9153 hardcode_shlibpath_var=no
9160 if test -f /usr/libexec/ld.so; then
9162 hardcode_shlibpath_var=no
9163 hardcode_direct_absolute=yes
9164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9166 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9168 export_dynamic_flag_spec='${wl}-E'
9171 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9173 hardcode_libdir_flag_spec='-R$libdir'
9176 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9187 hardcode_libdir_flag_spec='-L$libdir'
9188 hardcode_minus_L=yes
9189 allow_undefined_flag=unsupported
9190 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9191 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9195 if test "$GCC" = yes; then
9196 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9197 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'
9199 allow_undefined_flag=' -expect_unresolved \*'
9200 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'
9202 archive_cmds_need_lc='no'
9203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9204 hardcode_libdir_separator=:
9207 osf4* | osf5*) # as osf3* with the addition of -msym flag
9208 if test "$GCC" = yes; then
9209 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9210 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'
9211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9213 allow_undefined_flag=' -expect_unresolved \*'
9214 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'
9215 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~
9216 $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'
9218 # Both c and cxx compiler support -rpath directly
9219 hardcode_libdir_flag_spec='-rpath $libdir'
9221 archive_cmds_need_lc='no'
9222 hardcode_libdir_separator=:
9226 no_undefined_flag=' -z defs'
9227 if test "$GCC" = yes; then
9229 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9230 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9231 $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'
9233 case `$CC -V 2>&1` in
9236 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9238 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9242 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9243 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9244 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9248 hardcode_libdir_flag_spec='-R$libdir'
9249 hardcode_shlibpath_var=no
9251 solaris2.[0-5] | solaris2.[0-5].*) ;;
9253 # The compiler driver will combine and reorder linker options,
9254 # but understands `-z linker_flag'. GCC discards it without `$wl',
9255 # but is careful enough not to reorder.
9256 # Supported since Solaris 2.6 (maybe 2.5.1?)
9257 if test "$GCC" = yes; then
9258 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9260 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9264 link_all_deplibs=yes
9268 if test "x$host_vendor" = xsequent; then
9269 # Use $CC to link under sequent, because it throws in some extra .o
9270 # files that make .init and .fini sections work.
9271 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9273 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9275 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9278 hardcode_shlibpath_var=no
9282 case $host_vendor in
9284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9285 hardcode_direct=yes # is this really true???
9288 ## LD is ld it makes a PLAMLIB
9289 ## CC just makes a GrossModule.
9290 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9291 reload_cmds='$CC -r -o $output$reload_objs'
9295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9299 runpath_var='LD_RUN_PATH'
9300 hardcode_shlibpath_var=no
9304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305 hardcode_shlibpath_var=no
9306 export_dynamic_flag_spec='-Bexport'
9310 if test -d /usr/nec; then
9311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312 hardcode_shlibpath_var=no
9313 runpath_var=LD_RUN_PATH
9314 hardcode_runpath_var=yes
9319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9320 no_undefined_flag='${wl}-z,text'
9321 archive_cmds_need_lc=no
9322 hardcode_shlibpath_var=no
9323 runpath_var='LD_RUN_PATH'
9325 if test "$GCC" = yes; then
9326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9334 sysv5* | sco3.2v5* | sco5v6*)
9335 # Note: We can NOT use -z defs as we might desire, because we do not
9336 # link with -lc, and that would cause any symbols used from libc to
9337 # always be unresolved, which means just about no library would
9338 # ever link correctly. If we're not using GNU ld we use -z text
9339 # though, which does catch some bad symbols but isn't as heavy-handed
9341 no_undefined_flag='${wl}-z,text'
9342 allow_undefined_flag='${wl}-z,nodefs'
9343 archive_cmds_need_lc=no
9344 hardcode_shlibpath_var=no
9345 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9346 hardcode_libdir_separator=':'
9347 link_all_deplibs=yes
9348 export_dynamic_flag_spec='${wl}-Bexport'
9349 runpath_var='LD_RUN_PATH'
9351 if test "$GCC" = yes; then
9352 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_shlibpath_var=no
9371 if test x$host_vendor = xsni; then
9373 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9374 export_dynamic_flag_spec='${wl}-Blargedynsym'
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9381 $as_echo "$ld_shlibs" >&6; }
9382 test "$ld_shlibs" = no && can_build_shared=no
9384 with_gnu_ld=$with_gnu_ld
9401 # Do we need to explicitly link libc?
9403 case "x$archive_cmds_need_lc" in
9405 # Assume -lc should be added
9406 archive_cmds_need_lc=yes
9408 if test "$enable_shared" = yes && test "$GCC" = yes; then
9409 case $archive_cmds in
9411 # FIXME: we may have to deal with multi-command sequences.
9414 # Test whether the compiler implicitly links with -lc since on some
9415 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9416 # to ld, don't add -lc before -lgcc.
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9418 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9419 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9420 $as_echo_n "(cached) " >&6
9423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9426 (eval $ac_compile) 2>&5
9428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9429 test $ac_status = 0; } 2>conftest.err; then
9432 libobjs=conftest.$ac_objext
9434 wl=$lt_prog_compiler_wl
9435 pic_flag=$lt_prog_compiler_pic
9441 lt_save_allow_undefined_flag=$allow_undefined_flag
9442 allow_undefined_flag=
9443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9444 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9447 test $ac_status = 0; }
9449 lt_cv_archive_cmds_need_lc=no
9451 lt_cv_archive_cmds_need_lc=yes
9453 allow_undefined_flag=$lt_save_allow_undefined_flag
9455 cat conftest.err 1>&5
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9461 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9462 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9621 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9623 if test "$GCC" = yes; then
9625 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9626 *) lt_awk_arg="/^libraries:/" ;;
9629 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9630 *) lt_sed_strip_eq="s,=/,/,g" ;;
9632 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9633 case $lt_search_path_spec in
9635 # if the path contains ";" then we assume it to be the separator
9636 # otherwise default to the standard path separator (i.e. ":") - it is
9637 # assumed that no part of a normal pathname contains ";" but that should
9638 # okay in the real world where ";" in dirpaths is itself problematic.
9639 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9642 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9645 # Ok, now we have the path, separated by spaces, we can step through it
9646 # and add multilib dir if necessary.
9647 lt_tmp_lt_search_path_spec=
9648 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9649 for lt_sys_path in $lt_search_path_spec; do
9650 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9651 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9653 test -d "$lt_sys_path" && \
9654 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9657 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9658 BEGIN {RS=" "; FS="/|\n";} {
9661 for (lt_i = NF; lt_i > 0; lt_i--) {
9662 if ($lt_i != "" && $lt_i != ".") {
9663 if ($lt_i == "..") {
9666 if (lt_count == 0) {
9667 lt_foo="/" $lt_i lt_foo;
9674 if (lt_foo != "") { lt_freq[lt_foo]++; }
9675 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9677 # AWK program above erroneously prepends '/' to C:/dos/paths
9680 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9681 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9683 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9688 libname_spec='lib$name'
9696 shlibpath_overrides_runpath=unknown
9698 dynamic_linker="$host_os ld.so"
9699 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9700 need_lib_prefix=unknown
9701 hardcode_into_libs=no
9703 # when you set need_version to no, make sure it does not cause -set_version
9704 # flags to be left without arguments
9705 need_version=unknown
9709 version_type=linux # correct to gnu/linux during the next big refactor
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9711 shlibpath_var=LIBPATH
9713 # AIX 3 has no versioning support, so we append a major version to the name.
9714 soname_spec='${libname}${release}${shared_ext}$major'
9718 version_type=linux # correct to gnu/linux during the next big refactor
9721 hardcode_into_libs=yes
9722 if test "$host_cpu" = ia64; then
9723 # AIX 5 supports IA64
9724 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9725 shlibpath_var=LD_LIBRARY_PATH
9727 # With GCC up to 2.95.x, collect2 would create an import file
9728 # for dependence libraries. The import file would start with
9729 # the line `#! .'. This would cause the generated library to
9730 # depend on `.', always an invalid library. This was fixed in
9731 # development snapshots of GCC prior to 3.0.
9733 aix4 | aix4.[01] | aix4.[01].*)
9734 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9736 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9743 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9744 # soname into executable. Probably we can add versioning support to
9745 # collect2, so additional links can be useful in future.
9746 if test "$aix_use_runtimelinking" = yes; then
9747 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9748 # instead of lib<name>.a to let people know that these are not
9749 # typical AIX shared libraries.
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752 # We preserve .a as extension for shared libraries through AIX4.2
9753 # and later when we are not doing run time linking.
9754 library_names_spec='${libname}${release}.a $libname.a'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9757 shlibpath_var=LIBPATH
9764 # Since July 2007 AmigaOS4 officially supports .so libraries.
9765 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769 library_names_spec='$libname.ixlibrary $libname.a'
9770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9771 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9777 library_names_spec='${libname}${shared_ext}'
9778 dynamic_linker="$host_os ld.so"
9779 shlibpath_var=LIBRARY_PATH
9783 version_type=linux # correct to gnu/linux during the next big refactor
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9790 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9791 # the default ld.so.conf also contains /usr/contrib/lib and
9792 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9793 # libtool to hard-code these into programs
9796 cygwin* | mingw* | pw32* | cegcc*)
9797 version_type=windows
9802 case $GCC,$cc_basename in
9805 library_names_spec='$libname.dll.a'
9806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9807 postinstall_cmds='base_file=`basename \${file}`~
9808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9809 dldir=$destdir/`dirname \$dlpath`~
9810 test -d \$dldir || mkdir -p \$dldir~
9811 $install_prog $dir/$dlname \$dldir/$dlname~
9812 chmod a+x \$dldir/$dlname~
9813 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9814 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9817 dlpath=$dir/\$dldll~
9819 shlibpath_overrides_runpath=yes
9823 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9824 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9826 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9829 # MinGW DLLs use traditional 'lib' prefix
9830 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9833 # pw32 DLLs use 'pw' prefix rather than 'lib'
9834 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9837 dynamic_linker='Win32 ld.exe'
9842 libname_spec='$name'
9843 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9844 library_names_spec='${libname}.dll.lib'
9848 sys_lib_search_path_spec=
9854 # Let DOS variable expansion print the short 8.3 style file name.
9855 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9856 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9859 # Convert to MSYS style.
9860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9863 # Convert to unix form, then to dos form, then back to unix form
9864 # but this time dos style (no spaces!) so that the unix form looks
9865 # like /cygdrive/c/PROGRA~1:/cygdr...
9866 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9867 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9868 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9871 sys_lib_search_path_spec="$LIB"
9872 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9873 # It is most probably a Windows format PATH.
9874 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9876 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9878 # FIXME: find the short name or the path components, as spaces are
9879 # common. (e.g. "Program Files" -> "PROGRA~1")
9883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9884 postinstall_cmds='base_file=`basename \${file}`~
9885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9886 dldir=$destdir/`dirname \$dlpath`~
9887 test -d \$dldir || mkdir -p \$dldir~
9888 $install_prog $dir/$dlname \$dldir/$dlname'
9889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9890 dlpath=$dir/\$dldll~
9892 shlibpath_overrides_runpath=yes
9893 dynamic_linker='Win32 link.exe'
9897 # Assume MSVC wrapper
9898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9899 dynamic_linker='Win32 ld.exe'
9902 # FIXME: first we should search . and the directory the executable is in
9906 darwin* | rhapsody*)
9907 dynamic_linker="$host_os dyld"
9911 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9912 soname_spec='${libname}${release}${major}$shared_ext'
9913 shlibpath_overrides_runpath=yes
9914 shlibpath_var=DYLD_LIBRARY_PATH
9915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9922 version_type=linux # correct to gnu/linux during the next big refactor
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 shlibpath_var=LD_LIBRARY_PATH
9930 freebsd* | dragonfly*)
9931 # DragonFly does not have aout. When/if they implement a new
9932 # versioning mechanism, adjust this.
9933 if test -x /usr/bin/objformat; then
9934 objformat=`/usr/bin/objformat`
9937 freebsd[23].*) objformat=aout ;;
9941 version_type=freebsd-$objformat
9942 case $version_type in
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9953 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=yes
9958 freebsd3.[01]* | freebsdelf3.[01]*)
9959 shlibpath_overrides_runpath=yes
9960 hardcode_into_libs=yes
9962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9964 shlibpath_overrides_runpath=no
9965 hardcode_into_libs=yes
9967 *) # from 4.6 on, and DragonFly
9968 shlibpath_overrides_runpath=yes
9969 hardcode_into_libs=yes
9975 version_type=linux # correct to gnu/linux during the next big refactor
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 shlibpath_overrides_runpath=no
9982 hardcode_into_libs=yes
9986 version_type=linux # correct to gnu/linux during the next big refactor
9989 dynamic_linker="$host_os runtime_loader"
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 shlibpath_var=LIBRARY_PATH
9993 shlibpath_overrides_runpath=yes
9994 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9995 hardcode_into_libs=yes
9998 hpux9* | hpux10* | hpux11*)
9999 # Give a soname corresponding to the major version so that dld.sl refuses to
10000 # link against other versions.
10007 hardcode_into_libs=yes
10008 dynamic_linker="$host_os dld.so"
10009 shlibpath_var=LD_LIBRARY_PATH
10010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012 soname_spec='${libname}${release}${shared_ext}$major'
10013 if test "X$HPUX_IA64_MODE" = X32; then
10014 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10022 hardcode_into_libs=yes
10023 dynamic_linker="$host_os dld.sl"
10024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10033 dynamic_linker="$host_os dld.sl"
10034 shlibpath_var=SHLIB_PATH
10035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10040 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10041 postinstall_cmds='chmod 555 $lib'
10042 # or fails outright, so override atomically:
10043 install_override_mode=555
10047 version_type=linux # correct to gnu/linux during the next big refactor
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10053 shlibpath_var=LD_LIBRARY_PATH
10054 shlibpath_overrides_runpath=no
10055 hardcode_into_libs=yes
10058 irix5* | irix6* | nonstopux*)
10060 nonstopux*) version_type=nonstopux ;;
10062 if test "$lt_cv_prog_gnu_ld" = yes; then
10063 version_type=linux # correct to gnu/linux during the next big refactor
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10073 irix5* | nonstopux*)
10074 libsuff= shlibsuff=
10077 case $LD in # libtool.m4 will add one of these switches to LD
10078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10079 libsuff= shlibsuff= libmagic=32-bit;;
10080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10081 libsuff=32 shlibsuff=N32 libmagic=N32;;
10082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10084 *) libsuff= shlibsuff= libmagic=never-match;;
10088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10089 shlibpath_overrides_runpath=no
10090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10092 hardcode_into_libs=yes
10095 # No shared lib support for Linux oldld, aout, or coff.
10096 linux*oldld* | linux*aout* | linux*coff*)
10100 # This must be glibc/ELF.
10101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10102 version_type=linux # correct to gnu/linux during the next big refactor
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10108 shlibpath_var=LD_LIBRARY_PATH
10109 shlibpath_overrides_runpath=no
10111 # Some binutils ld are patched to set DT_RUNPATH
10112 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10113 $as_echo_n "(cached) " >&6
10115 lt_cv_shlibpath_overrides_runpath=no
10116 save_LDFLAGS=$LDFLAGS
10117 save_libdir=$libdir
10118 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10119 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10133 lt_cv_shlibpath_overrides_runpath=yes
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LDFLAGS=$save_LDFLAGS
10139 libdir=$save_libdir
10143 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10145 # This implies no fast_install, which is unacceptable.
10146 # Some rework will be needed to allow for fast_install
10147 # before this can be enabled.
10148 hardcode_into_libs=yes
10150 # Append ld.so.conf contents to the search path
10151 if test -f /etc/ld.so.conf; then
10152 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' ' '`
10153 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10156 # We used to test for /lib/ld.so.1 and disable shared libraries on
10157 # powerpc, because MkLinux only supported shared libraries with the
10158 # GNU dynamic linker. Since this was broken with cross compilers,
10159 # most powerpc-linux boxes support dynamic linking these days and
10160 # people can always --disable-shared, the test was removed, and we
10161 # assume the GNU/Linux dynamic linker is in use.
10162 dynamic_linker='GNU/Linux ld.so'
10169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10172 dynamic_linker='NetBSD (a.out) ld.so'
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 dynamic_linker='NetBSD ld.elf_so'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath=yes
10180 hardcode_into_libs=yes
10184 version_type=linux # correct to gnu/linux during the next big refactor
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 shlibpath_overrides_runpath=yes
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 shlibpath_overrides_runpath=no
10198 hardcode_into_libs=yes
10199 dynamic_linker='ldqnx.so'
10204 sys_lib_dlsearch_path_spec="/usr/lib"
10206 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10208 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10209 *) need_version=no ;;
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10216 openbsd2.[89] | openbsd2.[89].*)
10217 shlibpath_overrides_runpath=no
10220 shlibpath_overrides_runpath=yes
10224 shlibpath_overrides_runpath=yes
10229 libname_spec='$name'
10232 library_names_spec='$libname${shared_ext} $libname.a'
10233 dynamic_linker='OS/2 ld.exe'
10234 shlibpath_var=LIBPATH
10237 osf3* | osf4* | osf5*)
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10245 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10253 version_type=linux # correct to gnu/linux during the next big refactor
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes
10260 hardcode_into_libs=yes
10261 # ldd complains unless libraries are executable
10262 postinstall_cmds='chmod +x $lib'
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 if test "$with_gnu_ld" = yes; then
10278 version_type=linux # correct to gnu/linux during the next big refactor
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 case $host_vendor in
10284 shlibpath_overrides_runpath=no
10286 runpath_var=LD_RUN_PATH
10294 shlibpath_overrides_runpath=no
10295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10301 if test -d /usr/nec ;then
10302 version_type=linux # correct to gnu/linux during the next big refactor
10303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10304 soname_spec='$libname${shared_ext}.$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10310 version_type=freebsd-elf
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10317 hardcode_into_libs=yes
10318 if test "$with_gnu_ld" = yes; then
10319 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10321 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10324 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10328 sys_lib_dlsearch_path_spec='/usr/lib'
10332 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10333 version_type=linux # correct to gnu/linux during the next big refactor
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=no
10339 hardcode_into_libs=yes
10343 version_type=linux # correct to gnu/linux during the next big refactor
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 shlibpath_var=LD_LIBRARY_PATH
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10354 $as_echo "$dynamic_linker" >&6; }
10355 test "$dynamic_linker" = no && can_build_shared=no
10357 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10358 if test "$GCC" = yes; then
10359 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10362 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10363 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10365 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10366 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10461 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10463 if test -n "$hardcode_libdir_flag_spec" ||
10464 test -n "$runpath_var" ||
10465 test "X$hardcode_automatic" = "Xyes" ; then
10467 # We can hardcode non-existent directories.
10468 if test "$hardcode_direct" != no &&
10469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10470 # have to relink, otherwise we might link with an installed library
10471 # when we should be linking with a yet-to-be-installed one
10472 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10473 test "$hardcode_minus_L" != no; then
10474 # Linking always hardcodes the temporary library directory.
10475 hardcode_action=relink
10477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10478 hardcode_action=immediate
10481 # We cannot hardcode anything, or else we can only hardcode existing
10483 hardcode_action=unsupported
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10486 $as_echo "$hardcode_action" >&6; }
10488 if test "$hardcode_action" = relink ||
10489 test "$inherit_rpath" = yes; then
10490 # Fast installation is not supported
10491 enable_fast_install=no
10492 elif test "$shlibpath_overrides_runpath" = yes ||
10493 test "$enable_shared" = no; then
10494 # Fast installation is not necessary
10495 enable_fast_install=needless
10503 if test "x$enable_dlopen" != xyes; then
10504 enable_dlopen=unknown
10505 enable_dlopen_self=unknown
10506 enable_dlopen_self_static=unknown
10513 lt_cv_dlopen="load_add_on"
10515 lt_cv_dlopen_self=yes
10518 mingw* | pw32* | cegcc*)
10519 lt_cv_dlopen="LoadLibrary"
10524 lt_cv_dlopen="dlopen"
10529 # if libdl is installed we need to link against it
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10531 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10532 if ${ac_cv_lib_dl_dlopen+:} false; then :
10533 $as_echo_n "(cached) " >&6
10535 ac_check_lib_save_LIBS=$LIBS
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10555 if ac_fn_c_try_link "$LINENO"; then :
10556 ac_cv_lib_dl_dlopen=yes
10558 ac_cv_lib_dl_dlopen=no
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10566 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10570 lt_cv_dlopen="dyld"
10572 lt_cv_dlopen_self=yes
10579 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10580 if test "x$ac_cv_func_shl_load" = xyes; then :
10581 lt_cv_dlopen="shl_load"
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10584 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10585 if ${ac_cv_lib_dld_shl_load+:} false; then :
10586 $as_echo_n "(cached) " >&6
10588 ac_check_lib_save_LIBS=$LIBS
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10603 return shl_load ();
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_lib_dld_shl_load=yes
10611 ac_cv_lib_dld_shl_load=no
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10618 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10619 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10620 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10622 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10623 if test "x$ac_cv_func_dlopen" = xyes; then :
10624 lt_cv_dlopen="dlopen"
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10628 if ${ac_cv_lib_dl_dlopen+:} false; then :
10629 $as_echo_n "(cached) " >&6
10631 ac_check_lib_save_LIBS=$LIBS
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10636 /* Override any GCC internal prototype to avoid an error.
10637 Use char because int might match the return type of a GCC
10638 builtin and then its argument prototype would still apply. */
10651 if ac_fn_c_try_link "$LINENO"; then :
10652 ac_cv_lib_dl_dlopen=yes
10654 ac_cv_lib_dl_dlopen=no
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LIBS=$ac_check_lib_save_LIBS
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10662 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10666 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10667 if ${ac_cv_lib_svld_dlopen+:} false; then :
10668 $as_echo_n "(cached) " >&6
10670 ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-lsvld $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_svld_dlopen=yes
10693 ac_cv_lib_svld_dlopen=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10700 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10701 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10705 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10706 if ${ac_cv_lib_dld_dld_link+:} false; then :
10707 $as_echo_n "(cached) " >&6
10709 ac_check_lib_save_LIBS=$LIBS
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10714 /* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10724 return dld_link ();
10729 if ac_fn_c_try_link "$LINENO"; then :
10730 ac_cv_lib_dld_dld_link=yes
10732 ac_cv_lib_dld_dld_link=no
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10739 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10740 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10741 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10762 if test "x$lt_cv_dlopen" != xno; then
10768 case $lt_cv_dlopen in
10770 save_CPPFLAGS="$CPPFLAGS"
10771 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10773 save_LDFLAGS="$LDFLAGS"
10774 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10777 LIBS="$lt_cv_dlopen_libs $LIBS"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10780 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10781 if ${lt_cv_dlopen_self+:} false; then :
10782 $as_echo_n "(cached) " >&6
10784 if test "$cross_compiling" = yes; then :
10785 lt_cv_dlopen_self=cross
10787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10788 lt_status=$lt_dlunknown
10789 cat > conftest.$ac_ext <<_LT_EOF
10790 #line $LINENO "configure"
10791 #include "confdefs.h"
10800 # define LT_DLGLOBAL RTLD_GLOBAL
10803 # define LT_DLGLOBAL DL_GLOBAL
10805 # define LT_DLGLOBAL 0
10809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10810 find out it does not work in some platform. */
10811 #ifndef LT_DLLAZY_OR_NOW
10813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10816 # define LT_DLLAZY_OR_NOW DL_LAZY
10819 # define LT_DLLAZY_OR_NOW RTLD_NOW
10822 # define LT_DLLAZY_OR_NOW DL_NOW
10824 # define LT_DLLAZY_OR_NOW 0
10831 /* When -fvisbility=hidden is used, assume the code has been annotated
10832 correspondingly for the symbols needed. */
10833 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10834 int fnord () __attribute__((visibility("default")));
10837 int fnord () { return 42; }
10840 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10841 int status = $lt_dlunknown;
10845 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10848 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10849 else puts (dlerror ());
10851 /* dlclose (self); */
10859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10860 (eval $ac_link) 2>&5
10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10864 (./conftest; exit; ) >&5 2>/dev/null
10866 case x$lt_status in
10867 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10868 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10869 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10872 # compilation failed
10873 lt_cv_dlopen_self=no
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10881 $as_echo "$lt_cv_dlopen_self" >&6; }
10883 if test "x$lt_cv_dlopen_self" = xyes; then
10884 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10886 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10887 if ${lt_cv_dlopen_self_static+:} false; then :
10888 $as_echo_n "(cached) " >&6
10890 if test "$cross_compiling" = yes; then :
10891 lt_cv_dlopen_self_static=cross
10893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10894 lt_status=$lt_dlunknown
10895 cat > conftest.$ac_ext <<_LT_EOF
10896 #line $LINENO "configure"
10897 #include "confdefs.h"
10906 # define LT_DLGLOBAL RTLD_GLOBAL
10909 # define LT_DLGLOBAL DL_GLOBAL
10911 # define LT_DLGLOBAL 0
10915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10916 find out it does not work in some platform. */
10917 #ifndef LT_DLLAZY_OR_NOW
10919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10922 # define LT_DLLAZY_OR_NOW DL_LAZY
10925 # define LT_DLLAZY_OR_NOW RTLD_NOW
10928 # define LT_DLLAZY_OR_NOW DL_NOW
10930 # define LT_DLLAZY_OR_NOW 0
10937 /* When -fvisbility=hidden is used, assume the code has been annotated
10938 correspondingly for the symbols needed. */
10939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10940 int fnord () __attribute__((visibility("default")));
10943 int fnord () { return 42; }
10946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10947 int status = $lt_dlunknown;
10951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10955 else puts (dlerror ());
10957 /* dlclose (self); */
10965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10966 (eval $ac_link) 2>&5
10968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10970 (./conftest; exit; ) >&5 2>/dev/null
10972 case x$lt_status in
10973 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10974 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10975 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10978 # compilation failed
10979 lt_cv_dlopen_self_static=no
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10987 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10990 CPPFLAGS="$save_CPPFLAGS"
10991 LDFLAGS="$save_LDFLAGS"
10996 case $lt_cv_dlopen_self in
10997 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10998 *) enable_dlopen_self=unknown ;;
11001 case $lt_cv_dlopen_self_static in
11002 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11003 *) enable_dlopen_self_static=unknown ;;
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11026 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11027 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11028 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11029 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11031 $as_echo "yes" >&6; }
11033 # FIXME - insert some real tests, host_os isn't really good enough
11036 if test -n "$STRIP" ; then
11037 striplib="$STRIP -x"
11038 old_striplib="$STRIP -S"
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11040 $as_echo "yes" >&6; }
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11064 # Report which library types will actually be built
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11066 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11068 $as_echo "$can_build_shared" >&6; }
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11071 $as_echo_n "checking whether to build shared libraries... " >&6; }
11072 test "$can_build_shared" = "no" && enable_shared=no
11074 # On AIX, shared libraries and static libraries use the same namespace, and
11075 # are all built from PIC.
11078 test "$enable_shared" = yes && enable_static=no
11079 if test -n "$RANLIB"; then
11080 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11081 postinstall_cmds='$RANLIB $lib'
11086 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11087 test "$enable_shared" = yes && enable_static=no
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11092 $as_echo "$enable_shared" >&6; }
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11095 $as_echo_n "checking whether to build static libraries... " >&6; }
11096 # Make sure either enable_shared or enable_static is yes.
11097 test "$enable_shared" = yes || enable_static=yes
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11099 $as_echo "$enable_static" >&6; }
11106 ac_cpp='$CPP $CPPFLAGS'
11107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11127 ac_config_commands="$ac_config_commands libtool"
11132 # Only expand once:
11135 for ac_prog in 'bison -y' byacc
11137 # Extract the first word of "$ac_prog", so it can be a program name with args.
11138 set dummy $ac_prog; ac_word=$2
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11140 $as_echo_n "checking for $ac_word... " >&6; }
11141 if ${ac_cv_prog_YACC+:} false; then :
11142 $as_echo_n "(cached) " >&6
11144 if test -n "$YACC"; then
11145 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148 for as_dir in $PATH
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11154 ac_cv_prog_YACC="$ac_prog"
11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 YACC=$ac_cv_prog_YACC
11165 if test -n "$YACC"; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11167 $as_echo "$YACC" >&6; }
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; }
11174 test -n "$YACC" && break
11176 test -n "$YACC" || YACC="yacc"
11179 am__api_version='1.12'
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11182 $as_echo_n "checking whether build environment is sane... " >&6; }
11183 # Reject unsafe characters in $srcdir or the absolute working directory
11184 # name. Accept space and tab only in the latter.
11188 *[\\\"\#\$\&\'\`$am_lf]*)
11189 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11192 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11193 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11196 # Do 'set' in a subshell so we don't clobber the current shell's
11197 # arguments. Must try -L first in case configure is actually a
11198 # symlink; some systems play weird games with the mod time of symlinks
11199 # (eg FreeBSD returns the mod time of the symlink's containing
11203 for am_try in 1 2; do
11204 echo "timestamp, slept: $am_has_slept" > conftest.file
11205 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11206 if test "$*" = "X"; then
11208 set X `ls -t "$srcdir/configure" conftest.file`
11210 if test "$*" != "X $srcdir/configure conftest.file" \
11211 && test "$*" != "X conftest.file $srcdir/configure"; then
11213 # If neither matched, then we have a broken ls. This can happen
11214 # if, for instance, CONFIG_SHELL is bash and it inherits a
11215 # broken ls alias from the environment. This has actually
11216 # happened. Such a system could not be considered "sane".
11217 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
11218 alias in your environment" "$LINENO" 5
11220 if test "$2" = conftest.file || test $am_try -eq 2; then
11227 test "$2" = conftest.file
11233 as_fn_error $? "newly created file is older than distributed files!
11234 Check your system clock" "$LINENO" 5
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11237 $as_echo "yes" >&6; }
11238 # If we didn't sleep, we still need to ensure time stamps of config.status and
11239 # generated files are strictly newer.
11241 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11246 rm -f conftest.file
11248 test "$program_prefix" != NONE &&
11249 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11250 # Use a double $ so make ignores it.
11251 test "$program_suffix" != NONE &&
11252 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11253 # Double any \ or $.
11254 # By default was `s,x,x', remove it if useless.
11255 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11256 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11258 # expand $ac_aux_dir to an absolute path
11259 am_aux_dir=`cd $ac_aux_dir && pwd`
11261 if test x"${MISSING+set}" != xset; then
11262 case $am_aux_dir in
11264 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11266 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11269 # Use eval to expand $SHELL
11270 if eval "$MISSING --run true"; then
11271 am_missing_run="$MISSING --run "
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11275 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11278 if test x"${install_sh}" != xset; then
11279 case $am_aux_dir in
11281 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11283 install_sh="\${SHELL} $am_aux_dir/install-sh"
11287 # Installed binaries are usually stripped using 'strip' when the user
11288 # run "make install-strip". However 'strip' might not be the right
11289 # tool to use in cross-compilation environments, therefore Automake
11290 # will honor the 'STRIP' environment variable to overrule this program.
11291 if test "$cross_compiling" != no; then
11292 if test -n "$ac_tool_prefix"; then
11293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11294 set dummy ${ac_tool_prefix}strip; ac_word=$2
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296 $as_echo_n "checking for $ac_word... " >&6; }
11297 if ${ac_cv_prog_STRIP+:} false; then :
11298 $as_echo_n "(cached) " >&6
11300 if test -n "$STRIP"; then
11301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 STRIP=$ac_cv_prog_STRIP
11321 if test -n "$STRIP"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11323 $as_echo "$STRIP" >&6; }
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11331 if test -z "$ac_cv_prog_STRIP"; then
11333 # Extract the first word of "strip", so it can be a program name with args.
11334 set dummy strip; ac_word=$2
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336 $as_echo_n "checking for $ac_word... " >&6; }
11337 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11338 $as_echo_n "(cached) " >&6
11340 if test -n "$ac_ct_STRIP"; then
11341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $PATH
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11350 ac_cv_prog_ac_ct_STRIP="strip"
11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11361 if test -n "$ac_ct_STRIP"; then
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11363 $as_echo "$ac_ct_STRIP" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366 $as_echo "no" >&6; }
11369 if test "x$ac_ct_STRIP" = x; then
11372 case $cross_compiling:$ac_tool_warned in
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11376 ac_tool_warned=yes ;;
11381 STRIP="$ac_cv_prog_STRIP"
11385 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11388 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11389 if test -z "$MKDIR_P"; then
11390 if ${ac_cv_path_mkdir+:} false; then :
11391 $as_echo_n "(cached) " >&6
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11397 test -z "$as_dir" && as_dir=.
11398 for ac_prog in mkdir gmkdir; do
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11401 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11402 'mkdir (GNU coreutils) '* | \
11403 'mkdir (coreutils) '* | \
11404 'mkdir (fileutils) '4.1*)
11405 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11415 test -d ./--version && rmdir ./--version
11416 if test "${ac_cv_path_mkdir+set}" = set; then
11417 MKDIR_P="$ac_cv_path_mkdir -p"
11419 # As a last resort, use the slow shell script. Don't cache a
11420 # value for MKDIR_P within a source directory, because that will
11421 # break other packages using the cache if that directory is
11422 # removed, or if the value is a relative name.
11423 MKDIR_P="$ac_install_sh -d"
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11427 $as_echo "$MKDIR_P" >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11430 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11432 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11433 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11434 $as_echo_n "(cached) " >&6
11436 cat >conftest.make <<\_ACEOF
11439 @echo '@@@%%%=$(MAKE)=@@@%%%'
11441 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11443 *@@@%%%=?*=@@@%%%*)
11444 eval ac_cv_prog_make_${ac_make}_set=yes;;
11446 eval ac_cv_prog_make_${ac_make}_set=no;;
11448 rm -f conftest.make
11450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11452 $as_echo "yes" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 SET_MAKE="MAKE=${MAKE-make}"
11460 rm -rf .tst 2>/dev/null
11461 mkdir .tst 2>/dev/null
11462 if test -d .tst; then
11467 rmdir .tst 2>/dev/null
11469 DEPDIR="${am__leading_dot}deps"
11471 ac_config_commands="$ac_config_commands depfiles"
11474 am_make=${MAKE-make}
11475 cat > confinc << 'END'
11477 @echo this is the am__doit target
11480 # If we don't find an include directive, just comment out the code.
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11482 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11486 # First try GNU make style include.
11487 echo "include confinc" > confmf
11488 # Ignore all kinds of additional output from 'make'.
11489 case `$am_make -s -f confmf 2> /dev/null` in #(
11490 *the\ am__doit\ target*)
11491 am__include=include
11496 # Now try BSD make style include.
11497 if test "$am__include" = "#"; then
11498 echo '.include "confinc"' > confmf
11499 case `$am_make -s -f confmf 2> /dev/null` in #(
11500 *the\ am__doit\ target*)
11501 am__include=.include
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11510 $as_echo "$_am_result" >&6; }
11511 rm -f confinc confmf
11513 # Check whether --enable-dependency-tracking was given.
11514 if test "${enable_dependency_tracking+set}" = set; then :
11515 enableval=$enable_dependency_tracking;
11518 if test "x$enable_dependency_tracking" != xno; then
11519 am_depcomp="$ac_aux_dir/depcomp"
11523 if test "x$enable_dependency_tracking" != xno; then
11532 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11533 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11534 # is not polluted with repeated "-I."
11535 am__isrc=' -I$(srcdir)'
11536 # test to see if srcdir already configured
11537 if test -f $srcdir/config.status; then
11538 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11542 # test whether we have cygpath
11543 if test -z "$CYGPATH_W"; then
11544 if (cygpath --version) >/dev/null 2>/dev/null; then
11545 CYGPATH_W='cygpath -w'
11552 # Define the identity of the package.
11558 cat >>confdefs.h <<_ACEOF
11559 #define PACKAGE "$PACKAGE"
11563 cat >>confdefs.h <<_ACEOF
11564 #define VERSION "$VERSION"
11567 # Some tools Automake needs.
11569 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11572 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11575 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11578 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11581 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11583 # For better backward compatibility. To be removed once Automake 1.9.x
11584 # dies out for good. For more background, see:
11585 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11586 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11587 mkdir_p='$(MKDIR_P)'
11589 # We need awk for the "check" target. The system "awk" is bad on
11591 # Always define AMTAR for backward compatibility. Yes, it's still used
11592 # in the wild :-( We should find a proper way to deprecate it ...
11593 AMTAR='$${TAR-tar}'
11595 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11600 depcc="$CC" am_compiler_list=
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11603 $as_echo_n "checking dependency style of $depcc... " >&6; }
11604 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11605 $as_echo_n "(cached) " >&6
11607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11608 # We make a subdir and do the tests there. Otherwise we can end up
11609 # making bogus files that we don't know about and never remove. For
11610 # instance it was reported that on HP-UX the gcc test will end up
11611 # making a dummy file named 'D' -- because '-MD' means "put the output
11613 rm -rf conftest.dir
11615 # Copy depcomp to subdir because otherwise we won't find it if we're
11616 # using a relative directory.
11617 cp "$am_depcomp" conftest.dir
11619 # We will build objects and dependencies in a subdirectory because
11620 # it helps to detect inapplicable dependency modes. For instance
11621 # both Tru64's cc and ICC support -MD to output dependencies as a
11622 # side effect of compilation, but ICC will put the dependencies in
11623 # the current directory while Tru64 will put them in the object
11627 am_cv_CC_dependencies_compiler_type=none
11628 if test "$am_compiler_list" = ""; then
11629 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11631 am__universal=false
11632 case " $depcc " in #(
11633 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11636 for depmode in $am_compiler_list; do
11637 # Setup a source with many dependencies, because some compilers
11638 # like to wrap large dependency lists on column 80 (with \), and
11639 # we should not choose a depcomp mode which is confused by this.
11641 # We need to recreate these files for each test, as the compiler may
11642 # overwrite some of them when testing with obscure command lines.
11643 # This happens at least with the AIX C compiler.
11645 for i in 1 2 3 4 5 6; do
11646 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11647 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11648 # Solaris 10 /bin/sh.
11649 echo '/* dummy */' > sub/conftst$i.h
11651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11653 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11654 # mode. It turns out that the SunPro C++ compiler does not properly
11655 # handle '-M -o', and we need to detect this. Also, some Intel
11656 # versions had trouble with output in subdirs.
11657 am__obj=sub/conftest.${OBJEXT-o}
11658 am__minus_obj="-o $am__obj"
11661 # This depmode causes a compiler race in universal mode.
11662 test "$am__universal" = false || continue
11665 # After this tag, mechanisms are not by side-effect, so they'll
11666 # only be used when explicitly requested.
11667 if test "x$enable_dependency_tracking" = xyes; then
11673 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11674 # This compiler won't grok '-c -o', but also, the minuso test has
11675 # not run yet. These depmodes are late enough in the game, and
11676 # so weak that their functioning should not be impacted.
11677 am__obj=conftest.${OBJEXT-o}
11682 if depmode=$depmode \
11683 source=sub/conftest.c object=$am__obj \
11684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11685 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11686 >/dev/null 2>conftest.err &&
11687 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11689 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11691 # icc doesn't choke on unknown options, it will just issue warnings
11692 # or remarks (even with -Werror). So we grep stderr for any message
11693 # that says an option was ignored or not supported.
11694 # When given -MP, icc 7.0 and 7.1 complain thusly:
11695 # icc: Command line warning: ignoring option '-M'; no argument required
11696 # The diagnosis changed in icc 8.0:
11697 # icc: Command line remark: option '-MP' not supported
11698 if (grep 'ignoring option' conftest.err ||
11699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11700 am_cv_CC_dependencies_compiler_type=$depmode
11707 rm -rf conftest.dir
11709 am_cv_CC_dependencies_compiler_type=none
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11714 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11715 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11718 test "x$enable_dependency_tracking" != xno \
11719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11720 am__fastdepCC_TRUE=
11721 am__fastdepCC_FALSE='#'
11723 am__fastdepCC_TRUE='#'
11724 am__fastdepCC_FALSE=
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11731 $as_echo_n "checking for library containing dlsym... " >&6; }
11732 if ${ac_cv_search_dlsym+:} false; then :
11733 $as_echo_n "(cached) " >&6
11735 ac_func_search_save_LIBS=$LIBS
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11739 /* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11754 for ac_lib in '' dl; do
11755 if test -z "$ac_lib"; then
11756 ac_res="none required"
11759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11761 if ac_fn_c_try_link "$LINENO"; then :
11762 ac_cv_search_dlsym=$ac_res
11764 rm -f core conftest.err conftest.$ac_objext \
11766 if ${ac_cv_search_dlsym+:} false; then :
11770 if ${ac_cv_search_dlsym+:} false; then :
11773 ac_cv_search_dlsym=no
11775 rm conftest.$ac_ext
11776 LIBS=$ac_func_search_save_LIBS
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11779 $as_echo "$ac_cv_search_dlsym" >&6; }
11780 ac_res=$ac_cv_search_dlsym
11781 if test "$ac_res" != no; then :
11782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
11787 $as_echo_n "checking for library containing pthread_create... " >&6; }
11788 if ${ac_cv_search_pthread_create+:} false; then :
11789 $as_echo_n "(cached) " >&6
11791 ac_func_search_save_LIBS=$LIBS
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11795 /* Override any GCC internal prototype to avoid an error.
11796 Use char because int might match the return type of a GCC
11797 builtin and then its argument prototype would still apply. */
11801 char pthread_create ();
11805 return pthread_create ();
11810 for ac_lib in '' pthread; do
11811 if test -z "$ac_lib"; then
11812 ac_res="none required"
11815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11817 if ac_fn_c_try_link "$LINENO"; then :
11818 ac_cv_search_pthread_create=$ac_res
11820 rm -f core conftest.err conftest.$ac_objext \
11822 if ${ac_cv_search_pthread_create+:} false; then :
11826 if ${ac_cv_search_pthread_create+:} false; then :
11829 ac_cv_search_pthread_create=no
11831 rm conftest.$ac_ext
11832 LIBS=$ac_func_search_save_LIBS
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
11835 $as_echo "$ac_cv_search_pthread_create" >&6; }
11836 ac_res=$ac_cv_search_pthread_create
11837 if test "$ac_res" != no; then :
11838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11843 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11844 if ${ac_cv_search_clock_gettime+:} false; then :
11845 $as_echo_n "(cached) " >&6
11847 ac_func_search_save_LIBS=$LIBS
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11851 /* Override any GCC internal prototype to avoid an error.
11852 Use char because int might match the return type of a GCC
11853 builtin and then its argument prototype would still apply. */
11857 char clock_gettime ();
11861 return clock_gettime ();
11866 for ac_lib in '' rt; do
11867 if test -z "$ac_lib"; then
11868 ac_res="none required"
11871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11873 if ac_fn_c_try_link "$LINENO"; then :
11874 ac_cv_search_clock_gettime=$ac_res
11876 rm -f core conftest.err conftest.$ac_objext \
11878 if ${ac_cv_search_clock_gettime+:} false; then :
11882 if ${ac_cv_search_clock_gettime+:} false; then :
11885 ac_cv_search_clock_gettime=no
11887 rm conftest.$ac_ext
11888 LIBS=$ac_func_search_save_LIBS
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11891 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11892 ac_res=$ac_cv_search_clock_gettime
11893 if test "$ac_res" != no; then :
11894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_connect" >&5
11899 $as_echo_n "checking for library containing SSL_connect... " >&6; }
11900 if ${ac_cv_search_SSL_connect+:} false; then :
11901 $as_echo_n "(cached) " >&6
11903 ac_func_search_save_LIBS=$LIBS
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11907 /* Override any GCC internal prototype to avoid an error.
11908 Use char because int might match the return type of a GCC
11909 builtin and then its argument prototype would still apply. */
11913 char SSL_connect ();
11917 return SSL_connect ();
11922 for ac_lib in '' ssl; do
11923 if test -z "$ac_lib"; then
11924 ac_res="none required"
11927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11929 if ac_fn_c_try_link "$LINENO"; then :
11930 ac_cv_search_SSL_connect=$ac_res
11932 rm -f core conftest.err conftest.$ac_objext \
11934 if ${ac_cv_search_SSL_connect+:} false; then :
11938 if ${ac_cv_search_SSL_connect+:} false; then :
11941 ac_cv_search_SSL_connect=no
11943 rm conftest.$ac_ext
11944 LIBS=$ac_func_search_save_LIBS
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_connect" >&5
11947 $as_echo "$ac_cv_search_SSL_connect" >&6; }
11948 ac_res=$ac_cv_search_SSL_connect
11949 if test "$ac_res" != no; then :
11950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing humanize_number" >&5
11955 $as_echo_n "checking for library containing humanize_number... " >&6; }
11956 if ${ac_cv_search_humanize_number+:} false; then :
11957 $as_echo_n "(cached) " >&6
11959 ac_func_search_save_LIBS=$LIBS
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11969 char humanize_number ();
11973 return humanize_number ();
11978 for ac_lib in '' util; do
11979 if test -z "$ac_lib"; then
11980 ac_res="none required"
11983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 ac_cv_search_humanize_number=$ac_res
11988 rm -f core conftest.err conftest.$ac_objext \
11990 if ${ac_cv_search_humanize_number+:} false; then :
11994 if ${ac_cv_search_humanize_number+:} false; then :
11997 ac_cv_search_humanize_number=no
11999 rm conftest.$ac_ext
12000 LIBS=$ac_func_search_save_LIBS
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_humanize_number" >&5
12003 $as_echo "$ac_cv_search_humanize_number" >&6; }
12004 ac_res=$ac_cv_search_humanize_number
12005 if test "$ac_res" != no; then :
12006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pidfile_open" >&5
12011 $as_echo_n "checking for library containing pidfile_open... " >&6; }
12012 if ${ac_cv_search_pidfile_open+:} false; then :
12013 $as_echo_n "(cached) " >&6
12015 ac_func_search_save_LIBS=$LIBS
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12019 /* Override any GCC internal prototype to avoid an error.
12020 Use char because int might match the return type of a GCC
12021 builtin and then its argument prototype would still apply. */
12025 char pidfile_open ();
12029 return pidfile_open ();
12034 for ac_lib in '' util; do
12035 if test -z "$ac_lib"; then
12036 ac_res="none required"
12039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12041 if ac_fn_c_try_link "$LINENO"; then :
12042 ac_cv_search_pidfile_open=$ac_res
12044 rm -f core conftest.err conftest.$ac_objext \
12046 if ${ac_cv_search_pidfile_open+:} false; then :
12050 if ${ac_cv_search_pidfile_open+:} false; then :
12053 ac_cv_search_pidfile_open=no
12055 rm conftest.$ac_ext
12056 LIBS=$ac_func_search_save_LIBS
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pidfile_open" >&5
12059 $as_echo "$ac_cv_search_pidfile_open" >&6; }
12060 ac_res=$ac_cv_search_pidfile_open
12061 if test "$ac_res" != no; then :
12062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12067 # Checks for header files.
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12069 $as_echo_n "checking for ANSI C header files... " >&6; }
12070 if ${ac_cv_header_stdc+:} false; then :
12071 $as_echo_n "(cached) " >&6
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 #include <stdlib.h>
12076 #include <stdarg.h>
12077 #include <string.h>
12088 if ac_fn_c_try_compile "$LINENO"; then :
12089 ac_cv_header_stdc=yes
12091 ac_cv_header_stdc=no
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 if test $ac_cv_header_stdc = yes; then
12096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #include <string.h>
12102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12103 $EGREP "memchr" >/dev/null 2>&1; then :
12106 ac_cv_header_stdc=no
12112 if test $ac_cv_header_stdc = yes; then
12113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12116 #include <stdlib.h>
12119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12120 $EGREP "free" >/dev/null 2>&1; then :
12123 ac_cv_header_stdc=no
12129 if test $ac_cv_header_stdc = yes; then
12130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12131 if test "$cross_compiling" = yes; then :
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12137 #include <stdlib.h>
12138 #if ((' ' & 0x0FF) == 0x020)
12139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12142 # define ISLOWER(c) \
12143 (('a' <= (c) && (c) <= 'i') \
12144 || ('j' <= (c) && (c) <= 'r') \
12145 || ('s' <= (c) && (c) <= 'z'))
12146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12154 for (i = 0; i < 256; i++)
12155 if (XOR (islower (i), ISLOWER (i))
12156 || toupper (i) != TOUPPER (i))
12161 if ac_fn_c_try_run "$LINENO"; then :
12164 ac_cv_header_stdc=no
12166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12167 conftest.$ac_objext conftest.beam conftest.$ac_ext
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12173 $as_echo "$ac_cv_header_stdc" >&6; }
12174 if test $ac_cv_header_stdc = yes; then
12176 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12181 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12182 if ${ac_cv_header_sys_wait_h+:} false; then :
12183 $as_echo_n "(cached) " >&6
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187 #include <sys/types.h>
12188 #include <sys/wait.h>
12189 #ifndef WEXITSTATUS
12190 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12193 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12201 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12206 if ac_fn_c_try_compile "$LINENO"; then :
12207 ac_cv_header_sys_wait_h=yes
12209 ac_cv_header_sys_wait_h=no
12211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12214 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12215 if test $ac_cv_header_sys_wait_h = yes; then
12217 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12221 for ac_header in mach/mach.h stdint.h pthread_np.h printf.h
12223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12224 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12225 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12226 cat >>confdefs.h <<_ACEOF
12227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12236 $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
12239 # Checks for typedefs, structures, and compiler characteristics.
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12241 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12242 if ${ac_cv_c_const+:} false; then :
12243 $as_echo_n "(cached) " >&6
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12252 #ifndef __cplusplus
12253 /* Ultrix mips cc rejects this sort of thing. */
12254 typedef int charset[2];
12255 const charset cs = { 0, 0 };
12256 /* SunOS 4.1.1 cc rejects this. */
12257 char const *const *pcpcc;
12259 /* NEC SVR4.0.2 mips cc rejects this. */
12260 struct point {int x, y;};
12261 static struct point const zero = {0,0};
12262 /* AIX XL C 1.02.0.0 rejects this.
12263 It does not let you subtract one const X* pointer from another in
12264 an arm of an if-expression whose if-part is not a constant
12266 const char *g = "string";
12267 pcpcc = &g + (g ? g-g : 0);
12268 /* HPUX 7.0 cc rejects these. */
12270 ppc = (char**) pcpcc;
12271 pcpcc = (char const *const *) ppc;
12272 { /* SCO 3.2v4 cc rejects this sort of thing. */
12275 char const *s = 0 ? (char *) 0 : (char const *) 0;
12280 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12281 int x[] = {25, 17};
12282 const int *foo = &x[0];
12285 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12286 typedef const int *iptr;
12290 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12291 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12292 struct s { int j; const int *ap[3]; } bx;
12293 struct s *b = &bx; b->j = 5;
12295 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12296 const int foo = 10;
12297 if (!foo) return 0;
12299 return !cs[0] && !zero.x;
12306 if ac_fn_c_try_compile "$LINENO"; then :
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12314 $as_echo "$ac_cv_c_const" >&6; }
12315 if test $ac_cv_c_const = no; then
12317 $as_echo "#define const /**/" >>confdefs.h
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12322 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12323 if ${ac_cv_type_uid_t+:} false; then :
12324 $as_echo_n "(cached) " >&6
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328 #include <sys/types.h>
12331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12332 $EGREP "uid_t" >/dev/null 2>&1; then :
12333 ac_cv_type_uid_t=yes
12335 ac_cv_type_uid_t=no
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12341 $as_echo "$ac_cv_type_uid_t" >&6; }
12342 if test $ac_cv_type_uid_t = no; then
12344 $as_echo "#define uid_t int" >>confdefs.h
12347 $as_echo "#define gid_t int" >>confdefs.h
12351 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12352 if test "x$ac_cv_type_pid_t" = xyes; then :
12356 cat >>confdefs.h <<_ACEOF
12362 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12363 if test "x$ac_cv_type_size_t" = xyes; then :
12367 cat >>confdefs.h <<_ACEOF
12368 #define size_t unsigned int
12373 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12374 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12376 cat >>confdefs.h <<_ACEOF
12377 #define HAVE_STRUCT_STAT_ST_RDEV 1
12384 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "__key" "ac_cv_member_struct_ipc_perm___key" "
12385 #include <sys/types.h>
12386 #include <sys/ipc.h>
12389 if test "x$ac_cv_member_struct_ipc_perm___key" = xyes; then :
12391 $as_echo "#define HAVE_IPC_PERM___KEY /**/" >>confdefs.h
12396 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "_key" "ac_cv_member_struct_ipc_perm__key" "
12397 #include <sys/types.h>
12398 #include <sys/ipc.h>
12401 if test "x$ac_cv_member_struct_ipc_perm__key" = xyes; then :
12403 $as_echo "#define HAVE_IPC_PERM__KEY /**/" >>confdefs.h
12408 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "__seq" "ac_cv_member_struct_ipc_perm___seq" "
12409 #include <sys/types.h>
12410 #include <sys/ipc.h>
12413 if test "x$ac_cv_member_struct_ipc_perm___seq" = xyes; then :
12415 $as_echo "#define HAVE_IPC_PERM___SEQ /**/" >>confdefs.h
12420 ac_fn_c_check_member "$LINENO" "struct ipc_perm" "_seq" "ac_cv_member_struct_ipc_perm__seq" "
12421 #include <sys/types.h>
12422 #include <sys/ipc.h>
12425 if test "x$ac_cv_member_struct_ipc_perm__seq" = xyes; then :
12427 $as_echo "#define HAVE_IPC_PERM__SEQ /**/" >>confdefs.h
12432 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "
12433 #include <sys/types.h>
12434 #include <sys/socket.h>
12437 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
12439 $as_echo "#define HAVE_SOCKADDR_STORAGE_SS_LEN /**/" >>confdefs.h
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12445 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12446 if ${ac_cv_header_time+:} false; then :
12447 $as_echo_n "(cached) " >&6
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #include <sys/types.h>
12452 #include <sys/time.h>
12458 if ((struct tm *) 0)
12464 if ac_fn_c_try_compile "$LINENO"; then :
12465 ac_cv_header_time=yes
12467 ac_cv_header_time=no
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12472 $as_echo "$ac_cv_header_time" >&6; }
12473 if test $ac_cv_header_time = yes; then
12475 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12480 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12481 if ${ac_cv_struct_tm+:} false; then :
12482 $as_echo_n "(cached) " >&6
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486 #include <sys/types.h>
12493 int *p = &tm.tm_sec;
12499 if ac_fn_c_try_compile "$LINENO"; then :
12500 ac_cv_struct_tm=time.h
12502 ac_cv_struct_tm=sys/time.h
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12507 $as_echo "$ac_cv_struct_tm" >&6; }
12508 if test $ac_cv_struct_tm = sys/time.h; then
12510 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12515 # Checks for library functions.
12516 for ac_header in unistd.h
12518 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12519 if test "x$ac_cv_header_unistd_h" = xyes; then :
12520 cat >>confdefs.h <<_ACEOF
12521 #define HAVE_UNISTD_H 1
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
12529 $as_echo_n "checking for working chown... " >&6; }
12530 if ${ac_cv_func_chown_works+:} false; then :
12531 $as_echo_n "(cached) " >&6
12533 if test "$cross_compiling" = yes; then :
12534 ac_cv_func_chown_works=no
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538 $ac_includes_default
12544 char *f = "conftest.chown";
12545 struct stat before, after;
12547 if (creat (f, 0600) < 0)
12549 if (stat (f, &before) < 0)
12551 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
12553 if (stat (f, &after) < 0)
12555 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
12561 if ac_fn_c_try_run "$LINENO"; then :
12562 ac_cv_func_chown_works=yes
12564 ac_cv_func_chown_works=no
12566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12567 conftest.$ac_objext conftest.beam conftest.$ac_ext
12570 rm -f conftest.chown
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
12574 $as_echo "$ac_cv_func_chown_works" >&6; }
12575 if test $ac_cv_func_chown_works = yes; then
12577 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
12581 for ac_header in vfork.h
12583 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12584 if test "x$ac_cv_header_vfork_h" = xyes; then :
12585 cat >>confdefs.h <<_ACEOF
12586 #define HAVE_VFORK_H 1
12593 for ac_func in fork vfork
12595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12596 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12597 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12598 cat >>confdefs.h <<_ACEOF
12599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605 if test "x$ac_cv_func_fork" = xyes; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12607 $as_echo_n "checking for working fork... " >&6; }
12608 if ${ac_cv_func_fork_works+:} false; then :
12609 $as_echo_n "(cached) " >&6
12611 if test "$cross_compiling" = yes; then :
12612 ac_cv_func_fork_works=cross
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 $ac_includes_default
12621 /* By Ruediger Kuhlmann. */
12622 return fork () < 0;
12628 if ac_fn_c_try_run "$LINENO"; then :
12629 ac_cv_func_fork_works=yes
12631 ac_cv_func_fork_works=no
12633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12634 conftest.$ac_objext conftest.beam conftest.$ac_ext
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12639 $as_echo "$ac_cv_func_fork_works" >&6; }
12642 ac_cv_func_fork_works=$ac_cv_func_fork
12644 if test "x$ac_cv_func_fork_works" = xcross; then
12646 *-*-amigaos* | *-*-msdosdjgpp*)
12647 # Override, as these systems have only a dummy fork() stub
12648 ac_cv_func_fork_works=no
12651 ac_cv_func_fork_works=yes
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12655 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12657 ac_cv_func_vfork_works=$ac_cv_func_vfork
12658 if test "x$ac_cv_func_vfork" = xyes; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12660 $as_echo_n "checking for working vfork... " >&6; }
12661 if ${ac_cv_func_vfork_works+:} false; then :
12662 $as_echo_n "(cached) " >&6
12664 if test "$cross_compiling" = yes; then :
12665 ac_cv_func_vfork_works=cross
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669 /* Thanks to Paul Eggert for this test. */
12670 $ac_includes_default
12671 #include <sys/wait.h>
12672 #ifdef HAVE_VFORK_H
12673 # include <vfork.h>
12675 /* On some sparc systems, changes by the child to local and incoming
12676 argument registers are propagated back to the parent. The compiler
12677 is told about this with #include <vfork.h>, but some compilers
12678 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12679 static variable whose address is put into a register that is
12680 clobbered by the vfork. */
12683 sparc_address_test (int arg)
12685 sparc_address_test (arg) int arg;
12688 static pid_t child;
12706 pid_t parent = getpid ();
12709 sparc_address_test (0);
12714 /* Here is another test for sparc vfork register problems. This
12715 test uses lots of local variables, at least as many local
12716 variables as main has allocated so far including compiler
12717 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12718 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12719 reuse the register of parent for one of the local variables,
12720 since it will think that parent can't possibly be used any more
12721 in this routine. Assigning to the local variable will thus
12722 munge parent in the parent process. */
12724 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12725 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12726 /* Convince the compiler that p..p7 are live; otherwise, it might
12727 use the same hardware register for all 8 local variables. */
12728 if (p != p1 || p != p2 || p != p3 || p != p4
12729 || p != p5 || p != p6 || p != p7)
12732 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12733 from child file descriptors. If the child closes a descriptor
12734 before it execs or exits, this munges the parent's descriptor
12735 as well. Test for this by closing stdout in the child. */
12736 _exit(close(fileno(stdout)) != 0);
12741 while (wait(&status) != child)
12744 /* Was there some problem with vforking? */
12747 /* Did the child fail? (This shouldn't happen.) */
12750 /* Did the vfork/compiler bug occur? */
12751 || parent != getpid()
12753 /* Did the file descriptor bug occur? */
12754 || fstat(fileno(stdout), &st) != 0
12759 if ac_fn_c_try_run "$LINENO"; then :
12760 ac_cv_func_vfork_works=yes
12762 ac_cv_func_vfork_works=no
12764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12765 conftest.$ac_objext conftest.beam conftest.$ac_ext
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12770 $as_echo "$ac_cv_func_vfork_works" >&6; }
12773 if test "x$ac_cv_func_fork_works" = xcross; then
12774 ac_cv_func_vfork_works=$ac_cv_func_vfork
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12776 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12779 if test "x$ac_cv_func_vfork_works" = xyes; then
12781 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12785 $as_echo "#define vfork fork" >>confdefs.h
12788 if test "x$ac_cv_func_fork_works" = xyes; then
12790 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12794 for ac_header in stdlib.h
12796 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12797 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12798 cat >>confdefs.h <<_ACEOF
12799 #define HAVE_STDLIB_H 1
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12807 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12808 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12809 $as_echo_n "(cached) " >&6
12811 if test "$cross_compiling" = yes; then :
12812 ac_cv_func_malloc_0_nonnull=no
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12816 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12817 # include <stdlib.h>
12825 return ! malloc (0);
12830 if ac_fn_c_try_run "$LINENO"; then :
12831 ac_cv_func_malloc_0_nonnull=yes
12833 ac_cv_func_malloc_0_nonnull=no
12835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12836 conftest.$ac_objext conftest.beam conftest.$ac_ext
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12841 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12842 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12844 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12847 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12849 case " $LIBOBJS " in
12850 *" malloc.$ac_objext "* ) ;;
12851 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12856 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12864 for ac_header in $ac_header_list
12866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12867 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12870 cat >>confdefs.h <<_ACEOF
12871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12885 for ac_func in $ac_func_list
12887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12888 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12889 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12890 cat >>confdefs.h <<_ACEOF
12891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
12902 $as_echo_n "checking for working mktime... " >&6; }
12903 if ${ac_cv_func_working_mktime+:} false; then :
12904 $as_echo_n "(cached) " >&6
12906 if test "$cross_compiling" = yes; then :
12907 ac_cv_func_working_mktime=no
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911 /* Test program from Paul Eggert and Tony Leneis. */
12912 #ifdef TIME_WITH_SYS_TIME
12913 # include <sys/time.h>
12916 # ifdef HAVE_SYS_TIME_H
12917 # include <sys/time.h>
12923 #include <limits.h>
12924 #include <stdlib.h>
12926 #ifdef HAVE_UNISTD_H
12927 # include <unistd.h>
12931 # define alarm(X) /* empty */
12934 /* Work around redefinition to rpl_putenv by other config tests. */
12937 static time_t time_t_max;
12938 static time_t time_t_min;
12940 /* Values we'll use to set the TZ environment variable. */
12941 static const char *tz_strings[] = {
12942 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
12943 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
12945 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
12947 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
12948 Based on a problem report from Andreas Jaeger. */
12950 spring_forward_gap ()
12952 /* glibc (up to about 1998-10-07) failed this test. */
12955 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12956 instead of "TZ=America/Vancouver" in order to detect the bug even
12957 on systems that don't support the Olson extension, or don't have the
12958 full zoneinfo tables installed. */
12959 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12968 return mktime (&tm) != (time_t) -1;
12972 mktime_test1 (time_t now)
12975 return ! (lt = localtime (&now)) || mktime (lt) == now;
12979 mktime_test (time_t now)
12981 return (mktime_test1 (now)
12982 && mktime_test1 ((time_t) (time_t_max - now))
12983 && mktime_test1 ((time_t) (time_t_min + now)));
12989 /* Based on code from Ariel Faigon. */
12999 return tm.tm_mon == 2 && tm.tm_mday == 31;
13003 bigtime_test (int j)
13007 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13008 now = mktime (&tm);
13009 if (now != (time_t) -1)
13011 struct tm *lt = localtime (&now);
13013 && lt->tm_year == tm.tm_year
13014 && lt->tm_mon == tm.tm_mon
13015 && lt->tm_mday == tm.tm_mday
13016 && lt->tm_hour == tm.tm_hour
13017 && lt->tm_min == tm.tm_min
13018 && lt->tm_sec == tm.tm_sec
13019 && lt->tm_yday == tm.tm_yday
13020 && lt->tm_wday == tm.tm_wday
13021 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13022 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13031 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13032 ignoring leap seconds. */
13033 unsigned long int answer = 2527315200UL;
13037 tm.tm_year = 2050 - 1900;
13040 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13043 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13044 instead of "TZ=America/Vancouver" in order to detect the bug even
13045 on systems that don't support the Olson extension, or don't have the
13046 full zoneinfo tables installed. */
13047 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
13051 /* Check that the result is either a failure, or close enough
13052 to the correct answer that we can assume the discrepancy is
13053 due to leap seconds. */
13054 return (t == (time_t) -1
13055 || (0 < t && answer - 120 <= t && t <= answer + 120));
13064 /* This test makes some buggy mktime implementations loop.
13065 Give up after 60 seconds; a mktime slower than that
13066 isn't worth using anyway. */
13071 t = (time_t_max << 1) + 1;
13072 if (t <= time_t_max)
13076 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
13078 delta = time_t_max / 997; /* a suitable prime number */
13079 for (i = 0; i < N_STRINGS; i++)
13082 putenv ((char*) tz_strings[i]);
13084 for (t = 0; t <= time_t_max - delta; t += delta)
13085 if (! mktime_test (t))
13087 if (! (mktime_test ((time_t) 1)
13088 && mktime_test ((time_t) (60 * 60))
13089 && mktime_test ((time_t) (60 * 60 * 24))))
13092 for (j = 1; ; j <<= 1)
13093 if (! bigtime_test (j))
13095 else if (INT_MAX / 2 < j)
13097 if (! bigtime_test (INT_MAX))
13100 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
13103 if ac_fn_c_try_run "$LINENO"; then :
13104 ac_cv_func_working_mktime=yes
13106 ac_cv_func_working_mktime=no
13108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13109 conftest.$ac_objext conftest.beam conftest.$ac_ext
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
13114 $as_echo "$ac_cv_func_working_mktime" >&6; }
13115 if test $ac_cv_func_working_mktime = no; then
13116 case " $LIBOBJS " in
13117 *" mktime.$ac_objext "* ) ;;
13118 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13125 $as_echo_n "checking return type of signal handlers... " >&6; }
13126 if ${ac_cv_type_signal+:} false; then :
13127 $as_echo_n "(cached) " >&6
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131 #include <sys/types.h>
13132 #include <signal.h>
13137 return *(signal (0, 0)) (0) == 1;
13142 if ac_fn_c_try_compile "$LINENO"; then :
13143 ac_cv_type_signal=int
13145 ac_cv_type_signal=void
13147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13150 $as_echo "$ac_cv_type_signal" >&6; }
13152 cat >>confdefs.h <<_ACEOF
13153 #define RETSIGTYPE $ac_cv_type_signal
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13158 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13159 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13160 $as_echo_n "(cached) " >&6
13162 rm -f conftest.sym conftest.file
13163 echo >conftest.file
13164 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13165 if test "$cross_compiling" = yes; then :
13166 ac_cv_func_lstat_dereferences_slashed_symlink=no
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 $ac_includes_default
13175 /* Linux will dereference the symlink and fail, as required by POSIX.
13176 That is better in the sense that it means we will not
13177 have to compile and use the lstat wrapper. */
13178 return lstat ("conftest.sym/", &sbuf) == 0;
13183 if ac_fn_c_try_run "$LINENO"; then :
13184 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13186 ac_cv_func_lstat_dereferences_slashed_symlink=no
13188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13189 conftest.$ac_objext conftest.beam conftest.$ac_ext
13193 # If the `ln -s' command failed, then we probably don't even
13194 # have an lstat function.
13195 ac_cv_func_lstat_dereferences_slashed_symlink=no
13197 rm -f conftest.sym conftest.file
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13201 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13203 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13205 cat >>confdefs.h <<_ACEOF
13206 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13210 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13211 case " $LIBOBJS " in
13212 *" lstat.$ac_objext "* ) ;;
13213 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13220 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
13221 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
13222 $as_echo_n "(cached) " >&6
13224 if test "$cross_compiling" = yes; then :
13225 ac_cv_func_stat_empty_string_bug=yes
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229 $ac_includes_default
13234 return stat ("", &sbuf) == 0;
13239 if ac_fn_c_try_run "$LINENO"; then :
13240 ac_cv_func_stat_empty_string_bug=no
13242 ac_cv_func_stat_empty_string_bug=yes
13244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13245 conftest.$ac_objext conftest.beam conftest.$ac_ext
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13250 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13251 if test $ac_cv_func_stat_empty_string_bug = yes; then
13252 case " $LIBOBJS " in
13253 *" stat.$ac_objext "* ) ;;
13254 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13259 cat >>confdefs.h <<_ACEOF
13260 #define HAVE_STAT_EMPTY_STRING_BUG 1
13265 for ac_func in strftime
13267 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13268 if test "x$ac_cv_func_strftime" = xyes; then :
13269 cat >>confdefs.h <<_ACEOF
13270 #define HAVE_STRFTIME 1
13274 # strftime is in -lintl on SCO UNIX.
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13276 $as_echo_n "checking for strftime in -lintl... " >&6; }
13277 if ${ac_cv_lib_intl_strftime+:} false; then :
13278 $as_echo_n "(cached) " >&6
13280 ac_check_lib_save_LIBS=$LIBS
13281 LIBS="-lintl $LIBS"
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13285 /* Override any GCC internal prototype to avoid an error.
13286 Use char because int might match the return type of a GCC
13287 builtin and then its argument prototype would still apply. */
13295 return strftime ();
13300 if ac_fn_c_try_link "$LINENO"; then :
13301 ac_cv_lib_intl_strftime=yes
13303 ac_cv_lib_intl_strftime=no
13305 rm -f core conftest.err conftest.$ac_objext \
13306 conftest$ac_exeext conftest.$ac_ext
13307 LIBS=$ac_check_lib_save_LIBS
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13310 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13311 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13312 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13314 LIBS="-lintl $LIBS"
13320 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
13322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13324 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13325 cat >>confdefs.h <<_ACEOF
13326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13333 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
13334 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
13335 # all of them, and are necessary for OpenBSM.
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13339 #include <sys/queue.h>
13347 #error LIST_FIRST missing
13349 #ifndef TAILQ_FOREACH_SAFE
13350 #error TAILQ_FOREACH_SAFE
13357 if ac_fn_c_try_link "$LINENO"; then :
13360 $as_echo "#define HAVE_FULL_QUEUE_H /**/" >>confdefs.h
13364 rm -f core conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13367 # Systems may not define key audit system calls, in which case libbsm cannot
13368 # depend on them or it will generate link-time or run-time errors. Test for
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13373 #include <stddef.h>
13375 extern int auditon(int, void *, int);
13383 err = auditon(0, NULL, 0);
13389 if ac_fn_c_try_link "$LINENO"; then :
13392 $as_echo "#define HAVE_AUDIT_SYSCALLS /**/" >>confdefs.h
13394 have_audit_syscalls=true
13398 have_audit_syscalls=false
13401 rm -f core conftest.err conftest.$ac_objext \
13402 conftest$ac_exeext conftest.$ac_ext
13403 if $have_audit_syscalls; then
13404 HAVE_AUDIT_SYSCALLS_TRUE=
13405 HAVE_AUDIT_SYSCALLS_FALSE='#'
13407 HAVE_AUDIT_SYSCALLS_TRUE='#'
13408 HAVE_AUDIT_SYSCALLS_FALSE=
13413 # We rely on the BSD be32toh() and be32enc()-style endian macros to perform
13414 # byte order conversions. Availability of these varies considerably -- in
13415 # general, a system might have neither, be32toh(), or be32toh() and be32enc().
13416 # There is also variation in which headers are even present, and whether they
13417 # are macros or functions. Try to organise the world into some simpler cases.
13418 # The following macros may be set at the end:
13422 # USE_MACHINE_ENDIAN_H
13423 # USE_COMPAT_ENDIAN_H
13424 # USE_COMPAT_ENDIAN_ENC_H
13426 # First, decide which system endian.h to use.
13428 for ac_header in endian.h
13430 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13431 if test "x$ac_cv_header_endian_h" = xyes; then :
13432 cat >>confdefs.h <<_ACEOF
13433 #define HAVE_ENDIAN_H 1
13447 for ac_header in sys/endian.h
13449 ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
13450 if test "x$ac_cv_header_sys_endian_h" = xyes; then :
13451 cat >>confdefs.h <<_ACEOF
13452 #define HAVE_SYS_ENDIAN_H 1
13455 have_sys_endian_h=yes
13459 have_sys_endian_h=no
13466 for ac_header in machine/endian.h
13468 ac_fn_c_check_header_mongrel "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
13469 if test "x$ac_cv_header_machine_endian_h" = xyes; then :
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_MACHINE_ENDIAN_H 1
13474 have_machine_endian_h=yes
13478 have_machine_endian_h=no
13485 if test $have_endian_h = yes; then
13487 $as_echo "#define USE_ENDIAN_H /**/" >>confdefs.h
13489 elif test $have_sys_endian_h = yes; then
13491 $as_echo "#define USE_SYS_ENDIAN_H /**/" >>confdefs.h
13493 elif test $have_machine_endian_h = yes; then
13495 $as_echo "#define USE_MACHINE_ENDIAN_H /**/" >>confdefs.h
13498 as_fn_error $? "no endian.h" "$LINENO" 5
13502 # Next, decide if we need to supplement with compat headers.
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13507 #ifdef USE_ENDIAN_H
13508 #include <endian.h>
13510 #ifdef USE_SYS_ENDIAN_H
13511 #include <sys/endian.h>
13513 #ifdef USE_MACHINE_ENDIAN_H
13514 #include <machine/endian.h>
13527 if ac_fn_c_try_link "$LINENO"; then :
13532 $as_echo "#define USE_COMPAT_ENDIAN_H /**/" >>confdefs.h
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using compat/endian.h" >&5
13535 $as_echo "using compat/endian.h" >&6; }
13538 rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13544 #ifdef USE_ENDIAN_H
13545 #include <endian.h>
13547 #ifdef USE_SYS_ENDIAN_H
13548 #include <sys/endian.h>
13550 #ifdef USE_MACHINE_ENDIAN_H
13551 #include <machine/endian.h>
13553 #ifdef USE_COMPAT_ENDIAN_H
13554 #include "compat/endian.h"
13556 #include <stdlib.h>
13575 if ac_fn_c_try_link "$LINENO"; then :
13580 $as_echo "#define USE_COMPAT_ENDIAN_ENC_H /**/" >>confdefs.h
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using compat/endian_enc.h" >&5
13583 $as_echo "using compat/endian_enc.h" >&6; }
13586 rm -f core conftest.err conftest.$ac_objext \
13587 conftest$ac_exeext conftest.$ac_ext
13589 # Check to see if Mach IPC is used for trigger messages. If so, use Mach IPC
13590 # instead of the default for sending trigger messages to the audit components.
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/mach/audit_triggers.defs" >&5
13592 $as_echo_n "checking for /usr/include/mach/audit_triggers.defs... " >&6; }
13593 if ${ac_cv_file__usr_include_mach_audit_triggers_defs+:} false; then :
13594 $as_echo_n "(cached) " >&6
13596 test "$cross_compiling" = yes &&
13597 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13598 if test -r "/usr/include/mach/audit_triggers.defs"; then
13599 ac_cv_file__usr_include_mach_audit_triggers_defs=yes
13601 ac_cv_file__usr_include_mach_audit_triggers_defs=no
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
13605 $as_echo "$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
13606 if test "x$ac_cv_file__usr_include_mach_audit_triggers_defs" = xyes; then :
13609 $as_echo "#define USE_MACH_IPC /**/" >>confdefs.h
13619 if $use_mach_ipc; then
13621 USE_MACH_IPC_FALSE='#'
13623 USE_MACH_IPC_TRUE='#'
13624 USE_MACH_IPC_FALSE=
13628 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"
13631 cat >confcache <<\_ACEOF
13632 # This file is a shell script that caches the results of configure
13633 # tests run on this system so they can be shared between configure
13634 # scripts and configure runs, see configure's option --config-cache.
13635 # It is not useful on other systems. If it contains results you don't
13636 # want to keep, you may remove or edit it.
13638 # config.status only pays attention to the cache file if you give it
13639 # the --recheck option to rerun configure.
13641 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13642 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13643 # following values.
13647 # The following way of writing the cache mishandles newlines in values,
13648 # but we know of no workaround that is simple, portable, and efficient.
13649 # So, we kill variables containing newlines.
13650 # Ultrix sh set writes to stderr and can't be redirected directly,
13651 # and sets the high bit in the cache file unless we assign to the vars.
13653 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13654 eval ac_val=\$$ac_var
13658 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13659 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13662 _ | IFS | as_nl) ;; #(
13663 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13664 *) { eval $ac_var=; unset $ac_var;} ;;
13670 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13671 *${as_nl}ac_space=\ *)
13672 # `set' does not quote correctly, so add quotes: double-quote
13673 # substitution turns \\\\ into \\, and sed turns \\ into \.
13676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13679 # `set' quotes correctly as required by POSIX, so do not add quotes.
13680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13691 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13693 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13694 if test -w "$cache_file"; then
13695 if test "x$cache_file" != "x/dev/null"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13697 $as_echo "$as_me: updating cache $cache_file" >&6;}
13698 if test ! -f "$cache_file" || test -h "$cache_file"; then
13699 cat confcache >"$cache_file"
13701 case $cache_file in #(
13703 mv -f confcache "$cache_file"$$ &&
13704 mv -f "$cache_file"$$ "$cache_file" ;; #(
13706 mv -f confcache "$cache_file" ;;
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13712 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13717 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13718 # Let make expand exec_prefix.
13719 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13721 DEFS=-DHAVE_CONFIG_H
13726 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13727 # 1. Remove the extension, and $U if already installed.
13728 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13729 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13730 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13731 # will be set to the directory where LIBOBJS objects are built.
13732 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13733 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13735 LIBOBJS=$ac_libobjs
13737 LTLIBOBJS=$ac_ltlibobjs
13740 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13741 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13744 if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
13745 as_fn_error $? "conditional \"USE_NATIVE_INCLUDES\" was never defined.
13746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13749 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13750 if test -n "$am_sleep_pid"; then
13751 # Hide warnings about reused PIDs.
13752 wait $am_sleep_pid 2>/dev/null
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13755 $as_echo "done" >&6; }
13756 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13757 as_fn_error $? "conditional \"AMDEP\" was never defined.
13758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13760 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13761 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13764 if test -n "$EXEEXT"; then
13766 am__EXEEXT_FALSE='#'
13768 am__EXEEXT_TRUE='#'
13772 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
13773 as_fn_error $? "conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
13774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13776 if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
13777 as_fn_error $? "conditional \"USE_MACH_IPC\" was never defined.
13778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13781 : "${CONFIG_STATUS=./config.status}"
13783 ac_clean_files_save=$ac_clean_files
13784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13786 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13788 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13790 # Generated by $as_me.
13791 # Run this file to recreate the current configuration.
13792 # Compiler output produced by configure, useful for debugging
13793 # configure, is in config.log if it exists.
13796 ac_cs_recheck=false
13799 SHELL=\${CONFIG_SHELL-$SHELL}
13802 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13803 ## -------------------- ##
13804 ## M4sh Initialization. ##
13805 ## -------------------- ##
13807 # Be more Bourne compatible
13808 DUALCASE=1; export DUALCASE # for MKS sh
13809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13813 # is contrary to our usage. Disable this feature.
13814 alias -g '${1+"$@"}'='"$@"'
13815 setopt NO_GLOB_SUBST
13817 case `(set -o) 2>/dev/null` in #(
13829 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13830 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13833 # Prefer a ksh shell builtin over an external printf program on Solaris,
13834 # but without wasting forks for bash or zsh.
13835 if test -z "$BASH_VERSION$ZSH_VERSION" \
13836 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13837 as_echo='print -r --'
13838 as_echo_n='print -rn --'
13839 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13840 as_echo='printf %s\n'
13841 as_echo_n='printf %s'
13843 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13844 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13845 as_echo_n='/usr/ucb/echo -n'
13847 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13848 as_echo_n_body='eval
13852 expr "X$arg" : "X\\(.*\\)$as_nl";
13853 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13855 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13857 export as_echo_n_body
13858 as_echo_n='sh -c $as_echo_n_body as_echo'
13860 export as_echo_body
13861 as_echo='sh -c $as_echo_body as_echo'
13864 # The user is always right.
13865 if test "${PATH_SEPARATOR+set}" != set; then
13867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13875 # We need space, tab and new line, in precisely that order. Quoting is
13876 # there to prevent editors from complaining about space-tab.
13877 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13878 # splitting by setting IFS to empty value.)
13881 # Find who we are. Look in the path if we contain no directory separator.
13884 *[\\/]* ) as_myself=$0 ;;
13885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886 for as_dir in $PATH
13889 test -z "$as_dir" && as_dir=.
13890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13896 # We did not find ourselves, most probably we were run as `sh COMMAND'
13897 # in which case we are not to be found in the path.
13898 if test "x$as_myself" = x; then
13901 if test ! -f "$as_myself"; then
13902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13906 # Unset variables that we do not need and which cause bugs (e.g. in
13907 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13908 # suppresses any "Segmentation fault" message there. '((' could
13909 # trigger a bug in pdksh 5.2.14.
13910 for as_var in BASH_ENV ENV MAIL MAILPATH
13911 do eval test x\${$as_var+set} = xset \
13912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13928 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13929 # ----------------------------------------
13930 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13931 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13932 # script with STATUS, using 1 if that was 0.
13935 as_status=$1; test $as_status -eq 0 && as_status=1
13937 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13940 $as_echo "$as_me: error: $2" >&2
13941 as_fn_exit $as_status
13945 # as_fn_set_status STATUS
13946 # -----------------------
13947 # Set $? to STATUS, without forking.
13948 as_fn_set_status ()
13951 } # as_fn_set_status
13953 # as_fn_exit STATUS
13954 # -----------------
13955 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13959 as_fn_set_status $1
13965 # Portably unset VAR.
13968 { eval $1=; unset $1;}
13970 as_unset=as_fn_unset
13971 # as_fn_append VAR VALUE
13972 # ----------------------
13973 # Append the text in VALUE to the end of the definition contained in VAR. Take
13974 # advantage of any shell optimizations that allow amortized linear growth over
13975 # repeated appends, instead of the typical quadratic growth present in naive
13977 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13978 eval 'as_fn_append ()
13989 # as_fn_arith ARG...
13990 # ------------------
13991 # Perform arithmetic evaluation on the ARGs, and store the result in the
13992 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13993 # must be portable across $(()) and expr.
13994 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13995 eval 'as_fn_arith ()
14002 as_val=`expr "$@" || test $? -eq 1`
14007 if expr a : '\(a\)' >/dev/null 2>&1 &&
14008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14014 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14015 as_basename=basename
14020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14026 as_me=`$as_basename -- "$0" ||
14027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14028 X"$0" : 'X\(//\)$' \| \
14029 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14031 sed '/^.*\/\([^/][^/]*\)\/*$/{
14045 # Avoid depending upon Character Ranges.
14046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14049 as_cr_digits='0123456789'
14050 as_cr_alnum=$as_cr_Letters$as_cr_digits
14052 ECHO_C= ECHO_N= ECHO_T=
14053 case `echo -n x` in #(((((
14055 case `echo 'xy\c'` in
14056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14065 rm -f conf$$ conf$$.exe conf$$.file
14066 if test -d conf$$.dir; then
14067 rm -f conf$$.dir/conf$$.file
14070 mkdir conf$$.dir 2>/dev/null
14072 if (echo >conf$$.file) 2>/dev/null; then
14073 if ln -s conf$$.file conf$$ 2>/dev/null; then
14075 # ... but there are two gotchas:
14076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14078 # In both cases, we have to default to `cp -pR'.
14079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14081 elif ln conf$$.file conf$$ 2>/dev/null; then
14089 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14090 rmdir conf$$.dir 2>/dev/null
14095 # Create "$as_dir" as a directory, including parents if necessary.
14100 -*) as_dir=./$as_dir;;
14102 test -d "$as_dir" || eval $as_mkdir_p || {
14106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14107 *) as_qdir=$as_dir;;
14109 as_dirs="'$as_qdir' $as_dirs"
14110 as_dir=`$as_dirname -- "$as_dir" ||
14111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14112 X"$as_dir" : 'X\(//\)[^/]' \| \
14113 X"$as_dir" : 'X\(//\)$' \| \
14114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14115 $as_echo X"$as_dir" |
14116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14120 /^X\(\/\/\)[^/].*/{
14133 test -d "$as_dir" && break
14135 test -z "$as_dirs" || eval "mkdir $as_dirs"
14136 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14140 if mkdir -p . 2>/dev/null; then
14141 as_mkdir_p='mkdir -p "$as_dir"'
14143 test -d ./-p && rmdir ./-p
14148 # as_fn_executable_p FILE
14149 # -----------------------
14150 # Test if FILE is an executable regular file.
14151 as_fn_executable_p ()
14153 test -f "$1" && test -x "$1"
14154 } # as_fn_executable_p
14155 as_test_x='test -x'
14156 as_executable_p=as_fn_executable_p
14158 # Sed expression to map a string onto a valid CPP name.
14159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14161 # Sed expression to map a string onto a valid variable name.
14162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14166 ## ----------------------------------- ##
14167 ## Main body of $CONFIG_STATUS script. ##
14168 ## ----------------------------------- ##
14170 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14173 # Save the log message, to keep $0 and so on meaningful, and to
14174 # report actual input values of CONFIG_FILES etc. instead of their
14175 # values after options handling.
14177 This file was extended by OpenBSM $as_me 1.2-alpha3, which was
14178 generated by GNU Autoconf 2.69. Invocation command line was
14180 CONFIG_FILES = $CONFIG_FILES
14181 CONFIG_HEADERS = $CONFIG_HEADERS
14182 CONFIG_LINKS = $CONFIG_LINKS
14183 CONFIG_COMMANDS = $CONFIG_COMMANDS
14186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14191 case $ac_config_files in *"
14192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14195 case $ac_config_headers in *"
14196 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14201 # Files that config.status was made for.
14202 config_files="$ac_config_files"
14203 config_headers="$ac_config_headers"
14204 config_commands="$ac_config_commands"
14208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14210 \`$as_me' instantiates files and other configuration actions
14211 from templates according to the current configuration. Unless the files
14212 and actions are specified as TAGs, all are instantiated by default.
14214 Usage: $0 [OPTION]... [TAG]...
14216 -h, --help print this help, then exit
14217 -V, --version print version number and configuration settings, then exit
14218 --config print configuration, then exit
14219 -q, --quiet, --silent
14220 do not print progress messages
14221 -d, --debug don't remove temporary files
14222 --recheck update $as_me by reconfiguring in the same conditions
14223 --file=FILE[:TEMPLATE]
14224 instantiate the configuration file FILE
14225 --header=FILE[:TEMPLATE]
14226 instantiate the configuration header FILE
14228 Configuration files:
14231 Configuration headers:
14234 Configuration commands:
14237 Report bugs to <trustedbsd-audit@TrustesdBSD.org>."
14240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14241 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14243 OpenBSM config.status 1.2-alpha3
14244 configured by $0, generated by GNU Autoconf 2.69,
14245 with options \\"\$ac_cs_config\\"
14247 Copyright (C) 2012 Free Software Foundation, Inc.
14248 This config.status script is free software; the Free Software Foundation
14249 gives unlimited permission to copy, distribute and modify it."
14256 test -n "\$AWK" || AWK=awk
14259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14260 # The default lists apply if the user does not specify any file.
14266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14283 # Handling of the options.
14284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14287 $as_echo "$ac_cs_version"; exit ;;
14288 --config | --confi | --conf | --con | --co | --c )
14289 $as_echo "$ac_cs_config"; exit ;;
14290 --debug | --debu | --deb | --de | --d | -d )
14292 --file | --fil | --fi | --f )
14295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14296 '') as_fn_error $? "missing file argument" ;;
14298 as_fn_append CONFIG_FILES " '$ac_optarg'"
14299 ac_need_defaults=false;;
14300 --header | --heade | --head | --hea )
14303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14305 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14306 ac_need_defaults=false;;
14308 # Conflict between --help and --header
14309 as_fn_error $? "ambiguous option: \`$1'
14310 Try \`$0 --help' for more information.";;
14311 --help | --hel | -h )
14312 $as_echo "$ac_cs_usage"; exit ;;
14313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14317 # This is an error.
14318 -*) as_fn_error $? "unrecognized option: \`$1'
14319 Try \`$0 --help' for more information." ;;
14321 *) as_fn_append ac_config_targets " $1"
14322 ac_need_defaults=false ;;
14328 ac_configure_extra_args=
14330 if $ac_cs_silent; then
14332 ac_configure_extra_args="$ac_configure_extra_args --silent"
14336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14337 if \$ac_cs_recheck; then
14338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14341 CONFIG_SHELL='$SHELL'
14342 export CONFIG_SHELL
14347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14352 ## Running $as_me. ##
14358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14364 # The HP-UX ksh and POSIX shell print the target directory to stdout
14365 # if CDPATH is set.
14366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14368 sed_quote_subst='$sed_quote_subst'
14369 double_quote_subst='$double_quote_subst'
14370 delay_variable_subst='$delay_variable_subst'
14371 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14372 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14373 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14374 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14375 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14376 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14377 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14378 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14379 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14380 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14381 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14382 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14383 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14384 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14385 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14386 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14387 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14388 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14389 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14390 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14391 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14392 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14393 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14394 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14395 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14396 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14397 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14398 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14399 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14400 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14401 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14402 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14403 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14404 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14405 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14406 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14407 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14408 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14409 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14410 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14411 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14412 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14413 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14414 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14415 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14416 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14417 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14418 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14419 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14420 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14421 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14422 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14423 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14424 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14425 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14426 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14427 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"`'
14428 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14429 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14430 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14431 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14432 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14433 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14434 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14435 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14436 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14437 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14438 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14439 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14440 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14441 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14442 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14443 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14444 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14445 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14446 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14447 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14448 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14449 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14450 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14451 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14452 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14453 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14454 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14455 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14456 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14457 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14458 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14459 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14460 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14461 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14462 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14463 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14464 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14465 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14466 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14467 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14468 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14469 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14470 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14471 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14472 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14473 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14474 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14475 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14476 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14477 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14478 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14479 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14480 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14481 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14482 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14483 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14484 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14485 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14486 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14487 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14488 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14489 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14490 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14491 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14492 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14493 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14494 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14495 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14496 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14497 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14498 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14499 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14500 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14503 LTCFLAGS='$LTCFLAGS'
14504 compiler='$compiler_DEFAULT'
14506 # A function that is used when there is no print builtin or printf.
14507 func_fallback_echo ()
14509 eval 'cat <<_LTECHO_EOF
14514 # Quote evaled strings.
14529 deplibs_check_method \
14534 sharedlib_from_linklib_cmd \
14537 archiver_list_spec \
14543 lt_cv_sys_global_symbol_pipe \
14544 lt_cv_sys_global_symbol_to_cdecl \
14545 lt_cv_sys_global_symbol_to_c_name_address \
14546 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14547 nm_file_list_spec \
14548 lt_prog_compiler_no_builtin_flag \
14549 lt_prog_compiler_pic \
14550 lt_prog_compiler_wl \
14551 lt_prog_compiler_static \
14552 lt_cv_prog_compiler_c_o \
14561 export_dynamic_flag_spec \
14562 whole_archive_flag_spec \
14563 compiler_needs_object \
14565 allow_undefined_flag \
14566 no_undefined_flag \
14567 hardcode_libdir_flag_spec \
14568 hardcode_libdir_separator \
14572 variables_saved_for_relink \
14574 library_names_spec \
14576 install_override_mode \
14580 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14581 *[\\\\\\\`\\"\\\$]*)
14582 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14585 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14590 # Double-quote double-evaled strings.
14591 for var in reload_cmds \
14592 old_postinstall_cmds \
14593 old_postuninstall_cmds \
14595 extract_expsyms_cmds \
14596 old_archive_from_new_cmds \
14597 old_archive_from_expsyms_cmds \
14599 archive_expsym_cmds \
14601 module_expsym_cmds \
14602 export_symbols_cmds \
14606 postuninstall_cmds \
14608 sys_lib_search_path_spec \
14609 sys_lib_dlsearch_path_spec; do
14610 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14611 *[\\\\\\\`\\"\\\$]*)
14612 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14615 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14620 ac_aux_dir='$ac_aux_dir'
14621 xsi_shell='$xsi_shell'
14622 lt_shell_append='$lt_shell_append'
14624 # See if we are running on zsh, and set the options which allow our
14625 # commands through without removal of \ escapes INIT.
14626 if test -n "\${ZSH_VERSION+set}" ; then
14627 setopt NO_GLOB_SUBST
14633 TIMESTAMP='$TIMESTAMP'
14639 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14645 # Handling of arguments.
14646 for ac_config_target in $ac_config_targets
14648 case $ac_config_target in
14649 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
14650 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14651 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14652 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14653 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
14654 "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
14655 "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
14656 "bin/auditdistd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditdistd/Makefile" ;;
14657 "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
14658 "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
14659 "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
14660 "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
14661 "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
14662 "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
14663 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14664 "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
14665 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14666 "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
14667 "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
14668 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14669 "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
14670 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14672 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14677 # If the user did not use the arguments to specify the items to instantiate,
14678 # then the envvar interface is used. Set only those that are not.
14679 # We use the long form for the default assignment because of an extremely
14680 # bizarre bug on SunOS 4.1.3.
14681 if $ac_need_defaults; then
14682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14687 # Have a temporary directory for convenience. Make it in the build tree
14688 # simply because there is no reason against having it here, and in addition,
14689 # creating and moving files from /tmp can sometimes cause problems.
14690 # Hook for its removal unless debugging.
14691 # Note that there is a small window in which the directory will not be cleaned:
14692 # after its creation but before its name has been assigned to `$tmp'.
14696 trap 'exit_status=$?
14697 : "${ac_tmp:=$tmp}"
14698 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14700 trap 'as_fn_exit 1' 1 2 13 15
14702 # Create a (secure) tmp directory for tmp files.
14705 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14709 tmp=./conf$$-$RANDOM
14710 (umask 077 && mkdir "$tmp")
14711 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14714 # Set up the scripts for CONFIG_FILES section.
14715 # No need to generate them if there are no CONFIG_FILES.
14716 # This happens for instance with `./config.status config.h'.
14717 if test -n "$CONFIG_FILES"; then
14720 ac_cr=`echo X | tr X '\015'`
14721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14722 # But we know of no other shell where ac_cr would be empty at this
14723 # point, so we can use a bashism as a fallback.
14724 if test "x$ac_cr" = x; then
14725 eval ac_cr=\$\'\\r\'
14727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14731 ac_cs_awk_cr=$ac_cr
14734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14739 echo "cat >conf$$subs.awk <<_ACEOF" &&
14740 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14742 } >conf$$subs.sh ||
14743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14746 for ac_last_try in false false false false false :; do
14747 . ./conf$$subs.sh ||
14748 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14750 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14751 if test $ac_delim_n = $ac_delim_num; then
14753 elif $ac_last_try; then
14754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14759 rm -f conf$$subs.sh
14761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14762 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14766 s/^/S["/; s/!.*/"]=/
14776 s/\(.\{148\}\)..*/\1/
14778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14790 s/\(.\{148\}\)..*/\1/
14792 s/["\\]/\\&/g; s/^/"/; s/$/"/
14796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14801 ' <conf$$subs.awk | sed '
14806 ' >>$CONFIG_STATUS || ac_write_fail=1
14807 rm -f conf$$subs.awk
14808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14810 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14811 for (key in S) S_is_set[key] = 1
14817 nfields = split(line, field, "@")
14819 len = length(field[1])
14820 for (i = 2; i < nfields; i++) {
14822 keylen = length(key)
14823 if (S_is_set[key]) {
14825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14826 len += length(value) + length(field[++i])
14837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14839 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14842 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14843 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14846 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14847 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14848 # trailing colons and then remove the whole line if VPATH becomes empty
14849 # (actually we leave an empty line to preserve line numbers).
14850 if test "x$srcdir" = x.; then
14851 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14870 fi # test -n "$CONFIG_FILES"
14872 # Set up the scripts for CONFIG_HEADERS section.
14873 # No need to generate them if there are no CONFIG_HEADERS.
14874 # This happens for instance with `./config.status Makefile'.
14875 if test -n "$CONFIG_HEADERS"; then
14876 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14880 # Transform confdefs.h into an awk script `defines.awk', embedded as
14881 # here-document in config.status, that substitutes the proper values into
14882 # config.h.in to produce config.h.
14884 # Create a delimiter string that does not exist in confdefs.h, to ease
14885 # handling of long lines.
14887 for ac_last_try in false false :; do
14888 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14889 if test -z "$ac_tt"; then
14891 elif $ac_last_try; then
14892 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14898 # For the awk script, D is an array of macro values keyed by name,
14899 # likewise P contains macro parameters if any. Preserve backslash
14900 # newline sequences.
14902 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14904 s/.\{148\}/&'"$ac_delim"'/g
14907 s/^[ ]*#[ ]*define[ ][ ]*/ /
14914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14921 D["\1"]=" \3\\\\\\n"\\/p
14923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14928 s/.\{148\}/&'"$ac_delim"'/g
14933 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14936 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14938 ' <confdefs.h | sed '
14939 s/'"$ac_delim"'/"\\\
14940 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943 for (key in D) D_is_set[key] = 1
14946 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14948 split(line, arg, " ")
14949 if (arg[1] == "#") {
14953 defundef = substr(arg[1], 2)
14956 split(mac1, mac2, "(") #)
14958 prefix = substr(line, 1, index(line, defundef) - 1)
14959 if (D_is_set[macro]) {
14960 # Preserve the white space surrounding the "#".
14961 print prefix "define", macro P[macro] D[macro]
14964 # Replace #undef with comments. This is necessary, for example,
14965 # in the case of _POSIX_SOURCE, which is predefined and required
14966 # on some systems where configure will not decide to define it.
14967 if (defundef == "undef") {
14968 print "/*", prefix defundef, macro, "*/"
14976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14977 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14978 fi # test -n "$CONFIG_HEADERS"
14981 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14986 :[FHLC]) ac_mode=$ac_tag; continue;;
14988 case $ac_mode$ac_tag in
14990 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14991 :[FH]-) ac_tag=-:-;;
14992 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15009 -) ac_f="$ac_tmp/stdin";;
15010 *) # Look for the file first in the build tree, then in the source tree
15011 # (if the path is not absolute). The absolute path cannot be DOS-style,
15012 # because $ac_f cannot contain `:'.
15016 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15018 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15020 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15021 as_fn_append ac_file_inputs " '$ac_f'"
15024 # Let's still pretend it is `configure' which instantiates (i.e., don't
15025 # use $as_me), people would be surprised to read:
15026 # /* config.h. Generated by config.status. */
15027 configure_input='Generated from '`
15028 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15030 if test x"$ac_file" != x-; then
15031 configure_input="$ac_file. $configure_input"
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15033 $as_echo "$as_me: creating $ac_file" >&6;}
15035 # Neutralize special characters interpreted by sed in replacement strings.
15036 case $configure_input in #(
15037 *\&* | *\|* | *\\* )
15038 ac_sed_conf_input=`$as_echo "$configure_input" |
15039 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15040 *) ac_sed_conf_input=$configure_input;;
15044 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15050 ac_dir=`$as_dirname -- "$ac_file" ||
15051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15052 X"$ac_file" : 'X\(//\)[^/]' \| \
15053 X"$ac_file" : 'X\(//\)$' \| \
15054 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15055 $as_echo X"$ac_file" |
15056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15060 /^X\(\/\/\)[^/].*/{
15073 as_dir="$ac_dir"; as_fn_mkdir_p
15077 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15079 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15080 # A ".." for each directory in $ac_dir_suffix.
15081 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15082 case $ac_top_builddir_sub in
15083 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15084 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15087 ac_abs_top_builddir=$ac_pwd
15088 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15089 # for backward compatibility:
15090 ac_top_builddir=$ac_top_build_prefix
15093 .) # We are building in place.
15095 ac_top_srcdir=$ac_top_builddir_sub
15096 ac_abs_top_srcdir=$ac_pwd ;;
15097 [\\/]* | ?:[\\/]* ) # Absolute name.
15098 ac_srcdir=$srcdir$ac_dir_suffix;
15099 ac_top_srcdir=$srcdir
15100 ac_abs_top_srcdir=$srcdir ;;
15101 *) # Relative name.
15102 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15103 ac_top_srcdir=$ac_top_build_prefix$srcdir
15104 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15106 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15116 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15117 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15119 ac_MKDIR_P=$MKDIR_P
15121 [\\/$]* | ?:[\\/]* ) ;;
15122 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127 # If the template does not know about datarootdir, expand it.
15128 # FIXME: This hack should be removed a few years after 2.60.
15129 ac_datarootdir_hack=; ac_datarootdir_seen=
15140 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141 *datarootdir*) ac_datarootdir_seen=yes;;
15142 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147 ac_datarootdir_hack='
15148 s&@datadir@&$datadir&g
15149 s&@docdir@&$docdir&g
15150 s&@infodir@&$infodir&g
15151 s&@localedir@&$localedir&g
15152 s&@mandir@&$mandir&g
15153 s&\\\${datarootdir}&$datarootdir&g' ;;
15157 # Neutralize VPATH when `$srcdir' = `.'.
15158 # Shell code in configure.ac might set extrasub.
15159 # FIXME: do we really want to maintain this feature?
15160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161 ac_sed_extra="$ac_vpsub
15164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15167 s|@configure_input@|$ac_sed_conf_input|;t t
15168 s&@top_builddir@&$ac_top_builddir_sub&;t t
15169 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170 s&@srcdir@&$ac_srcdir&;t t
15171 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172 s&@top_srcdir@&$ac_top_srcdir&;t t
15173 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174 s&@builddir@&$ac_builddir&;t t
15175 s&@abs_builddir@&$ac_abs_builddir&;t t
15176 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177 s&@INSTALL@&$ac_INSTALL&;t t
15178 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15179 $ac_datarootdir_hack
15181 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15182 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15184 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15185 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15186 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15187 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15189 which seems to be undefined. Please make sure it is defined" >&5
15190 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15191 which seems to be undefined. Please make sure it is defined" >&2;}
15193 rm -f "$ac_tmp/stdin"
15195 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15196 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15198 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15204 if test x"$ac_file" != x-; then
15206 $as_echo "/* $configure_input */" \
15207 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15208 } >"$ac_tmp/config.h" \
15209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15210 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15212 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15215 mv "$ac_tmp/config.h" "$ac_file" \
15216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15219 $as_echo "/* $configure_input */" \
15220 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15221 || as_fn_error $? "could not create -" "$LINENO" 5
15223 # Compute "$ac_file"'s index in $config_headers.
15226 for _am_header in $config_headers :; do
15227 case $_am_header in
15228 $_am_arg | $_am_arg:* )
15231 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15234 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15235 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15236 X"$_am_arg" : 'X\(//\)[^/]' \| \
15237 X"$_am_arg" : 'X\(//\)$' \| \
15238 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15239 $as_echo X"$_am_arg" |
15240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15244 /^X\(\/\/\)[^/].*/{
15256 s/.*/./; q'`/stamp-h$_am_stamp_count
15259 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15260 $as_echo "$as_me: executing $ac_file commands" >&6;}
15265 case $ac_file$ac_mode in
15268 # See if we are running on zsh, and set the options which allow our
15269 # commands through without removal of \ escapes.
15270 if test -n "${ZSH_VERSION+set}" ; then
15271 setopt NO_GLOB_SUBST
15274 cfgfile="${ofile}T"
15275 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15278 cat <<_LT_EOF >> "$cfgfile"
15281 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15282 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15283 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15284 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15286 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15287 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15289 # Written by Gordon Matzigkeit, 1996
15291 # This file is part of GNU Libtool.
15293 # GNU Libtool is free software; you can redistribute it and/or
15294 # modify it under the terms of the GNU General Public License as
15295 # published by the Free Software Foundation; either version 2 of
15296 # the License, or (at your option) any later version.
15298 # As a special exception to the GNU General Public License,
15299 # if you distribute this file as part of a program or library that
15300 # is built using GNU Libtool, you may include this file under the
15301 # same distribution terms that you use for the rest of that program.
15303 # GNU Libtool is distributed in the hope that it will be useful,
15304 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15305 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15306 # GNU General Public License for more details.
15308 # You should have received a copy of the GNU General Public License
15309 # along with GNU Libtool; see the file COPYING. If not, a copy
15310 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15311 # obtained by writing to the Free Software Foundation, Inc.,
15312 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15315 # The names of the tagged configurations supported by this script.
15318 # ### BEGIN LIBTOOL CONFIG
15320 # Which release of libtool.m4 was used?
15321 macro_version=$macro_version
15322 macro_revision=$macro_revision
15324 # Whether or not to build shared libraries.
15325 build_libtool_libs=$enable_shared
15327 # Whether or not to build static libraries.
15328 build_old_libs=$enable_static
15330 # What type of objects to build.
15333 # Whether or not to optimize for fast installation.
15334 fast_install=$enable_fast_install
15336 # Shell to use when invoking shell scripts.
15339 # An echo program that protects backslashes.
15342 # The PATH separator for the build system.
15343 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15346 host_alias=$host_alias
15350 # The build system.
15351 build_alias=$build_alias
15355 # A sed program that does not truncate output.
15358 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15359 Xsed="\$SED -e 1s/^X//"
15361 # A grep program that handles long lines.
15367 # A literal string matcher.
15370 # A BSD- or MS-compatible name lister.
15373 # Whether we need soft or hard links.
15376 # What is the maximum length of a command?
15377 max_cmd_len=$max_cmd_len
15379 # Object file suffix (normally "o").
15382 # Executable file suffix (normally "").
15385 # whether the shell understands "unset".
15388 # turn spaces into newlines.
15391 # turn newlines into spaces.
15394 # convert \$build file names to \$host format.
15395 to_host_file_cmd=$lt_cv_to_host_file_cmd
15397 # convert \$build files to toolchain format.
15398 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15400 # An object symbol dumper.
15401 OBJDUMP=$lt_OBJDUMP
15403 # Method to check whether dependent libraries are shared objects.
15404 deplibs_check_method=$lt_deplibs_check_method
15406 # Command to use when deplibs_check_method = "file_magic".
15407 file_magic_cmd=$lt_file_magic_cmd
15409 # How to find potential files when deplibs_check_method = "file_magic".
15410 file_magic_glob=$lt_file_magic_glob
15412 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15413 want_nocaseglob=$lt_want_nocaseglob
15415 # DLL creation program.
15416 DLLTOOL=$lt_DLLTOOL
15418 # Command to associate shared and link libraries.
15419 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15424 # Flags to create an archive.
15425 AR_FLAGS=$lt_AR_FLAGS
15427 # How to feed a file listing to the archiver.
15428 archiver_list_spec=$lt_archiver_list_spec
15430 # A symbol stripping program.
15433 # Commands used to install an old-style archive.
15435 old_postinstall_cmds=$lt_old_postinstall_cmds
15436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15438 # Whether to use a lock for old archive extraction.
15439 lock_old_archive_extraction=$lock_old_archive_extraction
15444 # LTCC compiler flags.
15445 LTCFLAGS=$lt_CFLAGS
15447 # Take the output of nm and produce a listing of raw symbols and C names.
15448 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15450 # Transform the output of nm in a proper C declaration.
15451 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15453 # Transform the output of nm in a C name address pair.
15454 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15456 # Transform the output of nm in a C name address pair when lib prefix is needed.
15457 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15459 # Specify filename containing input files for \$NM.
15460 nm_file_list_spec=$lt_nm_file_list_spec
15462 # The root where to search for dependent libraries,and in which our libraries should be installed.
15463 lt_sysroot=$lt_sysroot
15465 # The name of the directory that contains temporary libtool files.
15468 # Used to examine libraries when file_magic_cmd begins with "file".
15469 MAGIC_CMD=$MAGIC_CMD
15471 # Must we lock files when doing compilation?
15472 need_locks=$lt_need_locks
15475 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15477 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15478 DSYMUTIL=$lt_DSYMUTIL
15480 # Tool to change global to local symbols on Mac OS X.
15483 # Tool to manipulate fat objects and archives on Mac OS X.
15486 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15489 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15490 OTOOL64=$lt_OTOOL64
15492 # Old archive suffix (normally "a").
15495 # Shared library suffix (normally ".so").
15496 shrext_cmds=$lt_shrext_cmds
15498 # The commands to extract the exported symbol list from a shared archive.
15499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15501 # Variables whose values should be saved in libtool wrapper scripts and
15502 # restored at link time.
15503 variables_saved_for_relink=$lt_variables_saved_for_relink
15505 # Do we need the "lib" prefix for modules?
15506 need_lib_prefix=$need_lib_prefix
15508 # Do we need a version for libraries?
15509 need_version=$need_version
15511 # Library versioning type.
15512 version_type=$version_type
15514 # Shared library runtime path variable.
15515 runpath_var=$runpath_var
15517 # Shared library path variable.
15518 shlibpath_var=$shlibpath_var
15520 # Is shlibpath searched before the hard-coded library search path?
15521 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15523 # Format of library name prefix.
15524 libname_spec=$lt_libname_spec
15526 # List of archive names. First name is the real one, the rest are links.
15527 # The last name is the one that the linker finds with -lNAME
15528 library_names_spec=$lt_library_names_spec
15530 # The coded name of the library, if different from the real name.
15531 soname_spec=$lt_soname_spec
15533 # Permission mode override for installation of shared libraries.
15534 install_override_mode=$lt_install_override_mode
15536 # Command to use after installation of a shared archive.
15537 postinstall_cmds=$lt_postinstall_cmds
15539 # Command to use after uninstallation of a shared archive.
15540 postuninstall_cmds=$lt_postuninstall_cmds
15542 # Commands used to finish a libtool library installation in a directory.
15543 finish_cmds=$lt_finish_cmds
15545 # As "finish_cmds", except a single script fragment to be evaled but
15547 finish_eval=$lt_finish_eval
15549 # Whether we should hardcode library paths into libraries.
15550 hardcode_into_libs=$hardcode_into_libs
15552 # Compile-time system search path for libraries.
15553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15555 # Run-time system search path for libraries.
15556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15558 # Whether dlopen is supported.
15559 dlopen_support=$enable_dlopen
15561 # Whether dlopen of programs is supported.
15562 dlopen_self=$enable_dlopen_self
15564 # Whether dlopen of statically linked programs is supported.
15565 dlopen_self_static=$enable_dlopen_self_static
15567 # Commands to strip libraries.
15568 old_striplib=$lt_old_striplib
15569 striplib=$lt_striplib
15572 # The linker used to build libraries.
15575 # How to create reloadable object files.
15576 reload_flag=$lt_reload_flag
15577 reload_cmds=$lt_reload_cmds
15579 # Commands used to build an old-style archive.
15580 old_archive_cmds=$lt_old_archive_cmds
15582 # A language specific compiler.
15585 # Is the compiler the GNU compiler?
15588 # Compiler flag to turn off builtin functions.
15589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15591 # Additional compiler flags for building library objects.
15592 pic_flag=$lt_lt_prog_compiler_pic
15594 # How to pass a linker flag through the compiler.
15595 wl=$lt_lt_prog_compiler_wl
15597 # Compiler flag to prevent dynamic linking.
15598 link_static_flag=$lt_lt_prog_compiler_static
15600 # Does compiler simultaneously support -c and -o options?
15601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15603 # Whether or not to add -lc for building shared libraries.
15604 build_libtool_need_lc=$archive_cmds_need_lc
15606 # Whether or not to disallow shared libs when runtime libs are static.
15607 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15609 # Compiler flag to allow reflexive dlopens.
15610 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15612 # Compiler flag to generate shared objects directly from archives.
15613 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15615 # Whether the compiler copes with passing no objects directly.
15616 compiler_needs_object=$lt_compiler_needs_object
15618 # Create an old-style archive from a shared archive.
15619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15621 # Create a temporary old-style archive to link instead of a shared archive.
15622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15624 # Commands used to build a shared archive.
15625 archive_cmds=$lt_archive_cmds
15626 archive_expsym_cmds=$lt_archive_expsym_cmds
15628 # Commands used to build a loadable module if different from building
15629 # a shared archive.
15630 module_cmds=$lt_module_cmds
15631 module_expsym_cmds=$lt_module_expsym_cmds
15633 # Whether we are building with GNU ld or not.
15634 with_gnu_ld=$lt_with_gnu_ld
15636 # Flag that allows shared libraries with undefined symbols to be built.
15637 allow_undefined_flag=$lt_allow_undefined_flag
15639 # Flag that enforces no undefined symbols.
15640 no_undefined_flag=$lt_no_undefined_flag
15642 # Flag to hardcode \$libdir into a binary during linking.
15643 # This must work even if \$libdir does not exist
15644 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15646 # Whether we need a single "-rpath" flag with a separated argument.
15647 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15649 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15650 # DIR into the resulting binary.
15651 hardcode_direct=$hardcode_direct
15653 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15654 # DIR into the resulting binary and the resulting library dependency is
15655 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15656 # library is relocated.
15657 hardcode_direct_absolute=$hardcode_direct_absolute
15659 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15660 # into the resulting binary.
15661 hardcode_minus_L=$hardcode_minus_L
15663 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15664 # into the resulting binary.
15665 hardcode_shlibpath_var=$hardcode_shlibpath_var
15667 # Set to "yes" if building a shared library automatically hardcodes DIR
15668 # into the library and all subsequent libraries and executables linked
15670 hardcode_automatic=$hardcode_automatic
15672 # Set to yes if linker adds runtime paths of dependent libraries
15673 # to runtime path list.
15674 inherit_rpath=$inherit_rpath
15676 # Whether libtool must link a program against all its dependency libraries.
15677 link_all_deplibs=$link_all_deplibs
15679 # Set to "yes" if exported symbols are required.
15680 always_export_symbols=$always_export_symbols
15682 # The commands to list exported symbols.
15683 export_symbols_cmds=$lt_export_symbols_cmds
15685 # Symbols that should not be listed in the preloaded symbols.
15686 exclude_expsyms=$lt_exclude_expsyms
15688 # Symbols that must always be exported.
15689 include_expsyms=$lt_include_expsyms
15691 # Commands necessary for linking programs (against libraries) with templates.
15692 prelink_cmds=$lt_prelink_cmds
15694 # Commands necessary for finishing linking programs.
15695 postlink_cmds=$lt_postlink_cmds
15697 # Specify filename containing input files.
15698 file_list_spec=$lt_file_list_spec
15700 # How to hardcode a shared library path into an executable.
15701 hardcode_action=$hardcode_action
15703 # ### END LIBTOOL CONFIG
15709 cat <<\_LT_EOF >> "$cfgfile"
15710 # AIX sometimes has problems with the GCC collect2 program. For some
15711 # reason, if we set the COLLECT_NAMES environment variable, the problems
15712 # vanish in a puff of smoke.
15713 if test "X${COLLECT_NAMES+set}" != Xset; then
15715 export COLLECT_NAMES
15722 ltmain="$ac_aux_dir/ltmain.sh"
15725 # We use sed instead of cat because bash on DJGPP gets confused if
15726 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15727 # text mode, it properly converts lines to CR/LF. This bash problem
15728 # is reportedly fixed, but why not run on old versions too?
15729 sed '$q' "$ltmain" >> "$cfgfile" \
15730 || (rm -f "$cfgfile"; exit 1)
15732 if test x"$xsi_shell" = xyes; then
15733 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15737 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15738 \ * ) func_dirname_result="${3}" ;;\
15740 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15741 && mv -f "$cfgfile.tmp" "$cfgfile" \
15742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15743 test 0 -eq $? || _lt_function_replace_fail=:
15746 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15749 \ func_basename_result="${1##*/}"\
15750 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15751 && mv -f "$cfgfile.tmp" "$cfgfile" \
15752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15753 test 0 -eq $? || _lt_function_replace_fail=:
15756 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15757 func_dirname_and_basename ()\
15760 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15761 \ * ) func_dirname_result="${3}" ;;\
15763 \ func_basename_result="${1##*/}"\
15764 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15765 && mv -f "$cfgfile.tmp" "$cfgfile" \
15766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15767 test 0 -eq $? || _lt_function_replace_fail=:
15770 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15773 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15774 \ # positional parameters, so assign one to ordinary parameter first.\
15775 \ func_stripname_result=${3}\
15776 \ func_stripname_result=${func_stripname_result#"${1}"}\
15777 \ func_stripname_result=${func_stripname_result%"${2}"}\
15778 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15779 && mv -f "$cfgfile.tmp" "$cfgfile" \
15780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15781 test 0 -eq $? || _lt_function_replace_fail=:
15784 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15785 func_split_long_opt ()\
15787 \ func_split_long_opt_name=${1%%=*}\
15788 \ func_split_long_opt_arg=${1#*=}\
15789 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15790 && mv -f "$cfgfile.tmp" "$cfgfile" \
15791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15792 test 0 -eq $? || _lt_function_replace_fail=:
15795 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15796 func_split_short_opt ()\
15798 \ func_split_short_opt_arg=${1#??}\
15799 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15800 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15801 && mv -f "$cfgfile.tmp" "$cfgfile" \
15802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15803 test 0 -eq $? || _lt_function_replace_fail=:
15806 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15810 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15811 \ *) func_lo2o_result=${1} ;;\
15813 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15814 && mv -f "$cfgfile.tmp" "$cfgfile" \
15815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15816 test 0 -eq $? || _lt_function_replace_fail=:
15819 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15822 func_xform_result=${1%.*}.lo\
15823 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15824 && mv -f "$cfgfile.tmp" "$cfgfile" \
15825 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15826 test 0 -eq $? || _lt_function_replace_fail=:
15829 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15832 func_arith_result=$(( $* ))\
15833 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15834 && mv -f "$cfgfile.tmp" "$cfgfile" \
15835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15836 test 0 -eq $? || _lt_function_replace_fail=:
15839 sed -e '/^func_len ()$/,/^} # func_len /c\
15842 func_len_result=${#1}\
15843 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15844 && mv -f "$cfgfile.tmp" "$cfgfile" \
15845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15846 test 0 -eq $? || _lt_function_replace_fail=:
15850 if test x"$lt_shell_append" = xyes; then
15851 sed -e '/^func_append ()$/,/^} # func_append /c\
15854 eval "${1}+=\\${2}"\
15855 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15856 && mv -f "$cfgfile.tmp" "$cfgfile" \
15857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15858 test 0 -eq $? || _lt_function_replace_fail=:
15861 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15862 func_append_quoted ()\
15864 \ func_quote_for_eval "${2}"\
15865 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15866 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15867 && mv -f "$cfgfile.tmp" "$cfgfile" \
15868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15869 test 0 -eq $? || _lt_function_replace_fail=:
15872 # Save a `func_append' function call where possible by direct use of '+='
15873 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15874 && mv -f "$cfgfile.tmp" "$cfgfile" \
15875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15876 test 0 -eq $? || _lt_function_replace_fail=:
15878 # Save a `func_append' function call even when '+=' is not available
15879 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15880 && mv -f "$cfgfile.tmp" "$cfgfile" \
15881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15882 test 0 -eq $? || _lt_function_replace_fail=:
15885 if test x"$_lt_function_replace_fail" = x":"; then
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15887 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15891 mv -f "$cfgfile" "$ofile" ||
15892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15896 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15897 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15898 # are listed without --file. Let's play safe and only enable the eval
15899 # if we detect the quoting.
15900 case $CONFIG_FILES in
15901 *\'*) eval set x "$CONFIG_FILES" ;;
15902 *) set x $CONFIG_FILES ;;
15907 # Strip MF so we end up with the name of the file.
15908 mf=`echo "$mf" | sed -e 's/:.*$//'`
15909 # Check whether this is an Automake generated Makefile or not.
15910 # We used to match only the files named 'Makefile.in', but
15911 # some people rename them; so instead we look at the file content.
15912 # Grep'ing the first line is not enough: some people post-process
15913 # each Makefile.in and add a new line on top of each file to say so.
15914 # Grep'ing the whole file is not good either: AIX grep has a line
15915 # limit of 2048, but all sed's we know have understand at least 4000.
15916 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15917 dirpart=`$as_dirname -- "$mf" ||
15918 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15919 X"$mf" : 'X\(//\)[^/]' \| \
15920 X"$mf" : 'X\(//\)$' \| \
15921 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15927 /^X\(\/\/\)[^/].*/{
15943 # Extract the definition of DEPDIR, am__include, and am__quote
15944 # from the Makefile without running 'make'.
15945 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15946 test -z "$DEPDIR" && continue
15947 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15948 test -z "am__include" && continue
15949 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15950 # Find all dependency output files, they are included files with
15951 # $(DEPDIR) in their names. We invoke sed twice because it is the
15952 # simplest approach to changing $(DEPDIR) to its actual value in the
15954 for file in `sed -n "
15955 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15956 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15957 # Make sure the directory exists.
15958 test -f "$dirpart/$file" && continue
15959 fdir=`$as_dirname -- "$file" ||
15960 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15961 X"$file" : 'X\(//\)[^/]' \| \
15962 X"$file" : 'X\(//\)$' \| \
15963 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15964 $as_echo X"$file" |
15965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15969 /^X\(\/\/\)[^/].*/{
15982 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15983 # echo "creating $dirpart/$file"
15984 echo '# dummy' > "$dirpart/$file"
15996 ac_clean_files=$ac_clean_files_save
15998 test $ac_write_fail = 0 ||
15999 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16002 # configure is writing to config.log, and then calls config.status.
16003 # config.status does its own redirection, appending to config.log.
16004 # Unfortunately, on DOS this fails, as config.log is still kept open
16005 # by configure, so config.status won't be able to write to it; its
16006 # output is simply discarded. So we exec the FD to /dev/null,
16007 # effectively closing config.log, so it can be properly (re)opened and
16008 # appended to by config.status. When coming back to configure, we
16009 # need to make the FD available again.
16010 if test "$no_create" != yes; then
16012 ac_config_status_args=
16013 test "$silent" = yes &&
16014 ac_config_status_args="$ac_config_status_args --quiet"
16016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16019 # would make configure fail if this is the last instruction.
16020 $ac_cs_success || as_fn_exit 1
16022 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16024 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}