2 # From configure.ac Id: configure.ac 816 2014-09-12 07:50:22Z des .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for OpenPAM 20140912.
6 # Report bugs to <des@des.no>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='OpenPAM'
592 PACKAGE_TARNAME='openpam'
593 PACKAGE_VERSION='20140912'
594 PACKAGE_STRING='OpenPAM 20140912'
595 PACKAGE_BUGREPORT='des@des.no'
596 PACKAGE_URL='http://www.openpam.org/'
598 ac_unique_file="lib/libpam/pam_start.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
650 CUSTOM_MODULES_DIR_FALSE
651 CUSTOM_MODULES_DIR_TRUE
713 INSTALL_STRIP_PROGRAM
755 program_transform_name
768 enable_option_checking
770 enable_dependency_tracking
779 enable_unversioned_modules
785 enable_developer_warnings
786 enable_debugging_symbols
789 ac_precious_vars='build_alias
800 # Initialize some variables set by options.
802 ac_init_version=false
803 ac_unrecognized_opts=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
814 program_transform_name=s,x,x,
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
917 eval enable_$ac_useropt=no ;;
919 -docdir | --docdir | --docdi | --doc | --do)
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
943 eval enable_$ac_useropt=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval with_$ac_useropt=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1234 # Be sure to have absolute directory names.
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261 test "$silent" = yes && exec 6>/dev/null
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1304 ac_srcdir_defaulted=no
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 # Report the --help message.
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1338 \`configure' configures OpenPAM 20140912 to adapt to many kinds of systems.
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1345 Defaults for the options are specified in brackets.
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1369 For better control, use the options below.
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/openpam]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of OpenPAM 20140912:";;
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-dependency-tracking
1419 do not reject slow dependency extractors
1420 --disable-dependency-tracking
1421 speeds up one-time build
1422 --enable-static[=PKGS] build static libraries [default=no]
1423 --enable-shared[=PKGS] build shared libraries [default=yes]
1424 --enable-fast-install[=PKGS]
1425 optimize for fast installation [default=yes]
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --enable-debug turn debugging macros on
1428 --disable-unversioned-modules
1429 support loading of unversioned modules
1430 --enable-developer-warnings
1431 enable strict warnings (default is NO)
1432 --enable-debugging-symbols
1433 enable debugging symbols (default is NO)
1434 --enable-werror use -Werror (default is NO)
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442 --with-sysroot=DIR Search for dependent libraries within DIR
1443 (or the compiler's sysroot if not specified).
1444 --with-modules-dir=DIR OpenPAM modules directory
1445 --without-doc do not build documentation
1446 --with-pam-unix compile sample pam_unix(8) module
1447 --with-pamtest compile test application
1448 --with-su compile sample su(1) implementation
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1463 Report bugs to <des@des.no>.
1464 OpenPAM home page: <http://www.openpam.org/>.
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1494 .) # We are building in place.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1527 OpenPAM configure 20140912
1528 generated by GNU Autoconf 2.69
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_c_try_compile
1579 # ac_fn_c_try_cpp LINENO
1580 # ----------------------
1581 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } > conftest.i && {
1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1616 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619 # the include files in INCLUDES and setting the cache variable VAR
1621 ac_fn_c_check_header_mongrel ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 if eval \${$3+:} false; then :
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if eval \${$3+:} false; then :
1628 $as_echo_n "(cached) " >&6
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 $as_echo "$ac_res" >&6; }
1634 # Is the header compilable?
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636 $as_echo_n "checking $2 usability... " >&6; }
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 ac_header_compiler=yes
1645 ac_header_compiler=no
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649 $as_echo "$ac_header_compiler" >&6; }
1651 # Is the header present?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653 $as_echo_n "checking $2 presence... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1658 if ac_fn_c_try_cpp "$LINENO"; then :
1659 ac_header_preproc=yes
1661 ac_header_preproc=no
1663 rm -f conftest.err conftest.i conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665 $as_echo "$ac_header_preproc" >&6; }
1667 # So? What about this header?
1668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1679 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1683 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ( $as_echo "## ------------------------- ##
1687 ## Report this to des@des.no ##
1688 ## ------------------------- ##"
1689 ) | sed "s/^/$as_me: WARNING: /" >&2
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \${$3+:} false; then :
1695 $as_echo_n "(cached) " >&6
1697 eval "$3=\$ac_header_compiler"
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 } # ac_fn_c_check_header_mongrel
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_link"
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>&5
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725 { { case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_try") 2>&5
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; }; }; then :
1737 $as_echo "$as_me: program exited with status $ac_status" >&5
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=$ac_status
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1766 if ac_fn_c_try_compile "$LINENO"; then :
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 } # ac_fn_c_check_header_compile
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1796 if test -s conftest.err; then
1797 grep -v '^ *+' conftest.err >conftest.er1
1798 cat conftest.er1 >&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 test -x conftest$ac_exeext
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1824 } # ac_fn_c_try_link
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1849 # include <limits.h>
1851 # include <assert.h>
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1878 if ac_fn_c_try_link "$LINENO"; then :
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_func
1892 cat >config.log <<_ACEOF
1893 This file contains any messages produced by compilers while
1894 running configure, to aid debugging if configure makes a mistake.
1896 It was created by OpenPAM $as_me 20140912, which was
1897 generated by GNU Autoconf 2.69. Invocation command line was
1909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1918 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1919 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1922 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1923 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1924 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 test -z "$as_dir" && as_dir=.
1933 $as_echo "PATH: $as_dir"
1949 # Keep a trace of the command line.
1950 # Strip out --no-create and --no-recursion so they do not pile up.
1951 # Strip out --silent because we don't want to record it for future runs.
1952 # Also quote any args containing shell meta-characters.
1953 # Make two passes to allow for proper duplicate-argument suppression.
1957 ac_must_keep_next=false
1963 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965 | -silent | --silent | --silen | --sile | --sil)
1968 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1971 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1973 as_fn_append ac_configure_args1 " '$ac_arg'"
1974 if test $ac_must_keep_next = true; then
1975 ac_must_keep_next=false # Got value, back to normal.
1978 *=* | --config-cache | -C | -disable-* | --disable-* \
1979 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981 | -with-* | --with-* | -without-* | --without-* | --x)
1982 case "$ac_configure_args0 " in
1983 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1986 -* ) ac_must_keep_next=true ;;
1989 as_fn_append ac_configure_args " '$ac_arg'"
1994 { ac_configure_args0=; unset ac_configure_args0;}
1995 { ac_configure_args1=; unset ac_configure_args1;}
1997 # When interrupted or exit'd, cleanup temporary files, and complete
1998 # config.log. We remove comments because anyway the quotes in there
1999 # would cause problems or look ugly.
2000 # WARNING: Use '\'' to represent an apostrophe within the trap.
2001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002 trap 'exit_status=$?
2003 # Save into config.log some information that might help in debugging.
2007 $as_echo "## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##"
2011 # The following way of writing the cache mishandles newlines in values,
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) { eval $ac_var=; unset $ac_var;} ;;
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2043 $as_echo "## ----------------- ##
2044 ## Output variables. ##
2045 ## ----------------- ##"
2047 for ac_var in $ac_subst_vars
2049 eval ac_val=\$$ac_var
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 $as_echo "$ac_var='\''$ac_val'\''"
2057 if test -n "$ac_subst_files"; then
2058 $as_echo "## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##"
2062 for ac_var in $ac_subst_files
2064 eval ac_val=\$$ac_var
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 $as_echo "$ac_var='\''$ac_val'\''"
2073 if test -s confdefs.h; then
2074 $as_echo "## ----------- ##
2081 test "$ac_signal" != 0 &&
2082 $as_echo "$as_me: caught signal $ac_signal"
2083 $as_echo "$as_me: exit $exit_status"
2085 rm -f core *.core core.conftest.* &&
2086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2089 for ac_signal in 1 2 13 15; do
2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2095 rm -f -r conftest* confdefs.h
2097 $as_echo "/* confdefs.h */" > confdefs.h
2099 # Predefined preprocessor variables.
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_NAME "$PACKAGE_NAME"
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_STRING "$PACKAGE_STRING"
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_URL "$PACKAGE_URL"
2126 # Let the site file select an alternate cache file if it wants to.
2127 # Prefer an explicitly selected file to automatically selected ones.
2130 if test -n "$CONFIG_SITE"; then
2131 # We do not want a PATH search for config.site.
2132 case $CONFIG_SITE in #((
2133 -*) ac_site_file1=./$CONFIG_SITE;;
2134 */*) ac_site_file1=$CONFIG_SITE;;
2135 *) ac_site_file1=./$CONFIG_SITE;;
2137 elif test "x$prefix" != xNONE; then
2138 ac_site_file1=$prefix/share/config.site
2139 ac_site_file2=$prefix/etc/config.site
2141 ac_site_file1=$ac_default_prefix/share/config.site
2142 ac_site_file2=$ac_default_prefix/etc/config.site
2144 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2146 test "x$ac_site_file" = xNONE && continue
2147 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150 sed 's/^/| /' "$ac_site_file" >&5
2152 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 as_fn_error $? "failed to load site script $ac_site_file
2155 See \`config.log' for more details" "$LINENO" 5; }
2159 if test -r "$cache_file"; then
2160 # Some versions of bash will fail to source /dev/null (special files
2161 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2162 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 $as_echo "$as_me: loading cache $cache_file" >&6;}
2166 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167 *) . "./$cache_file";;
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 $as_echo "$as_me: creating cache $cache_file" >&6;}
2176 # Check that the precious variables saved in the cache have kept the same
2178 ac_cache_corrupted=false
2179 for ac_var in $ac_precious_vars; do
2180 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181 eval ac_new_set=\$ac_env_${ac_var}_set
2182 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183 eval ac_new_val=\$ac_env_${ac_var}_value
2184 case $ac_old_set,$ac_new_set in
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192 ac_cache_corrupted=: ;;
2195 if test "x$ac_old_val" != "x$ac_new_val"; then
2196 # differences in whitespace do not lead to failure.
2197 ac_old_val_w=`echo x $ac_old_val`
2198 ac_new_val_w=`echo x $ac_new_val`
2199 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202 ac_cache_corrupted=:
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206 eval $ac_var=\$ac_old_val
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2209 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2211 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2214 # Pass precious variables to config.status.
2215 if test "$ac_new_set" = set; then
2217 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 *) ac_arg=$ac_var=$ac_new_val ;;
2220 case " $ac_configure_args " in
2221 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2222 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2226 if $ac_cache_corrupted; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2233 ## -------------------- ##
2234 ## Main body of script. ##
2235 ## -------------------- ##
2238 ac_cpp='$CPP $CPPFLAGS'
2239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246 am__api_version='1.14'
2249 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250 if test -f "$ac_dir/install-sh"; then
2252 ac_install_sh="$ac_aux_dir/install-sh -c"
2254 elif test -f "$ac_dir/install.sh"; then
2256 ac_install_sh="$ac_aux_dir/install.sh -c"
2258 elif test -f "$ac_dir/shtool"; then
2260 ac_install_sh="$ac_aux_dir/shtool install -c"
2264 if test -z "$ac_aux_dir"; then
2265 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2277 # Find a good install program. We prefer a C program (faster),
2278 # so one script is as good as another. But avoid the broken or
2279 # incompatible versions:
2280 # SysV /etc/install, /usr/sbin/install
2281 # SunOS /usr/etc/install
2282 # IRIX /sbin/install
2284 # AmigaOS /C/install, which installs bootblocks on floppy discs
2285 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288 # OS/2's system install, which has a completely different semantic
2289 # ./install, which can be erroneously created by make from ./install.sh.
2290 # Reject install programs that cannot install multiple files.
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2292 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2293 if test -z "$INSTALL"; then
2294 if ${ac_cv_path_install+:} false; then :
2295 $as_echo_n "(cached) " >&6
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir=.
2302 # Account for people who put trailing slashes in PATH elements.
2303 case $as_dir/ in #((
2304 ./ | .// | /[cC]/* | \
2305 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2309 # OSF1 and SCO ODT 3.0 have their own names for install.
2310 # Don't use installbsd from OSF since it installs stuff as root
2312 for ac_prog in ginstall scoinst install; do
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2315 if test $ac_prog = install &&
2316 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # AIX install. It has an incompatible calling convention.
2319 elif test $ac_prog = install &&
2320 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321 # program-specific install script used by HP pwplus--don't use.
2324 rm -rf conftest.one conftest.two conftest.dir
2325 echo one > conftest.one
2326 echo two > conftest.two
2328 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329 test -s conftest.one && test -s conftest.two &&
2330 test -s conftest.dir/conftest.one &&
2331 test -s conftest.dir/conftest.two
2333 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2346 rm -rf conftest.one conftest.two conftest.dir
2349 if test "${ac_cv_path_install+set}" = set; then
2350 INSTALL=$ac_cv_path_install
2352 # As a last resort, use the slow shell script. Don't cache a
2353 # value for INSTALL within a source directory, because that will
2354 # break other packages using the cache if that directory is
2355 # removed, or if the value is a relative name.
2356 INSTALL=$ac_install_sh
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2360 $as_echo "$INSTALL" >&6; }
2362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363 # It thinks the first close brace ends the variable substitution.
2364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2371 $as_echo_n "checking whether build environment is sane... " >&6; }
2372 # Reject unsafe characters in $srcdir or the absolute working directory
2373 # name. Accept space and tab only in the latter.
2377 *[\\\"\#\$\&\'\`$am_lf]*)
2378 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2381 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2382 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2385 # Do 'set' in a subshell so we don't clobber the current shell's
2386 # arguments. Must try -L first in case configure is actually a
2387 # symlink; some systems play weird games with the mod time of symlinks
2388 # (eg FreeBSD returns the mod time of the symlink's containing
2392 for am_try in 1 2; do
2393 echo "timestamp, slept: $am_has_slept" > conftest.file
2394 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2395 if test "$*" = "X"; then
2397 set X `ls -t "$srcdir/configure" conftest.file`
2399 if test "$*" != "X $srcdir/configure conftest.file" \
2400 && test "$*" != "X conftest.file $srcdir/configure"; then
2402 # If neither matched, then we have a broken ls. This can happen
2403 # if, for instance, CONFIG_SHELL is bash and it inherits a
2404 # broken ls alias from the environment. This has actually
2405 # happened. Such a system could not be considered "sane".
2406 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2407 alias in your environment" "$LINENO" 5
2409 if test "$2" = conftest.file || test $am_try -eq 2; then
2416 test "$2" = conftest.file
2422 as_fn_error $? "newly created file is older than distributed files!
2423 Check your system clock" "$LINENO" 5
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2426 $as_echo "yes" >&6; }
2427 # If we didn't sleep, we still need to ensure time stamps of config.status and
2428 # generated files are strictly newer.
2430 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2437 test "$program_prefix" != NONE &&
2438 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439 # Use a double $ so make ignores it.
2440 test "$program_suffix" != NONE &&
2441 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442 # Double any \ or $.
2443 # By default was `s,x,x', remove it if useless.
2444 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2447 # expand $ac_aux_dir to an absolute path
2448 am_aux_dir=`cd $ac_aux_dir && pwd`
2450 if test x"${MISSING+set}" != xset; then
2453 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2455 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2458 # Use eval to expand $SHELL
2459 if eval "$MISSING --is-lightweight"; then
2460 am_missing_run="$MISSING "
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2464 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2467 if test x"${install_sh}" != xset; then
2470 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2472 install_sh="\${SHELL} $am_aux_dir/install-sh"
2476 # Installed binaries are usually stripped using 'strip' when the user
2477 # run "make install-strip". However 'strip' might not be the right
2478 # tool to use in cross-compilation environments, therefore Automake
2479 # will honor the 'STRIP' environment variable to overrule this program.
2480 if test "$cross_compiling" != no; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}strip; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_STRIP+:} false; then :
2487 $as_echo_n "(cached) " >&6
2489 if test -n "$STRIP"; then
2490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 STRIP=$ac_cv_prog_STRIP
2510 if test -n "$STRIP"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2512 $as_echo "$STRIP" >&6; }
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2520 if test -z "$ac_cv_prog_STRIP"; then
2522 # Extract the first word of "strip", so it can be a program name with args.
2523 set dummy strip; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2527 $as_echo_n "(cached) " >&6
2529 if test -n "$ac_ct_STRIP"; then
2530 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_STRIP="strip"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550 if test -n "$ac_ct_STRIP"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2552 $as_echo "$ac_ct_STRIP" >&6; }
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2558 if test "x$ac_ct_STRIP" = x; then
2561 case $cross_compiling:$ac_tool_warned in
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565 ac_tool_warned=yes ;;
2570 STRIP="$ac_cv_prog_STRIP"
2574 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2577 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2578 if test -z "$MKDIR_P"; then
2579 if ${ac_cv_path_mkdir+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2586 test -z "$as_dir" && as_dir=.
2587 for ac_prog in mkdir gmkdir; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2590 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2591 'mkdir (GNU coreutils) '* | \
2592 'mkdir (coreutils) '* | \
2593 'mkdir (fileutils) '4.1*)
2594 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2604 test -d ./--version && rmdir ./--version
2605 if test "${ac_cv_path_mkdir+set}" = set; then
2606 MKDIR_P="$ac_cv_path_mkdir -p"
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for MKDIR_P within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the value is a relative name.
2612 MKDIR_P="$ac_install_sh -d"
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2616 $as_echo "$MKDIR_P" >&6; }
2618 for ac_prog in gawk mawk nawk awk
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_AWK+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 if test -n "$AWK"; then
2628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_AWK="$ac_prog"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 if test -n "$AWK"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2650 $as_echo "$AWK" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2657 test -n "$AWK" && break
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2661 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2663 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2664 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2665 $as_echo_n "(cached) " >&6
2667 cat >conftest.make <<\_ACEOF
2670 @echo '@@@%%%=$(MAKE)=@@@%%%'
2672 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2673 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2675 eval ac_cv_prog_make_${ac_make}_set=yes;;
2677 eval ac_cv_prog_make_${ac_make}_set=no;;
2681 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2683 $as_echo "yes" >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 SET_MAKE="MAKE=${MAKE-make}"
2691 rm -rf .tst 2>/dev/null
2692 mkdir .tst 2>/dev/null
2693 if test -d .tst; then
2698 rmdir .tst 2>/dev/null
2700 # Check whether --enable-silent-rules was given.
2701 if test "${enable_silent_rules+set}" = set; then :
2702 enableval=$enable_silent_rules;
2705 case $enable_silent_rules in # (((
2706 yes) AM_DEFAULT_VERBOSITY=0;;
2707 no) AM_DEFAULT_VERBOSITY=1;;
2708 *) AM_DEFAULT_VERBOSITY=1;;
2710 am_make=${MAKE-make}
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2712 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2713 if ${am_cv_make_support_nested_variables+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 if $as_echo 'TRUE=$(BAR$(V))
2722 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2723 am_cv_make_support_nested_variables=yes
2725 am_cv_make_support_nested_variables=no
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2729 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2730 if test $am_cv_make_support_nested_variables = yes; then
2732 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2734 AM_V=$AM_DEFAULT_VERBOSITY
2735 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2741 # is not polluted with repeated "-I."
2742 am__isrc=' -I$(srcdir)'
2743 # test to see if srcdir already configured
2744 if test -f $srcdir/config.status; then
2745 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2749 # test whether we have cygpath
2750 if test -z "$CYGPATH_W"; then
2751 if (cygpath --version) >/dev/null 2>/dev/null; then
2752 CYGPATH_W='cygpath -w'
2759 # Define the identity of the package.
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE "$PACKAGE"
2769 cat >>confdefs.h <<_ACEOF
2770 #define VERSION "$VERSION"
2773 # Some tools Automake needs.
2775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2789 # For better backward compatibility. To be removed once Automake 1.9.x
2790 # dies out for good. For more background, see:
2791 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2792 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2793 mkdir_p='$(MKDIR_P)'
2795 # We need awk for the "check" target. The system "awk" is bad on
2797 # Always define AMTAR for backward compatibility. Yes, it's still used
2798 # in the wild :-( We should find a proper way to deprecate it ...
2802 # We'll loop over all known methods to create a tar archive until one works.
2803 _am_tools='gnutar pax cpio none'
2805 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2812 # POSIX will say in a future version that running "rm -f" with no argument
2813 # is OK; and we want to be able to make that assumption in our Makefile
2814 # recipes. So use an aggressive probe to check that the usage we want is
2815 # actually supported "in the wild" to an acceptable degree.
2816 # See automake bug#10828.
2817 # To make any issue more visible, cause the running configure to be aborted
2818 # by default if the 'rm' program in use doesn't match our expectations; the
2819 # user can still override this though.
2820 if rm -f && rm -fr && rm -rf; then : OK; else
2824 Your 'rm' program seems unable to run without file operands specified
2825 on the command line, even when the '-f' option is present. This is contrary
2826 to the behaviour of most rm programs out there, and not conforming with
2827 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2829 Please tell bug-automake@gnu.org about your system, including the value
2830 of your $PATH and any error possibly output before this message. This
2831 can help us improve future automake versions.
2834 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2835 echo 'Configuration will proceed anyway, since you have set the' >&2
2836 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2840 Aborting the configuration process, to ensure you take notice of the issue.
2842 You can download and install GNU coreutils to get an 'rm' implementation
2843 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2845 If you want to complete the configuration process using your problematic
2846 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2847 to "yes", and re-run configure.
2850 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2853 ac_config_headers="$ac_config_headers config.h"
2856 # C compiler and features
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2907 if test -z "$ac_cv_prog_CC"; then
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CC="gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2945 if test "x$ac_ct_CC" = x; then
2948 case $cross_compiling:$ac_tool_warned in
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3001 if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 if test $ac_prog_rejected = yes; then
3033 # We found a bogon in the path, so make sure we never use it.
3034 set dummy $ac_cv_prog_CC
3036 if test $# != 0; then
3037 # We chose a different compiler from the bogus one.
3038 # However, it has the same basename, so the bogon will be chosen
3039 # first if we set CC to just the basename; use the full file name.
3041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in cl.exe
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3098 test -n "$CC" && break
3101 if test -z "$CC"; then
3103 for ac_prog in cl.exe
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3142 test -n "$ac_ct_CC" && break
3145 if test "x$ac_ct_CC" = x; then
3148 case $cross_compiling:$ac_tool_warned in
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details" "$LINENO" 5; }
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3170 for ac_option in --version -v -V -qversion; do
3171 { { ac_try="$ac_compiler $ac_option >&5"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3180 if test -s conftest.err; then
3182 ... rest of stderr output deleted ...
3183 10q' conftest.err >conftest.er1
3184 cat conftest.er1 >&5
3186 rm -f conftest.er1 conftest.err
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3215 for ac_file in $ac_files
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3224 if { { ac_try="$ac_link_default"
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link_default") 2>&5
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3240 for ac_file in $ac_files ''
3242 test -f "$ac_file" || continue
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3247 # We found the default executable, but exeext='' is most
3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an `-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3270 if test -z "$ac_file"; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error 77 "C compiler cannot create executables
3279 See \`config.log' for more details" "$LINENO" 5; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287 $as_echo "$ac_file" >&6; }
3288 ac_exeext=$ac_cv_exeext
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details" "$LINENO" 5; }
3324 rm -f conftest conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3337 FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3344 ac_clean_files="$ac_clean_files conftest.out"
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3374 if test "$cross_compiling" = maybe; then
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot run C compiled programs.
3380 If you meant to cross compile, use \`--host'.
3381 See \`config.log' for more details" "$LINENO" 5; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386 $as_echo "$cross_compiling" >&6; }
3388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391 $as_echo_n "checking for suffix of object files... " >&6; }
3392 if ${ac_cv_objext+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3406 rm -f conftest.o conftest.obj
3407 if { { ac_try="$ac_compile"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_compile") 2>&5
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of object files: cannot compile
3433 See \`config.log' for more details" "$LINENO" 5; }
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if ${ac_cv_c_compiler_gnu+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3460 if ac_fn_c_try_compile "$LINENO"; then :
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if ${ac_cv_prog_cc_g+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3498 if ac_fn_c_try_compile "$LINENO"; then :
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3513 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3529 if ac_fn_c_try_compile "$LINENO"; then :
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540 $as_echo "$ac_cv_prog_cc_g" >&6; }
3541 if test "$ac_test_CFLAGS" = set; then
3542 CFLAGS=$ac_save_CFLAGS
3543 elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
3550 if test "$GCC" = yes; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558 if ${ac_cv_prog_cc_c89+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 ac_cv_prog_cc_c89=no
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3569 struct buf { int x; };
3570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571 static char *e (p, i)
3577 static char *f (char * (*g) (char **, int), char **p, ...)
3582 s = g (p, va_arg (v,int));
3587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3588 function prototypes and stuff, but not '\xHH' hex character constants.
3589 These don't provoke an error unfortunately, instead are silently treated
3590 as 'x'. The following induces an error, until -std is added to get
3591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3592 array size at least. It's necessary to write '\x00'==0 to get something
3593 that's true only with -std. */
3594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597 inside strings and character constants. */
3599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601 int test (int i, double x);
3602 struct s1 {int (*f) (int a);};
3603 struct s2 {int (*f) (double a);};
3604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3610 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c89=$ac_arg
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c89" != "xno" && break
3625 rm -f conftest.$ac_ext
3630 case "x$ac_cv_prog_cc_c89" in
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3638 CC="$CC $ac_cv_prog_cc_c89"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3642 if test "x$ac_cv_prog_cc_c89" != xno; then :
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3658 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3659 if ${am_cv_prog_cc_c_o+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3673 # Make sure it works both with $CC and with simple cc.
3674 # Following AC_PROG_CC_C_O, we do the test twice because some
3675 # compilers refuse to overwrite an existing .o file with -o,
3676 # though they will create one.
3677 am_cv_prog_cc_c_o=yes
3679 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3680 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } \
3684 && test -f conftest2.$ac_objext; then
3687 am_cv_prog_cc_c_o=no
3691 rm -f core conftest*
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3695 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3696 if test "$am_cv_prog_cc_c_o" != yes; then
3697 # Losing compiler, so override with the script.
3698 # FIXME: It is wrong to rewrite CC.
3699 # But if we don't then we get into trouble of one sort or another.
3700 # A longer-term fix would be to have automake use am__CC in this case,
3701 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3702 CC="$am_aux_dir/compile $CC"
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 DEPDIR="${am__leading_dot}deps"
3712 ac_config_commands="$ac_config_commands depfiles"
3715 am_make=${MAKE-make}
3716 cat > confinc << 'END'
3718 @echo this is the am__doit target
3721 # If we don't find an include directive, just comment out the code.
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3723 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3727 # First try GNU make style include.
3728 echo "include confinc" > confmf
3729 # Ignore all kinds of additional output from 'make'.
3730 case `$am_make -s -f confmf 2> /dev/null` in #(
3731 *the\ am__doit\ target*)
3737 # Now try BSD make style include.
3738 if test "$am__include" = "#"; then
3739 echo '.include "confinc"' > confmf
3740 case `$am_make -s -f confmf 2> /dev/null` in #(
3741 *the\ am__doit\ target*)
3742 am__include=.include
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3751 $as_echo "$_am_result" >&6; }
3752 rm -f confinc confmf
3754 # Check whether --enable-dependency-tracking was given.
3755 if test "${enable_dependency_tracking+set}" = set; then :
3756 enableval=$enable_dependency_tracking;
3759 if test "x$enable_dependency_tracking" != xno; then
3760 am_depcomp="$ac_aux_dir/depcomp"
3764 if test "x$enable_dependency_tracking" != xno; then
3774 depcc="$CC" am_compiler_list=
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3777 $as_echo_n "checking dependency style of $depcc... " >&6; }
3778 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3779 $as_echo_n "(cached) " >&6
3781 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3782 # We make a subdir and do the tests there. Otherwise we can end up
3783 # making bogus files that we don't know about and never remove. For
3784 # instance it was reported that on HP-UX the gcc test will end up
3785 # making a dummy file named 'D' -- because '-MD' means "put the output
3789 # Copy depcomp to subdir because otherwise we won't find it if we're
3790 # using a relative directory.
3791 cp "$am_depcomp" conftest.dir
3793 # We will build objects and dependencies in a subdirectory because
3794 # it helps to detect inapplicable dependency modes. For instance
3795 # both Tru64's cc and ICC support -MD to output dependencies as a
3796 # side effect of compilation, but ICC will put the dependencies in
3797 # the current directory while Tru64 will put them in the object
3801 am_cv_CC_dependencies_compiler_type=none
3802 if test "$am_compiler_list" = ""; then
3803 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3806 case " $depcc " in #(
3807 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3810 for depmode in $am_compiler_list; do
3811 # Setup a source with many dependencies, because some compilers
3812 # like to wrap large dependency lists on column 80 (with \), and
3813 # we should not choose a depcomp mode which is confused by this.
3815 # We need to recreate these files for each test, as the compiler may
3816 # overwrite some of them when testing with obscure command lines.
3817 # This happens at least with the AIX C compiler.
3819 for i in 1 2 3 4 5 6; do
3820 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3822 # Solaris 10 /bin/sh.
3823 echo '/* dummy */' > sub/conftst$i.h
3825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3828 # mode. It turns out that the SunPro C++ compiler does not properly
3829 # handle '-M -o', and we need to detect this. Also, some Intel
3830 # versions had trouble with output in subdirs.
3831 am__obj=sub/conftest.${OBJEXT-o}
3832 am__minus_obj="-o $am__obj"
3835 # This depmode causes a compiler race in universal mode.
3836 test "$am__universal" = false || continue
3839 # After this tag, mechanisms are not by side-effect, so they'll
3840 # only be used when explicitly requested.
3841 if test "x$enable_dependency_tracking" = xyes; then
3847 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3848 # This compiler won't grok '-c -o', but also, the minuso test has
3849 # not run yet. These depmodes are late enough in the game, and
3850 # so weak that their functioning should not be impacted.
3851 am__obj=conftest.${OBJEXT-o}
3856 if depmode=$depmode \
3857 source=sub/conftest.c object=$am__obj \
3858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3860 >/dev/null 2>conftest.err &&
3861 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865 # icc doesn't choke on unknown options, it will just issue warnings
3866 # or remarks (even with -Werror). So we grep stderr for any message
3867 # that says an option was ignored or not supported.
3868 # When given -MP, icc 7.0 and 7.1 complain thusly:
3869 # icc: Command line warning: ignoring option '-M'; no argument required
3870 # The diagnosis changed in icc 8.0:
3871 # icc: Command line remark: option '-MP' not supported
3872 if (grep 'ignoring option' conftest.err ||
3873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874 am_cv_CC_dependencies_compiler_type=$depmode
3883 am_cv_CC_dependencies_compiler_type=none
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3892 test "x$enable_dependency_tracking" != xno \
3893 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895 am__fastdepCC_FALSE='#'
3897 am__fastdepCC_TRUE='#'
3898 am__fastdepCC_FALSE=
3902 case $ac_cv_prog_cc_stdc in #(
3904 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3907 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3908 if ${ac_cv_prog_cc_c99+:} false; then :
3909 $as_echo_n "(cached) " >&6
3911 ac_cv_prog_cc_c99=no
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3916 #include <stdbool.h>
3921 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3922 #define debug(...) fprintf (stderr, __VA_ARGS__)
3923 #define showlist(...) puts (#__VA_ARGS__)
3924 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3926 test_varargs_macros (void)
3931 debug ("X = %d\n", x);
3932 showlist (The first, second, and third items.);
3933 report (x>y, "x is %d but y is %d", x, y);
3936 // Check long long types.
3937 #define BIG64 18446744073709551615ull
3938 #define BIG32 4294967295ul
3939 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3941 your preprocessor is broken;
3945 your preprocessor is broken;
3947 static long long int bignum = -9223372036854775807LL;
3948 static unsigned long long int ubignum = BIG64;
3950 struct incomplete_array
3958 const wchar_t *name;
3962 typedef const char *ccp;
3965 test_restrict (ccp restrict text)
3967 // See if C++-style comments work.
3968 // Iterate through items via the restricted pointer.
3969 // Also check for declarations in for loops.
3970 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3975 // Check varargs and va_copy.
3977 test_varargs (const char *format, ...)
3980 va_start (args, format);
3982 va_copy (args_copy, args);
3993 str = va_arg (args_copy, const char *);
3996 number = va_arg (args_copy, int);
3999 fnumber = va_arg (args_copy, double);
4014 _Bool success = false;
4017 if (test_restrict ("String literal") == 0)
4019 char *restrict newvar = "Another string";
4022 test_varargs ("s, d' f .", "string", 65, 34.234);
4023 test_varargs_macros ();
4025 // Check flexible array members.
4026 struct incomplete_array *ia =
4027 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4029 for (int i = 0; i < ia->datasize; ++i)
4030 ia->data[i] = i * 1.234;
4032 // Check named initializers.
4033 struct named_init ni = {
4035 .name = L"Test wide string",
4036 .average = 543.34343,
4041 int dynamic_array[ni.number];
4042 dynamic_array[ni.number - 1] = 543;
4044 // work around unused variable warnings
4045 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4046 || dynamic_array[ni.number - 1] != 543);
4052 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4054 CC="$ac_save_CC $ac_arg"
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_c99=$ac_arg
4058 rm -f core conftest.err conftest.$ac_objext
4059 test "x$ac_cv_prog_cc_c99" != "xno" && break
4061 rm -f conftest.$ac_ext
4066 case "x$ac_cv_prog_cc_c99" in
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069 $as_echo "none needed" >&6; } ;;
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4072 $as_echo "unsupported" >&6; } ;;
4074 CC="$CC $ac_cv_prog_cc_c99"
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4076 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4078 if test "x$ac_cv_prog_cc_c99" != xno; then :
4079 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4082 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4083 if ${ac_cv_prog_cc_c89+:} false; then :
4084 $as_echo_n "(cached) " >&6
4086 ac_cv_prog_cc_c89=no
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4094 struct buf { int x; };
4095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4096 static char *e (p, i)
4102 static char *f (char * (*g) (char **, int), char **p, ...)
4107 s = g (p, va_arg (v,int));
4112 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4113 function prototypes and stuff, but not '\xHH' hex character constants.
4114 These don't provoke an error unfortunately, instead are silently treated
4115 as 'x'. The following induces an error, until -std is added to get
4116 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4117 array size at least. It's necessary to write '\x00'==0 to get something
4118 that's true only with -std. */
4119 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4121 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4122 inside strings and character constants. */
4124 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4126 int test (int i, double x);
4127 struct s1 {int (*f) (int a);};
4128 struct s2 {int (*f) (double a);};
4129 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4140 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4141 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4143 CC="$ac_save_CC $ac_arg"
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_c89=$ac_arg
4147 rm -f core conftest.err conftest.$ac_objext
4148 test "x$ac_cv_prog_cc_c89" != "xno" && break
4150 rm -f conftest.$ac_ext
4155 case "x$ac_cv_prog_cc_c89" in
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4158 $as_echo "none needed" >&6; } ;;
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4161 $as_echo "unsupported" >&6; } ;;
4163 CC="$CC $ac_cv_prog_cc_c89"
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4165 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4167 if test "x$ac_cv_prog_cc_c89" != xno; then :
4168 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4170 ac_cv_prog_cc_stdc=no
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4177 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4178 if ${ac_cv_prog_cc_stdc+:} false; then :
4179 $as_echo_n "(cached) " >&6
4182 case $ac_cv_prog_cc_stdc in #(
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185 $as_echo "unsupported" >&6; } ;; #(
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4188 $as_echo "none needed" >&6; } ;; #(
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4191 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4200 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4201 # On Suns, sometimes $CPP names a directory.
4202 if test -n "$CPP" && test -d "$CPP"; then
4205 if test -z "$CPP"; then
4206 if ${ac_cv_prog_CPP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4209 # Double quotes because CPP needs to be expanded
4210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213 for ac_c_preproc_warn_flag in '' yes
4215 # Use a header file that comes with gcc, so configuring glibc
4216 # with a fresh cross-compiler works.
4217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218 # <limits.h> exists even on freestanding compilers.
4219 # On the NeXT, cc -E runs the code through the compiler's parser,
4220 # not just through cpp. "Syntax error" is here to catch this case.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4224 # include <limits.h>
4226 # include <assert.h>
4230 if ac_fn_c_try_cpp "$LINENO"; then :
4233 # Broken: fails on valid input.
4236 rm -f conftest.err conftest.i conftest.$ac_ext
4238 # OK, works on sane cases. Now check whether nonexistent headers
4239 # can be detected and how.
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <ac_nonexistent.h>
4244 if ac_fn_c_try_cpp "$LINENO"; then :
4245 # Broken: success on invalid input.
4248 # Passes both tests.
4252 rm -f conftest.err conftest.i conftest.$ac_ext
4255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256 rm -f conftest.i conftest.err conftest.$ac_ext
4257 if $ac_preproc_ok; then :
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4270 $as_echo "$CPP" >&6; }
4272 for ac_c_preproc_warn_flag in '' yes
4274 # Use a header file that comes with gcc, so configuring glibc
4275 # with a fresh cross-compiler works.
4276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277 # <limits.h> exists even on freestanding compilers.
4278 # On the NeXT, cc -E runs the code through the compiler's parser,
4279 # not just through cpp. "Syntax error" is here to catch this case.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4283 # include <limits.h>
4285 # include <assert.h>
4289 if ac_fn_c_try_cpp "$LINENO"; then :
4292 # Broken: fails on valid input.
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4297 # OK, works on sane cases. Now check whether nonexistent headers
4298 # can be detected and how.
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #include <ac_nonexistent.h>
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4304 # Broken: success on invalid input.
4307 # Passes both tests.
4311 rm -f conftest.err conftest.i conftest.$ac_ext
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.i conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then :
4319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4322 See \`config.log' for more details" "$LINENO" 5; }
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4335 if ${ac_cv_path_GREP+:} false; then :
4336 $as_echo_n "(cached) " >&6
4338 if test -z "$GREP"; then
4339 ac_path_GREP_found=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4345 test -z "$as_dir" && as_dir=.
4346 for ac_prog in grep ggrep; do
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4349 as_fn_executable_p "$ac_path_GREP" || continue
4350 # Check for GNU ac_path_GREP and select it if it is found.
4351 # Check for GNU $ac_path_GREP
4352 case `"$ac_path_GREP" --version 2>&1` in
4354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4357 $as_echo_n 0123456789 >"conftest.in"
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 $as_echo 'GREP' >> "conftest.nl"
4364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366 as_fn_arith $ac_count + 1 && ac_count=$as_val
4367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_GREP="$ac_path_GREP"
4370 ac_path_GREP_max=$ac_count
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378 $ac_path_GREP_found && break 3
4383 if test -z "$ac_cv_path_GREP"; then
4384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4387 ac_cv_path_GREP=$GREP
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392 $as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397 $as_echo_n "checking for egrep... " >&6; }
4398 if ${ac_cv_path_EGREP+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402 then ac_cv_path_EGREP="$GREP -E"
4404 if test -z "$EGREP"; then
4405 ac_path_EGREP_found=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4411 test -z "$as_dir" && as_dir=.
4412 for ac_prog in egrep; do
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415 as_fn_executable_p "$ac_path_EGREP" || continue
4416 # Check for GNU ac_path_EGREP and select it if it is found.
4417 # Check for GNU $ac_path_EGREP
4418 case `"$ac_path_EGREP" --version 2>&1` in
4420 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4423 $as_echo_n 0123456789 >"conftest.in"
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 $as_echo 'EGREP' >> "conftest.nl"
4430 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432 as_fn_arith $ac_count + 1 && ac_count=$as_val
4433 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_EGREP="$ac_path_EGREP"
4436 ac_path_EGREP_max=$ac_count
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4444 $ac_path_EGREP_found && break 3
4449 if test -z "$ac_cv_path_EGREP"; then
4450 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4453 ac_cv_path_EGREP=$EGREP
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459 $as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4464 $as_echo_n "checking for ANSI C header files... " >&6; }
4465 if ${ac_cv_header_stdc+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4483 if ac_fn_c_try_compile "$LINENO"; then :
4484 ac_cv_header_stdc=yes
4486 ac_cv_header_stdc=no
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 if test $ac_cv_header_stdc = yes; then
4491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 $EGREP "memchr" >/dev/null 2>&1; then :
4501 ac_cv_header_stdc=no
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "free" >/dev/null 2>&1; then :
4518 ac_cv_header_stdc=no
4524 if test $ac_cv_header_stdc = yes; then
4525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4526 if test "$cross_compiling" = yes; then :
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4533 #if ((' ' & 0x0FF) == 0x020)
4534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4537 # define ISLOWER(c) \
4538 (('a' <= (c) && (c) <= 'i') \
4539 || ('j' <= (c) && (c) <= 'r') \
4540 || ('s' <= (c) && (c) <= 'z'))
4541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4549 for (i = 0; i < 256; i++)
4550 if (XOR (islower (i), ISLOWER (i))
4551 || toupper (i) != TOUPPER (i))
4556 if ac_fn_c_try_run "$LINENO"; then :
4559 ac_cv_header_stdc=no
4561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4562 conftest.$ac_objext conftest.beam conftest.$ac_ext
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4568 $as_echo "$ac_cv_header_stdc" >&6; }
4569 if test $ac_cv_header_stdc = yes; then
4571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577 inttypes.h stdint.h unistd.h
4579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4582 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4583 cat >>confdefs.h <<_ACEOF
4584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4593 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4594 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4601 if test "$MINIX" = yes; then
4603 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4606 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4609 $as_echo "#define _MINIX 1" >>confdefs.h
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4615 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4616 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4617 $as_echo_n "(cached) " >&6
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 # define __EXTENSIONS__ 1
4623 $ac_includes_default
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_safe_to_define___extensions__=yes
4635 ac_cv_safe_to_define___extensions__=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4640 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4641 test $ac_cv_safe_to_define___extensions__ = yes &&
4642 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4644 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4646 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4648 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4650 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4655 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4656 if ${ac_cv_c_const+:} false; then :
4657 $as_echo_n "(cached) " >&6
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4667 /* Ultrix mips cc rejects this sort of thing. */
4668 typedef int charset[2];
4669 const charset cs = { 0, 0 };
4670 /* SunOS 4.1.1 cc rejects this. */
4671 char const *const *pcpcc;
4673 /* NEC SVR4.0.2 mips cc rejects this. */
4674 struct point {int x, y;};
4675 static struct point const zero = {0,0};
4676 /* AIX XL C 1.02.0.0 rejects this.
4677 It does not let you subtract one const X* pointer from another in
4678 an arm of an if-expression whose if-part is not a constant
4680 const char *g = "string";
4681 pcpcc = &g + (g ? g-g : 0);
4682 /* HPUX 7.0 cc rejects these. */
4684 ppc = (char**) pcpcc;
4685 pcpcc = (char const *const *) ppc;
4686 { /* SCO 3.2v4 cc rejects this sort of thing. */
4689 char const *s = 0 ? (char *) 0 : (char const *) 0;
4694 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4696 const int *foo = &x[0];
4699 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4700 typedef const int *iptr;
4704 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4705 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4706 struct s { int j; const int *ap[3]; } bx;
4707 struct s *b = &bx; b->j = 5;
4709 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4713 return !cs[0] && !zero.x;
4720 if ac_fn_c_try_compile "$LINENO"; then :
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4728 $as_echo "$ac_cv_c_const" >&6; }
4729 if test $ac_cv_c_const = no; then
4731 $as_echo "#define const /**/" >>confdefs.h
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4736 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4737 if ${ac_cv_c_restrict+:} false; then :
4738 $as_echo_n "(cached) " >&6
4741 # The order here caters to the fact that C++ does not require restrict.
4742 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 typedef int * int_ptr;
4746 int foo (int_ptr $ac_kw ip) {
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_c_restrict=$ac_kw
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 test "$ac_cv_c_restrict" != no && break
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4769 $as_echo "$ac_cv_c_restrict" >&6; }
4771 case $ac_cv_c_restrict in
4773 no) $as_echo "#define restrict /**/" >>confdefs.h
4775 *) cat >>confdefs.h <<_ACEOF
4776 #define restrict $ac_cv_c_restrict
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4782 $as_echo_n "checking for working volatile... " >&6; }
4783 if ${ac_cv_c_volatile+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4794 int * volatile y = (int *) 0;
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_c_volatile=yes
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4808 $as_echo "$ac_cv_c_volatile" >&6; }
4809 if test $ac_cv_c_volatile = no; then
4811 $as_echo "#define volatile /**/" >>confdefs.h
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4821 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4826 macro_version='2.4.2'
4827 macro_revision='1.3337'
4841 ltmain="$ac_aux_dir/ltmain.sh"
4843 # Make sure we can run config.sub.
4844 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4845 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4848 $as_echo_n "checking build system type... " >&6; }
4849 if ${ac_cv_build+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 ac_build_alias=$build_alias
4853 test "x$ac_build_alias" = x &&
4854 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4855 test "x$ac_build_alias" = x &&
4856 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4857 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4858 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4862 $as_echo "$ac_cv_build" >&6; }
4863 case $ac_cv_build in
4865 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4868 ac_save_IFS=$IFS; IFS='-'
4874 # Remember, the first character of IFS is used to create $*,
4875 # except with old shells:
4878 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4882 $as_echo_n "checking host system type... " >&6; }
4883 if ${ac_cv_host+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 if test "x$host_alias" = x; then
4887 ac_cv_host=$ac_cv_build
4889 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4890 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4895 $as_echo "$ac_cv_host" >&6; }
4898 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4901 ac_save_IFS=$IFS; IFS='-'
4907 # Remember, the first character of IFS is used to create $*,
4908 # except with old shells:
4911 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4914 # Backslashify metacharacters that are still active within
4915 # double-quoted strings.
4916 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4918 # Same as above, but do not quote variable references.
4919 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4921 # Sed substitution to delay expansion of an escaped shell variable in a
4922 # double_quote_subst'ed string.
4923 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4925 # Sed substitution to delay expansion of an escaped single quote.
4926 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4928 # Sed substitution to avoid accidental globbing in evaled expressions
4929 no_glob_subst='s/\*/\\\*/g'
4931 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4932 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4933 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4936 $as_echo_n "checking how to print strings... " >&6; }
4937 # Test print first, because it will be a builtin if present.
4938 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4939 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4941 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4944 # Use this function as a fallback that always works.
4945 func_fallback_echo ()
4947 eval 'cat <<_LTECHO_EOF
4951 ECHO='func_fallback_echo'
4954 # func_echo_all arg...
4955 # Invoke $ECHO with all args, space-separated.
4962 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4963 $as_echo "printf" >&6; } ;;
4964 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4965 $as_echo "print -r" >&6; } ;;
4966 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4967 $as_echo "cat" >&6; } ;;
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4984 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4985 if ${ac_cv_path_SED+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4989 for ac_i in 1 2 3 4 5 6 7; do
4990 ac_script="$ac_script$as_nl$ac_script"
4992 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4993 { ac_script=; unset ac_script;}
4994 if test -z "$SED"; then
4995 ac_path_SED_found=false
4996 # Loop through the user's path and test for each of PROGNAME-LIST
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 test -z "$as_dir" && as_dir=.
5002 for ac_prog in sed gsed; do
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5005 as_fn_executable_p "$ac_path_SED" || continue
5006 # Check for GNU ac_path_SED and select it if it is found.
5007 # Check for GNU $ac_path_SED
5008 case `"$ac_path_SED" --version 2>&1` in
5010 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5013 $as_echo_n 0123456789 >"conftest.in"
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 $as_echo '' >> "conftest.nl"
5020 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_SED_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_SED="$ac_path_SED"
5026 ac_path_SED_max=$ac_count
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5034 $ac_path_SED_found && break 3
5039 if test -z "$ac_cv_path_SED"; then
5040 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5048 $as_echo "$ac_cv_path_SED" >&6; }
5049 SED="$ac_cv_path_SED"
5052 test -z "$SED" && SED=sed
5053 Xsed="$SED -e 1s/^X//"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5066 $as_echo_n "checking for fgrep... " >&6; }
5067 if ${ac_cv_path_FGREP+:} false; then :
5068 $as_echo_n "(cached) " >&6
5070 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5071 then ac_cv_path_FGREP="$GREP -F"
5073 if test -z "$FGREP"; then
5074 ac_path_FGREP_found=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in fgrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5084 as_fn_executable_p "$ac_path_FGREP" || continue
5085 # Check for GNU ac_path_FGREP and select it if it is found.
5086 # Check for GNU $ac_path_FGREP
5087 case `"$ac_path_FGREP" --version 2>&1` in
5089 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5092 $as_echo_n 0123456789 >"conftest.in"
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'FGREP' >> "conftest.nl"
5099 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 as_fn_arith $ac_count + 1 && ac_count=$as_val
5102 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_FGREP="$ac_path_FGREP"
5105 ac_path_FGREP_max=$ac_count
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5113 $ac_path_FGREP_found && break 3
5118 if test -z "$ac_cv_path_FGREP"; then
5119 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5122 ac_cv_path_FGREP=$FGREP
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5128 $as_echo "$ac_cv_path_FGREP" >&6; }
5129 FGREP="$ac_cv_path_FGREP"
5132 test -z "$GREP" && GREP=grep
5152 # Check whether --with-gnu-ld was given.
5153 if test "${with_gnu_ld+set}" = set; then :
5154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5160 if test "$GCC" = yes; then
5161 # Check if gcc -print-prog-name=ld gives a path.
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5163 $as_echo_n "checking for ld used by $CC... " >&6; }
5166 # gcc leaves a trailing carriage return which upsets mingw
5167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5172 # Accept absolute paths.
5174 re_direlt='/[^/][^/]*/\.\./'
5175 # Canonicalize the pathname of ld
5176 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5177 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5178 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5180 test -z "$LD" && LD="$ac_prog"
5183 # If it fails, then pretend we aren't using GCC.
5187 # If it is relative, then search for the first ld in PATH.
5191 elif test "$with_gnu_ld" = yes; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5193 $as_echo_n "checking for GNU ld... " >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5196 $as_echo_n "checking for non-GNU ld... " >&6; }
5198 if ${lt_cv_path_LD+:} false; then :
5199 $as_echo_n "(cached) " >&6
5201 if test -z "$LD"; then
5202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5203 for ac_dir in $PATH; do
5205 test -z "$ac_dir" && ac_dir=.
5206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5207 lt_cv_path_LD="$ac_dir/$ac_prog"
5208 # Check to see if the program is GNU ld. I'd rather use --version,
5209 # but apparently some variants of GNU ld only accept -v.
5210 # Break only if it was the GNU/non-GNU ld that we prefer.
5211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5212 *GNU* | *'with BFD'*)
5213 test "$with_gnu_ld" != no && break
5216 test "$with_gnu_ld" != yes && break
5223 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5228 if test -n "$LD"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5230 $as_echo "$LD" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5235 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5237 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5238 if ${lt_cv_prog_gnu_ld+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5242 case `$LD -v 2>&1 </dev/null` in
5243 *GNU* | *'with BFD'*)
5244 lt_cv_prog_gnu_ld=yes
5247 lt_cv_prog_gnu_ld=no
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5252 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5253 with_gnu_ld=$lt_cv_prog_gnu_ld
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5264 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5265 if ${lt_cv_path_NM+:} false; then :
5266 $as_echo_n "(cached) " >&6
5268 if test -n "$NM"; then
5269 # Let the user override the test.
5272 lt_nm_to_check="${ac_tool_prefix}nm"
5273 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5274 lt_nm_to_check="$lt_nm_to_check nm"
5276 for lt_tmp_nm in $lt_nm_to_check; do
5277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5278 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5280 test -z "$ac_dir" && ac_dir=.
5281 tmp_nm="$ac_dir/$lt_tmp_nm"
5282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5283 # Check to see if the nm accepts a BSD-compat flag.
5284 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5285 # nm: unknown option "B" ignored
5286 # Tru64's nm complains that /dev/null is an invalid object file
5287 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5288 */dev/null* | *'Invalid file or object type'*)
5289 lt_cv_path_NM="$tmp_nm -B"
5293 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5295 lt_cv_path_NM="$tmp_nm -p"
5299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5300 continue # so that we can try to find one that supports BSD flags
5309 : ${lt_cv_path_NM=no}
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5313 $as_echo "$lt_cv_path_NM" >&6; }
5314 if test "$lt_cv_path_NM" != "no"; then
5317 # Didn't find any BSD compatible name lister, look for dumpbin.
5318 if test -n "$DUMPBIN"; then :
5319 # Let the user override the test.
5321 if test -n "$ac_tool_prefix"; then
5322 for ac_prog in dumpbin "link -dump"
5324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_DUMPBIN+:} false; then :
5329 $as_echo_n "(cached) " >&6
5331 if test -n "$DUMPBIN"; then
5332 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 DUMPBIN=$ac_cv_prog_DUMPBIN
5352 if test -n "$DUMPBIN"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5354 $as_echo "$DUMPBIN" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5361 test -n "$DUMPBIN" && break
5364 if test -z "$DUMPBIN"; then
5365 ac_ct_DUMPBIN=$DUMPBIN
5366 for ac_prog in dumpbin "link -dump"
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 if test -n "$ac_ct_DUMPBIN"; then
5376 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5396 if test -n "$ac_ct_DUMPBIN"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5398 $as_echo "$ac_ct_DUMPBIN" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5405 test -n "$ac_ct_DUMPBIN" && break
5408 if test "x$ac_ct_DUMPBIN" = x; then
5411 case $cross_compiling:$ac_tool_warned in
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5417 DUMPBIN=$ac_ct_DUMPBIN
5421 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5423 DUMPBIN="$DUMPBIN -symbols"
5431 if test "$DUMPBIN" != ":"; then
5435 test -z "$NM" && NM=nm
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5443 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5444 if ${lt_cv_nm_interface+:} false; then :
5445 $as_echo_n "(cached) " >&6
5447 lt_cv_nm_interface="BSD nm"
5448 echo "int some_variable = 0;" > conftest.$ac_ext
5449 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5450 (eval "$ac_compile" 2>conftest.err)
5451 cat conftest.err >&5
5452 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5453 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5454 cat conftest.err >&5
5455 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5456 cat conftest.out >&5
5457 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5458 lt_cv_nm_interface="MS dumpbin"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5463 $as_echo "$lt_cv_nm_interface" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5466 $as_echo_n "checking whether ln -s works... " >&6; }
5468 if test "$LN_S" = "ln -s"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5470 $as_echo "yes" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5473 $as_echo "no, using $LN_S" >&6; }
5476 # find the maximum length of command line arguments
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5478 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5479 if ${lt_cv_sys_max_cmd_len+:} false; then :
5480 $as_echo_n "(cached) " >&6
5487 # On DJGPP, this test can blow up pretty badly due to problems in libc
5488 # (any single argument exceeding 2000 bytes causes a buffer overrun
5489 # during glob expansion). Even if it were fixed, the result of this
5490 # check would be larger than it should be.
5491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5495 # Under GNU Hurd, this test is not required because there is
5496 # no limit to the length of command line arguments.
5497 # Libtool will interpret -1 as no limit whatsoever
5498 lt_cv_sys_max_cmd_len=-1;
5501 cygwin* | mingw* | cegcc*)
5502 # On Win9x/ME, this test blows up -- it succeeds, but takes
5503 # about 5 minutes as the teststring grows exponentially.
5504 # Worse, since 9x/ME are not pre-emptively multitasking,
5505 # you end up with a "frozen" computer, even though with patience
5506 # the test eventually succeeds (with a max line length of 256k).
5507 # Instead, let's just punt: use the minimum linelength reported by
5508 # all of the supported platforms: 8192 (on NT/2K/XP).
5509 lt_cv_sys_max_cmd_len=8192;
5513 # On MiNT this can take a long time and run out of memory.
5514 lt_cv_sys_max_cmd_len=8192;
5518 # On AmigaOS with pdksh, this test takes hours, literally.
5519 # So we just punt and use a minimum line length of 8192.
5520 lt_cv_sys_max_cmd_len=8192;
5523 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5524 # This has been around since 386BSD, at least. Likely further.
5525 if test -x /sbin/sysctl; then
5526 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5527 elif test -x /usr/sbin/sysctl; then
5528 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5530 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5532 # And add a safety zone
5533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5538 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5539 lt_cv_sys_max_cmd_len=196608
5543 # The test takes a long time on OS/2.
5544 lt_cv_sys_max_cmd_len=8192
5548 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5549 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5550 # nice to cause kernel panics so lets avoid the loop below.
5551 # First set a reasonable default.
5552 lt_cv_sys_max_cmd_len=16384
5554 if test -x /sbin/sysconfig; then
5555 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5556 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5561 lt_cv_sys_max_cmd_len=102400
5563 sysv5* | sco5v6* | sysv4.2uw2*)
5564 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5565 if test -n "$kargmax"; then
5566 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5568 lt_cv_sys_max_cmd_len=32768
5572 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5573 if test -n "$lt_cv_sys_max_cmd_len"; then
5574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5577 # Make teststring a little bigger before we do anything with it.
5578 # a 1K string should be a reasonable start.
5579 for i in 1 2 3 4 5 6 7 8 ; do
5580 teststring=$teststring$teststring
5582 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5583 # If test is not a shell built-in, we'll probably end up computing a
5584 # maximum length that is only half of the actual maximum length, but
5586 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5587 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5588 test $i != 17 # 1/2 MB should be enough
5591 teststring=$teststring$teststring
5593 # Only check the string length outside the loop.
5594 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5596 # Add a significant safety factor because C++ compilers can tack on
5597 # massive amounts of additional arguments before passing them to the
5598 # linker. It appears as though 1/2 is a usable value.
5599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5606 if test -n $lt_cv_sys_max_cmd_len ; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5608 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5611 $as_echo "none" >&6; }
5613 max_cmd_len=$lt_cv_sys_max_cmd_len
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5625 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5626 # Try some XSI features
5629 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5631 && eval 'test $(( 1 + 1 )) -eq 2 \
5632 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5635 $as_echo "$xsi_shell" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5639 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5641 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5643 && lt_shell_append=yes
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5645 $as_echo "$lt_shell_append" >&6; }
5648 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5658 # test EBCDIC or ASCII
5659 case `echo X|tr X '\101'` in
5660 A) # ASCII based system
5661 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5662 lt_SP2NL='tr \040 \012'
5663 lt_NL2SP='tr \015\012 \040\040'
5665 *) # EBCDIC based system
5666 lt_SP2NL='tr \100 \n'
5667 lt_NL2SP='tr \r\n \100\100'
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5680 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5681 if ${lt_cv_to_host_file_cmd+:} false; then :
5682 $as_echo_n "(cached) " >&6
5687 *-*-mingw* ) # actually msys
5688 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5691 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5693 * ) # otherwise, assume *nix
5694 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5700 *-*-mingw* ) # actually msys
5701 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5704 lt_cv_to_host_file_cmd=func_convert_file_noop
5706 * ) # otherwise, assume *nix
5707 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5711 * ) # unhandled hosts (and "normal" native builds)
5712 lt_cv_to_host_file_cmd=func_convert_file_noop
5718 to_host_file_cmd=$lt_cv_to_host_file_cmd
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5720 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5727 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5728 if ${lt_cv_to_tool_file_cmd+:} false; then :
5729 $as_echo_n "(cached) " >&6
5731 #assume ordinary cross tools, or native build.
5732 lt_cv_to_tool_file_cmd=func_convert_file_noop
5736 *-*-mingw* ) # actually msys
5737 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5745 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5747 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5754 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5755 if ${lt_cv_ld_reload_flag+:} false; then :
5756 $as_echo_n "(cached) " >&6
5758 lt_cv_ld_reload_flag='-r'
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5761 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5762 reload_flag=$lt_cv_ld_reload_flag
5763 case $reload_flag in
5765 *) reload_flag=" $reload_flag" ;;
5767 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5769 cygwin* | mingw* | pw32* | cegcc*)
5770 if test "$GCC" != yes; then
5775 if test "$GCC" = yes; then
5776 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5778 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5791 if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_OBJDUMP+:} false; then :
5797 $as_echo_n "(cached) " >&6
5799 if test -n "$OBJDUMP"; then
5800 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 OBJDUMP=$ac_cv_prog_OBJDUMP
5820 if test -n "$OBJDUMP"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5822 $as_echo "$OBJDUMP" >&6; }
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5830 if test -z "$ac_cv_prog_OBJDUMP"; then
5831 ac_ct_OBJDUMP=$OBJDUMP
5832 # Extract the first word of "objdump", so it can be a program name with args.
5833 set dummy objdump; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5837 $as_echo_n "(cached) " >&6
5839 if test -n "$ac_ct_OBJDUMP"; then
5840 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5860 if test -n "$ac_ct_OBJDUMP"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5862 $as_echo "$ac_ct_OBJDUMP" >&6; }
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5868 if test "x$ac_ct_OBJDUMP" = x; then
5871 case $cross_compiling:$ac_tool_warned in
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875 ac_tool_warned=yes ;;
5877 OBJDUMP=$ac_ct_OBJDUMP
5880 OBJDUMP="$ac_cv_prog_OBJDUMP"
5883 test -z "$OBJDUMP" && OBJDUMP=objdump
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5894 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5895 if ${lt_cv_deplibs_check_method+:} false; then :
5896 $as_echo_n "(cached) " >&6
5898 lt_cv_file_magic_cmd='$MAGIC_CMD'
5899 lt_cv_file_magic_test_file=
5900 lt_cv_deplibs_check_method='unknown'
5901 # Need to set the preceding variable on all platforms that support
5902 # interlibrary dependencies.
5903 # 'none' -- dependencies not supported.
5904 # `unknown' -- same as none, but documents that we really don't know.
5905 # 'pass_all' -- all dependencies passed with no checks.
5906 # 'test_compile' -- check by making test program.
5907 # 'file_magic [[regex]]' -- check by looking for files in library path
5908 # which responds to the $file_magic_cmd with a given extended regex.
5909 # If you have `file' or equivalent on your system and you're not sure
5910 # whether `pass_all' will *always* work, you probably want this one.
5914 lt_cv_deplibs_check_method=pass_all
5918 lt_cv_deplibs_check_method=pass_all
5922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5923 lt_cv_file_magic_cmd='/usr/bin/file -L'
5924 lt_cv_file_magic_test_file=/shlib/libc.so
5928 # func_win32_libid is a shell function defined in ltmain.sh
5929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5930 lt_cv_file_magic_cmd='func_win32_libid'
5934 # Base MSYS/MinGW do not provide the 'file' command needed by
5935 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5936 # unless we find 'file', for example because we are cross-compiling.
5937 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5938 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5939 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5940 lt_cv_file_magic_cmd='func_win32_libid'
5942 # Keep this pattern in sync with the one in func_win32_libid.
5943 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5944 lt_cv_file_magic_cmd='$OBJDUMP -f'
5949 # use the weaker test based on 'objdump'. See mingw*.
5950 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5951 lt_cv_file_magic_cmd='$OBJDUMP -f'
5954 darwin* | rhapsody*)
5955 lt_cv_deplibs_check_method=pass_all
5958 freebsd* | dragonfly*)
5959 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5962 # Not sure whether the presence of OpenBSD here was a mistake.
5963 # Let's accept both of them until this is cleared up.
5964 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5965 lt_cv_file_magic_cmd=/usr/bin/file
5966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5970 lt_cv_deplibs_check_method=pass_all
5975 lt_cv_deplibs_check_method=pass_all
5979 lt_cv_deplibs_check_method=pass_all
5982 hpux10.20* | hpux11*)
5983 lt_cv_file_magic_cmd=/usr/bin/file
5986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5987 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5990 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]'
5991 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6001 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6005 irix5* | irix6* | nonstopux*)
6007 *-32|*"-32 ") libmagic=32-bit;;
6008 *-n32|*"-n32 ") libmagic=N32;;
6009 *-64|*"-64 ") libmagic=64-bit;;
6010 *) libmagic=never-match;;
6012 lt_cv_deplibs_check_method=pass_all
6015 # This must be glibc/ELF.
6016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6017 lt_cv_deplibs_check_method=pass_all
6021 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6030 lt_cv_file_magic_cmd=/usr/bin/file
6031 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6035 lt_cv_deplibs_check_method=pass_all
6039 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6046 osf3* | osf4* | osf5*)
6047 lt_cv_deplibs_check_method=pass_all
6051 lt_cv_deplibs_check_method=pass_all
6055 lt_cv_deplibs_check_method=pass_all
6058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6059 lt_cv_deplibs_check_method=pass_all
6063 case $host_vendor in
6065 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]'
6066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6069 lt_cv_deplibs_check_method=pass_all
6072 lt_cv_file_magic_cmd='/bin/file'
6073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6076 lt_cv_file_magic_cmd='/bin/file'
6077 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6078 lt_cv_file_magic_test_file=/lib/libc.so
6081 lt_cv_deplibs_check_method=pass_all
6084 lt_cv_deplibs_check_method=pass_all
6090 lt_cv_deplibs_check_method=pass_all
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6096 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6100 if test "$build" = "$host"; then
6103 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6106 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6112 file_magic_cmd=$lt_cv_file_magic_cmd
6113 deplibs_check_method=$lt_cv_deplibs_check_method
6114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_DLLTOOL+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$DLLTOOL"; then
6146 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 DLLTOOL=$ac_cv_prog_DLLTOOL
6166 if test -n "$DLLTOOL"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6168 $as_echo "$DLLTOOL" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6176 if test -z "$ac_cv_prog_DLLTOOL"; then
6177 ac_ct_DLLTOOL=$DLLTOOL
6178 # Extract the first word of "dlltool", so it can be a program name with args.
6179 set dummy dlltool; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -n "$ac_ct_DLLTOOL"; then
6186 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6206 if test -n "$ac_ct_DLLTOOL"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6208 $as_echo "$ac_ct_DLLTOOL" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6214 if test "x$ac_ct_DLLTOOL" = x; then
6217 case $cross_compiling:$ac_tool_warned in
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6223 DLLTOOL=$ac_ct_DLLTOOL
6226 DLLTOOL="$ac_cv_prog_DLLTOOL"
6229 test -z "$DLLTOOL" && DLLTOOL=dlltool
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6241 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6242 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6243 $as_echo_n "(cached) " >&6
6245 lt_cv_sharedlib_from_linklib_cmd='unknown'
6248 cygwin* | mingw* | pw32* | cegcc*)
6249 # two different shell functions defined in ltmain.sh
6250 # decide which to use based on capabilities of $DLLTOOL
6251 case `$DLLTOOL --help 2>&1` in
6252 *--identify-strict*)
6253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6256 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6261 # fallback: assume linklib IS sharedlib
6262 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6268 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6269 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6270 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6278 if test -n "$ac_tool_prefix"; then
6281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_AR+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$AR"; then
6289 ac_cv_prog_AR="$AR" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 if test -n "$AR"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6311 $as_echo "$AR" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6318 test -n "$AR" && break
6321 if test -z "$AR"; then
6325 # Extract the first word of "$ac_prog", so it can be a program name with args.
6326 set dummy $ac_prog; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6330 $as_echo_n "(cached) " >&6
6332 if test -n "$ac_ct_AR"; then
6333 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_ac_ct_AR="$ac_prog"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6353 if test -n "$ac_ct_AR"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6355 $as_echo "$ac_ct_AR" >&6; }
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6362 test -n "$ac_ct_AR" && break
6365 if test "x$ac_ct_AR" = x; then
6368 case $cross_compiling:$ac_tool_warned in
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6392 $as_echo_n "checking for archiver @FILE support... " >&6; }
6393 if ${lt_cv_ar_at_file+:} false; then :
6394 $as_echo_n "(cached) " >&6
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6408 if ac_fn_c_try_compile "$LINENO"; then :
6409 echo conftest.$ac_objext > conftest.lst
6410 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6412 (eval $lt_ar_try) 2>&5
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }
6416 if test "$ac_status" -eq 0; then
6417 # Ensure the archiver fails upon bogus file names.
6418 rm -f conftest.$ac_objext libconftest.a
6419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6420 (eval $lt_ar_try) 2>&5
6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423 test $ac_status = 0; }
6424 if test "$ac_status" -ne 0; then
6428 rm -f conftest.* libconftest.a
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6435 $as_echo "$lt_cv_ar_at_file" >&6; }
6437 if test "x$lt_cv_ar_at_file" = xno; then
6440 archiver_list_spec=$lt_cv_ar_at_file
6449 if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6451 set dummy ${ac_tool_prefix}strip; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_prog_STRIP+:} false; then :
6455 $as_echo_n "(cached) " >&6
6457 if test -n "$STRIP"; then
6458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 STRIP=$ac_cv_prog_STRIP
6478 if test -n "$STRIP"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6480 $as_echo "$STRIP" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6488 if test -z "$ac_cv_prog_STRIP"; then
6490 # Extract the first word of "strip", so it can be a program name with args.
6491 set dummy strip; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6495 $as_echo_n "(cached) " >&6
6497 if test -n "$ac_ct_STRIP"; then
6498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_ac_ct_STRIP="strip"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6518 if test -n "$ac_ct_STRIP"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6520 $as_echo "$ac_ct_STRIP" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6526 if test "x$ac_ct_STRIP" = x; then
6529 case $cross_compiling:$ac_tool_warned in
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6538 STRIP="$ac_cv_prog_STRIP"
6541 test -z "$STRIP" && STRIP=:
6548 if test -n "$ac_tool_prefix"; then
6549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_RANLIB+:} false; then :
6554 $as_echo_n "(cached) " >&6
6556 if test -n "$RANLIB"; then
6557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 RANLIB=$ac_cv_prog_RANLIB
6577 if test -n "$RANLIB"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6579 $as_echo "$RANLIB" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6587 if test -z "$ac_cv_prog_RANLIB"; then
6588 ac_ct_RANLIB=$RANLIB
6589 # Extract the first word of "ranlib", so it can be a program name with args.
6590 set dummy ranlib; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -n "$ac_ct_RANLIB"; then
6597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_RANLIB="ranlib"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6617 if test -n "$ac_ct_RANLIB"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6619 $as_echo "$ac_ct_RANLIB" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6625 if test "x$ac_ct_RANLIB" = x; then
6628 case $cross_compiling:$ac_tool_warned in
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6634 RANLIB=$ac_ct_RANLIB
6637 RANLIB="$ac_cv_prog_RANLIB"
6640 test -z "$RANLIB" && RANLIB=:
6647 # Determine commands to create old-style static archives.
6648 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6649 old_postinstall_cmds='chmod 644 $oldlib'
6650 old_postuninstall_cmds=
6652 if test -n "$RANLIB"; then
6655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6661 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6666 lock_old_archive_extraction=yes ;;
6668 lock_old_archive_extraction=no ;;
6709 # If no C compiler was specified, use CC.
6712 # If no C compiler flags were specified, use CFLAGS.
6713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6715 # Allow CC to be a program name with arguments.
6719 # Check for command to grab the raw symbol name followed by C symbol from nm.
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6721 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6722 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6723 $as_echo_n "(cached) " >&6
6726 # These are sane defaults that work on at least a few old systems.
6727 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6729 # Character class describing NM global symbol codes.
6730 symcode='[BCDEGRST]'
6732 # Regexp to match symbols that can be accessed directly from C.
6733 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6735 # Define system-specific variables.
6740 cygwin* | mingw* | pw32* | cegcc*)
6741 symcode='[ABCDGISTW]'
6744 if test "$host_cpu" = ia64; then
6745 symcode='[ABCDEGRST]'
6749 symcode='[BCDEGRST]'
6752 symcode='[BCDEGQRST]'
6763 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6771 # If we're using GNU nm, then use its standard symbol codes.
6772 case `$NM -V 2>&1` in
6773 *GNU* | *'with BFD'*)
6774 symcode='[ABCDGIRSTW]' ;;
6777 # Transform an extracted symbol line into a proper C declaration.
6778 # Some systems (esp. on ia64) link data and code symbols differently,
6779 # so use this general approach.
6780 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6782 # Transform an extracted symbol line into symbol name and symbol address
6783 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6784 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'"
6786 # Handle CRLF in mingw tool chain
6790 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6794 # Try without a prefix underscore, then with it.
6795 for ac_symprfx in "" "_"; do
6797 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6798 symxfrm="\\1 $ac_symprfx\\2 \\2"
6800 # Write the raw and C identifiers.
6801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6802 # Fake it for dumpbin and say T for any non-static function
6803 # and D for any global variable.
6804 # Also find C++ and __fastcall symbols from MSVC++,
6805 # which start with @ or ?.
6806 lt_cv_sys_global_symbol_pipe="$AWK '"\
6807 " {last_section=section; section=\$ 3};"\
6808 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6809 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6810 " \$ 0!~/External *\|/{next};"\
6811 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6812 " {if(hide[section]) next};"\
6813 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6814 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6815 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6816 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6817 " ' prfx=^$ac_symprfx"
6819 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6821 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6823 # Check to see that the pipe works correctly.
6827 cat > conftest.$ac_ext <<_LT_EOF
6832 void nm_test_func(void);
6833 void nm_test_func(void){}
6837 int main(){nm_test_var='a';nm_test_func();return(0);}
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 # Now try to grab the symbols.
6847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6848 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851 test $ac_status = 0; } && test -s "$nlist"; then
6852 # Try sorting and uniquifying the output.
6853 if sort "$nlist" | uniq > "$nlist"T; then
6854 mv -f "$nlist"T "$nlist"
6859 # Make sure that we snagged all the symbols we need.
6860 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6861 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6862 cat <<_LT_EOF > conftest.$ac_ext
6863 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6864 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6865 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6866 relocations are performed -- see ld's documentation on pseudo-relocs. */
6867 # define LT_DLSYM_CONST
6868 #elif defined(__osf__)
6869 /* This system does not cope well with relocations in const data. */
6870 # define LT_DLSYM_CONST
6872 # define LT_DLSYM_CONST const
6880 # Now generate the symbol file.
6881 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6883 cat <<_LT_EOF >> conftest.$ac_ext
6885 /* The mapping between symbol names and symbols. */
6886 LT_DLSYM_CONST struct {
6890 lt__PROGRAM__LTX_preloaded_symbols[] =
6892 { "@PROGRAM@", (void *) 0 },
6894 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6895 cat <<\_LT_EOF >> conftest.$ac_ext
6899 /* This works around a problem in FreeBSD linker */
6900 #ifdef FREEBSD_WORKAROUND
6901 static const void *lt_preloaded_setup() {
6902 return lt__PROGRAM__LTX_preloaded_symbols;
6910 # Now try linking the two files.
6911 mv conftest.$ac_objext conftstm.$ac_objext
6912 lt_globsym_save_LIBS=$LIBS
6913 lt_globsym_save_CFLAGS=$CFLAGS
6914 LIBS="conftstm.$ac_objext"
6915 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6917 (eval $ac_link) 2>&5
6919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6920 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6923 LIBS=$lt_globsym_save_LIBS
6924 CFLAGS=$lt_globsym_save_CFLAGS
6926 echo "cannot find nm_test_func in $nlist" >&5
6929 echo "cannot find nm_test_var in $nlist" >&5
6932 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6935 echo "$progname: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 rm -rf conftest* conftst*
6940 # Do not use the global_symbol_pipe unless it works.
6941 if test "$pipe_works" = yes; then
6944 lt_cv_sys_global_symbol_pipe=
6950 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6951 lt_cv_sys_global_symbol_to_cdecl=
6953 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6955 $as_echo "failed" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6958 $as_echo "ok" >&6; }
6961 # Response file support.
6962 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6963 nm_file_list_spec='@'
6964 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6965 nm_file_list_spec='@'
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6995 $as_echo_n "checking for sysroot... " >&6; }
6997 # Check whether --with-sysroot was given.
6998 if test "${with_sysroot+set}" = set; then :
6999 withval=$with_sysroot;
7006 case ${with_sysroot} in #(
7008 if test "$GCC" = yes; then
7009 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7013 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7019 $as_echo "${with_sysroot}" >&6; }
7020 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7025 $as_echo "${lt_sysroot:-no}" >&6; }
7031 # Check whether --enable-libtool-lock was given.
7032 if test "${enable_libtool_lock+set}" = set; then :
7033 enableval=$enable_libtool_lock;
7036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7038 # Some flags need to be propagated to the compiler or linker for good
7042 # Find out which ABI we are using.
7043 echo 'int i;' > conftest.$ac_ext
7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7045 (eval $ac_compile) 2>&5
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7049 case `/usr/bin/file conftest.$ac_objext` in
7061 # Find out which ABI we are using.
7062 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7064 (eval $ac_compile) 2>&5
7066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067 test $ac_status = 0; }; then
7068 if test "$lt_cv_prog_gnu_ld" = yes; then
7069 case `/usr/bin/file conftest.$ac_objext` in
7071 LD="${LD-ld} -melf32bsmip"
7074 LD="${LD-ld} -melf32bmipn32"
7077 LD="${LD-ld} -melf64bmip"
7081 case `/usr/bin/file conftest.$ac_objext` in
7097 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7098 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7099 # Find out which ABI we are using.
7100 echo 'int i;' > conftest.$ac_ext
7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7102 (eval $ac_compile) 2>&5
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 case `/usr/bin/file conftest.o` in
7109 x86_64-*kfreebsd*-gnu)
7110 LD="${LD-ld} -m elf_i386_fbsd"
7113 LD="${LD-ld} -m elf_i386"
7115 ppc64-*linux*|powerpc64-*linux*)
7116 LD="${LD-ld} -m elf32ppclinux"
7119 LD="${LD-ld} -m elf_s390"
7122 LD="${LD-ld} -m elf32_sparc"
7128 x86_64-*kfreebsd*-gnu)
7129 LD="${LD-ld} -m elf_x86_64_fbsd"
7132 LD="${LD-ld} -m elf_x86_64"
7134 ppc*-*linux*|powerpc*-*linux*)
7135 LD="${LD-ld} -m elf64ppc"
7137 s390*-*linux*|s390*-*tpf*)
7138 LD="${LD-ld} -m elf64_s390"
7141 LD="${LD-ld} -m elf64_sparc"
7151 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7152 SAVE_CFLAGS="$CFLAGS"
7153 CFLAGS="$CFLAGS -belf"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7155 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7156 if ${lt_cv_cc_needs_belf+:} false; then :
7157 $as_echo_n "(cached) " >&6
7160 ac_cpp='$CPP $CPPFLAGS'
7161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7176 if ac_fn_c_try_link "$LINENO"; then :
7177 lt_cv_cc_needs_belf=yes
7179 lt_cv_cc_needs_belf=no
7181 rm -f core conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7191 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7192 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7193 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7194 CFLAGS="$SAVE_CFLAGS"
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7201 (eval $ac_compile) 2>&5
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; }; then
7205 case `/usr/bin/file conftest.o` in
7207 case $lt_cv_prog_gnu_ld in
7211 LD="${LD-ld} -m elf_x86_64"
7214 LD="${LD-ld} -m elf64_sparc"
7217 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7218 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7223 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7235 need_locks="$enable_libtool_lock"
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}mt; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7243 $as_echo_n "(cached) " >&6
7245 if test -n "$MANIFEST_TOOL"; then
7246 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7266 if test -n "$MANIFEST_TOOL"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7268 $as_echo "$MANIFEST_TOOL" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7276 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7277 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7278 # Extract the first word of "mt", so it can be a program name with args.
7279 set dummy mt; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7283 $as_echo_n "(cached) " >&6
7285 if test -n "$ac_ct_MANIFEST_TOOL"; then
7286 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7306 if test -n "$ac_ct_MANIFEST_TOOL"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7308 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7314 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7317 case $cross_compiling:$ac_tool_warned in
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7323 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7326 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7329 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7331 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7332 if ${lt_cv_path_mainfest_tool+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 lt_cv_path_mainfest_tool=no
7336 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7337 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7338 cat conftest.err >&5
7339 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7340 lt_cv_path_mainfest_tool=yes
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7345 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7346 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7356 rhapsody* | darwin*)
7357 if test -n "$ac_tool_prefix"; then
7358 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7359 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7363 $as_echo_n "(cached) " >&6
7365 if test -n "$DSYMUTIL"; then
7366 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7386 if test -n "$DSYMUTIL"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7388 $as_echo "$DSYMUTIL" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7396 if test -z "$ac_cv_prog_DSYMUTIL"; then
7397 ac_ct_DSYMUTIL=$DSYMUTIL
7398 # Extract the first word of "dsymutil", so it can be a program name with args.
7399 set dummy dsymutil; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7403 $as_echo_n "(cached) " >&6
7405 if test -n "$ac_ct_DSYMUTIL"; then
7406 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7426 if test -n "$ac_ct_DSYMUTIL"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7428 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7434 if test "x$ac_ct_DSYMUTIL" = x; then
7437 case $cross_compiling:$ac_tool_warned in
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7441 ac_tool_warned=yes ;;
7443 DSYMUTIL=$ac_ct_DSYMUTIL
7446 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7449 if test -n "$ac_tool_prefix"; then
7450 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_NMEDIT+:} false; then :
7455 $as_echo_n "(cached) " >&6
7457 if test -n "$NMEDIT"; then
7458 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 NMEDIT=$ac_cv_prog_NMEDIT
7478 if test -n "$NMEDIT"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7480 $as_echo "$NMEDIT" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7488 if test -z "$ac_cv_prog_NMEDIT"; then
7489 ac_ct_NMEDIT=$NMEDIT
7490 # Extract the first word of "nmedit", so it can be a program name with args.
7491 set dummy nmedit; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7495 $as_echo_n "(cached) " >&6
7497 if test -n "$ac_ct_NMEDIT"; then
7498 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7518 if test -n "$ac_ct_NMEDIT"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7520 $as_echo "$ac_ct_NMEDIT" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7526 if test "x$ac_ct_NMEDIT" = x; then
7529 case $cross_compiling:$ac_tool_warned in
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7535 NMEDIT=$ac_ct_NMEDIT
7538 NMEDIT="$ac_cv_prog_NMEDIT"
7541 if test -n "$ac_tool_prefix"; then
7542 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_LIPO+:} false; then :
7547 $as_echo_n "(cached) " >&6
7549 if test -n "$LIPO"; then
7550 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 LIPO=$ac_cv_prog_LIPO
7570 if test -n "$LIPO"; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7572 $as_echo "$LIPO" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7580 if test -z "$ac_cv_prog_LIPO"; then
7582 # Extract the first word of "lipo", so it can be a program name with args.
7583 set dummy lipo; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7587 $as_echo_n "(cached) " >&6
7589 if test -n "$ac_ct_LIPO"; then
7590 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_ac_ct_LIPO="lipo"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7610 if test -n "$ac_ct_LIPO"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7612 $as_echo "$ac_ct_LIPO" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7618 if test "x$ac_ct_LIPO" = x; then
7621 case $cross_compiling:$ac_tool_warned in
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7630 LIPO="$ac_cv_prog_LIPO"
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}otool; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_OTOOL+:} false; then :
7639 $as_echo_n "(cached) " >&6
7641 if test -n "$OTOOL"; then
7642 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 OTOOL=$ac_cv_prog_OTOOL
7662 if test -n "$OTOOL"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7664 $as_echo "$OTOOL" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7672 if test -z "$ac_cv_prog_OTOOL"; then
7674 # Extract the first word of "otool", so it can be a program name with args.
7675 set dummy otool; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 if test -n "$ac_ct_OTOOL"; then
7682 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691 ac_cv_prog_ac_ct_OTOOL="otool"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7702 if test -n "$ac_ct_OTOOL"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7704 $as_echo "$ac_ct_OTOOL" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7710 if test "x$ac_ct_OTOOL" = x; then
7713 case $cross_compiling:$ac_tool_warned in
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7722 OTOOL="$ac_cv_prog_OTOOL"
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_OTOOL64+:} false; then :
7731 $as_echo_n "(cached) " >&6
7733 if test -n "$OTOOL64"; then
7734 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 OTOOL64=$ac_cv_prog_OTOOL64
7754 if test -n "$OTOOL64"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7756 $as_echo "$OTOOL64" >&6; }
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7764 if test -z "$ac_cv_prog_OTOOL64"; then
7765 ac_ct_OTOOL64=$OTOOL64
7766 # Extract the first word of "otool64", so it can be a program name with args.
7767 set dummy otool64; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7771 $as_echo_n "(cached) " >&6
7773 if test -n "$ac_ct_OTOOL64"; then
7774 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_OTOOL64="otool64"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7794 if test -n "$ac_ct_OTOOL64"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7796 $as_echo "$ac_ct_OTOOL64" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_ct_OTOOL64" = x; then
7805 case $cross_compiling:$ac_tool_warned in
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7811 OTOOL64=$ac_ct_OTOOL64
7814 OTOOL64="$ac_cv_prog_OTOOL64"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7844 $as_echo_n "checking for -single_module linker flag... " >&6; }
7845 if ${lt_cv_apple_cc_single_mod+:} false; then :
7846 $as_echo_n "(cached) " >&6
7848 lt_cv_apple_cc_single_mod=no
7849 if test -z "${LT_MULTI_MODULE}"; then
7850 # By default we will add the -single_module flag. You can override
7851 # by either setting the environment variable LT_MULTI_MODULE
7852 # non-empty at configure time, or by adding -multi_module to the
7854 rm -rf libconftest.dylib*
7855 echo "int foo(void){return 1;}" > conftest.c
7856 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7857 -dynamiclib -Wl,-single_module conftest.c" >&5
7858 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7859 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7861 # If there is a non-empty error log, and "single_module"
7862 # appears in it, assume the flag caused a linker warning
7863 if test -s conftest.err && $GREP single_module conftest.err; then
7864 cat conftest.err >&5
7865 # Otherwise, if the output was created with a 0 exit code from
7866 # the compiler, it worked.
7867 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7868 lt_cv_apple_cc_single_mod=yes
7870 cat conftest.err >&5
7872 rm -rf libconftest.dylib*
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7877 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7880 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7881 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7882 $as_echo_n "(cached) " >&6
7884 lt_cv_ld_exported_symbols_list=no
7885 save_LDFLAGS=$LDFLAGS
7886 echo "_main" > conftest.sym
7887 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 lt_cv_ld_exported_symbols_list=yes
7902 lt_cv_ld_exported_symbols_list=no
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7906 LDFLAGS="$save_LDFLAGS"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7910 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7913 $as_echo_n "checking for -force_load linker flag... " >&6; }
7914 if ${lt_cv_ld_force_load+:} false; then :
7915 $as_echo_n "(cached) " >&6
7917 lt_cv_ld_force_load=no
7918 cat > conftest.c << _LT_EOF
7919 int forced_loaded() { return 2;}
7921 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7922 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7923 echo "$AR cru libconftest.a conftest.o" >&5
7924 $AR cru libconftest.a conftest.o 2>&5
7925 echo "$RANLIB libconftest.a" >&5
7926 $RANLIB libconftest.a 2>&5
7927 cat > conftest.c << _LT_EOF
7928 int main() { return 0;}
7930 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7931 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7933 if test -s conftest.err && $GREP force_load conftest.err; then
7934 cat conftest.err >&5
7935 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7936 lt_cv_ld_force_load=yes
7938 cat conftest.err >&5
7940 rm -f conftest.err libconftest.a conftest conftest.c
7941 rm -rf conftest.dSYM
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7945 $as_echo "$lt_cv_ld_force_load" >&6; }
7947 rhapsody* | darwin1.[012])
7948 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7950 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951 darwin*) # darwin 5.x on
7952 # if running on 10.5 or later, the deployment target defaults
7953 # to the OS version, if on x86, and 10.4, the deployment
7954 # target defaults to 10.4. Don't you love it?
7955 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7956 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7959 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7961 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7965 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7966 _lt_dar_single_mod='$single_module'
7968 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7969 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7971 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7973 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7974 _lt_dsymutil='~$DSYMUTIL $lib || :'
7981 for ac_header in dlfcn.h
7983 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7985 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7986 cat >>confdefs.h <<_ACEOF
7987 #define HAVE_DLFCN_H 1
7999 # Check whether --enable-static was given.
8000 if test "${enable_static+set}" = set; then :
8001 enableval=$enable_static; p=${PACKAGE-default}
8003 yes) enable_static=yes ;;
8004 no) enable_static=no ;;
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009 for pkg in $enableval; do
8011 if test "X$pkg" = "X$p"; then
8036 # Check whether --enable-shared was given.
8037 if test "${enable_shared+set}" = set; then :
8038 enableval=$enable_shared; p=${PACKAGE-default}
8040 yes) enable_shared=yes ;;
8041 no) enable_shared=no ;;
8044 # Look at the argument we got. We use all the common list separators.
8045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046 for pkg in $enableval; do
8048 if test "X$pkg" = "X$p"; then
8069 # Check whether --with-pic was given.
8070 if test "${with_pic+set}" = set; then :
8071 withval=$with_pic; lt_p=${PACKAGE-default}
8073 yes|no) pic_mode=$withval ;;
8076 # Look at the argument we got. We use all the common list separators.
8077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078 for lt_pkg in $withval; do
8080 if test "X$lt_pkg" = "X$lt_p"; then
8092 test -z "$pic_mode" && pic_mode=default
8100 # Check whether --enable-fast-install was given.
8101 if test "${enable_fast_install+set}" = set; then :
8102 enableval=$enable_fast_install; p=${PACKAGE-default}
8104 yes) enable_fast_install=yes ;;
8105 no) enable_fast_install=no ;;
8107 enable_fast_install=no
8108 # Look at the argument we got. We use all the common list separators.
8109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8110 for pkg in $enableval; do
8112 if test "X$pkg" = "X$p"; then
8113 enable_fast_install=yes
8120 enable_fast_install=yes
8133 # This can be used to rebuild libtool when needed
8134 LIBTOOL_DEPS="$ltmain"
8136 # Always use our own libtool.
8137 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8168 test -z "$LN_S" && LN_S="ln -s"
8183 if test -n "${ZSH_VERSION+set}" ; then
8184 setopt NO_GLOB_SUBST
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 $as_echo_n "checking for objdir... " >&6; }
8189 if ${lt_cv_objdir+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 rm -f .libs 2>/dev/null
8193 mkdir .libs 2>/dev/null
8194 if test -d .libs; then
8197 # MS-DOS does not allow filenames that begin with a dot.
8200 rmdir .libs 2>/dev/null
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203 $as_echo "$lt_cv_objdir" >&6; }
8204 objdir=$lt_cv_objdir
8210 cat >>confdefs.h <<_ACEOF
8211 #define LT_OBJDIR "$lt_cv_objdir/"
8219 # AIX sometimes has problems with the GCC collect2 program. For some
8220 # reason, if we set the COLLECT_NAMES environment variable, the problems
8221 # vanish in a puff of smoke.
8222 if test "X${COLLECT_NAMES+set}" != Xset; then
8224 export COLLECT_NAMES
8231 can_build_shared=yes
8233 # All known linkers require a `.a' archive for static linking (except MSVC,
8234 # which needs '.lib').
8237 with_gnu_ld="$lt_cv_prog_gnu_ld"
8240 old_CFLAGS="$CFLAGS"
8242 # Set sane defaults for various variables
8243 test -z "$CC" && CC=cc
8244 test -z "$LTCC" && LTCC=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246 test -z "$LD" && LD=ld
8247 test -z "$ac_objext" && ac_objext=o
8249 for cc_temp in $compiler""; do
8251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8257 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8260 # Only perform the check for file, if the check method requires it
8261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262 case $deplibs_check_method in
8264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268 $as_echo_n "(cached) " >&6
8272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8275 lt_save_MAGIC_CMD="$MAGIC_CMD"
8276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278 for ac_dir in $ac_dummy; do
8280 test -z "$ac_dir" && ac_dir=.
8281 if test -f $ac_dir/${ac_tool_prefix}file; then
8282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283 if test -n "$file_magic_test_file"; then
8284 case $deplibs_check_method in
8286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289 $EGREP "$file_magic_regex" > /dev/null; then
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such. This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem. Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8311 MAGIC_CMD="$lt_save_MAGIC_CMD"
8316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8329 if test -z "$lt_cv_path_MAGIC_CMD"; then
8330 if test -n "$ac_tool_prefix"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332 $as_echo_n "checking for file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached) " >&6
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8401 # Use C for the default configuration in the libtool script
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411 # Source file extension for C test sources.
8414 # Object file extension for compiled C test sources.
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;"
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}'
8430 # If no C compiler was specified, use CC.
8433 # If no C compiler flags were specified, use CFLAGS.
8434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8436 # Allow CC to be a program name with arguments.
8439 # Save the default compiler, since it gets overwritten when the other
8440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441 compiler_DEFAULT=$CC
8443 # save warnings/boilerplate of simple test code
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_compiler_boilerplate=`cat conftest.err`
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_linker_boilerplate=`cat conftest.err`
8457 if test -n "$compiler"; then
8459 lt_prog_compiler_no_builtin_flag=
8461 if test "$GCC" = yes; then
8462 case $cc_basename in
8464 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8466 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8470 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8471 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8472 $as_echo_n "(cached) " >&6
8474 lt_cv_prog_compiler_rtti_exceptions=no
8475 ac_outfile=conftest.$ac_objext
8476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477 lt_compiler_flag="-fno-rtti -fno-exceptions"
8478 # Insert the option either (1) after the last *FLAGS variable, or
8479 # (2) before a word containing "conftest.", or (3) at the end.
8480 # Note that $ac_compile itself does not contain backslashes and begins
8481 # with a dollar sign (not a hyphen), so the echo should work correctly.
8482 # The option is referenced via a variable to avoid confusing sed.
8483 lt_compile=`echo "$ac_compile" | $SED \
8484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486 -e 's:$: $lt_compiler_flag:'`
8487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488 (eval "$lt_compile" 2>conftest.err)
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 if (exit $ac_status) && test -s "$ac_outfile"; then
8493 # The compiler can only warn and ignore the option if not recognized
8494 # So say no if there are warnings other than the usual output.
8495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8498 lt_cv_prog_compiler_rtti_exceptions=yes
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8505 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8507 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8508 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8520 lt_prog_compiler_wl=
8521 lt_prog_compiler_pic=
8522 lt_prog_compiler_static=
8525 if test "$GCC" = yes; then
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_static='-static'
8531 # All AIX code is PIC.
8532 if test "$host_cpu" = ia64; then
8533 # AIX 5 now supports IA64 processor
8534 lt_prog_compiler_static='-Bstatic'
8541 # see comment about AmigaOS4 .so support
8542 lt_prog_compiler_pic='-fPIC'
8545 # FIXME: we need at least 68020 code to build shared libraries, but
8546 # adding the `-m68020' flag to GCC prevents building anything better,
8548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8553 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8554 # PIC is the default for these OSes.
8557 mingw* | cygwin* | pw32* | os2* | cegcc*)
8558 # This hack is so that the source file can tell whether it is being
8559 # built for inclusion in a dll (and should export symbols for example).
8560 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8561 # (--disable-auto-import) libraries
8562 lt_prog_compiler_pic='-DDLL_EXPORT'
8565 darwin* | rhapsody*)
8566 # PIC is the default on this platform
8567 # Common symbols not allowed in MH_DYLIB files
8568 lt_prog_compiler_pic='-fno-common'
8572 # PIC is the default for Haiku.
8573 # The "-static" flag exists, but is broken.
8574 lt_prog_compiler_static=
8578 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8579 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8580 # sets the default TLS model and affects inlining.
8586 lt_prog_compiler_pic='-fPIC'
8592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8593 # Instead, we relocate shared libraries at runtime.
8597 # Just because we use GCC doesn't mean we suddenly get shared libraries
8598 # on systems that don't support them.
8599 lt_prog_compiler_can_build_shared=no
8604 # QNX uses GNU C++, but need to define -shared option too, otherwise
8606 lt_prog_compiler_pic='-fPIC -shared'
8610 if test -d /usr/nec; then
8611 lt_prog_compiler_pic=-Kconform_pic
8616 lt_prog_compiler_pic='-fPIC'
8620 case $cc_basename in
8621 nvcc*) # Cuda Compiler Driver 2.2
8622 lt_prog_compiler_wl='-Xlinker '
8623 if test -n "$lt_prog_compiler_pic"; then
8624 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8629 # PORTME Check for flag to pass linker flags through the system compiler.
8632 lt_prog_compiler_wl='-Wl,'
8633 if test "$host_cpu" = ia64; then
8634 # AIX 5 now supports IA64 processor
8635 lt_prog_compiler_static='-Bstatic'
8637 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8641 mingw* | cygwin* | pw32* | os2* | cegcc*)
8642 # This hack is so that the source file can tell whether it is being
8643 # built for inclusion in a dll (and should export symbols for example).
8644 lt_prog_compiler_pic='-DDLL_EXPORT'
8647 hpux9* | hpux10* | hpux11*)
8648 lt_prog_compiler_wl='-Wl,'
8649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8656 lt_prog_compiler_pic='+Z'
8659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8660 lt_prog_compiler_static='${wl}-a ${wl}archive'
8663 irix5* | irix6* | nonstopux*)
8664 lt_prog_compiler_wl='-Wl,'
8665 # PIC (with -KPIC) is the default.
8666 lt_prog_compiler_static='-non_shared'
8669 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8670 case $cc_basename in
8671 # old Intel for x86_64 which still supported -KPIC.
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-static'
8677 # icc used to be incompatible with GCC.
8678 # ICC 10 doesn't accept -KPIC any more.
8680 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_pic='-fPIC'
8682 lt_prog_compiler_static='-static'
8684 # Lahey Fortran 8.1.
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_pic='--shared'
8688 lt_prog_compiler_static='--static'
8691 # NAG Fortran compiler
8692 lt_prog_compiler_wl='-Wl,-Wl,,'
8693 lt_prog_compiler_pic='-PIC'
8694 lt_prog_compiler_static='-Bstatic'
8696 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8697 # Portland Group compilers (*not* the Pentium gcc compiler,
8698 # which looks to be a dead project)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-fpic'
8701 lt_prog_compiler_static='-Bstatic'
8704 lt_prog_compiler_wl='-Wl,'
8705 # All Alpha code is PIC.
8706 lt_prog_compiler_static='-non_shared'
8708 xl* | bgxl* | bgf* | mpixl*)
8709 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='-qpic'
8712 lt_prog_compiler_static='-qstaticlink'
8715 case `$CC -V 2>&1 | sed 5q` in
8716 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8717 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8718 lt_prog_compiler_pic='-KPIC'
8719 lt_prog_compiler_static='-Bstatic'
8720 lt_prog_compiler_wl=''
8722 *Sun\ F* | *Sun*Fortran*)
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl='-Qoption ld '
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 lt_prog_compiler_wl='-Wl,'
8733 *Intel*\ [CF]*Compiler*)
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-fPIC'
8736 lt_prog_compiler_static='-static'
8739 lt_prog_compiler_wl='-Wl,'
8740 lt_prog_compiler_pic='-fpic'
8741 lt_prog_compiler_static='-Bstatic'
8749 lt_prog_compiler_pic='-KPIC'
8750 lt_prog_compiler_static='-Bstatic'
8754 # QNX uses GNU C++, but need to define -shared option too, otherwise
8756 lt_prog_compiler_pic='-fPIC -shared'
8759 osf3* | osf4* | osf5*)
8760 lt_prog_compiler_wl='-Wl,'
8761 # All OSF/1 code is PIC.
8762 lt_prog_compiler_static='-non_shared'
8766 lt_prog_compiler_static='-non_shared'
8770 lt_prog_compiler_pic='-KPIC'
8771 lt_prog_compiler_static='-Bstatic'
8772 case $cc_basename in
8773 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8774 lt_prog_compiler_wl='-Qoption ld ';;
8776 lt_prog_compiler_wl='-Wl,';;
8781 lt_prog_compiler_wl='-Qoption ld '
8782 lt_prog_compiler_pic='-PIC'
8783 lt_prog_compiler_static='-Bstatic'
8786 sysv4 | sysv4.2uw2* | sysv4.3*)
8787 lt_prog_compiler_wl='-Wl,'
8788 lt_prog_compiler_pic='-KPIC'
8789 lt_prog_compiler_static='-Bstatic'
8793 if test -d /usr/nec ;then
8794 lt_prog_compiler_pic='-Kconform_pic'
8795 lt_prog_compiler_static='-Bstatic'
8799 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_pic='-KPIC'
8802 lt_prog_compiler_static='-Bstatic'
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_can_build_shared=no
8811 lt_prog_compiler_pic='-pic'
8812 lt_prog_compiler_static='-Bstatic'
8816 lt_prog_compiler_can_build_shared=no
8822 # For platforms which do not support PIC, -DPIC is meaningless:
8824 lt_prog_compiler_pic=
8827 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8832 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8833 if ${lt_cv_prog_compiler_pic+:} false; then :
8834 $as_echo_n "(cached) " >&6
8836 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8839 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8840 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8843 # Check to make sure the PIC flag actually works.
8845 if test -n "$lt_prog_compiler_pic"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8847 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8848 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8849 $as_echo_n "(cached) " >&6
8851 lt_cv_prog_compiler_pic_works=no
8852 ac_outfile=conftest.$ac_objext
8853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8854 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8855 # Insert the option either (1) after the last *FLAGS variable, or
8856 # (2) before a word containing "conftest.", or (3) at the end.
8857 # Note that $ac_compile itself does not contain backslashes and begins
8858 # with a dollar sign (not a hyphen), so the echo should work correctly.
8859 # The option is referenced via a variable to avoid confusing sed.
8860 lt_compile=`echo "$ac_compile" | $SED \
8861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863 -e 's:$: $lt_compiler_flag:'`
8864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8865 (eval "$lt_compile" 2>conftest.err)
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 if (exit $ac_status) && test -s "$ac_outfile"; then
8870 # The compiler can only warn and ignore the option if not recognized
8871 # So say no if there are warnings other than the usual output.
8872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8875 lt_cv_prog_compiler_pic_works=yes
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8882 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8884 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8885 case $lt_prog_compiler_pic in
8887 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8890 lt_prog_compiler_pic=
8891 lt_prog_compiler_can_build_shared=no
8907 # Check to make sure the static flag actually works.
8909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8911 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8912 if ${lt_cv_prog_compiler_static_works+:} false; then :
8913 $as_echo_n "(cached) " >&6
8915 lt_cv_prog_compiler_static_works=no
8916 save_LDFLAGS="$LDFLAGS"
8917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8920 # The linker can only warn and ignore the option if not recognized
8921 # So say no if there are warnings
8922 if test -s conftest.err; then
8923 # Append any errors to the config.log.
8924 cat conftest.err 1>&5
8925 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8927 if diff conftest.exp conftest.er2 >/dev/null; then
8928 lt_cv_prog_compiler_static_works=yes
8931 lt_cv_prog_compiler_static_works=yes
8935 LDFLAGS="$save_LDFLAGS"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8939 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8944 lt_prog_compiler_static=
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8955 if ${lt_cv_prog_compiler_c_o+:} false; then :
8956 $as_echo_n "(cached) " >&6
8958 lt_cv_prog_compiler_c_o=no
8959 $RM -r conftest 2>/dev/null
8963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8965 lt_compiler_flag="-o out/conftest2.$ac_objext"
8966 # Insert the option either (1) after the last *FLAGS variable, or
8967 # (2) before a word containing "conftest.", or (3) at the end.
8968 # Note that $ac_compile itself does not contain backslashes and begins
8969 # with a dollar sign (not a hyphen), so the echo should work correctly.
8970 lt_compile=`echo "$ac_compile" | $SED \
8971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8973 -e 's:$: $lt_compiler_flag:'`
8974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8975 (eval "$lt_compile" 2>out/conftest.err)
8977 cat out/conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8981 # The compiler can only warn and ignore the option if not recognized
8982 # So say no if there are warnings
8983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8986 lt_cv_prog_compiler_c_o=yes
8991 # SGI C++ compiler will create directory out/ii_files/ for
8992 # template instantiation
8993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8994 $RM out/* && rmdir out
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9010 if ${lt_cv_prog_compiler_c_o+:} false; then :
9011 $as_echo_n "(cached) " >&6
9013 lt_cv_prog_compiler_c_o=no
9014 $RM -r conftest 2>/dev/null
9018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9020 lt_compiler_flag="-o out/conftest2.$ac_objext"
9021 # Insert the option either (1) after the last *FLAGS variable, or
9022 # (2) before a word containing "conftest.", or (3) at the end.
9023 # Note that $ac_compile itself does not contain backslashes and begins
9024 # with a dollar sign (not a hyphen), so the echo should work correctly.
9025 lt_compile=`echo "$ac_compile" | $SED \
9026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9028 -e 's:$: $lt_compiler_flag:'`
9029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9030 (eval "$lt_compile" 2>out/conftest.err)
9032 cat out/conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9036 # The compiler can only warn and ignore the option if not recognized
9037 # So say no if there are warnings
9038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9041 lt_cv_prog_compiler_c_o=yes
9046 # SGI C++ compiler will create directory out/ii_files/ for
9047 # template instantiation
9048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9049 $RM out/* && rmdir out
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9061 hard_links="nottested"
9062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9063 # do not overwrite the value of need_locks provided by the user
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9065 $as_echo_n "checking if we can lock with hard links... " >&6; }
9068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9070 ln conftest.a conftest.b 2>&5 || hard_links=no
9071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9073 $as_echo "$hard_links" >&6; }
9074 if test "$hard_links" = no; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9076 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9092 allow_undefined_flag=
9093 always_export_symbols=no
9095 archive_expsym_cmds=
9096 compiler_needs_object=no
9097 enable_shared_with_static_runtimes=no
9098 export_dynamic_flag_spec=
9099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9100 hardcode_automatic=no
9102 hardcode_direct_absolute=no
9103 hardcode_libdir_flag_spec=
9104 hardcode_libdir_separator=
9106 hardcode_shlibpath_var=unsupported
9108 link_all_deplibs=unknown
9111 old_archive_from_new_cmds=
9112 old_archive_from_expsyms_cmds=
9113 thread_safe_flag_spec=
9114 whole_archive_flag_spec=
9115 # include_expsyms should be a list of space-separated symbols to be *always*
9116 # included in the symbol list
9118 # exclude_expsyms can be an extended regexp of symbols to exclude
9119 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9120 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9121 # as well as any symbol that contains `d'.
9122 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9123 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9124 # platforms (ab)use it in PIC code, but their linkers get confused if
9125 # the symbol is explicitly referenced. Since portable code cannot
9126 # rely on this symbol name, it's probably fine to never include it in
9127 # preloaded symbol tables.
9128 # Exclude shared library initialization/finalization symbols.
9129 extract_expsyms_cmds=
9132 cygwin* | mingw* | pw32* | cegcc*)
9133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9134 # When not using gcc, we currently assume that we are using
9135 # Microsoft Visual C++.
9136 if test "$GCC" != yes; then
9141 # we just hope/assume this is gcc and not c89 (= MSVC++)
9151 # On some targets, GNU ld is compatible enough with the native linker
9152 # that we're better off using the native interface for both.
9153 lt_use_gnu_ld_interface=no
9154 if test "$with_gnu_ld" = yes; then
9157 # The AIX port of GNU ld has always aspired to compatibility
9158 # with the native linker. However, as the warning in the GNU ld
9159 # block says, versions before 2.19.5* couldn't really create working
9160 # shared libraries, regardless of the interface used.
9161 case `$LD -v 2>&1` in
9162 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9163 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9164 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9166 lt_use_gnu_ld_interface=yes
9171 lt_use_gnu_ld_interface=yes
9176 if test "$lt_use_gnu_ld_interface" = yes; then
9177 # If archive_cmds runs LD, not CC, wlarc should be empty
9180 # Set some defaults for GNU ld with shared library support. These
9181 # are reset later if shared libraries are not supported. Putting them
9182 # here allows them to be overridden if necessary.
9183 runpath_var=LD_RUN_PATH
9184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9185 export_dynamic_flag_spec='${wl}--export-dynamic'
9186 # ancient GNU ld didn't support --whole-archive et. al.
9187 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9188 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9190 whole_archive_flag_spec=
9192 supports_anon_versioning=no
9193 case `$LD -v 2>&1` in
9194 *GNU\ gold*) supports_anon_versioning=yes ;;
9195 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9196 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9197 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9198 *\ 2.11.*) ;; # other 2.11 versions
9199 *) supports_anon_versioning=yes ;;
9202 # See if GNU ld supports shared libraries.
9205 # On AIX/PPC, the GNU linker is very broken
9206 if test "$host_cpu" != ia64; then
9210 *** Warning: the GNU linker, at least up to release 2.19, is reported
9211 *** to be unable to reliably create shared libraries on AIX.
9212 *** Therefore, libtool is disabling shared libraries support. If you
9213 *** really care for shared libraries, you may want to install binutils
9214 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9215 *** You will then need to restart the configuration process.
9224 # see comment about AmigaOS4 .so support
9225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 archive_expsym_cmds=''
9229 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)'
9230 hardcode_libdir_flag_spec='-L$libdir'
9231 hardcode_minus_L=yes
9237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9238 allow_undefined_flag=unsupported
9239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9240 # support --undefined. This deserves some investigation. FIXME
9241 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 cygwin* | mingw* | pw32* | cegcc*)
9248 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9249 # as there is no search path for DLLs.
9250 hardcode_libdir_flag_spec='-L$libdir'
9251 export_dynamic_flag_spec='${wl}--export-all-symbols'
9252 allow_undefined_flag=unsupported
9253 always_export_symbols=no
9254 enable_shared_with_static_runtimes=yes
9255 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'
9256 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9258 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9260 # If the export-symbols file already is a .def file (1st line
9261 # is EXPORTS), use it as is; otherwise, prepend...
9262 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9263 cp $export_symbols $output_objdir/$soname.def;
9265 echo EXPORTS > $output_objdir/$soname.def;
9266 cat $export_symbols >> $output_objdir/$soname.def;
9268 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 link_all_deplibs=yes
9281 hardcode_shlibpath_var=no
9282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9283 export_dynamic_flag_spec='${wl}-E'
9284 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9285 # Instead, shared libraries are loaded at an image base (0x10000000 by
9286 # default) and relocated if they conflict, which is a slow very memory
9287 # consuming and fragmenting process. To avoid this, we pick a random,
9288 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9289 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9291 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'
9294 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9296 if test "$host_os" = linux-dietlibc; then
9297 case $cc_basename in
9298 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9301 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9302 && test "$tmp_diet" = no
9304 tmp_addflag=' $pic_flag'
9305 tmp_sharedflag='-shared'
9306 case $cc_basename,$host_cpu in
9307 pgcc*) # Portland Group C compiler
9308 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'
9309 tmp_addflag=' $pic_flag'
9311 pgf77* | pgf90* | pgf95* | pgfortran*)
9312 # Portland Group f77 and f90 compilers
9313 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'
9314 tmp_addflag=' $pic_flag -Mnomain' ;;
9315 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9316 tmp_addflag=' -i_dynamic' ;;
9317 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9318 tmp_addflag=' -i_dynamic -nofor_main' ;;
9319 ifc* | ifort*) # Intel Fortran compiler
9320 tmp_addflag=' -nofor_main' ;;
9321 lf95*) # Lahey Fortran 8.1
9322 whole_archive_flag_spec=
9323 tmp_sharedflag='--shared' ;;
9324 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9325 tmp_sharedflag='-qmkshrobj'
9327 nvcc*) # Cuda Compiler Driver 2.2
9328 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'
9329 compiler_needs_object=yes
9332 case `$CC -V 2>&1 | sed 5q` in
9333 *Sun\ C*) # Sun C 5.9
9334 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'
9335 compiler_needs_object=yes
9336 tmp_sharedflag='-G' ;;
9337 *Sun\ F*) # Sun Fortran 8.3
9338 tmp_sharedflag='-G' ;;
9340 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342 if test "x$supports_anon_versioning" = xyes; then
9343 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9345 echo "local: *; };" >> $output_objdir/$libname.ver~
9346 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9349 case $cc_basename in
9350 xlf* | bgf* | bgxlf* | mpixlf*)
9351 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9352 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9354 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9355 if test "x$supports_anon_versioning" = xyes; then
9356 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9358 echo "local: *; };" >> $output_objdir/$libname.ver~
9359 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9379 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9384 *** create shared libraries on Solaris systems. Therefore, libtool
9385 *** is disabling shared libraries support. We urge you to upgrade GNU
9386 *** binutils to release 2.9.1 or newer. Another option is to modify
9387 *** your PATH or compiler configuration so that the native linker is
9388 *** used, and then restart.
9391 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9400 case `$LD -v 2>&1` in
9401 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9405 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9406 *** reliably create shared libraries on SCO systems. Therefore, libtool
9407 *** is disabling shared libraries support. We urge you to upgrade GNU
9408 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9409 *** your PATH or compiler configuration so that the native linker is
9410 *** used, and then restart.
9415 # For security reasons, it is highly recommended that you always
9416 # use absolute paths for naming shared libraries, and exclude the
9417 # DT_RUNPATH tag from executables and libraries. But doing so
9418 # requires that you compile everything twice, which is a pain.
9419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9431 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9434 hardcode_shlibpath_var=no
9438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9440 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9447 if test "$ld_shlibs" = no; then
9449 hardcode_libdir_flag_spec=
9450 export_dynamic_flag_spec=
9451 whole_archive_flag_spec=
9454 # PORTME fill in a description of your system's linker (not GNU ld)
9457 allow_undefined_flag=unsupported
9458 always_export_symbols=yes
9459 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'
9460 # Note: this linker hardcodes the directories in LIBPATH if there
9461 # are no directories specified by -L.
9462 hardcode_minus_L=yes
9463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9464 # Neither direct hardcoding nor static linking is supported with a
9466 hardcode_direct=unsupported
9471 if test "$host_cpu" = ia64; then
9472 # On IA64, the linker does run time linking by default, so we don't
9473 # have to do anything special.
9474 aix_use_runtimelinking=no
9475 exp_sym_flag='-Bexport'
9478 # If we're using GNU nm, then we don't want the "-C" option.
9479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9480 # Also, AIX nm treats weak defined symbols like other global
9481 # defined symbols, whereas GNU nm marks them as "W".
9482 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9483 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'
9485 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'
9487 aix_use_runtimelinking=no
9489 # Test if we are trying to use run time linking or normal
9490 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9491 # need to do runtime linking.
9492 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9493 for ld_flag in $LDFLAGS; do
9494 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9495 aix_use_runtimelinking=yes
9502 exp_sym_flag='-bexport'
9503 no_entry_flag='-bnoentry'
9506 # When large executables or shared objects are built, AIX ld can
9507 # have problems creating the table of contents. If linking a library
9508 # or program results in "error TOC overflow" add -mminimal-toc to
9509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9514 hardcode_direct_absolute=yes
9515 hardcode_libdir_separator=':'
9516 link_all_deplibs=yes
9517 file_list_spec='${wl}-f,'
9519 if test "$GCC" = yes; then
9520 case $host_os in aix4.[012]|aix4.[012].*)
9521 # We only want to do this on AIX 4.2 and lower, the check
9522 # below for broken collect2 doesn't work under 4.3+
9523 collect2name=`${CC} -print-prog-name=collect2`
9524 if test -f "$collect2name" &&
9525 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9527 # We have reworked collect2
9530 # We have old collect2
9531 hardcode_direct=unsupported
9532 # It fails to find uninstalled libraries when the uninstalled
9533 # path is not listed in the libpath. Setting hardcode_minus_L
9534 # to unsupported forces relinking
9535 hardcode_minus_L=yes
9536 hardcode_libdir_flag_spec='-L$libdir'
9537 hardcode_libdir_separator=
9541 shared_flag='-shared'
9542 if test "$aix_use_runtimelinking" = yes; then
9543 shared_flag="$shared_flag "'${wl}-G'
9547 if test "$host_cpu" = ia64; then
9548 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9549 # chokes on -Wl,-G. The following line is correct:
9552 if test "$aix_use_runtimelinking" = yes; then
9553 shared_flag='${wl}-G'
9555 shared_flag='${wl}-bM:SRE'
9560 export_dynamic_flag_spec='${wl}-bexpall'
9561 # It seems that -bexpall does not export symbols beginning with
9562 # underscore (_), so it is better to generate a list of symbols to export.
9563 always_export_symbols=yes
9564 if test "$aix_use_runtimelinking" = yes; then
9565 # Warning - without using the other runtime loading flags (-brtl),
9566 # -berok will link without error, but may produce a broken library.
9567 allow_undefined_flag='-berok'
9568 # Determine the default libpath from the value encoded in an
9570 if test "${lt_cv_aix_libpath+set}" = set; then
9571 aix_libpath=$lt_cv_aix_libpath
9573 if ${lt_cv_aix_libpath_+:} false; then :
9574 $as_echo_n "(cached) " >&6
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9587 if ac_fn_c_try_link "$LINENO"; then :
9589 lt_aix_libpath_sed='
9590 /Import File Strings/,/^$/ {
9592 s/^0 *\([^ ]*\) *$/\1/
9596 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9597 # Check for a 64-bit object if we didn't find anything.
9598 if test -z "$lt_cv_aix_libpath_"; then
9599 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9602 rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604 if test -z "$lt_cv_aix_libpath_"; then
9605 lt_cv_aix_libpath_="/usr/lib:/lib"
9610 aix_libpath=$lt_cv_aix_libpath_
9613 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9614 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"
9616 if test "$host_cpu" = ia64; then
9617 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9618 allow_undefined_flag="-z nodefs"
9619 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"
9621 # Determine the default libpath from the value encoded in an
9623 if test "${lt_cv_aix_libpath+set}" = set; then
9624 aix_libpath=$lt_cv_aix_libpath
9626 if ${lt_cv_aix_libpath_+:} false; then :
9627 $as_echo_n "(cached) " >&6
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9640 if ac_fn_c_try_link "$LINENO"; then :
9642 lt_aix_libpath_sed='
9643 /Import File Strings/,/^$/ {
9645 s/^0 *\([^ ]*\) *$/\1/
9649 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9650 # Check for a 64-bit object if we didn't find anything.
9651 if test -z "$lt_cv_aix_libpath_"; then
9652 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9655 rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657 if test -z "$lt_cv_aix_libpath_"; then
9658 lt_cv_aix_libpath_="/usr/lib:/lib"
9663 aix_libpath=$lt_cv_aix_libpath_
9666 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9667 # Warning - without using the other run time loading flags,
9668 # -berok will link without error, but may produce a broken library.
9669 no_undefined_flag=' ${wl}-bernotok'
9670 allow_undefined_flag=' ${wl}-berok'
9671 if test "$with_gnu_ld" = yes; then
9672 # We only use this code for GNU lds that support --whole-archive.
9673 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9675 # Exported symbols can be pulled into shared objects from archives
9676 whole_archive_flag_spec='$convenience'
9678 archive_cmds_need_lc=yes
9679 # This is similar to how AIX traditionally builds its shared libraries.
9680 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'
9688 # see comment about AmigaOS4 .so support
9689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9690 archive_expsym_cmds=''
9693 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)'
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_minus_L=yes
9701 export_dynamic_flag_spec=-rdynamic
9704 cygwin* | mingw* | pw32* | cegcc*)
9705 # When not using gcc, we currently assume that we are using
9706 # Microsoft Visual C++.
9707 # hardcode_libdir_flag_spec is actually meaningless, as there is
9708 # no search path for DLLs.
9709 case $cc_basename in
9712 hardcode_libdir_flag_spec=' '
9713 allow_undefined_flag=unsupported
9714 always_export_symbols=yes
9716 # Tell ltmain to make .lib files, not .a files.
9718 # Tell ltmain to make .dll files, not .so files.
9720 # FIXME: Setting linknames here is a bad hack.
9721 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9722 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9723 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9725 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9727 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9729 # The linker will not automatically build a static lib if we build a DLL.
9730 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9731 enable_shared_with_static_runtimes=yes
9732 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9735 old_postinstall_cmds='chmod 644 $oldlib'
9736 postlink_cmds='lt_outputfile="@OUTPUT@"~
9737 lt_tool_outputfile="@TOOL_OUTPUT@"~
9738 case $lt_outputfile in
9741 lt_outputfile="$lt_outputfile.exe"
9742 lt_tool_outputfile="$lt_tool_outputfile.exe"
9745 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9746 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9747 $RM "$lt_outputfile.manifest";
9751 # Assume MSVC wrapper
9752 hardcode_libdir_flag_spec=' '
9753 allow_undefined_flag=unsupported
9754 # Tell ltmain to make .lib files, not .a files.
9756 # Tell ltmain to make .dll files, not .so files.
9758 # FIXME: Setting linknames here is a bad hack.
9759 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9760 # The linker will automatically build a .lib file if we build a DLL.
9761 old_archive_from_new_cmds='true'
9762 # FIXME: Should let the user specify the lib program.
9763 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9764 enable_shared_with_static_runtimes=yes
9769 darwin* | rhapsody*)
9772 archive_cmds_need_lc=no
9774 hardcode_automatic=yes
9775 hardcode_shlibpath_var=unsupported
9776 if test "$lt_cv_ld_force_load" = "yes"; then
9777 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\"`'
9780 whole_archive_flag_spec=''
9782 link_all_deplibs=yes
9783 allow_undefined_flag="$_lt_dar_allow_undefined"
9784 case $cc_basename in
9785 ifort*) _lt_dar_can_shared=yes ;;
9786 *) _lt_dar_can_shared=$GCC ;;
9788 if test "$_lt_dar_can_shared" = "yes"; then
9789 output_verbose_link_cmd=func_echo_all
9790 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9791 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9792 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}"
9793 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}"
9802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9803 hardcode_libdir_flag_spec='-L$libdir'
9804 hardcode_shlibpath_var=no
9807 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9808 # support. Future versions do this automatically, but an explicit c++rt0.o
9809 # does not break anything, and helps significantly (at the cost of a little
9812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9813 hardcode_libdir_flag_spec='-R$libdir'
9815 hardcode_shlibpath_var=no
9818 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_minus_L=yes
9823 hardcode_shlibpath_var=no
9826 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9827 freebsd* | dragonfly*)
9828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9829 hardcode_libdir_flag_spec='-R$libdir'
9831 hardcode_shlibpath_var=no
9835 if test "$GCC" = yes; then
9836 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'
9838 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'
9840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9841 hardcode_libdir_separator=:
9844 # hardcode_minus_L: Not really in the search PATH,
9845 # but as the default location of the library.
9846 hardcode_minus_L=yes
9847 export_dynamic_flag_spec='${wl}-E'
9851 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9852 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9856 if test "$with_gnu_ld" = no; then
9857 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9858 hardcode_libdir_separator=:
9860 hardcode_direct_absolute=yes
9861 export_dynamic_flag_spec='${wl}-E'
9862 # hardcode_minus_L: Not really in the search PATH,
9863 # but as the default location of the library.
9864 hardcode_minus_L=yes
9869 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9872 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9875 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9878 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9884 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9891 # Older versions of the 11.00 compiler do not understand -b yet
9892 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9894 $as_echo_n "checking if $CC understands -b... " >&6; }
9895 if ${lt_cv_prog_compiler__b+:} false; then :
9896 $as_echo_n "(cached) " >&6
9898 lt_cv_prog_compiler__b=no
9899 save_LDFLAGS="$LDFLAGS"
9900 LDFLAGS="$LDFLAGS -b"
9901 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9902 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9903 # The linker can only warn and ignore the option if not recognized
9904 # So say no if there are warnings
9905 if test -s conftest.err; then
9906 # Append any errors to the config.log.
9907 cat conftest.err 1>&5
9908 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9910 if diff conftest.exp conftest.er2 >/dev/null; then
9911 lt_cv_prog_compiler__b=yes
9914 lt_cv_prog_compiler__b=yes
9918 LDFLAGS="$save_LDFLAGS"
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9922 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9924 if test x"$lt_cv_prog_compiler__b" = xyes; then
9925 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9933 if test "$with_gnu_ld" = no; then
9934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9935 hardcode_libdir_separator=:
9940 hardcode_shlibpath_var=no
9944 hardcode_direct_absolute=yes
9945 export_dynamic_flag_spec='${wl}-E'
9947 # hardcode_minus_L: Not really in the search PATH,
9948 # but as the default location of the library.
9949 hardcode_minus_L=yes
9955 irix5* | irix6* | nonstopux*)
9956 if test "$GCC" = yes; then
9957 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'
9958 # Try to use the -exported_symbol ld option, if it does not
9959 # work, assume that -exports_file does not work either and
9960 # implicitly export all symbols.
9961 # This should be the same for all languages, so no per-tag cache variable.
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9963 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9964 if ${lt_cv_irix_exported_symbol+:} false; then :
9965 $as_echo_n "(cached) " >&6
9967 save_LDFLAGS="$LDFLAGS"
9968 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 int foo (void) { return 0; }
9973 if ac_fn_c_try_link "$LINENO"; then :
9974 lt_cv_irix_exported_symbol=yes
9976 lt_cv_irix_exported_symbol=no
9978 rm -f core conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 LDFLAGS="$save_LDFLAGS"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9983 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9984 if test "$lt_cv_irix_exported_symbol" = yes; then
9985 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'
9988 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'
9989 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'
9991 archive_cmds_need_lc='no'
9992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9993 hardcode_libdir_separator=:
9995 link_all_deplibs=yes
9999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10002 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10004 hardcode_libdir_flag_spec='-R$libdir'
10005 hardcode_direct=yes
10006 hardcode_shlibpath_var=no
10010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011 hardcode_direct=yes
10012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10013 hardcode_libdir_separator=:
10014 hardcode_shlibpath_var=no
10021 if test -f /usr/libexec/ld.so; then
10022 hardcode_direct=yes
10023 hardcode_shlibpath_var=no
10024 hardcode_direct_absolute=yes
10025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10028 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10029 export_dynamic_flag_spec='${wl}-E'
10032 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_libdir_flag_spec='-R$libdir'
10037 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10048 hardcode_libdir_flag_spec='-L$libdir'
10049 hardcode_minus_L=yes
10050 allow_undefined_flag=unsupported
10051 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'
10052 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10056 if test "$GCC" = yes; then
10057 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10058 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'
10060 allow_undefined_flag=' -expect_unresolved \*'
10061 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'
10063 archive_cmds_need_lc='no'
10064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065 hardcode_libdir_separator=:
10068 osf4* | osf5*) # as osf3* with the addition of -msym flag
10069 if test "$GCC" = yes; then
10070 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10071 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'
10072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074 allow_undefined_flag=' -expect_unresolved \*'
10075 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'
10076 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~
10077 $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'
10079 # Both c and cxx compiler support -rpath directly
10080 hardcode_libdir_flag_spec='-rpath $libdir'
10082 archive_cmds_need_lc='no'
10083 hardcode_libdir_separator=:
10087 no_undefined_flag=' -z defs'
10088 if test "$GCC" = yes; then
10090 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10092 $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'
10094 case `$CC -V 2>&1` in
10097 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10099 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10103 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10104 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10105 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10109 hardcode_libdir_flag_spec='-R$libdir'
10110 hardcode_shlibpath_var=no
10112 solaris2.[0-5] | solaris2.[0-5].*) ;;
10114 # The compiler driver will combine and reorder linker options,
10115 # but understands `-z linker_flag'. GCC discards it without `$wl',
10116 # but is careful enough not to reorder.
10117 # Supported since Solaris 2.6 (maybe 2.5.1?)
10118 if test "$GCC" = yes; then
10119 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10121 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10125 link_all_deplibs=yes
10129 if test "x$host_vendor" = xsequent; then
10130 # Use $CC to link under sequent, because it throws in some extra .o
10131 # files that make .init and .fini sections work.
10132 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10134 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_libdir_flag_spec='-L$libdir'
10137 hardcode_direct=yes
10138 hardcode_minus_L=yes
10139 hardcode_shlibpath_var=no
10143 case $host_vendor in
10145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_direct=yes # is this really true???
10149 ## LD is ld it makes a PLAMLIB
10150 ## CC just makes a GrossModule.
10151 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10152 reload_cmds='$CC -r -o $output$reload_objs'
10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10160 runpath_var='LD_RUN_PATH'
10161 hardcode_shlibpath_var=no
10165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166 hardcode_shlibpath_var=no
10167 export_dynamic_flag_spec='-Bexport'
10171 if test -d /usr/nec; then
10172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173 hardcode_shlibpath_var=no
10174 runpath_var=LD_RUN_PATH
10175 hardcode_runpath_var=yes
10180 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10181 no_undefined_flag='${wl}-z,text'
10182 archive_cmds_need_lc=no
10183 hardcode_shlibpath_var=no
10184 runpath_var='LD_RUN_PATH'
10186 if test "$GCC" = yes; then
10187 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 sysv5* | sco3.2v5* | sco5v6*)
10196 # Note: We can NOT use -z defs as we might desire, because we do not
10197 # link with -lc, and that would cause any symbols used from libc to
10198 # always be unresolved, which means just about no library would
10199 # ever link correctly. If we're not using GNU ld we use -z text
10200 # though, which does catch some bad symbols but isn't as heavy-handed
10202 no_undefined_flag='${wl}-z,text'
10203 allow_undefined_flag='${wl}-z,nodefs'
10204 archive_cmds_need_lc=no
10205 hardcode_shlibpath_var=no
10206 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10207 hardcode_libdir_separator=':'
10208 link_all_deplibs=yes
10209 export_dynamic_flag_spec='${wl}-Bexport'
10210 runpath_var='LD_RUN_PATH'
10212 if test "$GCC" = yes; then
10213 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_libdir_flag_spec='-L$libdir'
10224 hardcode_shlibpath_var=no
10232 if test x$host_vendor = xsni; then
10234 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10235 export_dynamic_flag_spec='${wl}-Blargedynsym'
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10242 $as_echo "$ld_shlibs" >&6; }
10243 test "$ld_shlibs" = no && can_build_shared=no
10245 with_gnu_ld=$with_gnu_ld
10262 # Do we need to explicitly link libc?
10264 case "x$archive_cmds_need_lc" in
10266 # Assume -lc should be added
10267 archive_cmds_need_lc=yes
10269 if test "$enable_shared" = yes && test "$GCC" = yes; then
10270 case $archive_cmds in
10272 # FIXME: we may have to deal with multi-command sequences.
10275 # Test whether the compiler implicitly links with -lc since on some
10276 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10277 # to ld, don't add -lc before -lgcc.
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10279 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10280 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10281 $as_echo_n "(cached) " >&6
10284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10287 (eval $ac_compile) 2>&5
10289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10290 test $ac_status = 0; } 2>conftest.err; then
10293 libobjs=conftest.$ac_objext
10295 wl=$lt_prog_compiler_wl
10296 pic_flag=$lt_prog_compiler_pic
10302 lt_save_allow_undefined_flag=$allow_undefined_flag
10303 allow_undefined_flag=
10304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10305 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308 test $ac_status = 0; }
10310 lt_cv_archive_cmds_need_lc=no
10312 lt_cv_archive_cmds_need_lc=yes
10314 allow_undefined_flag=$lt_save_allow_undefined_flag
10316 cat conftest.err 1>&5
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10322 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10323 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10482 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10484 if test "$GCC" = yes; then
10486 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10487 *) lt_awk_arg="/^libraries:/" ;;
10490 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10491 *) lt_sed_strip_eq="s,=/,/,g" ;;
10493 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10494 case $lt_search_path_spec in
10496 # if the path contains ";" then we assume it to be the separator
10497 # otherwise default to the standard path separator (i.e. ":") - it is
10498 # assumed that no part of a normal pathname contains ";" but that should
10499 # okay in the real world where ";" in dirpaths is itself problematic.
10500 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10503 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10506 # Ok, now we have the path, separated by spaces, we can step through it
10507 # and add multilib dir if necessary.
10508 lt_tmp_lt_search_path_spec=
10509 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10510 for lt_sys_path in $lt_search_path_spec; do
10511 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10512 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10514 test -d "$lt_sys_path" && \
10515 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10518 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10519 BEGIN {RS=" "; FS="/|\n";} {
10522 for (lt_i = NF; lt_i > 0; lt_i--) {
10523 if ($lt_i != "" && $lt_i != ".") {
10524 if ($lt_i == "..") {
10527 if (lt_count == 0) {
10528 lt_foo="/" $lt_i lt_foo;
10535 if (lt_foo != "") { lt_freq[lt_foo]++; }
10536 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10538 # AWK program above erroneously prepends '/' to C:/dos/paths
10541 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10542 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10544 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10546 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10548 library_names_spec=
10549 libname_spec='lib$name'
10553 postuninstall_cmds=
10557 shlibpath_overrides_runpath=unknown
10559 dynamic_linker="$host_os ld.so"
10560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10561 need_lib_prefix=unknown
10562 hardcode_into_libs=no
10564 # when you set need_version to no, make sure it does not cause -set_version
10565 # flags to be left without arguments
10566 need_version=unknown
10570 version_type=linux # correct to gnu/linux during the next big refactor
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10572 shlibpath_var=LIBPATH
10574 # AIX 3 has no versioning support, so we append a major version to the name.
10575 soname_spec='${libname}${release}${shared_ext}$major'
10579 version_type=linux # correct to gnu/linux during the next big refactor
10582 hardcode_into_libs=yes
10583 if test "$host_cpu" = ia64; then
10584 # AIX 5 supports IA64
10585 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10586 shlibpath_var=LD_LIBRARY_PATH
10588 # With GCC up to 2.95.x, collect2 would create an import file
10589 # for dependence libraries. The import file would start with
10590 # the line `#! .'. This would cause the generated library to
10591 # depend on `.', always an invalid library. This was fixed in
10592 # development snapshots of GCC prior to 3.0.
10594 aix4 | aix4.[01] | aix4.[01].*)
10595 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10597 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10600 can_build_shared=no
10604 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10605 # soname into executable. Probably we can add versioning support to
10606 # collect2, so additional links can be useful in future.
10607 if test "$aix_use_runtimelinking" = yes; then
10608 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10609 # instead of lib<name>.a to let people know that these are not
10610 # typical AIX shared libraries.
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 # We preserve .a as extension for shared libraries through AIX4.2
10614 # and later when we are not doing run time linking.
10615 library_names_spec='${libname}${release}.a $libname.a'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10618 shlibpath_var=LIBPATH
10625 # Since July 2007 AmigaOS4 officially supports .so libraries.
10626 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 library_names_spec='$libname.ixlibrary $libname.a'
10631 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10632 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'
10638 library_names_spec='${libname}${shared_ext}'
10639 dynamic_linker="$host_os ld.so"
10640 shlibpath_var=LIBRARY_PATH
10644 version_type=linux # correct to gnu/linux during the next big refactor
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10649 shlibpath_var=LD_LIBRARY_PATH
10650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10652 # the default ld.so.conf also contains /usr/contrib/lib and
10653 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10654 # libtool to hard-code these into programs
10657 cygwin* | mingw* | pw32* | cegcc*)
10658 version_type=windows
10663 case $GCC,$cc_basename in
10666 library_names_spec='$libname.dll.a'
10667 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10668 postinstall_cmds='base_file=`basename \${file}`~
10669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10670 dldir=$destdir/`dirname \$dlpath`~
10671 test -d \$dldir || mkdir -p \$dldir~
10672 $install_prog $dir/$dlname \$dldir/$dlname~
10673 chmod a+x \$dldir/$dlname~
10674 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10675 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10678 dlpath=$dir/\$dldll~
10680 shlibpath_overrides_runpath=yes
10684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10687 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10690 # MinGW DLLs use traditional 'lib' prefix
10691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10694 # pw32 DLLs use 'pw' prefix rather than 'lib'
10695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10698 dynamic_linker='Win32 ld.exe'
10703 libname_spec='$name'
10704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10705 library_names_spec='${libname}.dll.lib'
10709 sys_lib_search_path_spec=
10712 for lt_path in $LIB
10715 # Let DOS variable expansion print the short 8.3 style file name.
10716 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10717 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10720 # Convert to MSYS style.
10721 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10724 # Convert to unix form, then to dos form, then back to unix form
10725 # but this time dos style (no spaces!) so that the unix form looks
10726 # like /cygdrive/c/PROGRA~1:/cygdr...
10727 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10728 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10729 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10732 sys_lib_search_path_spec="$LIB"
10733 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10734 # It is most probably a Windows format PATH.
10735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10737 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10739 # FIXME: find the short name or the path components, as spaces are
10740 # common. (e.g. "Program Files" -> "PROGRA~1")
10744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10745 postinstall_cmds='base_file=`basename \${file}`~
10746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10747 dldir=$destdir/`dirname \$dlpath`~
10748 test -d \$dldir || mkdir -p \$dldir~
10749 $install_prog $dir/$dlname \$dldir/$dlname'
10750 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10751 dlpath=$dir/\$dldll~
10753 shlibpath_overrides_runpath=yes
10754 dynamic_linker='Win32 link.exe'
10758 # Assume MSVC wrapper
10759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10760 dynamic_linker='Win32 ld.exe'
10763 # FIXME: first we should search . and the directory the executable is in
10767 darwin* | rhapsody*)
10768 dynamic_linker="$host_os dyld"
10769 version_type=darwin
10772 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10773 soname_spec='${libname}${release}${major}$shared_ext'
10774 shlibpath_overrides_runpath=yes
10775 shlibpath_var=DYLD_LIBRARY_PATH
10776 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10778 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10783 version_type=linux # correct to gnu/linux during the next big refactor
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 shlibpath_var=LD_LIBRARY_PATH
10791 freebsd* | dragonfly*)
10792 # DragonFly does not have aout. When/if they implement a new
10793 # versioning mechanism, adjust this.
10794 if test -x /usr/bin/objformat; then
10795 objformat=`/usr/bin/objformat`
10798 freebsd[23].*) objformat=aout ;;
10799 *) objformat=elf ;;
10802 version_type=freebsd-$objformat
10803 case $version_type in
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10814 shlibpath_var=LD_LIBRARY_PATH
10817 shlibpath_overrides_runpath=yes
10819 freebsd3.[01]* | freebsdelf3.[01]*)
10820 shlibpath_overrides_runpath=yes
10821 hardcode_into_libs=yes
10823 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10824 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10825 shlibpath_overrides_runpath=no
10826 hardcode_into_libs=yes
10828 *) # from 4.6 on, and DragonFly
10829 shlibpath_overrides_runpath=yes
10830 hardcode_into_libs=yes
10836 version_type=linux # correct to gnu/linux during the next big refactor
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10840 soname_spec='${libname}${release}${shared_ext}$major'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=no
10843 hardcode_into_libs=yes
10847 version_type=linux # correct to gnu/linux during the next big refactor
10850 dynamic_linker="$host_os runtime_loader"
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 shlibpath_var=LIBRARY_PATH
10854 shlibpath_overrides_runpath=yes
10855 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10856 hardcode_into_libs=yes
10859 hpux9* | hpux10* | hpux11*)
10860 # Give a soname corresponding to the major version so that dld.sl refuses to
10861 # link against other versions.
10868 hardcode_into_libs=yes
10869 dynamic_linker="$host_os dld.so"
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 if test "X$HPUX_IA64_MODE" = X32; then
10875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10883 hardcode_into_libs=yes
10884 dynamic_linker="$host_os dld.sl"
10885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10894 dynamic_linker="$host_os dld.sl"
10895 shlibpath_var=SHLIB_PATH
10896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10901 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10902 postinstall_cmds='chmod 555 $lib'
10903 # or fails outright, so override atomically:
10904 install_override_mode=555
10908 version_type=linux # correct to gnu/linux during the next big refactor
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=no
10916 hardcode_into_libs=yes
10919 irix5* | irix6* | nonstopux*)
10921 nonstopux*) version_type=nonstopux ;;
10923 if test "$lt_cv_prog_gnu_ld" = yes; then
10924 version_type=linux # correct to gnu/linux during the next big refactor
10931 soname_spec='${libname}${release}${shared_ext}$major'
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10934 irix5* | nonstopux*)
10935 libsuff= shlibsuff=
10938 case $LD in # libtool.m4 will add one of these switches to LD
10939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10940 libsuff= shlibsuff= libmagic=32-bit;;
10941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10942 libsuff=32 shlibsuff=N32 libmagic=N32;;
10943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10945 *) libsuff= shlibsuff= libmagic=never-match;;
10949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10950 shlibpath_overrides_runpath=no
10951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10953 hardcode_into_libs=yes
10956 # No shared lib support for Linux oldld, aout, or coff.
10957 linux*oldld* | linux*aout* | linux*coff*)
10961 # This must be glibc/ELF.
10962 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10963 version_type=linux # correct to gnu/linux during the next big refactor
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=no
10972 # Some binutils ld are patched to set DT_RUNPATH
10973 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10974 $as_echo_n "(cached) " >&6
10976 lt_cv_shlibpath_overrides_runpath=no
10977 save_LDFLAGS=$LDFLAGS
10978 save_libdir=$libdir
10979 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10980 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10992 if ac_fn_c_try_link "$LINENO"; then :
10993 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10994 lt_cv_shlibpath_overrides_runpath=yes
10997 rm -f core conftest.err conftest.$ac_objext \
10998 conftest$ac_exeext conftest.$ac_ext
10999 LDFLAGS=$save_LDFLAGS
11000 libdir=$save_libdir
11004 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11006 # This implies no fast_install, which is unacceptable.
11007 # Some rework will be needed to allow for fast_install
11008 # before this can be enabled.
11009 hardcode_into_libs=yes
11011 # Append ld.so.conf contents to the search path
11012 if test -f /etc/ld.so.conf; then
11013 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' ' '`
11014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11017 # We used to test for /lib/ld.so.1 and disable shared libraries on
11018 # powerpc, because MkLinux only supported shared libraries with the
11019 # GNU dynamic linker. Since this was broken with cross compilers,
11020 # most powerpc-linux boxes support dynamic linking these days and
11021 # people can always --disable-shared, the test was removed, and we
11022 # assume the GNU/Linux dynamic linker is in use.
11023 dynamic_linker='GNU/Linux ld.so'
11030 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11033 dynamic_linker='NetBSD (a.out) ld.so'
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 dynamic_linker='NetBSD ld.elf_so'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=yes
11041 hardcode_into_libs=yes
11045 version_type=linux # correct to gnu/linux during the next big refactor
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=yes
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=no
11059 hardcode_into_libs=yes
11060 dynamic_linker='ldqnx.so'
11065 sys_lib_dlsearch_path_spec="/usr/lib"
11067 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11069 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11070 *) need_version=no ;;
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11077 openbsd2.[89] | openbsd2.[89].*)
11078 shlibpath_overrides_runpath=no
11081 shlibpath_overrides_runpath=yes
11085 shlibpath_overrides_runpath=yes
11090 libname_spec='$name'
11093 library_names_spec='$libname${shared_ext} $libname.a'
11094 dynamic_linker='OS/2 ld.exe'
11095 shlibpath_var=LIBPATH
11098 osf3* | osf4* | osf5*)
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11106 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11114 version_type=linux # correct to gnu/linux during the next big refactor
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=yes
11121 hardcode_into_libs=yes
11122 # ldd complains unless libraries are executable
11123 postinstall_cmds='chmod +x $lib'
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11129 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11130 shlibpath_var=LD_LIBRARY_PATH
11131 shlibpath_overrides_runpath=yes
11132 if test "$with_gnu_ld" = yes; then
11139 version_type=linux # correct to gnu/linux during the next big refactor
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141 soname_spec='${libname}${release}${shared_ext}$major'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 case $host_vendor in
11145 shlibpath_overrides_runpath=no
11147 runpath_var=LD_RUN_PATH
11155 shlibpath_overrides_runpath=no
11156 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11162 if test -d /usr/nec ;then
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11165 soname_spec='$libname${shared_ext}.$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11171 version_type=freebsd-elf
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11175 soname_spec='${libname}${release}${shared_ext}$major'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=yes
11178 hardcode_into_libs=yes
11179 if test "$with_gnu_ld" = yes; then
11180 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11182 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11185 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11189 sys_lib_dlsearch_path_spec='/usr/lib'
11193 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11194 version_type=linux # correct to gnu/linux during the next big refactor
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=no
11200 hardcode_into_libs=yes
11204 version_type=linux # correct to gnu/linux during the next big refactor
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11215 $as_echo "$dynamic_linker" >&6; }
11216 test "$dynamic_linker" = no && can_build_shared=no
11218 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11219 if test "$GCC" = yes; then
11220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11223 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11224 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11226 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11227 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11322 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11324 if test -n "$hardcode_libdir_flag_spec" ||
11325 test -n "$runpath_var" ||
11326 test "X$hardcode_automatic" = "Xyes" ; then
11328 # We can hardcode non-existent directories.
11329 if test "$hardcode_direct" != no &&
11330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11331 # have to relink, otherwise we might link with an installed library
11332 # when we should be linking with a yet-to-be-installed one
11333 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11334 test "$hardcode_minus_L" != no; then
11335 # Linking always hardcodes the temporary library directory.
11336 hardcode_action=relink
11338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11339 hardcode_action=immediate
11342 # We cannot hardcode anything, or else we can only hardcode existing
11344 hardcode_action=unsupported
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11347 $as_echo "$hardcode_action" >&6; }
11349 if test "$hardcode_action" = relink ||
11350 test "$inherit_rpath" = yes; then
11351 # Fast installation is not supported
11352 enable_fast_install=no
11353 elif test "$shlibpath_overrides_runpath" = yes ||
11354 test "$enable_shared" = no; then
11355 # Fast installation is not necessary
11356 enable_fast_install=needless
11364 if test "x$enable_dlopen" != xyes; then
11365 enable_dlopen=unknown
11366 enable_dlopen_self=unknown
11367 enable_dlopen_self_static=unknown
11374 lt_cv_dlopen="load_add_on"
11376 lt_cv_dlopen_self=yes
11379 mingw* | pw32* | cegcc*)
11380 lt_cv_dlopen="LoadLibrary"
11385 lt_cv_dlopen="dlopen"
11390 # if libdl is installed we need to link against it
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11392 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11393 if ${ac_cv_lib_dl_dlopen+:} false; then :
11394 $as_echo_n "(cached) " >&6
11396 ac_check_lib_save_LIBS=$LIBS
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 ac_cv_lib_dl_dlopen=yes
11419 ac_cv_lib_dl_dlopen=no
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 LIBS=$ac_check_lib_save_LIBS
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11426 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11427 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11431 lt_cv_dlopen="dyld"
11433 lt_cv_dlopen_self=yes
11440 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11441 if test "x$ac_cv_func_shl_load" = xyes; then :
11442 lt_cv_dlopen="shl_load"
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11445 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11446 if ${ac_cv_lib_dld_shl_load+:} false; then :
11447 $as_echo_n "(cached) " >&6
11449 ac_check_lib_save_LIBS=$LIBS
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11464 return shl_load ();
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 ac_cv_lib_dld_shl_load=yes
11472 ac_cv_lib_dld_shl_load=no
11474 rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476 LIBS=$ac_check_lib_save_LIBS
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11479 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11480 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11481 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11483 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11484 if test "x$ac_cv_func_dlopen" = xyes; then :
11485 lt_cv_dlopen="dlopen"
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11488 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11489 if ${ac_cv_lib_dl_dlopen+:} false; then :
11490 $as_echo_n "(cached) " >&6
11492 ac_check_lib_save_LIBS=$LIBS
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 /* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11512 if ac_fn_c_try_link "$LINENO"; then :
11513 ac_cv_lib_dl_dlopen=yes
11515 ac_cv_lib_dl_dlopen=no
11517 rm -f core conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11522 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11523 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11524 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11527 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11528 if ${ac_cv_lib_svld_dlopen+:} false; then :
11529 $as_echo_n "(cached) " >&6
11531 ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-lsvld $LIBS"
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11536 /* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11551 if ac_fn_c_try_link "$LINENO"; then :
11552 ac_cv_lib_svld_dlopen=yes
11554 ac_cv_lib_svld_dlopen=no
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11561 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11562 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11566 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11567 if ${ac_cv_lib_dld_dld_link+:} false; then :
11568 $as_echo_n "(cached) " >&6
11570 ac_check_lib_save_LIBS=$LIBS
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11575 /* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
11585 return dld_link ();
11590 if ac_fn_c_try_link "$LINENO"; then :
11591 ac_cv_lib_dld_dld_link=yes
11593 ac_cv_lib_dld_dld_link=no
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11600 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11601 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11602 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11623 if test "x$lt_cv_dlopen" != xno; then
11629 case $lt_cv_dlopen in
11631 save_CPPFLAGS="$CPPFLAGS"
11632 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11634 save_LDFLAGS="$LDFLAGS"
11635 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11638 LIBS="$lt_cv_dlopen_libs $LIBS"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11641 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11642 if ${lt_cv_dlopen_self+:} false; then :
11643 $as_echo_n "(cached) " >&6
11645 if test "$cross_compiling" = yes; then :
11646 lt_cv_dlopen_self=cross
11648 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11649 lt_status=$lt_dlunknown
11650 cat > conftest.$ac_ext <<_LT_EOF
11651 #line $LINENO "configure"
11652 #include "confdefs.h"
11661 # define LT_DLGLOBAL RTLD_GLOBAL
11664 # define LT_DLGLOBAL DL_GLOBAL
11666 # define LT_DLGLOBAL 0
11670 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11671 find out it does not work in some platform. */
11672 #ifndef LT_DLLAZY_OR_NOW
11674 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11677 # define LT_DLLAZY_OR_NOW DL_LAZY
11680 # define LT_DLLAZY_OR_NOW RTLD_NOW
11683 # define LT_DLLAZY_OR_NOW DL_NOW
11685 # define LT_DLLAZY_OR_NOW 0
11692 /* When -fvisbility=hidden is used, assume the code has been annotated
11693 correspondingly for the symbols needed. */
11694 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11695 int fnord () __attribute__((visibility("default")));
11698 int fnord () { return 42; }
11701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11702 int status = $lt_dlunknown;
11706 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11709 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11710 else puts (dlerror ());
11712 /* dlclose (self); */
11720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11721 (eval $ac_link) 2>&5
11723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11724 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11725 (./conftest; exit; ) >&5 2>/dev/null
11727 case x$lt_status in
11728 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11729 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11730 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11733 # compilation failed
11734 lt_cv_dlopen_self=no
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11742 $as_echo "$lt_cv_dlopen_self" >&6; }
11744 if test "x$lt_cv_dlopen_self" = xyes; then
11745 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11747 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11748 if ${lt_cv_dlopen_self_static+:} false; then :
11749 $as_echo_n "(cached) " >&6
11751 if test "$cross_compiling" = yes; then :
11752 lt_cv_dlopen_self_static=cross
11754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11755 lt_status=$lt_dlunknown
11756 cat > conftest.$ac_ext <<_LT_EOF
11757 #line $LINENO "configure"
11758 #include "confdefs.h"
11767 # define LT_DLGLOBAL RTLD_GLOBAL
11770 # define LT_DLGLOBAL DL_GLOBAL
11772 # define LT_DLGLOBAL 0
11776 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11777 find out it does not work in some platform. */
11778 #ifndef LT_DLLAZY_OR_NOW
11780 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11783 # define LT_DLLAZY_OR_NOW DL_LAZY
11786 # define LT_DLLAZY_OR_NOW RTLD_NOW
11789 # define LT_DLLAZY_OR_NOW DL_NOW
11791 # define LT_DLLAZY_OR_NOW 0
11798 /* When -fvisbility=hidden is used, assume the code has been annotated
11799 correspondingly for the symbols needed. */
11800 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11801 int fnord () __attribute__((visibility("default")));
11804 int fnord () { return 42; }
11807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11808 int status = $lt_dlunknown;
11812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11815 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11816 else puts (dlerror ());
11818 /* dlclose (self); */
11826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11827 (eval $ac_link) 2>&5
11829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11830 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11831 (./conftest; exit; ) >&5 2>/dev/null
11833 case x$lt_status in
11834 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11835 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11836 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11839 # compilation failed
11840 lt_cv_dlopen_self_static=no
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11848 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11851 CPPFLAGS="$save_CPPFLAGS"
11852 LDFLAGS="$save_LDFLAGS"
11857 case $lt_cv_dlopen_self in
11858 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11859 *) enable_dlopen_self=unknown ;;
11862 case $lt_cv_dlopen_self_static in
11863 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11864 *) enable_dlopen_self_static=unknown ;;
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11887 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11888 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11889 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11890 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892 $as_echo "yes" >&6; }
11894 # FIXME - insert some real tests, host_os isn't really good enough
11897 if test -n "$STRIP" ; then
11898 striplib="$STRIP -x"
11899 old_striplib="$STRIP -S"
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11901 $as_echo "yes" >&6; }
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11925 # Report which library types will actually be built
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11927 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11929 $as_echo "$can_build_shared" >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11932 $as_echo_n "checking whether to build shared libraries... " >&6; }
11933 test "$can_build_shared" = "no" && enable_shared=no
11935 # On AIX, shared libraries and static libraries use the same namespace, and
11936 # are all built from PIC.
11939 test "$enable_shared" = yes && enable_static=no
11940 if test -n "$RANLIB"; then
11941 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11942 postinstall_cmds='$RANLIB $lib'
11947 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11948 test "$enable_shared" = yes && enable_static=no
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11953 $as_echo "$enable_shared" >&6; }
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11956 $as_echo_n "checking whether to build static libraries... " >&6; }
11957 # Make sure either enable_shared or enable_static is yes.
11958 test "$enable_shared" = yes || enable_static=yes
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11960 $as_echo "$enable_static" >&6; }
11967 ac_cpp='$CPP $CPPFLAGS'
11968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11988 ac_config_commands="$ac_config_commands libtool"
11993 # Only expand once:
12003 cat >>confdefs.h <<_ACEOF
12004 #define LIB_MAJ $LIB_MAJ
12008 # Check whether --enable-debug was given.
12009 if test "${enable_debug+set}" = set; then :
12010 enableval=$enable_debug;
12011 $as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
12016 # Check whether --enable-unversioned-modules was given.
12017 if test "${enable_unversioned_modules+set}" = set; then :
12018 enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
12021 $as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
12029 # Check whether --with-modules-dir was given.
12030 if test "${with_modules_dir+set}" = set; then :
12031 withval=$with_modules_dir; if test x"$withval" != x"no"; then :
12033 OPENPAM_MODULES_DIR="$withval"
12035 cat >>confdefs.h <<_ACEOF
12036 #define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}"
12044 if test x"$OPENPAM_MODULES_DIR" != x""; then
12045 CUSTOM_MODULES_DIR_TRUE=
12046 CUSTOM_MODULES_DIR_FALSE='#'
12048 CUSTOM_MODULES_DIR_TRUE='#'
12049 CUSTOM_MODULES_DIR_FALSE=
12054 # Check whether --with-doc was given.
12055 if test "${with_doc+set}" = set; then :
12061 if test x"$with_doc" = x"yes"; then
12071 # Check whether --with-pam-unix was given.
12072 if test "${with_pam_unix+set}" = set; then :
12073 withval=$with_pam_unix;
12078 if test x"$with_pam_unix" = x"yes"; then
12079 WITH_PAM_UNIX_TRUE=
12080 WITH_PAM_UNIX_FALSE='#'
12082 WITH_PAM_UNIX_TRUE='#'
12083 WITH_PAM_UNIX_FALSE=
12088 # Check whether --with-pamtest was given.
12089 if test "${with_pamtest+set}" = set; then :
12090 withval=$with_pamtest;
12095 if test x"$with_pamtest" = x"yes"; then
12097 WITH_PAMTEST_FALSE='#'
12099 WITH_PAMTEST_TRUE='#'
12100 WITH_PAMTEST_FALSE=
12105 # Check whether --with-su was given.
12106 if test "${with_su+set}" = set; then :
12112 if test x"$with_su" = x"yes"; then
12121 for ac_header in crypt.h
12123 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
12124 if test "x$ac_cv_header_crypt_h" = xyes; then :
12125 cat >>confdefs.h <<_ACEOF
12126 #define HAVE_CRYPT_H 1
12134 for ac_func in asprintf vasprintf
12136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12137 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12138 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12139 cat >>confdefs.h <<_ACEOF
12140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12146 for ac_func in dlfunc fdlopen
12148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12150 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12151 cat >>confdefs.h <<_ACEOF
12152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12158 for ac_func in fpurge
12160 ac_fn_c_check_func "$LINENO" "fpurge" "ac_cv_func_fpurge"
12161 if test "x$ac_cv_func_fpurge" = xyes; then :
12162 cat >>confdefs.h <<_ACEOF
12163 #define HAVE_FPURGE 1
12169 for ac_func in setlogmask
12171 ac_fn_c_check_func "$LINENO" "setlogmask" "ac_cv_func_setlogmask"
12172 if test "x$ac_cv_func_setlogmask" = xyes; then :
12173 cat >>confdefs.h <<_ACEOF
12174 #define HAVE_SETLOGMASK 1
12180 for ac_func in strlcat strlcmp strlcpy strlset
12182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12184 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12185 cat >>confdefs.h <<_ACEOF
12186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12193 saved_LIBS="${LIBS}"
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12196 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12197 if ${ac_cv_lib_dl_dlopen+:} false; then :
12198 $as_echo_n "(cached) " >&6
12200 ac_check_lib_save_LIBS=$LIBS
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12220 if ac_fn_c_try_link "$LINENO"; then :
12221 ac_cv_lib_dl_dlopen=yes
12223 ac_cv_lib_dl_dlopen=no
12225 rm -f core conftest.err conftest.$ac_objext \
12226 conftest$ac_exeext conftest.$ac_ext
12227 LIBS=$ac_check_lib_save_LIBS
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12230 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12231 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12232 cat >>confdefs.h <<_ACEOF
12233 #define HAVE_LIBDL 1
12241 LIBS="${saved_LIBS}"
12244 saved_LIBS="${LIBS}"
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12247 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12248 if ${ac_cv_lib_crypt_crypt+:} false; then :
12249 $as_echo_n "(cached) " >&6
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lcrypt $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_lib_crypt_crypt=yes
12274 ac_cv_lib_crypt_crypt=no
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12281 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12282 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12283 cat >>confdefs.h <<_ACEOF
12284 #define HAVE_LIBCRYPT 1
12287 LIBS="-lcrypt $LIBS"
12291 CRYPT_LIBS="${LIBS}"
12292 LIBS="${saved_LIBS}"
12295 saved_LIBS="${LIBS}"
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
12298 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
12299 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
12300 $as_echo_n "(cached) " >&6
12302 ac_check_lib_save_LIBS=$LIBS
12303 LIBS="-lcrypto $LIBS"
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12307 /* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12313 char HMAC_CTX_init ();
12317 return HMAC_CTX_init ();
12322 if ac_fn_c_try_link "$LINENO"; then :
12323 ac_cv_lib_crypto_HMAC_CTX_init=yes
12325 ac_cv_lib_crypto_HMAC_CTX_init=no
12327 rm -f core conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
12332 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
12333 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_LIBCRYPTO 1
12338 LIBS="-lcrypto $LIBS"
12342 CRYPTO_LIBS="${LIBS}"
12343 LIBS="${saved_LIBS}"
12346 # Check whether --enable-developer-warnings was given.
12347 if test "${enable_developer_warnings+set}" = set; then :
12348 enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra"
12351 # Check whether --enable-debugging-symbols was given.
12352 if test "${enable_debugging_symbols+set}" = set; then :
12353 enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
12356 # Check whether --enable-werror was given.
12357 if test "${enable_werror+set}" = set; then :
12358 enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
12362 ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile lib/libpam/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_unix/Makefile t/Makefile"
12364 ac_config_files="$ac_config_files pamgdb"
12366 ac_config_files="$ac_config_files mkpkgng"
12368 cat >confcache <<\_ACEOF
12369 # This file is a shell script that caches the results of configure
12370 # tests run on this system so they can be shared between configure
12371 # scripts and configure runs, see configure's option --config-cache.
12372 # It is not useful on other systems. If it contains results you don't
12373 # want to keep, you may remove or edit it.
12375 # config.status only pays attention to the cache file if you give it
12376 # the --recheck option to rerun configure.
12378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12380 # following values.
12384 # The following way of writing the cache mishandles newlines in values,
12385 # but we know of no workaround that is simple, portable, and efficient.
12386 # So, we kill variables containing newlines.
12387 # Ultrix sh set writes to stderr and can't be redirected directly,
12388 # and sets the high bit in the cache file unless we assign to the vars.
12390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12391 eval ac_val=\$$ac_var
12395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12399 _ | IFS | as_nl) ;; #(
12400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12401 *) { eval $ac_var=; unset $ac_var;} ;;
12407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12408 *${as_nl}ac_space=\ *)
12409 # `set' does not quote correctly, so add quotes: double-quote
12410 # substitution turns \\\\ into \\, and sed turns \\ into \.
12413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12416 # `set' quotes correctly as required by POSIX, so do not add quotes.
12417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12431 if test -w "$cache_file"; then
12432 if test "x$cache_file" != "x/dev/null"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12434 $as_echo "$as_me: updating cache $cache_file" >&6;}
12435 if test ! -f "$cache_file" || test -h "$cache_file"; then
12436 cat confcache >"$cache_file"
12438 case $cache_file in #(
12440 mv -f confcache "$cache_file"$$ &&
12441 mv -f "$cache_file"$$ "$cache_file" ;; #(
12443 mv -f confcache "$cache_file" ;;
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12449 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12455 # Let make expand exec_prefix.
12456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12458 DEFS=-DHAVE_CONFIG_H
12462 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12463 # 1. Remove the extension, and $U if already installed.
12464 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12465 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12466 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12467 # will be set to the directory where LIBOBJS objects are built.
12468 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12469 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12471 LIBOBJS=$ac_libobjs
12473 LTLIBOBJS=$ac_ltlibobjs
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12477 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12478 if test -n "$am_sleep_pid"; then
12479 # Hide warnings about reused PIDs.
12480 wait $am_sleep_pid 2>/dev/null
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12483 $as_echo "done" >&6; }
12484 if test -n "$EXEEXT"; then
12486 am__EXEEXT_FALSE='#'
12488 am__EXEEXT_TRUE='#'
12492 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12493 as_fn_error $? "conditional \"AMDEP\" was never defined.
12494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12496 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12497 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12500 if test -z "${CUSTOM_MODULES_DIR_TRUE}" && test -z "${CUSTOM_MODULES_DIR_FALSE}"; then
12501 as_fn_error $? "conditional \"CUSTOM_MODULES_DIR\" was never defined.
12502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12504 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
12505 as_fn_error $? "conditional \"WITH_DOC\" was never defined.
12506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12508 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
12509 as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
12510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12512 if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
12513 as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
12514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12516 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
12517 as_fn_error $? "conditional \"WITH_SU\" was never defined.
12518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12521 : "${CONFIG_STATUS=./config.status}"
12523 ac_clean_files_save=$ac_clean_files
12524 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12526 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12528 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12530 # Generated by $as_me.
12531 # Run this file to recreate the current configuration.
12532 # Compiler output produced by configure, useful for debugging
12533 # configure, is in config.log if it exists.
12536 ac_cs_recheck=false
12539 SHELL=\${CONFIG_SHELL-$SHELL}
12542 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12543 ## -------------------- ##
12544 ## M4sh Initialization. ##
12545 ## -------------------- ##
12547 # Be more Bourne compatible
12548 DUALCASE=1; export DUALCASE # for MKS sh
12549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12553 # is contrary to our usage. Disable this feature.
12554 alias -g '${1+"$@"}'='"$@"'
12555 setopt NO_GLOB_SUBST
12557 case `(set -o) 2>/dev/null` in #(
12569 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12570 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12572 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12573 # Prefer a ksh shell builtin over an external printf program on Solaris,
12574 # but without wasting forks for bash or zsh.
12575 if test -z "$BASH_VERSION$ZSH_VERSION" \
12576 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12577 as_echo='print -r --'
12578 as_echo_n='print -rn --'
12579 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12580 as_echo='printf %s\n'
12581 as_echo_n='printf %s'
12583 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12584 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12585 as_echo_n='/usr/ucb/echo -n'
12587 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12588 as_echo_n_body='eval
12592 expr "X$arg" : "X\\(.*\\)$as_nl";
12593 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12595 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12597 export as_echo_n_body
12598 as_echo_n='sh -c $as_echo_n_body as_echo'
12600 export as_echo_body
12601 as_echo='sh -c $as_echo_body as_echo'
12604 # The user is always right.
12605 if test "${PATH_SEPARATOR+set}" != set; then
12607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12615 # We need space, tab and new line, in precisely that order. Quoting is
12616 # there to prevent editors from complaining about space-tab.
12617 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12618 # splitting by setting IFS to empty value.)
12621 # Find who we are. Look in the path if we contain no directory separator.
12624 *[\\/]* ) as_myself=$0 ;;
12625 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12629 test -z "$as_dir" && as_dir=.
12630 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12636 # We did not find ourselves, most probably we were run as `sh COMMAND'
12637 # in which case we are not to be found in the path.
12638 if test "x$as_myself" = x; then
12641 if test ! -f "$as_myself"; then
12642 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12646 # Unset variables that we do not need and which cause bugs (e.g. in
12647 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12648 # suppresses any "Segmentation fault" message there. '((' could
12649 # trigger a bug in pdksh 5.2.14.
12650 for as_var in BASH_ENV ENV MAIL MAILPATH
12651 do eval test x\${$as_var+set} = xset \
12652 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12665 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12668 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12669 # ----------------------------------------
12670 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12671 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12672 # script with STATUS, using 1 if that was 0.
12675 as_status=$1; test $as_status -eq 0 && as_status=1
12677 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12678 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12680 $as_echo "$as_me: error: $2" >&2
12681 as_fn_exit $as_status
12685 # as_fn_set_status STATUS
12686 # -----------------------
12687 # Set $? to STATUS, without forking.
12688 as_fn_set_status ()
12691 } # as_fn_set_status
12693 # as_fn_exit STATUS
12694 # -----------------
12695 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12699 as_fn_set_status $1
12705 # Portably unset VAR.
12708 { eval $1=; unset $1;}
12710 as_unset=as_fn_unset
12711 # as_fn_append VAR VALUE
12712 # ----------------------
12713 # Append the text in VALUE to the end of the definition contained in VAR. Take
12714 # advantage of any shell optimizations that allow amortized linear growth over
12715 # repeated appends, instead of the typical quadratic growth present in naive
12717 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12718 eval 'as_fn_append ()
12729 # as_fn_arith ARG...
12730 # ------------------
12731 # Perform arithmetic evaluation on the ARGs, and store the result in the
12732 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12733 # must be portable across $(()) and expr.
12734 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12735 eval 'as_fn_arith ()
12742 as_val=`expr "$@" || test $? -eq 1`
12747 if expr a : '\(a\)' >/dev/null 2>&1 &&
12748 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12754 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12755 as_basename=basename
12760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12766 as_me=`$as_basename -- "$0" ||
12767 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12768 X"$0" : 'X\(//\)$' \| \
12769 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12771 sed '/^.*\/\([^/][^/]*\)\/*$/{
12785 # Avoid depending upon Character Ranges.
12786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12789 as_cr_digits='0123456789'
12790 as_cr_alnum=$as_cr_Letters$as_cr_digits
12792 ECHO_C= ECHO_N= ECHO_T=
12793 case `echo -n x` in #(((((
12795 case `echo 'xy\c'` in
12796 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12798 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12805 rm -f conf$$ conf$$.exe conf$$.file
12806 if test -d conf$$.dir; then
12807 rm -f conf$$.dir/conf$$.file
12810 mkdir conf$$.dir 2>/dev/null
12812 if (echo >conf$$.file) 2>/dev/null; then
12813 if ln -s conf$$.file conf$$ 2>/dev/null; then
12815 # ... but there are two gotchas:
12816 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12817 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12818 # In both cases, we have to default to `cp -pR'.
12819 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12821 elif ln conf$$.file conf$$ 2>/dev/null; then
12829 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12830 rmdir conf$$.dir 2>/dev/null
12835 # Create "$as_dir" as a directory, including parents if necessary.
12840 -*) as_dir=./$as_dir;;
12842 test -d "$as_dir" || eval $as_mkdir_p || {
12846 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12847 *) as_qdir=$as_dir;;
12849 as_dirs="'$as_qdir' $as_dirs"
12850 as_dir=`$as_dirname -- "$as_dir" ||
12851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12852 X"$as_dir" : 'X\(//\)[^/]' \| \
12853 X"$as_dir" : 'X\(//\)$' \| \
12854 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12855 $as_echo X"$as_dir" |
12856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12860 /^X\(\/\/\)[^/].*/{
12873 test -d "$as_dir" && break
12875 test -z "$as_dirs" || eval "mkdir $as_dirs"
12876 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12880 if mkdir -p . 2>/dev/null; then
12881 as_mkdir_p='mkdir -p "$as_dir"'
12883 test -d ./-p && rmdir ./-p
12888 # as_fn_executable_p FILE
12889 # -----------------------
12890 # Test if FILE is an executable regular file.
12891 as_fn_executable_p ()
12893 test -f "$1" && test -x "$1"
12894 } # as_fn_executable_p
12895 as_test_x='test -x'
12896 as_executable_p=as_fn_executable_p
12898 # Sed expression to map a string onto a valid CPP name.
12899 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12901 # Sed expression to map a string onto a valid variable name.
12902 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12906 ## ----------------------------------- ##
12907 ## Main body of $CONFIG_STATUS script. ##
12908 ## ----------------------------------- ##
12910 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12913 # Save the log message, to keep $0 and so on meaningful, and to
12914 # report actual input values of CONFIG_FILES etc. instead of their
12915 # values after options handling.
12917 This file was extended by OpenPAM $as_me 20140912, which was
12918 generated by GNU Autoconf 2.69. Invocation command line was
12920 CONFIG_FILES = $CONFIG_FILES
12921 CONFIG_HEADERS = $CONFIG_HEADERS
12922 CONFIG_LINKS = $CONFIG_LINKS
12923 CONFIG_COMMANDS = $CONFIG_COMMANDS
12926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12931 case $ac_config_files in *"
12932 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12935 case $ac_config_headers in *"
12936 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12941 # Files that config.status was made for.
12942 config_files="$ac_config_files"
12943 config_headers="$ac_config_headers"
12944 config_commands="$ac_config_commands"
12948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12950 \`$as_me' instantiates files and other configuration actions
12951 from templates according to the current configuration. Unless the files
12952 and actions are specified as TAGs, all are instantiated by default.
12954 Usage: $0 [OPTION]... [TAG]...
12956 -h, --help print this help, then exit
12957 -V, --version print version number and configuration settings, then exit
12958 --config print configuration, then exit
12959 -q, --quiet, --silent
12960 do not print progress messages
12961 -d, --debug don't remove temporary files
12962 --recheck update $as_me by reconfiguring in the same conditions
12963 --file=FILE[:TEMPLATE]
12964 instantiate the configuration file FILE
12965 --header=FILE[:TEMPLATE]
12966 instantiate the configuration header FILE
12968 Configuration files:
12971 Configuration headers:
12974 Configuration commands:
12977 Report bugs to <des@des.no>.
12978 OpenPAM home page: <http://www.openpam.org/>."
12981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12982 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12984 OpenPAM config.status 20140912
12985 configured by $0, generated by GNU Autoconf 2.69,
12986 with options \\"\$ac_cs_config\\"
12988 Copyright (C) 2012 Free Software Foundation, Inc.
12989 This config.status script is free software; the Free Software Foundation
12990 gives unlimited permission to copy, distribute and modify it."
12997 test -n "\$AWK" || AWK=awk
13000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13001 # The default lists apply if the user does not specify any file.
13007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13008 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13012 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13024 # Handling of the options.
13025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13027 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13028 $as_echo "$ac_cs_version"; exit ;;
13029 --config | --confi | --conf | --con | --co | --c )
13030 $as_echo "$ac_cs_config"; exit ;;
13031 --debug | --debu | --deb | --de | --d | -d )
13033 --file | --fil | --fi | --f )
13036 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13037 '') as_fn_error $? "missing file argument" ;;
13039 as_fn_append CONFIG_FILES " '$ac_optarg'"
13040 ac_need_defaults=false;;
13041 --header | --heade | --head | --hea )
13044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13046 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13047 ac_need_defaults=false;;
13049 # Conflict between --help and --header
13050 as_fn_error $? "ambiguous option: \`$1'
13051 Try \`$0 --help' for more information.";;
13052 --help | --hel | -h )
13053 $as_echo "$ac_cs_usage"; exit ;;
13054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13055 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13058 # This is an error.
13059 -*) as_fn_error $? "unrecognized option: \`$1'
13060 Try \`$0 --help' for more information." ;;
13062 *) as_fn_append ac_config_targets " $1"
13063 ac_need_defaults=false ;;
13069 ac_configure_extra_args=
13071 if $ac_cs_silent; then
13073 ac_configure_extra_args="$ac_configure_extra_args --silent"
13077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13078 if \$ac_cs_recheck; then
13079 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13081 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13082 CONFIG_SHELL='$SHELL'
13083 export CONFIG_SHELL
13088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13093 ## Running $as_me. ##
13099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13103 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13106 # The HP-UX ksh and POSIX shell print the target directory to stdout
13107 # if CDPATH is set.
13108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13110 sed_quote_subst='$sed_quote_subst'
13111 double_quote_subst='$double_quote_subst'
13112 delay_variable_subst='$delay_variable_subst'
13113 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13114 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13115 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13116 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13117 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13118 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13119 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13120 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13121 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13122 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13123 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13124 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13125 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13126 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13127 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13128 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13129 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13130 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13131 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13132 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13133 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13134 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13135 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13136 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13137 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13138 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13139 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13140 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13141 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13142 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13143 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13144 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13145 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13146 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13147 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13148 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13149 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13150 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13151 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13152 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13153 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13154 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13155 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13156 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13157 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13158 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13159 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13160 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13161 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13162 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13163 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13164 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13165 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13166 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13167 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13168 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13169 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"`'
13170 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13171 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13172 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13173 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13174 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13175 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13176 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13177 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13178 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13179 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13180 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13181 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13182 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13183 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13184 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13185 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13186 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13187 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13188 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13189 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13190 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13191 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13192 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13193 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13194 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13195 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13196 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13197 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13198 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13199 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13200 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13201 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13202 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13203 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13204 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13205 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13206 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13207 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13208 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13209 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13210 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13211 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13212 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13213 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13214 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13215 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13216 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13217 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13218 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13219 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13220 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13221 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13222 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13223 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13224 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13225 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13226 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13227 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13228 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13229 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13230 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13231 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13232 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13233 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13234 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13235 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13236 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13237 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13238 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13239 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13240 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13241 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13242 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13245 LTCFLAGS='$LTCFLAGS'
13246 compiler='$compiler_DEFAULT'
13248 # A function that is used when there is no print builtin or printf.
13249 func_fallback_echo ()
13251 eval 'cat <<_LTECHO_EOF
13256 # Quote evaled strings.
13271 deplibs_check_method \
13276 sharedlib_from_linklib_cmd \
13279 archiver_list_spec \
13285 lt_cv_sys_global_symbol_pipe \
13286 lt_cv_sys_global_symbol_to_cdecl \
13287 lt_cv_sys_global_symbol_to_c_name_address \
13288 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13289 nm_file_list_spec \
13290 lt_prog_compiler_no_builtin_flag \
13291 lt_prog_compiler_pic \
13292 lt_prog_compiler_wl \
13293 lt_prog_compiler_static \
13294 lt_cv_prog_compiler_c_o \
13303 export_dynamic_flag_spec \
13304 whole_archive_flag_spec \
13305 compiler_needs_object \
13307 allow_undefined_flag \
13308 no_undefined_flag \
13309 hardcode_libdir_flag_spec \
13310 hardcode_libdir_separator \
13314 variables_saved_for_relink \
13316 library_names_spec \
13318 install_override_mode \
13322 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13323 *[\\\\\\\`\\"\\\$]*)
13324 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13327 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13332 # Double-quote double-evaled strings.
13333 for var in reload_cmds \
13334 old_postinstall_cmds \
13335 old_postuninstall_cmds \
13337 extract_expsyms_cmds \
13338 old_archive_from_new_cmds \
13339 old_archive_from_expsyms_cmds \
13341 archive_expsym_cmds \
13343 module_expsym_cmds \
13344 export_symbols_cmds \
13348 postuninstall_cmds \
13350 sys_lib_search_path_spec \
13351 sys_lib_dlsearch_path_spec; do
13352 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13353 *[\\\\\\\`\\"\\\$]*)
13354 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13357 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13362 ac_aux_dir='$ac_aux_dir'
13363 xsi_shell='$xsi_shell'
13364 lt_shell_append='$lt_shell_append'
13366 # See if we are running on zsh, and set the options which allow our
13367 # commands through without removal of \ escapes INIT.
13368 if test -n "\${ZSH_VERSION+set}" ; then
13369 setopt NO_GLOB_SUBST
13375 TIMESTAMP='$TIMESTAMP'
13384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13386 # Handling of arguments.
13387 for ac_config_target in $ac_config_targets
13389 case $ac_config_target in
13390 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13391 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13392 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13393 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13394 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13395 "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
13396 "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
13397 "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
13398 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13399 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13400 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13401 "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
13402 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13403 "lib/libpam/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libpam/Makefile" ;;
13404 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13405 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
13406 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
13407 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
13408 "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
13409 "pamgdb") CONFIG_FILES="$CONFIG_FILES pamgdb" ;;
13410 "mkpkgng") CONFIG_FILES="$CONFIG_FILES mkpkgng" ;;
13412 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13417 # If the user did not use the arguments to specify the items to instantiate,
13418 # then the envvar interface is used. Set only those that are not.
13419 # We use the long form for the default assignment because of an extremely
13420 # bizarre bug on SunOS 4.1.3.
13421 if $ac_need_defaults; then
13422 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13423 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13424 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13427 # Have a temporary directory for convenience. Make it in the build tree
13428 # simply because there is no reason against having it here, and in addition,
13429 # creating and moving files from /tmp can sometimes cause problems.
13430 # Hook for its removal unless debugging.
13431 # Note that there is a small window in which the directory will not be cleaned:
13432 # after its creation but before its name has been assigned to `$tmp'.
13436 trap 'exit_status=$?
13437 : "${ac_tmp:=$tmp}"
13438 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13440 trap 'as_fn_exit 1' 1 2 13 15
13442 # Create a (secure) tmp directory for tmp files.
13445 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13449 tmp=./conf$$-$RANDOM
13450 (umask 077 && mkdir "$tmp")
13451 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13454 # Set up the scripts for CONFIG_FILES section.
13455 # No need to generate them if there are no CONFIG_FILES.
13456 # This happens for instance with `./config.status config.h'.
13457 if test -n "$CONFIG_FILES"; then
13460 ac_cr=`echo X | tr X '\015'`
13461 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13462 # But we know of no other shell where ac_cr would be empty at this
13463 # point, so we can use a bashism as a fallback.
13464 if test "x$ac_cr" = x; then
13465 eval ac_cr=\$\'\\r\'
13467 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13468 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13471 ac_cs_awk_cr=$ac_cr
13474 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13479 echo "cat >conf$$subs.awk <<_ACEOF" &&
13480 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13482 } >conf$$subs.sh ||
13483 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13484 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13486 for ac_last_try in false false false false false :; do
13487 . ./conf$$subs.sh ||
13488 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13490 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13491 if test $ac_delim_n = $ac_delim_num; then
13493 elif $ac_last_try; then
13494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13499 rm -f conf$$subs.sh
13501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13502 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13506 s/^/S["/; s/!.*/"]=/
13516 s/\(.\{148\}\)..*/\1/
13518 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13530 s/\(.\{148\}\)..*/\1/
13532 s/["\\]/\\&/g; s/^/"/; s/$/"/
13536 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13541 ' <conf$$subs.awk | sed '
13546 ' >>$CONFIG_STATUS || ac_write_fail=1
13547 rm -f conf$$subs.awk
13548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13550 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13551 for (key in S) S_is_set[key] = 1
13557 nfields = split(line, field, "@")
13559 len = length(field[1])
13560 for (i = 2; i < nfields; i++) {
13562 keylen = length(key)
13563 if (S_is_set[key]) {
13565 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13566 len += length(value) + length(field[++i])
13577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13578 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13579 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13582 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13583 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13586 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13587 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13588 # trailing colons and then remove the whole line if VPATH becomes empty
13589 # (actually we leave an empty line to preserve line numbers).
13590 if test "x$srcdir" = x.; then
13591 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13610 fi # test -n "$CONFIG_FILES"
13612 # Set up the scripts for CONFIG_HEADERS section.
13613 # No need to generate them if there are no CONFIG_HEADERS.
13614 # This happens for instance with `./config.status Makefile'.
13615 if test -n "$CONFIG_HEADERS"; then
13616 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13620 # Transform confdefs.h into an awk script `defines.awk', embedded as
13621 # here-document in config.status, that substitutes the proper values into
13622 # config.h.in to produce config.h.
13624 # Create a delimiter string that does not exist in confdefs.h, to ease
13625 # handling of long lines.
13627 for ac_last_try in false false :; do
13628 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13629 if test -z "$ac_tt"; then
13631 elif $ac_last_try; then
13632 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13634 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13638 # For the awk script, D is an array of macro values keyed by name,
13639 # likewise P contains macro parameters if any. Preserve backslash
13640 # newline sequences.
13642 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13644 s/.\{148\}/&'"$ac_delim"'/g
13647 s/^[ ]*#[ ]*define[ ][ ]*/ /
13654 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13656 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13660 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13661 D["\1"]=" \3\\\\\\n"\\/p
13663 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13668 s/.\{148\}/&'"$ac_delim"'/g
13673 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13676 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13678 ' <confdefs.h | sed '
13679 s/'"$ac_delim"'/"\\\
13680 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13683 for (key in D) D_is_set[key] = 1
13686 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13688 split(line, arg, " ")
13689 if (arg[1] == "#") {
13693 defundef = substr(arg[1], 2)
13696 split(mac1, mac2, "(") #)
13698 prefix = substr(line, 1, index(line, defundef) - 1)
13699 if (D_is_set[macro]) {
13700 # Preserve the white space surrounding the "#".
13701 print prefix "define", macro P[macro] D[macro]
13704 # Replace #undef with comments. This is necessary, for example,
13705 # in the case of _POSIX_SOURCE, which is predefined and required
13706 # on some systems where configure will not decide to define it.
13707 if (defundef == "undef") {
13708 print "/*", prefix defundef, macro, "*/"
13716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13717 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13718 fi # test -n "$CONFIG_HEADERS"
13721 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13726 :[FHLC]) ac_mode=$ac_tag; continue;;
13728 case $ac_mode$ac_tag in
13730 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13731 :[FH]-) ac_tag=-:-;;
13732 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13749 -) ac_f="$ac_tmp/stdin";;
13750 *) # Look for the file first in the build tree, then in the source tree
13751 # (if the path is not absolute). The absolute path cannot be DOS-style,
13752 # because $ac_f cannot contain `:'.
13756 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13758 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13760 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13761 as_fn_append ac_file_inputs " '$ac_f'"
13764 # Let's still pretend it is `configure' which instantiates (i.e., don't
13765 # use $as_me), people would be surprised to read:
13766 # /* config.h. Generated by config.status. */
13767 configure_input='Generated from '`
13768 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13770 if test x"$ac_file" != x-; then
13771 configure_input="$ac_file. $configure_input"
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13773 $as_echo "$as_me: creating $ac_file" >&6;}
13775 # Neutralize special characters interpreted by sed in replacement strings.
13776 case $configure_input in #(
13777 *\&* | *\|* | *\\* )
13778 ac_sed_conf_input=`$as_echo "$configure_input" |
13779 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13780 *) ac_sed_conf_input=$configure_input;;
13784 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13790 ac_dir=`$as_dirname -- "$ac_file" ||
13791 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13792 X"$ac_file" : 'X\(//\)[^/]' \| \
13793 X"$ac_file" : 'X\(//\)$' \| \
13794 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13795 $as_echo X"$ac_file" |
13796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13800 /^X\(\/\/\)[^/].*/{
13813 as_dir="$ac_dir"; as_fn_mkdir_p
13817 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13819 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13820 # A ".." for each directory in $ac_dir_suffix.
13821 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13822 case $ac_top_builddir_sub in
13823 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13824 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13827 ac_abs_top_builddir=$ac_pwd
13828 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13829 # for backward compatibility:
13830 ac_top_builddir=$ac_top_build_prefix
13833 .) # We are building in place.
13835 ac_top_srcdir=$ac_top_builddir_sub
13836 ac_abs_top_srcdir=$ac_pwd ;;
13837 [\\/]* | ?:[\\/]* ) # Absolute name.
13838 ac_srcdir=$srcdir$ac_dir_suffix;
13839 ac_top_srcdir=$srcdir
13840 ac_abs_top_srcdir=$srcdir ;;
13841 *) # Relative name.
13842 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13843 ac_top_srcdir=$ac_top_build_prefix$srcdir
13844 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13846 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13856 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13857 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13859 ac_MKDIR_P=$MKDIR_P
13861 [\\/$]* | ?:[\\/]* ) ;;
13862 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13867 # If the template does not know about datarootdir, expand it.
13868 # FIXME: This hack should be removed a few years after 2.60.
13869 ac_datarootdir_hack=; ac_datarootdir_seen=
13880 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13881 *datarootdir*) ac_datarootdir_seen=yes;;
13882 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13884 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13887 ac_datarootdir_hack='
13888 s&@datadir@&$datadir&g
13889 s&@docdir@&$docdir&g
13890 s&@infodir@&$infodir&g
13891 s&@localedir@&$localedir&g
13892 s&@mandir@&$mandir&g
13893 s&\\\${datarootdir}&$datarootdir&g' ;;
13897 # Neutralize VPATH when `$srcdir' = `.'.
13898 # Shell code in configure.ac might set extrasub.
13899 # FIXME: do we really want to maintain this feature?
13900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13901 ac_sed_extra="$ac_vpsub
13904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13907 s|@configure_input@|$ac_sed_conf_input|;t t
13908 s&@top_builddir@&$ac_top_builddir_sub&;t t
13909 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13910 s&@srcdir@&$ac_srcdir&;t t
13911 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13912 s&@top_srcdir@&$ac_top_srcdir&;t t
13913 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13914 s&@builddir@&$ac_builddir&;t t
13915 s&@abs_builddir@&$ac_abs_builddir&;t t
13916 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13917 s&@INSTALL@&$ac_INSTALL&;t t
13918 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13919 $ac_datarootdir_hack
13921 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13922 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13924 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13925 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13927 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13929 which seems to be undefined. Please make sure it is defined" >&5
13930 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13931 which seems to be undefined. Please make sure it is defined" >&2;}
13933 rm -f "$ac_tmp/stdin"
13935 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13936 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13944 if test x"$ac_file" != x-; then
13946 $as_echo "/* $configure_input */" \
13947 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13948 } >"$ac_tmp/config.h" \
13949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13950 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13952 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13955 mv "$ac_tmp/config.h" "$ac_file" \
13956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13959 $as_echo "/* $configure_input */" \
13960 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13961 || as_fn_error $? "could not create -" "$LINENO" 5
13963 # Compute "$ac_file"'s index in $config_headers.
13966 for _am_header in $config_headers :; do
13967 case $_am_header in
13968 $_am_arg | $_am_arg:* )
13971 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13974 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13975 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13976 X"$_am_arg" : 'X\(//\)[^/]' \| \
13977 X"$_am_arg" : 'X\(//\)$' \| \
13978 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13979 $as_echo X"$_am_arg" |
13980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13984 /^X\(\/\/\)[^/].*/{
13996 s/.*/./; q'`/stamp-h$_am_stamp_count
13999 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14000 $as_echo "$as_me: executing $ac_file commands" >&6;}
14005 case $ac_file$ac_mode in
14006 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14007 # Older Autoconf quotes --file arguments for eval, but not when files
14008 # are listed without --file. Let's play safe and only enable the eval
14009 # if we detect the quoting.
14010 case $CONFIG_FILES in
14011 *\'*) eval set x "$CONFIG_FILES" ;;
14012 *) set x $CONFIG_FILES ;;
14017 # Strip MF so we end up with the name of the file.
14018 mf=`echo "$mf" | sed -e 's/:.*$//'`
14019 # Check whether this is an Automake generated Makefile or not.
14020 # We used to match only the files named 'Makefile.in', but
14021 # some people rename them; so instead we look at the file content.
14022 # Grep'ing the first line is not enough: some people post-process
14023 # each Makefile.in and add a new line on top of each file to say so.
14024 # Grep'ing the whole file is not good either: AIX grep has a line
14025 # limit of 2048, but all sed's we know have understand at least 4000.
14026 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14027 dirpart=`$as_dirname -- "$mf" ||
14028 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14029 X"$mf" : 'X\(//\)[^/]' \| \
14030 X"$mf" : 'X\(//\)$' \| \
14031 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14037 /^X\(\/\/\)[^/].*/{
14053 # Extract the definition of DEPDIR, am__include, and am__quote
14054 # from the Makefile without running 'make'.
14055 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14056 test -z "$DEPDIR" && continue
14057 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14058 test -z "$am__include" && continue
14059 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14060 # Find all dependency output files, they are included files with
14061 # $(DEPDIR) in their names. We invoke sed twice because it is the
14062 # simplest approach to changing $(DEPDIR) to its actual value in the
14064 for file in `sed -n "
14065 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14066 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14067 # Make sure the directory exists.
14068 test -f "$dirpart/$file" && continue
14069 fdir=`$as_dirname -- "$file" ||
14070 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14071 X"$file" : 'X\(//\)[^/]' \| \
14072 X"$file" : 'X\(//\)$' \| \
14073 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14074 $as_echo X"$file" |
14075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14079 /^X\(\/\/\)[^/].*/{
14092 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14093 # echo "creating $dirpart/$file"
14094 echo '# dummy' > "$dirpart/$file"
14101 # See if we are running on zsh, and set the options which allow our
14102 # commands through without removal of \ escapes.
14103 if test -n "${ZSH_VERSION+set}" ; then
14104 setopt NO_GLOB_SUBST
14107 cfgfile="${ofile}T"
14108 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14111 cat <<_LT_EOF >> "$cfgfile"
14114 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14115 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14116 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14117 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14119 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14120 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14122 # Written by Gordon Matzigkeit, 1996
14124 # This file is part of GNU Libtool.
14126 # GNU Libtool is free software; you can redistribute it and/or
14127 # modify it under the terms of the GNU General Public License as
14128 # published by the Free Software Foundation; either version 2 of
14129 # the License, or (at your option) any later version.
14131 # As a special exception to the GNU General Public License,
14132 # if you distribute this file as part of a program or library that
14133 # is built using GNU Libtool, you may include this file under the
14134 # same distribution terms that you use for the rest of that program.
14136 # GNU Libtool is distributed in the hope that it will be useful,
14137 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14138 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14139 # GNU General Public License for more details.
14141 # You should have received a copy of the GNU General Public License
14142 # along with GNU Libtool; see the file COPYING. If not, a copy
14143 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14144 # obtained by writing to the Free Software Foundation, Inc.,
14145 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14148 # The names of the tagged configurations supported by this script.
14151 # ### BEGIN LIBTOOL CONFIG
14153 # Which release of libtool.m4 was used?
14154 macro_version=$macro_version
14155 macro_revision=$macro_revision
14157 # Whether or not to build static libraries.
14158 build_old_libs=$enable_static
14160 # Whether or not to build shared libraries.
14161 build_libtool_libs=$enable_shared
14163 # What type of objects to build.
14166 # Whether or not to optimize for fast installation.
14167 fast_install=$enable_fast_install
14169 # Shell to use when invoking shell scripts.
14172 # An echo program that protects backslashes.
14175 # The PATH separator for the build system.
14176 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14179 host_alias=$host_alias
14183 # The build system.
14184 build_alias=$build_alias
14188 # A sed program that does not truncate output.
14191 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14192 Xsed="\$SED -e 1s/^X//"
14194 # A grep program that handles long lines.
14200 # A literal string matcher.
14203 # A BSD- or MS-compatible name lister.
14206 # Whether we need soft or hard links.
14209 # What is the maximum length of a command?
14210 max_cmd_len=$max_cmd_len
14212 # Object file suffix (normally "o").
14215 # Executable file suffix (normally "").
14218 # whether the shell understands "unset".
14221 # turn spaces into newlines.
14224 # turn newlines into spaces.
14227 # convert \$build file names to \$host format.
14228 to_host_file_cmd=$lt_cv_to_host_file_cmd
14230 # convert \$build files to toolchain format.
14231 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14233 # An object symbol dumper.
14234 OBJDUMP=$lt_OBJDUMP
14236 # Method to check whether dependent libraries are shared objects.
14237 deplibs_check_method=$lt_deplibs_check_method
14239 # Command to use when deplibs_check_method = "file_magic".
14240 file_magic_cmd=$lt_file_magic_cmd
14242 # How to find potential files when deplibs_check_method = "file_magic".
14243 file_magic_glob=$lt_file_magic_glob
14245 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14246 want_nocaseglob=$lt_want_nocaseglob
14248 # DLL creation program.
14249 DLLTOOL=$lt_DLLTOOL
14251 # Command to associate shared and link libraries.
14252 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14257 # Flags to create an archive.
14258 AR_FLAGS=$lt_AR_FLAGS
14260 # How to feed a file listing to the archiver.
14261 archiver_list_spec=$lt_archiver_list_spec
14263 # A symbol stripping program.
14266 # Commands used to install an old-style archive.
14268 old_postinstall_cmds=$lt_old_postinstall_cmds
14269 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14271 # Whether to use a lock for old archive extraction.
14272 lock_old_archive_extraction=$lock_old_archive_extraction
14277 # LTCC compiler flags.
14278 LTCFLAGS=$lt_CFLAGS
14280 # Take the output of nm and produce a listing of raw symbols and C names.
14281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14283 # Transform the output of nm in a proper C declaration.
14284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14286 # Transform the output of nm in a C name address pair.
14287 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14289 # Transform the output of nm in a C name address pair when lib prefix is needed.
14290 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14292 # Specify filename containing input files for \$NM.
14293 nm_file_list_spec=$lt_nm_file_list_spec
14295 # The root where to search for dependent libraries,and in which our libraries should be installed.
14296 lt_sysroot=$lt_sysroot
14298 # The name of the directory that contains temporary libtool files.
14301 # Used to examine libraries when file_magic_cmd begins with "file".
14302 MAGIC_CMD=$MAGIC_CMD
14304 # Must we lock files when doing compilation?
14305 need_locks=$lt_need_locks
14308 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14310 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14311 DSYMUTIL=$lt_DSYMUTIL
14313 # Tool to change global to local symbols on Mac OS X.
14316 # Tool to manipulate fat objects and archives on Mac OS X.
14319 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14322 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14323 OTOOL64=$lt_OTOOL64
14325 # Old archive suffix (normally "a").
14328 # Shared library suffix (normally ".so").
14329 shrext_cmds=$lt_shrext_cmds
14331 # The commands to extract the exported symbol list from a shared archive.
14332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14334 # Variables whose values should be saved in libtool wrapper scripts and
14335 # restored at link time.
14336 variables_saved_for_relink=$lt_variables_saved_for_relink
14338 # Do we need the "lib" prefix for modules?
14339 need_lib_prefix=$need_lib_prefix
14341 # Do we need a version for libraries?
14342 need_version=$need_version
14344 # Library versioning type.
14345 version_type=$version_type
14347 # Shared library runtime path variable.
14348 runpath_var=$runpath_var
14350 # Shared library path variable.
14351 shlibpath_var=$shlibpath_var
14353 # Is shlibpath searched before the hard-coded library search path?
14354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14356 # Format of library name prefix.
14357 libname_spec=$lt_libname_spec
14359 # List of archive names. First name is the real one, the rest are links.
14360 # The last name is the one that the linker finds with -lNAME
14361 library_names_spec=$lt_library_names_spec
14363 # The coded name of the library, if different from the real name.
14364 soname_spec=$lt_soname_spec
14366 # Permission mode override for installation of shared libraries.
14367 install_override_mode=$lt_install_override_mode
14369 # Command to use after installation of a shared archive.
14370 postinstall_cmds=$lt_postinstall_cmds
14372 # Command to use after uninstallation of a shared archive.
14373 postuninstall_cmds=$lt_postuninstall_cmds
14375 # Commands used to finish a libtool library installation in a directory.
14376 finish_cmds=$lt_finish_cmds
14378 # As "finish_cmds", except a single script fragment to be evaled but
14380 finish_eval=$lt_finish_eval
14382 # Whether we should hardcode library paths into libraries.
14383 hardcode_into_libs=$hardcode_into_libs
14385 # Compile-time system search path for libraries.
14386 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14388 # Run-time system search path for libraries.
14389 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14391 # Whether dlopen is supported.
14392 dlopen_support=$enable_dlopen
14394 # Whether dlopen of programs is supported.
14395 dlopen_self=$enable_dlopen_self
14397 # Whether dlopen of statically linked programs is supported.
14398 dlopen_self_static=$enable_dlopen_self_static
14400 # Commands to strip libraries.
14401 old_striplib=$lt_old_striplib
14402 striplib=$lt_striplib
14405 # The linker used to build libraries.
14408 # How to create reloadable object files.
14409 reload_flag=$lt_reload_flag
14410 reload_cmds=$lt_reload_cmds
14412 # Commands used to build an old-style archive.
14413 old_archive_cmds=$lt_old_archive_cmds
14415 # A language specific compiler.
14418 # Is the compiler the GNU compiler?
14421 # Compiler flag to turn off builtin functions.
14422 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14424 # Additional compiler flags for building library objects.
14425 pic_flag=$lt_lt_prog_compiler_pic
14427 # How to pass a linker flag through the compiler.
14428 wl=$lt_lt_prog_compiler_wl
14430 # Compiler flag to prevent dynamic linking.
14431 link_static_flag=$lt_lt_prog_compiler_static
14433 # Does compiler simultaneously support -c and -o options?
14434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14436 # Whether or not to add -lc for building shared libraries.
14437 build_libtool_need_lc=$archive_cmds_need_lc
14439 # Whether or not to disallow shared libs when runtime libs are static.
14440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14442 # Compiler flag to allow reflexive dlopens.
14443 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14445 # Compiler flag to generate shared objects directly from archives.
14446 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14448 # Whether the compiler copes with passing no objects directly.
14449 compiler_needs_object=$lt_compiler_needs_object
14451 # Create an old-style archive from a shared archive.
14452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14454 # Create a temporary old-style archive to link instead of a shared archive.
14455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14457 # Commands used to build a shared archive.
14458 archive_cmds=$lt_archive_cmds
14459 archive_expsym_cmds=$lt_archive_expsym_cmds
14461 # Commands used to build a loadable module if different from building
14462 # a shared archive.
14463 module_cmds=$lt_module_cmds
14464 module_expsym_cmds=$lt_module_expsym_cmds
14466 # Whether we are building with GNU ld or not.
14467 with_gnu_ld=$lt_with_gnu_ld
14469 # Flag that allows shared libraries with undefined symbols to be built.
14470 allow_undefined_flag=$lt_allow_undefined_flag
14472 # Flag that enforces no undefined symbols.
14473 no_undefined_flag=$lt_no_undefined_flag
14475 # Flag to hardcode \$libdir into a binary during linking.
14476 # This must work even if \$libdir does not exist
14477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14479 # Whether we need a single "-rpath" flag with a separated argument.
14480 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14482 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14483 # DIR into the resulting binary.
14484 hardcode_direct=$hardcode_direct
14486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14487 # DIR into the resulting binary and the resulting library dependency is
14488 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14489 # library is relocated.
14490 hardcode_direct_absolute=$hardcode_direct_absolute
14492 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14493 # into the resulting binary.
14494 hardcode_minus_L=$hardcode_minus_L
14496 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14497 # into the resulting binary.
14498 hardcode_shlibpath_var=$hardcode_shlibpath_var
14500 # Set to "yes" if building a shared library automatically hardcodes DIR
14501 # into the library and all subsequent libraries and executables linked
14503 hardcode_automatic=$hardcode_automatic
14505 # Set to yes if linker adds runtime paths of dependent libraries
14506 # to runtime path list.
14507 inherit_rpath=$inherit_rpath
14509 # Whether libtool must link a program against all its dependency libraries.
14510 link_all_deplibs=$link_all_deplibs
14512 # Set to "yes" if exported symbols are required.
14513 always_export_symbols=$always_export_symbols
14515 # The commands to list exported symbols.
14516 export_symbols_cmds=$lt_export_symbols_cmds
14518 # Symbols that should not be listed in the preloaded symbols.
14519 exclude_expsyms=$lt_exclude_expsyms
14521 # Symbols that must always be exported.
14522 include_expsyms=$lt_include_expsyms
14524 # Commands necessary for linking programs (against libraries) with templates.
14525 prelink_cmds=$lt_prelink_cmds
14527 # Commands necessary for finishing linking programs.
14528 postlink_cmds=$lt_postlink_cmds
14530 # Specify filename containing input files.
14531 file_list_spec=$lt_file_list_spec
14533 # How to hardcode a shared library path into an executable.
14534 hardcode_action=$hardcode_action
14536 # ### END LIBTOOL CONFIG
14542 cat <<\_LT_EOF >> "$cfgfile"
14543 # AIX sometimes has problems with the GCC collect2 program. For some
14544 # reason, if we set the COLLECT_NAMES environment variable, the problems
14545 # vanish in a puff of smoke.
14546 if test "X${COLLECT_NAMES+set}" != Xset; then
14548 export COLLECT_NAMES
14555 ltmain="$ac_aux_dir/ltmain.sh"
14558 # We use sed instead of cat because bash on DJGPP gets confused if
14559 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14560 # text mode, it properly converts lines to CR/LF. This bash problem
14561 # is reportedly fixed, but why not run on old versions too?
14562 sed '$q' "$ltmain" >> "$cfgfile" \
14563 || (rm -f "$cfgfile"; exit 1)
14565 if test x"$xsi_shell" = xyes; then
14566 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14570 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14571 \ * ) func_dirname_result="${3}" ;;\
14573 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14574 && mv -f "$cfgfile.tmp" "$cfgfile" \
14575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14576 test 0 -eq $? || _lt_function_replace_fail=:
14579 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14582 \ func_basename_result="${1##*/}"\
14583 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14584 && mv -f "$cfgfile.tmp" "$cfgfile" \
14585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14586 test 0 -eq $? || _lt_function_replace_fail=:
14589 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14590 func_dirname_and_basename ()\
14593 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14594 \ * ) func_dirname_result="${3}" ;;\
14596 \ func_basename_result="${1##*/}"\
14597 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14598 && mv -f "$cfgfile.tmp" "$cfgfile" \
14599 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14600 test 0 -eq $? || _lt_function_replace_fail=:
14603 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14606 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14607 \ # positional parameters, so assign one to ordinary parameter first.\
14608 \ func_stripname_result=${3}\
14609 \ func_stripname_result=${func_stripname_result#"${1}"}\
14610 \ func_stripname_result=${func_stripname_result%"${2}"}\
14611 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14612 && mv -f "$cfgfile.tmp" "$cfgfile" \
14613 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14614 test 0 -eq $? || _lt_function_replace_fail=:
14617 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14618 func_split_long_opt ()\
14620 \ func_split_long_opt_name=${1%%=*}\
14621 \ func_split_long_opt_arg=${1#*=}\
14622 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14623 && mv -f "$cfgfile.tmp" "$cfgfile" \
14624 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14625 test 0 -eq $? || _lt_function_replace_fail=:
14628 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14629 func_split_short_opt ()\
14631 \ func_split_short_opt_arg=${1#??}\
14632 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14633 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14634 && mv -f "$cfgfile.tmp" "$cfgfile" \
14635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14636 test 0 -eq $? || _lt_function_replace_fail=:
14639 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14643 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14644 \ *) func_lo2o_result=${1} ;;\
14646 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14647 && mv -f "$cfgfile.tmp" "$cfgfile" \
14648 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14649 test 0 -eq $? || _lt_function_replace_fail=:
14652 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14655 func_xform_result=${1%.*}.lo\
14656 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14657 && mv -f "$cfgfile.tmp" "$cfgfile" \
14658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659 test 0 -eq $? || _lt_function_replace_fail=:
14662 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14665 func_arith_result=$(( $* ))\
14666 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14667 && mv -f "$cfgfile.tmp" "$cfgfile" \
14668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14669 test 0 -eq $? || _lt_function_replace_fail=:
14672 sed -e '/^func_len ()$/,/^} # func_len /c\
14675 func_len_result=${#1}\
14676 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14677 && mv -f "$cfgfile.tmp" "$cfgfile" \
14678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14679 test 0 -eq $? || _lt_function_replace_fail=:
14683 if test x"$lt_shell_append" = xyes; then
14684 sed -e '/^func_append ()$/,/^} # func_append /c\
14687 eval "${1}+=\\${2}"\
14688 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14689 && mv -f "$cfgfile.tmp" "$cfgfile" \
14690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14691 test 0 -eq $? || _lt_function_replace_fail=:
14694 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14695 func_append_quoted ()\
14697 \ func_quote_for_eval "${2}"\
14698 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14699 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14700 && mv -f "$cfgfile.tmp" "$cfgfile" \
14701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14702 test 0 -eq $? || _lt_function_replace_fail=:
14705 # Save a `func_append' function call where possible by direct use of '+='
14706 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14707 && mv -f "$cfgfile.tmp" "$cfgfile" \
14708 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14709 test 0 -eq $? || _lt_function_replace_fail=:
14711 # Save a `func_append' function call even when '+=' is not available
14712 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14713 && mv -f "$cfgfile.tmp" "$cfgfile" \
14714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14715 test 0 -eq $? || _lt_function_replace_fail=:
14718 if test x"$_lt_function_replace_fail" = x":"; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14720 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14724 mv -f "$cfgfile" "$ofile" ||
14725 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14729 "pamgdb":F) chmod +x pamgdb ;;
14730 "mkpkgng":F) chmod +x mkpkgng ;;
14738 ac_clean_files=$ac_clean_files_save
14740 test $ac_write_fail = 0 ||
14741 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14744 # configure is writing to config.log, and then calls config.status.
14745 # config.status does its own redirection, appending to config.log.
14746 # Unfortunately, on DOS this fails, as config.log is still kept open
14747 # by configure, so config.status won't be able to write to it; its
14748 # output is simply discarded. So we exec the FD to /dev/null,
14749 # effectively closing config.log, so it can be properly (re)opened and
14750 # appended to by config.status. When coming back to configure, we
14751 # need to make the FD available again.
14752 if test "$no_create" != yes; then
14754 ac_config_status_args=
14755 test "$silent" = yes &&
14756 ac_config_status_args="$ac_config_status_args --quiet"
14758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14761 # would make configure fail if this is the last instruction.
14762 $ac_cs_success || as_fn_exit 1
14764 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14766 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}