2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for liboauth -.
5 # Report bugs to <robin AT gareus DOT org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (C) Robin Gareus 2007-2012
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
151 *v*x* | *x*v* ) as_opts=-vx ;;
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || 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 test \$(( 1 + 1 )) = 2 || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
250 if test "x$CONFIG_SHELL" != x; then :
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 *v*x* | *x*v* ) as_opts=-vx ;;
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and robin AT gareus
280 $0: DOT org about your system, including any error possibly
281 $0: output before this message. Then install a modern
282 $0: shell, or manually run the script under such a shell if
283 $0: you do have one."
289 SHELL=${CONFIG_SHELL-/bin/sh}
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
300 # Portably unset VAR.
303 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir=./$as_dir;;
334 test -d "$as_dir" || eval $as_mkdir_p || {
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
411 as_val=`expr "$@" || test $? -eq 1`
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
423 as_status=$1; test $as_status -eq 0 && as_status=1
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
509 # Exit status is that of the last command.
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
531 mkdir conf$$.dir 2>/dev/null
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
542 elif ln conf$$.file conf$$ 2>/dev/null; then
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
556 test -d ./-p && rmdir ./-p
561 as_executable_p=as_fn_executable_p
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
569 SHELL=${CONFIG_SHELL-/bin/sh}
572 test -n "$DJDIR" || exec 7<&0 </dev/null
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583 ac_default_prefix=/usr/local
585 ac_config_libobj_dir=.
592 # Identity of this package.
593 PACKAGE_NAME='liboauth'
594 PACKAGE_TARNAME='liboauth'
596 PACKAGE_STRING='liboauth -'
597 PACKAGE_BUGREPORT='robin AT gareus DOT org'
598 PACKAGE_URL='http://liboauth.sourceforge.net/'
600 ac_unique_file="src/oauth.c"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
614 # ifdef HAVE_STDLIB_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
637 ac_subst_vars='am__EXEEXT_FALSE
713 INSTALL_STRIP_PROGRAM
768 program_transform_name
781 enable_option_checking
782 enable_dependency_tracking
796 ac_precious_vars='build_alias
817 # Initialize some variables set by options.
819 ac_init_version=false
820 ac_unrecognized_opts=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
906 cache_file=config.cache ;;
908 -datadir | --datadir | --datadi | --datad)
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error $? "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
934 eval enable_$ac_useropt=no ;;
936 -docdir | --docdir | --docdi | --doc | --do)
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946 -enable-* | --enable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
960 eval enable_$ac_useropt=\$ac_optarg ;;
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
975 -help | --help | --hel | --he | -h)
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 htmldir=$ac_optarg ;;
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1005 -libdir | --libdir | --libdi | --libd)
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1096 -psdir | --psdir | --psdi | --psd | --ps)
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1124 -site=* | --site=* | --sit=*)
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1164 eval with_$ac_useropt=\$ac_optarg ;;
1166 -without-* | --without-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1180 eval with_$ac_useropt=no ;;
1183 # Obsolete; use --with-x.
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1200 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error $? "missing argument to $ac_option"
1230 if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 # Check all directory arguments for consistency.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1251 # Be sure to have absolute directory names.
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1264 target=$target_alias
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 elif test "x$build_alias" != "x$host_alias"; then
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278 test "$silent" = yes && exec 6>/dev/null
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error $? "pwd does not report name of working directory"
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1321 ac_srcdir_defaulted=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1355 \`configure' configures liboauth - to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking ...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/liboauth]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 --target=TARGET configure for building compilers for TARGET [HOST]
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of liboauth -:";;
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --disable-dependency-tracking speeds up one-time build
1435 --enable-dependency-tracking do not reject slow dependency extractors
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-static[=PKGS] build static libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --disable-curl do not use (command-line) curl
1442 --disable-libcurl do not use libcurl
1443 --enable-builtinhash do use neither NSS nor OpenSSL: only HMAC/SHA1
1444 signatures - no RSA/PK11
1445 --enable-nss use NSS instead of OpenSSL
1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot=DIR Search for dependent libraries within DIR
1454 (or the compiler's sysroot if not specified).
1455 --with-curltimeout[=<int>]
1456 use CURLOPT_TIMEOUT with libcurl HTTP requests.
1457 Timeout is given in seconds (default=60). Note:
1458 using this option also sets CURLOPT_NOSIGNAL. see
1459 http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTTIMEOUT
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 LIBS libraries to pass to the linker, e.g. -l<library>
1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1470 PKG_CONFIG path to pkg-config utility
1472 directories to add to pkg-config's search path
1474 path overriding pkg-config's built-in search path
1475 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1476 CURL_LIBS linker flags for CURL, overriding pkg-config
1477 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1478 NSS_LIBS linker flags for NSS, overriding pkg-config
1480 DOT The 'dot' program from graphviz
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1486 Report bugs to <robin AT gareus DOT org>.
1487 liboauth home page: <http://liboauth.sourceforge.net/>.
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1517 .) # We are building in place.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1550 liboauth configure -
1551 generated by GNU Autoconf 2.69
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1557 Copyright (C) Robin Gareus 2007-2012
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1602 } # ac_fn_c_try_compile
1604 # ac_fn_c_try_link LINENO
1605 # -----------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded.
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext conftest$ac_exeext
1611 if { { ac_try="$ac_link"
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>conftest.err
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest$ac_exeext && {
1630 test "$cross_compiling" = yes ||
1631 test -x conftest$ac_exeext
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642 # interfere with the next link command; also delete a directory that is
1643 # left behind by Apple's compiler. We do this before executing the actions.
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1648 } # ac_fn_c_try_link
1650 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists and can be compiled using the include files in
1653 # INCLUDES, setting the cache variable VAR accordingly.
1654 ac_fn_c_check_header_compile ()
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if eval \${$3+:} false; then :
1660 $as_echo_n "(cached) " >&6
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1667 if ac_fn_c_try_compile "$LINENO"; then :
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 } # ac_fn_c_check_header_compile
1681 # ac_fn_c_try_cpp LINENO
1682 # ----------------------
1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } > conftest.i && {
1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=$ac_status
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1760 # ac_fn_c_check_func LINENO FUNC VAR
1761 # ----------------------------------
1762 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1763 ac_fn_c_check_func ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1775 #define $2 innocuous_$2
1777 /* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $2 (); below.
1779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1780 <limits.h> exists even on freestanding compilers. */
1783 # include <limits.h>
1785 # include <assert.h>
1790 /* Override any GCC internal prototype to avoid an error.
1791 Use char because int might match the return type of a GCC
1792 builtin and then its argument prototype would still apply. */
1797 /* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800 #if defined __stub_$2 || defined __stub___$2
1812 if ac_fn_c_try_link "$LINENO"; then :
1817 rm -f core conftest.err conftest.$ac_objext \
1818 conftest$ac_exeext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_func
1827 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1828 # -------------------------------------------------------
1829 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1830 # the include files in INCLUDES and setting the cache variable VAR
1832 ac_fn_c_check_header_mongrel ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if eval \${$3+:} false; then :
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 # Is the header compilable?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1847 $as_echo_n "checking $2 usability... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 ac_header_compiler=yes
1856 ac_header_compiler=no
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1860 $as_echo "$ac_header_compiler" >&6; }
1862 # Is the header present?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1864 $as_echo_n "checking $2 presence... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1869 if ac_fn_c_try_cpp "$LINENO"; then :
1870 ac_header_preproc=yes
1872 ac_header_preproc=no
1874 rm -f conftest.err conftest.i conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1876 $as_echo "$ac_header_preproc" >&6; }
1878 # So? What about this header?
1879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1882 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1888 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1890 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1892 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1894 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897 ( $as_echo "## -------------------------------------- ##
1898 ## Report this to robin AT gareus DOT org ##
1899 ## -------------------------------------- ##"
1900 ) | sed "s/^/$as_me: WARNING: /" >&2
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1908 eval "$3=\$ac_header_compiler"
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 } # ac_fn_c_check_header_mongrel
1918 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1919 # -------------------------------------------
1920 # Tests whether TYPE exists after having included INCLUDES, setting cache
1921 # variable VAR accordingly.
1922 ac_fn_c_check_type ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_c_check_type
1972 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1973 # ----------------------------------------------------
1974 # Tries to find if the field MEMBER exists in type AGGR, after including
1975 # INCLUDES, setting cache variable VAR accordingly.
1976 ac_fn_c_check_member ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1980 $as_echo_n "checking for $2.$3... " >&6; }
1981 if eval \${$4+:} false; then :
1982 $as_echo_n "(cached) " >&6
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1997 if ac_fn_c_try_compile "$LINENO"; then :
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2007 if (sizeof ac_aggr.$3)
2013 if ac_fn_c_try_compile "$LINENO"; then :
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_member
2028 cat >config.log <<_ACEOF
2029 This file contains any messages produced by compilers while
2030 running configure, to aid debugging if configure makes a mistake.
2032 It was created by liboauth $as_me -, which was
2033 generated by GNU Autoconf 2.69. Invocation command line was
2045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2054 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2055 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2058 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2059 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2060 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 $as_echo "PATH: $as_dir"
2085 # Keep a trace of the command line.
2086 # Strip out --no-create and --no-recursion so they do not pile up.
2087 # Strip out --silent because we don't want to record it for future runs.
2088 # Also quote any args containing shell meta-characters.
2089 # Make two passes to allow for proper duplicate-argument suppression.
2093 ac_must_keep_next=false
2099 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101 | -silent | --silent | --silen | --sile | --sil)
2104 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2109 as_fn_append ac_configure_args1 " '$ac_arg'"
2110 if test $ac_must_keep_next = true; then
2111 ac_must_keep_next=false # Got value, back to normal.
2114 *=* | --config-cache | -C | -disable-* | --disable-* \
2115 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117 | -with-* | --with-* | -without-* | --without-* | --x)
2118 case "$ac_configure_args0 " in
2119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2122 -* ) ac_must_keep_next=true ;;
2125 as_fn_append ac_configure_args " '$ac_arg'"
2130 { ac_configure_args0=; unset ac_configure_args0;}
2131 { ac_configure_args1=; unset ac_configure_args1;}
2133 # When interrupted or exit'd, cleanup temporary files, and complete
2134 # config.log. We remove comments because anyway the quotes in there
2135 # would cause problems or look ugly.
2136 # WARNING: Use '\'' to represent an apostrophe within the trap.
2137 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138 trap 'exit_status=$?
2139 # Save into config.log some information that might help in debugging.
2143 $as_echo "## ---------------- ##
2144 ## Cache variables. ##
2145 ## ---------------- ##"
2147 # The following way of writing the cache mishandles newlines in values,
2149 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150 eval ac_val=\$$ac_var
2154 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2158 _ | IFS | as_nl) ;; #(
2159 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160 *) { eval $ac_var=; unset $ac_var;} ;;
2165 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166 *${as_nl}ac_space=\ *)
2168 "s/'\''/'\''\\\\'\'''\''/g;
2169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2179 $as_echo "## ----------------- ##
2180 ## Output variables. ##
2181 ## ----------------- ##"
2183 for ac_var in $ac_subst_vars
2185 eval ac_val=\$$ac_var
2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 $as_echo "$ac_var='\''$ac_val'\''"
2193 if test -n "$ac_subst_files"; then
2194 $as_echo "## ------------------- ##
2195 ## File substitutions. ##
2196 ## ------------------- ##"
2198 for ac_var in $ac_subst_files
2200 eval ac_val=\$$ac_var
2202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204 $as_echo "$ac_var='\''$ac_val'\''"
2209 if test -s confdefs.h; then
2210 $as_echo "## ----------- ##
2217 test "$ac_signal" != 0 &&
2218 $as_echo "$as_me: caught signal $ac_signal"
2219 $as_echo "$as_me: exit $exit_status"
2221 rm -f core *.core core.conftest.* &&
2222 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2225 for ac_signal in 1 2 13 15; do
2226 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2231 rm -f -r conftest* confdefs.h
2233 $as_echo "/* confdefs.h */" > confdefs.h
2235 # Predefined preprocessor variables.
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_NAME "$PACKAGE_NAME"
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_STRING "$PACKAGE_STRING"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_URL "$PACKAGE_URL"
2262 # Let the site file select an alternate cache file if it wants to.
2263 # Prefer an explicitly selected file to automatically selected ones.
2266 if test -n "$CONFIG_SITE"; then
2267 # We do not want a PATH search for config.site.
2268 case $CONFIG_SITE in #((
2269 -*) ac_site_file1=./$CONFIG_SITE;;
2270 */*) ac_site_file1=$CONFIG_SITE;;
2271 *) ac_site_file1=./$CONFIG_SITE;;
2273 elif test "x$prefix" != xNONE; then
2274 ac_site_file1=$prefix/share/config.site
2275 ac_site_file2=$prefix/etc/config.site
2277 ac_site_file1=$ac_default_prefix/share/config.site
2278 ac_site_file2=$ac_default_prefix/etc/config.site
2280 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2282 test "x$ac_site_file" = xNONE && continue
2283 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2286 sed 's/^/| /' "$ac_site_file" >&5
2288 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 as_fn_error $? "failed to load site script $ac_site_file
2291 See \`config.log' for more details" "$LINENO" 5; }
2295 if test -r "$cache_file"; then
2296 # Some versions of bash will fail to source /dev/null (special files
2297 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2298 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300 $as_echo "$as_me: loading cache $cache_file" >&6;}
2302 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303 *) . "./$cache_file";;
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308 $as_echo "$as_me: creating cache $cache_file" >&6;}
2312 # Check that the precious variables saved in the cache have kept the same
2314 ac_cache_corrupted=false
2315 for ac_var in $ac_precious_vars; do
2316 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317 eval ac_new_set=\$ac_env_${ac_var}_set
2318 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319 eval ac_new_val=\$ac_env_${ac_var}_value
2320 case $ac_old_set,$ac_new_set in
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2324 ac_cache_corrupted=: ;;
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2331 if test "x$ac_old_val" != "x$ac_new_val"; then
2332 # differences in whitespace do not lead to failure.
2333 ac_old_val_w=`echo x $ac_old_val`
2334 ac_new_val_w=`echo x $ac_new_val`
2335 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338 ac_cache_corrupted=:
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342 eval $ac_var=\$ac_old_val
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2345 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2347 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2350 # Pass precious variables to config.status.
2351 if test "$ac_new_set" = set; then
2353 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2354 *) ac_arg=$ac_var=$ac_new_val ;;
2356 case " $ac_configure_args " in
2357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2358 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2362 if $ac_cache_corrupted; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2367 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2369 ## -------------------- ##
2370 ## Main body of script. ##
2371 ## -------------------- ##
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382 # Extract the first word of "sed", so it can be a program name with args.
2383 set dummy sed; ac_word=$2
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385 $as_echo_n "checking for $ac_word... " >&6; }
2386 if ${ac_cv_path_SED+:} false; then :
2387 $as_echo_n "(cached) " >&6
2391 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
2396 for as_dir in $as_dummy
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 test -z "$ac_cv_path_SED" && ac_cv_path_SED=""""
2415 if test -n "$SED"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
2417 $as_echo "$SED" >&6; }
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420 $as_echo "no" >&6; }
2424 if test -z "$SED"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sed was not found" >&5
2426 $as_echo "$as_me: WARNING: sed was not found" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking liboauth version" >&5
2430 $as_echo_n "checking liboauth version... " >&6; }
2431 VERSION=`$SED -ne 's/^#define LIBOAUTH_VERSION "\(.*\)"/\1/p' ${srcdir}/src/oauth.h 2>/dev/null`
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
2433 $as_echo "$VERSION" >&6; }
2434 if test -z "$VERSION"; then
2435 as_fn_error $? "version number can not be retrieved from src/oauth.h" "$LINENO" 5
2438 VERSION_CUR=`$SED -ne 's/^#define LIBOAUTH_CUR *\([0-9]*\)/\1/p' ${srcdir}/src/oauth.h 2>/dev/null`
2439 VERSION_REV=`$SED -ne 's/^#define LIBOAUTH_REV *\([0-9]*\)/\1/p' ${srcdir}/src/oauth.h 2>/dev/null`
2440 VERSION_AGE=`$SED -ne 's/^#define LIBOAUTH_AGE *\([0-9]*\)/\1/p' ${srcdir}/src/oauth.h 2>/dev/null`
2441 VERSION_INFO=${VERSION_CUR}:${VERSION_REV}:${VERSION_AGE}
2444 ac_config_commands="$ac_config_commands tests/atconfig"
2447 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2448 if test -f "$ac_dir/install-sh"; then
2450 ac_install_sh="$ac_aux_dir/install-sh -c"
2452 elif test -f "$ac_dir/install.sh"; then
2454 ac_install_sh="$ac_aux_dir/install.sh -c"
2456 elif test -f "$ac_dir/shtool"; then
2458 ac_install_sh="$ac_aux_dir/shtool install -c"
2462 if test -z "$ac_aux_dir"; then
2463 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2466 # These three variables are undocumented and unsupported,
2467 # and are intended to be withdrawn in a future Autoconf release.
2468 # They can cause serious problems if a builder's source tree is in a directory
2469 # whose full name contains unusual characters.
2470 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2471 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2472 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2475 # Make sure we can run config.sub.
2476 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2477 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2480 $as_echo_n "checking build system type... " >&6; }
2481 if ${ac_cv_build+:} false; then :
2482 $as_echo_n "(cached) " >&6
2484 ac_build_alias=$build_alias
2485 test "x$ac_build_alias" = x &&
2486 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2487 test "x$ac_build_alias" = x &&
2488 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2489 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2494 $as_echo "$ac_cv_build" >&6; }
2495 case $ac_cv_build in
2497 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2500 ac_save_IFS=$IFS; IFS='-'
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2510 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2514 $as_echo_n "checking host system type... " >&6; }
2515 if ${ac_cv_host+:} false; then :
2516 $as_echo_n "(cached) " >&6
2518 if test "x$host_alias" = x; then
2519 ac_cv_host=$ac_cv_build
2521 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2527 $as_echo "$ac_cv_host" >&6; }
2530 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2533 ac_save_IFS=$IFS; IFS='-'
2539 # Remember, the first character of IFS is used to create $*,
2540 # except with old shells:
2543 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2547 $as_echo_n "checking target system type... " >&6; }
2548 if ${ac_cv_target+:} false; then :
2549 $as_echo_n "(cached) " >&6
2551 if test "x$target_alias" = x; then
2552 ac_cv_target=$ac_cv_host
2554 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2560 $as_echo "$ac_cv_target" >&6; }
2561 case $ac_cv_target in
2563 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2565 target=$ac_cv_target
2566 ac_save_IFS=$IFS; IFS='-'
2572 # Remember, the first character of IFS is used to create $*,
2573 # except with old shells:
2576 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2579 # The aliases save the names the user supplied, while $host etc.
2580 # will get canonicalized.
2581 test -n "$target_alias" &&
2582 test "$program_prefix$program_suffix$program_transform_name" = \
2584 program_prefix=${target_alias}-
2586 am__api_version='1.11'
2588 # Find a good install program. We prefer a C program (faster),
2589 # so one script is as good as another. But avoid the broken or
2590 # incompatible versions:
2591 # SysV /etc/install, /usr/sbin/install
2592 # SunOS /usr/etc/install
2593 # IRIX /sbin/install
2595 # AmigaOS /C/install, which installs bootblocks on floppy discs
2596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2599 # OS/2's system install, which has a completely different semantic
2600 # ./install, which can be erroneously created by make from ./install.sh.
2601 # Reject install programs that cannot install multiple files.
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2604 if test -z "$INSTALL"; then
2605 if ${ac_cv_path_install+:} false; then :
2606 $as_echo_n "(cached) " >&6
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 # Account for people who put trailing slashes in PATH elements.
2614 case $as_dir/ in #((
2615 ./ | .// | /[cC]/* | \
2616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2617 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2620 # OSF1 and SCO ODT 3.0 have their own names for install.
2621 # Don't use installbsd from OSF since it installs stuff as root
2623 for ac_prog in ginstall scoinst install; do
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2626 if test $ac_prog = install &&
2627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2628 # AIX install. It has an incompatible calling convention.
2630 elif test $ac_prog = install &&
2631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632 # program-specific install script used by HP pwplus--don't use.
2635 rm -rf conftest.one conftest.two conftest.dir
2636 echo one > conftest.one
2637 echo two > conftest.two
2639 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2640 test -s conftest.one && test -s conftest.two &&
2641 test -s conftest.dir/conftest.one &&
2642 test -s conftest.dir/conftest.two
2644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2657 rm -rf conftest.one conftest.two conftest.dir
2660 if test "${ac_cv_path_install+set}" = set; then
2661 INSTALL=$ac_cv_path_install
2663 # As a last resort, use the slow shell script. Don't cache a
2664 # value for INSTALL within a source directory, because that will
2665 # break other packages using the cache if that directory is
2666 # removed, or if the value is a relative name.
2667 INSTALL=$ac_install_sh
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2671 $as_echo "$INSTALL" >&6; }
2673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2674 # It thinks the first close brace ends the variable substitution.
2675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2682 $as_echo_n "checking whether build environment is sane... " >&6; }
2685 echo timestamp > conftest.file
2686 # Reject unsafe characters in $srcdir or the absolute working directory
2687 # name. Accept space and tab only in the latter.
2691 *[\\\"\#\$\&\'\`$am_lf]*)
2692 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2695 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2696 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2699 # Do `set' in a subshell so we don't clobber the current shell's
2700 # arguments. Must try -L first in case configure is actually a
2701 # symlink; some systems play weird games with the mod time of symlinks
2702 # (eg FreeBSD returns the mod time of the symlink's containing
2705 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2706 if test "$*" = "X"; then
2708 set X `ls -t "$srcdir/configure" conftest.file`
2711 if test "$*" != "X $srcdir/configure conftest.file" \
2712 && test "$*" != "X conftest.file $srcdir/configure"; then
2714 # If neither matched, then we have a broken ls. This can happen
2715 # if, for instance, CONFIG_SHELL is bash and it inherits a
2716 # broken ls alias from the environment. This has actually
2717 # happened. Such a system could not be considered "sane".
2718 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2719 alias in your environment" "$LINENO" 5
2722 test "$2" = conftest.file
2728 as_fn_error $? "newly created file is older than distributed files!
2729 Check your system clock" "$LINENO" 5
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732 $as_echo "yes" >&6; }
2733 test "$program_prefix" != NONE &&
2734 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2735 # Use a double $ so make ignores it.
2736 test "$program_suffix" != NONE &&
2737 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2738 # Double any \ or $.
2739 # By default was `s,x,x', remove it if useless.
2740 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2741 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2743 # expand $ac_aux_dir to an absolute path
2744 am_aux_dir=`cd $ac_aux_dir && pwd`
2746 if test x"${MISSING+set}" != xset; then
2749 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2751 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2754 # Use eval to expand $SHELL
2755 if eval "$MISSING --run true"; then
2756 am_missing_run="$MISSING --run "
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2760 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2763 if test x"${install_sh}" != xset; then
2766 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2768 install_sh="\${SHELL} $am_aux_dir/install-sh"
2772 # Installed binaries are usually stripped using `strip' when the user
2773 # run `make install-strip'. However `strip' might not be the right
2774 # tool to use in cross-compilation environments, therefore Automake
2775 # will honor the `STRIP' environment variable to overrule this program.
2776 if test "$cross_compiling" != no; then
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}strip; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_STRIP+:} false; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$STRIP"; then
2786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 STRIP=$ac_cv_prog_STRIP
2806 if test -n "$STRIP"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2808 $as_echo "$STRIP" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2816 if test -z "$ac_cv_prog_STRIP"; then
2818 # Extract the first word of "strip", so it can be a program name with args.
2819 set dummy strip; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$ac_ct_STRIP"; then
2826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_STRIP="strip"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2846 if test -n "$ac_ct_STRIP"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2848 $as_echo "$ac_ct_STRIP" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2854 if test "x$ac_ct_STRIP" = x; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2866 STRIP="$ac_cv_prog_STRIP"
2870 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2873 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2874 if test -z "$MKDIR_P"; then
2875 if ${ac_cv_path_mkdir+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2882 test -z "$as_dir" && as_dir=.
2883 for ac_prog in mkdir gmkdir; do
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2886 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2887 'mkdir (GNU coreutils) '* | \
2888 'mkdir (coreutils) '* | \
2889 'mkdir (fileutils) '4.1*)
2890 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2900 test -d ./--version && rmdir ./--version
2901 if test "${ac_cv_path_mkdir+set}" = set; then
2902 MKDIR_P="$ac_cv_path_mkdir -p"
2904 # As a last resort, use the slow shell script. Don't cache a
2905 # value for MKDIR_P within a source directory, because that will
2906 # break other packages using the cache if that directory is
2907 # removed, or if the value is a relative name.
2908 MKDIR_P="$ac_install_sh -d"
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2912 $as_echo "$MKDIR_P" >&6; }
2916 [\\/$]* | ?:[\\/]*) ;;
2917 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2920 for ac_prog in gawk mawk nawk awk
2922 # Extract the first word of "$ac_prog", so it can be a program name with args.
2923 set dummy $ac_prog; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_AWK+:} false; then :
2927 $as_echo_n "(cached) " >&6
2929 if test -n "$AWK"; then
2930 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_AWK="$ac_prog"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 if test -n "$AWK"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2952 $as_echo "$AWK" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2959 test -n "$AWK" && break
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2963 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2965 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2966 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 cat >conftest.make <<\_ACEOF
2972 @echo '@@@%%%=$(MAKE)=@@@%%%'
2974 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2975 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2977 eval ac_cv_prog_make_${ac_make}_set=yes;;
2979 eval ac_cv_prog_make_${ac_make}_set=no;;
2983 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 SET_MAKE="MAKE=${MAKE-make}"
2993 rm -rf .tst 2>/dev/null
2994 mkdir .tst 2>/dev/null
2995 if test -d .tst; then
3000 rmdir .tst 2>/dev/null
3002 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3003 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3004 # is not polluted with repeated "-I."
3005 am__isrc=' -I$(srcdir)'
3006 # test to see if srcdir already configured
3007 if test -f $srcdir/config.status; then
3008 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3012 # test whether we have cygpath
3013 if test -z "$CYGPATH_W"; then
3014 if (cygpath --version) >/dev/null 2>/dev/null; then
3015 CYGPATH_W='cygpath -w'
3022 # Define the identity of the package.
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE "$PACKAGE"
3032 cat >>confdefs.h <<_ACEOF
3033 #define VERSION "$VERSION"
3036 # Some tools Automake needs.
3038 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3041 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3044 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3047 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3050 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3052 # We need awk for the "check" target. The system "awk" is bad on
3054 # Always define AMTAR for backward compatibility. Yes, it's still used
3055 # in the wild :-( We should find a proper way to deprecate it ...
3058 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3065 ac_config_headers="$ac_config_headers src/config.h"
3070 ISODATE=`date +%Y-%m-%d`
3077 ac_cpp='$CPP $CPPFLAGS'
3078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3120 if test -z "$ac_cv_prog_CC"; then
3122 # Extract the first word of "gcc", so it can be a program name with args.
3123 set dummy gcc; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_ac_ct_CC="gcc"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3158 if test "x$ac_ct_CC" = x; then
3161 case $cross_compiling:$ac_tool_warned in
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3173 if test -z "$CC"; then
3174 if test -n "$ac_tool_prefix"; then
3175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3176 set dummy ${ac_tool_prefix}cc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_CC="${ac_tool_prefix}cc"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3214 if test -z "$CC"; then
3215 # Extract the first word of "cc", so it can be a program name with args.
3216 set dummy cc; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_CC+:} false; then :
3220 $as_echo_n "(cached) " >&6
3222 if test -n "$CC"; then
3223 ac_cv_prog_CC="$CC" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3234 ac_prog_rejected=yes
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test $ac_prog_rejected = yes; then
3246 # We found a bogon in the path, so make sure we never use it.
3247 set dummy $ac_cv_prog_CC
3249 if test $# != 0; then
3250 # We chose a different compiler from the bogus one.
3251 # However, it has the same basename, so the bogon will be chosen
3252 # first if we set CC to just the basename; use the full file name.
3254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3260 if test -n "$CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3270 if test -z "$CC"; then
3271 if test -n "$ac_tool_prefix"; then
3272 for ac_prog in cl.exe
3274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3311 test -n "$CC" && break
3314 if test -z "$CC"; then
3316 for ac_prog in cl.exe
3318 # Extract the first word of "$ac_prog", so it can be a program name with args.
3319 set dummy $ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$ac_ct_CC"; then
3326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_ac_ct_CC="$ac_prog"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 $as_echo "$ac_ct_CC" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3355 test -n "$ac_ct_CC" && break
3358 if test "x$ac_ct_CC" = x; then
3361 case $cross_compiling:$ac_tool_warned in
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365 ac_tool_warned=yes ;;
3374 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error $? "no acceptable C compiler found in \$PATH
3377 See \`config.log' for more details" "$LINENO" 5; }
3379 # Provide some information about the compiler.
3380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3383 for ac_option in --version -v -V -qversion; do
3384 { { ac_try="$ac_compiler $ac_option >&5"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3393 if test -s conftest.err; then
3395 ... rest of stderr output deleted ...
3396 10q' conftest.err >conftest.er1
3397 cat conftest.er1 >&5
3399 rm -f conftest.er1 conftest.err
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3415 ac_clean_files_save=$ac_clean_files
3416 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3417 # Try to create an executable without -o first, disregard a.out.
3418 # It will help us diagnose broken compilers, and finding out an intuition
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3421 $as_echo_n "checking whether the C compiler works... " >&6; }
3422 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3424 # The possible output files:
3425 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3428 for ac_file in $ac_files
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3437 if { { ac_try="$ac_link_default"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_link_default") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; then :
3448 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3450 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3451 # so that the user can short-circuit this test for compilers unknown to
3453 for ac_file in $ac_files ''
3455 test -f "$ac_file" || continue
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3460 # We found the default executable, but exeext='' is most
3464 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3466 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3468 # We set ac_cv_exeext here because the later test for it is not
3469 # safe: cross compilers may not add the suffix if given an `-o'
3470 # argument, so we may need to know it at that point already.
3471 # Even if this section looks crufty: it has the advantage of
3478 test "$ac_cv_exeext" = no && ac_cv_exeext=
3483 if test -z "$ac_file"; then :
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error 77 "C compiler cannot create executables
3492 See \`config.log' for more details" "$LINENO" 5; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3495 $as_echo "yes" >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3498 $as_echo_n "checking for C compiler default output file name... " >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3500 $as_echo "$ac_file" >&6; }
3501 ac_exeext=$ac_cv_exeext
3503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3504 ac_clean_files=$ac_clean_files_save
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3506 $as_echo_n "checking for suffix of executables... " >&6; }
3507 if { { ac_try="$ac_link"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link") 2>&5
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3519 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3520 # work properly (i.e., refer to `conftest.exe'), while it won't with
3522 for ac_file in conftest.exe conftest conftest.*; do
3523 test -f "$ac_file" || continue
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3535 See \`config.log' for more details" "$LINENO" 5; }
3537 rm -f conftest conftest$ac_cv_exeext
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3539 $as_echo "$ac_cv_exeext" >&6; }
3541 rm -f conftest.$ac_ext
3542 EXEEXT=$ac_cv_exeext
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3550 FILE *f = fopen ("conftest.out", "w");
3551 return ferror (f) || fclose (f) != 0;
3557 ac_clean_files="$ac_clean_files conftest.out"
3558 # Check that the compiler produces executables we can run. If not, either
3559 # the compiler is broken, or we cross compile.
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3561 $as_echo_n "checking whether we are cross compiling... " >&6; }
3562 if test "$cross_compiling" != yes; then
3563 { { ac_try="$ac_link"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }
3574 if { ac_try='./conftest$ac_cv_exeext'
3575 { { case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_try") 2>&5
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; }; then
3587 if test "$cross_compiling" = maybe; then
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "cannot run C compiled programs.
3593 If you meant to cross compile, use \`--host'.
3594 See \`config.log' for more details" "$LINENO" 5; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3599 $as_echo "$cross_compiling" >&6; }
3601 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3602 ac_clean_files=$ac_clean_files_save
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3604 $as_echo_n "checking for suffix of object files... " >&6; }
3605 if ${ac_cv_objext+:} false; then :
3606 $as_echo_n "(cached) " >&6
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3619 rm -f conftest.o conftest.obj
3620 if { { ac_try="$ac_compile"
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_compile") 2>&5
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; then :
3631 for ac_file in conftest.o conftest.obj conftest.*; do
3632 test -f "$ac_file" || continue;
3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error $? "cannot compute suffix of object files: cannot compile
3646 See \`config.log' for more details" "$LINENO" 5; }
3648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3651 $as_echo "$ac_cv_objext" >&6; }
3652 OBJEXT=$ac_cv_objext
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3656 if ${ac_cv_c_compiler_gnu+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3673 if ac_fn_c_try_compile "$LINENO"; then :
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3683 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3684 if test $ac_compiler_gnu = yes; then
3689 ac_test_CFLAGS=${CFLAGS+set}
3690 ac_save_CFLAGS=$CFLAGS
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3692 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3693 if ${ac_cv_prog_cc_g+:} false; then :
3694 $as_echo_n "(cached) " >&6
3696 ac_save_c_werror_flag=$ac_c_werror_flag
3697 ac_c_werror_flag=yes
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3711 if ac_fn_c_try_compile "$LINENO"; then :
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3726 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_c_werror_flag=$ac_save_c_werror_flag
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3742 if ac_fn_c_try_compile "$LINENO"; then :
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3763 if test "$GCC" = yes; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3771 if ${ac_cv_prog_cc_c89+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 ac_cv_prog_cc_c89=no
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3782 struct buf { int x; };
3783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3784 static char *e (p, i)
3790 static char *f (char * (*g) (char **, int), char **p, ...)
3795 s = g (p, va_arg (v,int));
3800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3801 function prototypes and stuff, but not '\xHH' hex character constants.
3802 These don't provoke an error unfortunately, instead are silently treated
3803 as 'x'. The following induces an error, until -std is added to get
3804 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3805 array size at least. It's necessary to write '\x00'==0 to get something
3806 that's true only with -std. */
3807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3809 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3810 inside strings and character constants. */
3812 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3814 int test (int i, double x);
3815 struct s1 {int (*f) (int a);};
3816 struct s2 {int (*f) (double a);};
3817 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3828 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3829 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3831 CC="$ac_save_CC $ac_arg"
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_cv_prog_cc_c89=$ac_arg
3835 rm -f core conftest.err conftest.$ac_objext
3836 test "x$ac_cv_prog_cc_c89" != "xno" && break
3838 rm -f conftest.$ac_ext
3843 case "x$ac_cv_prog_cc_c89" in
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3846 $as_echo "none needed" >&6; } ;;
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3849 $as_echo "unsupported" >&6; } ;;
3851 CC="$CC $ac_cv_prog_cc_c89"
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3855 if test "x$ac_cv_prog_cc_c89" != xno; then :
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864 DEPDIR="${am__leading_dot}deps"
3866 ac_config_commands="$ac_config_commands depfiles"
3869 am_make=${MAKE-make}
3870 cat > confinc << 'END'
3872 @echo this is the am__doit target
3875 # If we don't find an include directive, just comment out the code.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3877 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3881 # First try GNU make style include.
3882 echo "include confinc" > confmf
3883 # Ignore all kinds of additional output from `make'.
3884 case `$am_make -s -f confmf 2> /dev/null` in #(
3885 *the\ am__doit\ target*)
3891 # Now try BSD make style include.
3892 if test "$am__include" = "#"; then
3893 echo '.include "confinc"' > confmf
3894 case `$am_make -s -f confmf 2> /dev/null` in #(
3895 *the\ am__doit\ target*)
3896 am__include=.include
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3905 $as_echo "$_am_result" >&6; }
3906 rm -f confinc confmf
3908 # Check whether --enable-dependency-tracking was given.
3909 if test "${enable_dependency_tracking+set}" = set; then :
3910 enableval=$enable_dependency_tracking;
3913 if test "x$enable_dependency_tracking" != xno; then
3914 am_depcomp="$ac_aux_dir/depcomp"
3918 if test "x$enable_dependency_tracking" != xno; then
3928 depcc="$CC" am_compiler_list=
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3931 $as_echo_n "checking dependency style of $depcc... " >&6; }
3932 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3933 $as_echo_n "(cached) " >&6
3935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3936 # We make a subdir and do the tests there. Otherwise we can end up
3937 # making bogus files that we don't know about and never remove. For
3938 # instance it was reported that on HP-UX the gcc test will end up
3939 # making a dummy file named `D' -- because `-MD' means `put the output
3943 # Copy depcomp to subdir because otherwise we won't find it if we're
3944 # using a relative directory.
3945 cp "$am_depcomp" conftest.dir
3947 # We will build objects and dependencies in a subdirectory because
3948 # it helps to detect inapplicable dependency modes. For instance
3949 # both Tru64's cc and ICC support -MD to output dependencies as a
3950 # side effect of compilation, but ICC will put the dependencies in
3951 # the current directory while Tru64 will put them in the object
3955 am_cv_CC_dependencies_compiler_type=none
3956 if test "$am_compiler_list" = ""; then
3957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3960 case " $depcc " in #(
3961 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3964 for depmode in $am_compiler_list; do
3965 # Setup a source with many dependencies, because some compilers
3966 # like to wrap large dependency lists on column 80 (with \), and
3967 # we should not choose a depcomp mode which is confused by this.
3969 # We need to recreate these files for each test, as the compiler may
3970 # overwrite some of them when testing with obscure command lines.
3971 # This happens at least with the AIX C compiler.
3973 for i in 1 2 3 4 5 6; do
3974 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3975 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3976 # Solaris 8's {/usr,}/bin/sh.
3977 touch sub/conftst$i.h
3979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3981 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3982 # mode. It turns out that the SunPro C++ compiler does not properly
3983 # handle `-M -o', and we need to detect this. Also, some Intel
3984 # versions had trouble with output in subdirs
3985 am__obj=sub/conftest.${OBJEXT-o}
3986 am__minus_obj="-o $am__obj"
3989 # This depmode causes a compiler race in universal mode.
3990 test "$am__universal" = false || continue
3993 # after this tag, mechanisms are not by side-effect, so they'll
3994 # only be used when explicitly requested
3995 if test "x$enable_dependency_tracking" = xyes; then
4001 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4002 # This compiler won't grok `-c -o', but also, the minuso test has
4003 # not run yet. These depmodes are late enough in the game, and
4004 # so weak that their functioning should not be impacted.
4005 am__obj=conftest.${OBJEXT-o}
4010 if depmode=$depmode \
4011 source=sub/conftest.c object=$am__obj \
4012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4013 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4014 >/dev/null 2>conftest.err &&
4015 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4017 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4019 # icc doesn't choke on unknown options, it will just issue warnings
4020 # or remarks (even with -Werror). So we grep stderr for any message
4021 # that says an option was ignored or not supported.
4022 # When given -MP, icc 7.0 and 7.1 complain thusly:
4023 # icc: Command line warning: ignoring option '-M'; no argument required
4024 # The diagnosis changed in icc 8.0:
4025 # icc: Command line remark: option '-MP' not supported
4026 if (grep 'ignoring option' conftest.err ||
4027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4028 am_cv_CC_dependencies_compiler_type=$depmode
4037 am_cv_CC_dependencies_compiler_type=none
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4042 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4043 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4046 test "x$enable_dependency_tracking" != xno \
4047 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4049 am__fastdepCC_FALSE='#'
4051 am__fastdepCC_TRUE='#'
4052 am__fastdepCC_FALSE=
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4060 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4061 $as_echo_n "(cached) " >&6
4063 cat >conftest.make <<\_ACEOF
4066 @echo '@@@%%%=$(MAKE)=@@@%%%'
4068 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4071 eval ac_cv_prog_make_${ac_make}_set=yes;;
4073 eval ac_cv_prog_make_${ac_make}_set=no;;
4077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079 $as_echo "yes" >&6; }
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4084 SET_MAKE="MAKE=${MAKE-make}"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4088 $as_echo_n "checking whether ln -s works... " >&6; }
4090 if test "$LN_S" = "ln -s"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4092 $as_echo "yes" >&6; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4095 $as_echo "no, using $LN_S" >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4101 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4106 macro_version='2.4.2'
4107 macro_revision='1.3337'
4121 ltmain="$ac_aux_dir/ltmain.sh"
4123 # Backslashify metacharacters that are still active within
4124 # double-quoted strings.
4125 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4127 # Same as above, but do not quote variable references.
4128 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4130 # Sed substitution to delay expansion of an escaped shell variable in a
4131 # double_quote_subst'ed string.
4132 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4134 # Sed substitution to delay expansion of an escaped single quote.
4135 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4137 # Sed substitution to avoid accidental globbing in evaled expressions
4138 no_glob_subst='s/\*/\\\*/g'
4140 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4141 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4142 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4145 $as_echo_n "checking how to print strings... " >&6; }
4146 # Test print first, because it will be a builtin if present.
4147 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4148 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4150 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4153 # Use this function as a fallback that always works.
4154 func_fallback_echo ()
4156 eval 'cat <<_LTECHO_EOF
4160 ECHO='func_fallback_echo'
4163 # func_echo_all arg...
4164 # Invoke $ECHO with all args, space-separated.
4171 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4172 $as_echo "printf" >&6; } ;;
4173 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4174 $as_echo "print -r" >&6; } ;;
4175 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4176 $as_echo "cat" >&6; } ;;
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4193 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4194 if ${ac_cv_path_SED+:} false; then :
4195 $as_echo_n "(cached) " >&6
4197 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4198 for ac_i in 1 2 3 4 5 6 7; do
4199 ac_script="$ac_script$as_nl$ac_script"
4201 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4202 { ac_script=; unset ac_script;}
4203 if test -z "$SED"; then
4204 ac_path_SED_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in sed gsed; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4214 as_fn_executable_p "$ac_path_SED" || continue
4215 # Check for GNU ac_path_SED and select it if it is found.
4216 # Check for GNU $ac_path_SED
4217 case `"$ac_path_SED" --version 2>&1` in
4219 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4222 $as_echo_n 0123456789 >"conftest.in"
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo '' >> "conftest.nl"
4229 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 as_fn_arith $ac_count + 1 && ac_count=$as_val
4232 if test $ac_count -gt ${ac_path_SED_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_SED="$ac_path_SED"
4235 ac_path_SED_max=$ac_count
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4243 $ac_path_SED_found && break 3
4248 if test -z "$ac_cv_path_SED"; then
4249 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4257 $as_echo "$ac_cv_path_SED" >&6; }
4258 SED="$ac_cv_path_SED"
4261 test -z "$SED" && SED=sed
4262 Xsed="$SED -e 1s/^X//"
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4275 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4276 if ${ac_cv_path_GREP+:} false; then :
4277 $as_echo_n "(cached) " >&6
4279 if test -z "$GREP"; then
4280 ac_path_GREP_found=false
4281 # Loop through the user's path and test for each of PROGNAME-LIST
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 test -z "$as_dir" && as_dir=.
4287 for ac_prog in grep ggrep; do
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4290 as_fn_executable_p "$ac_path_GREP" || continue
4291 # Check for GNU ac_path_GREP and select it if it is found.
4292 # Check for GNU $ac_path_GREP
4293 case `"$ac_path_GREP" --version 2>&1` in
4295 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4298 $as_echo_n 0123456789 >"conftest.in"
4301 cat "conftest.in" "conftest.in" >"conftest.tmp"
4302 mv "conftest.tmp" "conftest.in"
4303 cp "conftest.in" "conftest.nl"
4304 $as_echo 'GREP' >> "conftest.nl"
4305 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4307 as_fn_arith $ac_count + 1 && ac_count=$as_val
4308 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4309 # Best one so far, save it but keep looking for a better one
4310 ac_cv_path_GREP="$ac_path_GREP"
4311 ac_path_GREP_max=$ac_count
4313 # 10*(2^10) chars as input seems more than enough
4314 test $ac_count -gt 10 && break
4316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 $ac_path_GREP_found && break 3
4324 if test -z "$ac_cv_path_GREP"; then
4325 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4328 ac_cv_path_GREP=$GREP
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4333 $as_echo "$ac_cv_path_GREP" >&6; }
4334 GREP="$ac_cv_path_GREP"
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4338 $as_echo_n "checking for egrep... " >&6; }
4339 if ${ac_cv_path_EGREP+:} false; then :
4340 $as_echo_n "(cached) " >&6
4342 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4343 then ac_cv_path_EGREP="$GREP -E"
4345 if test -z "$EGREP"; then
4346 ac_path_EGREP_found=false
4347 # Loop through the user's path and test for each of PROGNAME-LIST
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4352 test -z "$as_dir" && as_dir=.
4353 for ac_prog in egrep; do
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4356 as_fn_executable_p "$ac_path_EGREP" || continue
4357 # Check for GNU ac_path_EGREP and select it if it is found.
4358 # Check for GNU $ac_path_EGREP
4359 case `"$ac_path_EGREP" --version 2>&1` in
4361 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4364 $as_echo_n 0123456789 >"conftest.in"
4367 cat "conftest.in" "conftest.in" >"conftest.tmp"
4368 mv "conftest.tmp" "conftest.in"
4369 cp "conftest.in" "conftest.nl"
4370 $as_echo 'EGREP' >> "conftest.nl"
4371 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373 as_fn_arith $ac_count + 1 && ac_count=$as_val
4374 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4375 # Best one so far, save it but keep looking for a better one
4376 ac_cv_path_EGREP="$ac_path_EGREP"
4377 ac_path_EGREP_max=$ac_count
4379 # 10*(2^10) chars as input seems more than enough
4380 test $ac_count -gt 10 && break
4382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4385 $ac_path_EGREP_found && break 3
4390 if test -z "$ac_cv_path_EGREP"; then
4391 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4394 ac_cv_path_EGREP=$EGREP
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4400 $as_echo "$ac_cv_path_EGREP" >&6; }
4401 EGREP="$ac_cv_path_EGREP"
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4405 $as_echo_n "checking for fgrep... " >&6; }
4406 if ${ac_cv_path_FGREP+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4410 then ac_cv_path_FGREP="$GREP -F"
4412 if test -z "$FGREP"; then
4413 ac_path_FGREP_found=false
4414 # Loop through the user's path and test for each of PROGNAME-LIST
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4419 test -z "$as_dir" && as_dir=.
4420 for ac_prog in fgrep; do
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4423 as_fn_executable_p "$ac_path_FGREP" || continue
4424 # Check for GNU ac_path_FGREP and select it if it is found.
4425 # Check for GNU $ac_path_FGREP
4426 case `"$ac_path_FGREP" --version 2>&1` in
4428 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4431 $as_echo_n 0123456789 >"conftest.in"
4434 cat "conftest.in" "conftest.in" >"conftest.tmp"
4435 mv "conftest.tmp" "conftest.in"
4436 cp "conftest.in" "conftest.nl"
4437 $as_echo 'FGREP' >> "conftest.nl"
4438 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440 as_fn_arith $ac_count + 1 && ac_count=$as_val
4441 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4442 # Best one so far, save it but keep looking for a better one
4443 ac_cv_path_FGREP="$ac_path_FGREP"
4444 ac_path_FGREP_max=$ac_count
4446 # 10*(2^10) chars as input seems more than enough
4447 test $ac_count -gt 10 && break
4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4452 $ac_path_FGREP_found && break 3
4457 if test -z "$ac_cv_path_FGREP"; then
4458 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4461 ac_cv_path_FGREP=$FGREP
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4467 $as_echo "$ac_cv_path_FGREP" >&6; }
4468 FGREP="$ac_cv_path_FGREP"
4471 test -z "$GREP" && GREP=grep
4491 # Check whether --with-gnu-ld was given.
4492 if test "${with_gnu_ld+set}" = set; then :
4493 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4499 if test "$GCC" = yes; then
4500 # Check if gcc -print-prog-name=ld gives a path.
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4502 $as_echo_n "checking for ld used by $CC... " >&6; }
4505 # gcc leaves a trailing carriage return which upsets mingw
4506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4511 # Accept absolute paths.
4513 re_direlt='/[^/][^/]*/\.\./'
4514 # Canonicalize the pathname of ld
4515 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4516 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4517 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4519 test -z "$LD" && LD="$ac_prog"
4522 # If it fails, then pretend we aren't using GCC.
4526 # If it is relative, then search for the first ld in PATH.
4530 elif test "$with_gnu_ld" = yes; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4532 $as_echo_n "checking for GNU ld... " >&6; }
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4535 $as_echo_n "checking for non-GNU ld... " >&6; }
4537 if ${lt_cv_path_LD+:} false; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -z "$LD"; then
4541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4542 for ac_dir in $PATH; do
4544 test -z "$ac_dir" && ac_dir=.
4545 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4546 lt_cv_path_LD="$ac_dir/$ac_prog"
4547 # Check to see if the program is GNU ld. I'd rather use --version,
4548 # but apparently some variants of GNU ld only accept -v.
4549 # Break only if it was the GNU/non-GNU ld that we prefer.
4550 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4551 *GNU* | *'with BFD'*)
4552 test "$with_gnu_ld" != no && break
4555 test "$with_gnu_ld" != yes && break
4562 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4567 if test -n "$LD"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4569 $as_echo "$LD" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4574 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4576 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4577 if ${lt_cv_prog_gnu_ld+:} false; then :
4578 $as_echo_n "(cached) " >&6
4580 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4581 case `$LD -v 2>&1 </dev/null` in
4582 *GNU* | *'with BFD'*)
4583 lt_cv_prog_gnu_ld=yes
4586 lt_cv_prog_gnu_ld=no
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4591 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4592 with_gnu_ld=$lt_cv_prog_gnu_ld
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4603 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4604 if ${lt_cv_path_NM+:} false; then :
4605 $as_echo_n "(cached) " >&6
4607 if test -n "$NM"; then
4608 # Let the user override the test.
4611 lt_nm_to_check="${ac_tool_prefix}nm"
4612 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4613 lt_nm_to_check="$lt_nm_to_check nm"
4615 for lt_tmp_nm in $lt_nm_to_check; do
4616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4617 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4619 test -z "$ac_dir" && ac_dir=.
4620 tmp_nm="$ac_dir/$lt_tmp_nm"
4621 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4622 # Check to see if the nm accepts a BSD-compat flag.
4623 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4624 # nm: unknown option "B" ignored
4625 # Tru64's nm complains that /dev/null is an invalid object file
4626 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4627 */dev/null* | *'Invalid file or object type'*)
4628 lt_cv_path_NM="$tmp_nm -B"
4632 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4634 lt_cv_path_NM="$tmp_nm -p"
4638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4639 continue # so that we can try to find one that supports BSD flags
4648 : ${lt_cv_path_NM=no}
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4652 $as_echo "$lt_cv_path_NM" >&6; }
4653 if test "$lt_cv_path_NM" != "no"; then
4656 # Didn't find any BSD compatible name lister, look for dumpbin.
4657 if test -n "$DUMPBIN"; then :
4658 # Let the user override the test.
4660 if test -n "$ac_tool_prefix"; then
4661 for ac_prog in dumpbin "link -dump"
4663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if ${ac_cv_prog_DUMPBIN+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 if test -n "$DUMPBIN"; then
4671 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 DUMPBIN=$ac_cv_prog_DUMPBIN
4691 if test -n "$DUMPBIN"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4693 $as_echo "$DUMPBIN" >&6; }
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4700 test -n "$DUMPBIN" && break
4703 if test -z "$DUMPBIN"; then
4704 ac_ct_DUMPBIN=$DUMPBIN
4705 for ac_prog in dumpbin "link -dump"
4707 # Extract the first word of "$ac_prog", so it can be a program name with args.
4708 set dummy $ac_prog; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4712 $as_echo_n "(cached) " >&6
4714 if test -n "$ac_ct_DUMPBIN"; then
4715 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4735 if test -n "$ac_ct_DUMPBIN"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4737 $as_echo "$ac_ct_DUMPBIN" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4744 test -n "$ac_ct_DUMPBIN" && break
4747 if test "x$ac_ct_DUMPBIN" = x; then
4750 case $cross_compiling:$ac_tool_warned in
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4756 DUMPBIN=$ac_ct_DUMPBIN
4760 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4762 DUMPBIN="$DUMPBIN -symbols"
4770 if test "$DUMPBIN" != ":"; then
4774 test -z "$NM" && NM=nm
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4782 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4783 if ${lt_cv_nm_interface+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 lt_cv_nm_interface="BSD nm"
4787 echo "int some_variable = 0;" > conftest.$ac_ext
4788 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4789 (eval "$ac_compile" 2>conftest.err)
4790 cat conftest.err >&5
4791 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4792 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4793 cat conftest.err >&5
4794 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4795 cat conftest.out >&5
4796 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4797 lt_cv_nm_interface="MS dumpbin"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4802 $as_echo "$lt_cv_nm_interface" >&6; }
4804 # find the maximum length of command line arguments
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4806 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4807 if ${lt_cv_sys_max_cmd_len+:} false; then :
4808 $as_echo_n "(cached) " >&6
4815 # On DJGPP, this test can blow up pretty badly due to problems in libc
4816 # (any single argument exceeding 2000 bytes causes a buffer overrun
4817 # during glob expansion). Even if it were fixed, the result of this
4818 # check would be larger than it should be.
4819 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4823 # Under GNU Hurd, this test is not required because there is
4824 # no limit to the length of command line arguments.
4825 # Libtool will interpret -1 as no limit whatsoever
4826 lt_cv_sys_max_cmd_len=-1;
4829 cygwin* | mingw* | cegcc*)
4830 # On Win9x/ME, this test blows up -- it succeeds, but takes
4831 # about 5 minutes as the teststring grows exponentially.
4832 # Worse, since 9x/ME are not pre-emptively multitasking,
4833 # you end up with a "frozen" computer, even though with patience
4834 # the test eventually succeeds (with a max line length of 256k).
4835 # Instead, let's just punt: use the minimum linelength reported by
4836 # all of the supported platforms: 8192 (on NT/2K/XP).
4837 lt_cv_sys_max_cmd_len=8192;
4841 # On MiNT this can take a long time and run out of memory.
4842 lt_cv_sys_max_cmd_len=8192;
4846 # On AmigaOS with pdksh, this test takes hours, literally.
4847 # So we just punt and use a minimum line length of 8192.
4848 lt_cv_sys_max_cmd_len=8192;
4851 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4852 # This has been around since 386BSD, at least. Likely further.
4853 if test -x /sbin/sysctl; then
4854 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4855 elif test -x /usr/sbin/sysctl; then
4856 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4858 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4860 # And add a safety zone
4861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4866 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4867 lt_cv_sys_max_cmd_len=196608
4871 # The test takes a long time on OS/2.
4872 lt_cv_sys_max_cmd_len=8192
4876 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4877 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4878 # nice to cause kernel panics so lets avoid the loop below.
4879 # First set a reasonable default.
4880 lt_cv_sys_max_cmd_len=16384
4882 if test -x /sbin/sysconfig; then
4883 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4884 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4889 lt_cv_sys_max_cmd_len=102400
4891 sysv5* | sco5v6* | sysv4.2uw2*)
4892 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4893 if test -n "$kargmax"; then
4894 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4896 lt_cv_sys_max_cmd_len=32768
4900 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4901 if test -n "$lt_cv_sys_max_cmd_len"; then
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4905 # Make teststring a little bigger before we do anything with it.
4906 # a 1K string should be a reasonable start.
4907 for i in 1 2 3 4 5 6 7 8 ; do
4908 teststring=$teststring$teststring
4910 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4911 # If test is not a shell built-in, we'll probably end up computing a
4912 # maximum length that is only half of the actual maximum length, but
4914 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4915 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4916 test $i != 17 # 1/2 MB should be enough
4919 teststring=$teststring$teststring
4921 # Only check the string length outside the loop.
4922 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4924 # Add a significant safety factor because C++ compilers can tack on
4925 # massive amounts of additional arguments before passing them to the
4926 # linker. It appears as though 1/2 is a usable value.
4927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4934 if test -n $lt_cv_sys_max_cmd_len ; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4936 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4939 $as_echo "none" >&6; }
4941 max_cmd_len=$lt_cv_sys_max_cmd_len
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4953 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4954 # Try some XSI features
4957 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4959 && eval 'test $(( 1 + 1 )) -eq 2 \
4960 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4963 $as_echo "$xsi_shell" >&6; }
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4967 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4969 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4971 && lt_shell_append=yes
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4973 $as_echo "$lt_shell_append" >&6; }
4976 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4986 # test EBCDIC or ASCII
4987 case `echo X|tr X '\101'` in
4988 A) # ASCII based system
4989 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4990 lt_SP2NL='tr \040 \012'
4991 lt_NL2SP='tr \015\012 \040\040'
4993 *) # EBCDIC based system
4994 lt_SP2NL='tr \100 \n'
4995 lt_NL2SP='tr \r\n \100\100'
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5008 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5009 if ${lt_cv_to_host_file_cmd+:} false; then :
5010 $as_echo_n "(cached) " >&6
5015 *-*-mingw* ) # actually msys
5016 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5019 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5021 * ) # otherwise, assume *nix
5022 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5028 *-*-mingw* ) # actually msys
5029 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5032 lt_cv_to_host_file_cmd=func_convert_file_noop
5034 * ) # otherwise, assume *nix
5035 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5039 * ) # unhandled hosts (and "normal" native builds)
5040 lt_cv_to_host_file_cmd=func_convert_file_noop
5046 to_host_file_cmd=$lt_cv_to_host_file_cmd
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5048 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5055 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5056 if ${lt_cv_to_tool_file_cmd+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 #assume ordinary cross tools, or native build.
5060 lt_cv_to_tool_file_cmd=func_convert_file_noop
5064 *-*-mingw* ) # actually msys
5065 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5073 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5075 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5082 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5083 if ${lt_cv_ld_reload_flag+:} false; then :
5084 $as_echo_n "(cached) " >&6
5086 lt_cv_ld_reload_flag='-r'
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5089 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5090 reload_flag=$lt_cv_ld_reload_flag
5091 case $reload_flag in
5093 *) reload_flag=" $reload_flag" ;;
5095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5097 cygwin* | mingw* | pw32* | cegcc*)
5098 if test "$GCC" != yes; then
5103 if test "$GCC" = yes; then
5104 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5106 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_OBJDUMP+:} false; then :
5125 $as_echo_n "(cached) " >&6
5127 if test -n "$OBJDUMP"; then
5128 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 OBJDUMP=$ac_cv_prog_OBJDUMP
5148 if test -n "$OBJDUMP"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5150 $as_echo "$OBJDUMP" >&6; }
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5158 if test -z "$ac_cv_prog_OBJDUMP"; then
5159 ac_ct_OBJDUMP=$OBJDUMP
5160 # Extract the first word of "objdump", so it can be a program name with args.
5161 set dummy objdump; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5165 $as_echo_n "(cached) " >&6
5167 if test -n "$ac_ct_OBJDUMP"; then
5168 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5188 if test -n "$ac_ct_OBJDUMP"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5190 $as_echo "$ac_ct_OBJDUMP" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5196 if test "x$ac_ct_OBJDUMP" = x; then
5199 case $cross_compiling:$ac_tool_warned in
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5205 OBJDUMP=$ac_ct_OBJDUMP
5208 OBJDUMP="$ac_cv_prog_OBJDUMP"
5211 test -z "$OBJDUMP" && OBJDUMP=objdump
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5222 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5223 if ${lt_cv_deplibs_check_method+:} false; then :
5224 $as_echo_n "(cached) " >&6
5226 lt_cv_file_magic_cmd='$MAGIC_CMD'
5227 lt_cv_file_magic_test_file=
5228 lt_cv_deplibs_check_method='unknown'
5229 # Need to set the preceding variable on all platforms that support
5230 # interlibrary dependencies.
5231 # 'none' -- dependencies not supported.
5232 # `unknown' -- same as none, but documents that we really don't know.
5233 # 'pass_all' -- all dependencies passed with no checks.
5234 # 'test_compile' -- check by making test program.
5235 # 'file_magic [[regex]]' -- check by looking for files in library path
5236 # which responds to the $file_magic_cmd with a given extended regex.
5237 # If you have `file' or equivalent on your system and you're not sure
5238 # whether `pass_all' will *always* work, you probably want this one.
5242 lt_cv_deplibs_check_method=pass_all
5246 lt_cv_deplibs_check_method=pass_all
5250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5251 lt_cv_file_magic_cmd='/usr/bin/file -L'
5252 lt_cv_file_magic_test_file=/shlib/libc.so
5256 # func_win32_libid is a shell function defined in ltmain.sh
5257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5258 lt_cv_file_magic_cmd='func_win32_libid'
5262 # Base MSYS/MinGW do not provide the 'file' command needed by
5263 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5264 # unless we find 'file', for example because we are cross-compiling.
5265 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5266 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5268 lt_cv_file_magic_cmd='func_win32_libid'
5270 # Keep this pattern in sync with the one in func_win32_libid.
5271 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5272 lt_cv_file_magic_cmd='$OBJDUMP -f'
5277 # use the weaker test based on 'objdump'. See mingw*.
5278 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5279 lt_cv_file_magic_cmd='$OBJDUMP -f'
5282 darwin* | rhapsody*)
5283 lt_cv_deplibs_check_method=pass_all
5286 freebsd* | dragonfly*)
5287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5290 # Not sure whether the presence of OpenBSD here was a mistake.
5291 # Let's accept both of them until this is cleared up.
5292 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5293 lt_cv_file_magic_cmd=/usr/bin/file
5294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5298 lt_cv_deplibs_check_method=pass_all
5303 lt_cv_deplibs_check_method=pass_all
5307 lt_cv_deplibs_check_method=pass_all
5310 hpux10.20* | hpux11*)
5311 lt_cv_file_magic_cmd=/usr/bin/file
5314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5315 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5318 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]'
5319 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5323 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5329 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5333 irix5* | irix6* | nonstopux*)
5335 *-32|*"-32 ") libmagic=32-bit;;
5336 *-n32|*"-n32 ") libmagic=N32;;
5337 *-64|*"-64 ") libmagic=64-bit;;
5338 *) libmagic=never-match;;
5340 lt_cv_deplibs_check_method=pass_all
5343 # This must be glibc/ELF.
5344 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5345 lt_cv_deplibs_check_method=pass_all
5348 netbsd* | netbsdelf*-gnu)
5349 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5358 lt_cv_file_magic_cmd=/usr/bin/file
5359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5363 lt_cv_deplibs_check_method=pass_all
5367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5374 osf3* | osf4* | osf5*)
5375 lt_cv_deplibs_check_method=pass_all
5379 lt_cv_deplibs_check_method=pass_all
5383 lt_cv_deplibs_check_method=pass_all
5386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5387 lt_cv_deplibs_check_method=pass_all
5391 case $host_vendor in
5393 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]'
5394 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5397 lt_cv_deplibs_check_method=pass_all
5400 lt_cv_file_magic_cmd='/bin/file'
5401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5404 lt_cv_file_magic_cmd='/bin/file'
5405 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5406 lt_cv_file_magic_test_file=/lib/libc.so
5409 lt_cv_deplibs_check_method=pass_all
5412 lt_cv_deplibs_check_method=pass_all
5418 lt_cv_deplibs_check_method=pass_all
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5424 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5428 if test "$build" = "$host"; then
5431 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5434 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5440 file_magic_cmd=$lt_cv_file_magic_cmd
5441 deplibs_check_method=$lt_cv_deplibs_check_method
5442 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5465 if test -n "$ac_tool_prefix"; then
5466 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5467 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_prog_DLLTOOL+:} false; then :
5471 $as_echo_n "(cached) " >&6
5473 if test -n "$DLLTOOL"; then
5474 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 DLLTOOL=$ac_cv_prog_DLLTOOL
5494 if test -n "$DLLTOOL"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5496 $as_echo "$DLLTOOL" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5504 if test -z "$ac_cv_prog_DLLTOOL"; then
5505 ac_ct_DLLTOOL=$DLLTOOL
5506 # Extract the first word of "dlltool", so it can be a program name with args.
5507 set dummy dlltool; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5511 $as_echo_n "(cached) " >&6
5513 if test -n "$ac_ct_DLLTOOL"; then
5514 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5534 if test -n "$ac_ct_DLLTOOL"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5536 $as_echo "$ac_ct_DLLTOOL" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5542 if test "x$ac_ct_DLLTOOL" = x; then
5545 case $cross_compiling:$ac_tool_warned in
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5549 ac_tool_warned=yes ;;
5551 DLLTOOL=$ac_ct_DLLTOOL
5554 DLLTOOL="$ac_cv_prog_DLLTOOL"
5557 test -z "$DLLTOOL" && DLLTOOL=dlltool
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5569 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5570 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5571 $as_echo_n "(cached) " >&6
5573 lt_cv_sharedlib_from_linklib_cmd='unknown'
5576 cygwin* | mingw* | pw32* | cegcc*)
5577 # two different shell functions defined in ltmain.sh
5578 # decide which to use based on capabilities of $DLLTOOL
5579 case `$DLLTOOL --help 2>&1` in
5580 *--identify-strict*)
5581 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5584 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5589 # fallback: assume linklib IS sharedlib
5590 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5596 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5597 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5598 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5607 if test -n "$ac_tool_prefix"; then
5610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_AR+:} false; then :
5615 $as_echo_n "(cached) " >&6
5617 if test -n "$AR"; then
5618 ac_cv_prog_AR="$AR" # Let the user override the test.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 if test -n "$AR"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5640 $as_echo "$AR" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5647 test -n "$AR" && break
5650 if test -z "$AR"; then
5654 # Extract the first word of "$ac_prog", so it can be a program name with args.
5655 set dummy $ac_prog; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5659 $as_echo_n "(cached) " >&6
5661 if test -n "$ac_ct_AR"; then
5662 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_ac_ct_AR="$ac_prog"
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5682 if test -n "$ac_ct_AR"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5684 $as_echo "$ac_ct_AR" >&6; }
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5691 test -n "$ac_ct_AR" && break
5694 if test "x$ac_ct_AR" = x; then
5697 case $cross_compiling:$ac_tool_warned in
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701 ac_tool_warned=yes ;;
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5721 $as_echo_n "checking for archiver @FILE support... " >&6; }
5722 if ${lt_cv_ar_at_file+:} false; then :
5723 $as_echo_n "(cached) " >&6
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 echo conftest.$ac_objext > conftest.lst
5739 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5741 (eval $lt_ar_try) 2>&5
5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744 test $ac_status = 0; }
5745 if test "$ac_status" -eq 0; then
5746 # Ensure the archiver fails upon bogus file names.
5747 rm -f conftest.$ac_objext libconftest.a
5748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5749 (eval $lt_ar_try) 2>&5
5751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5752 test $ac_status = 0; }
5753 if test "$ac_status" -ne 0; then
5757 rm -f conftest.* libconftest.a
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5764 $as_echo "$lt_cv_ar_at_file" >&6; }
5766 if test "x$lt_cv_ar_at_file" = xno; then
5769 archiver_list_spec=$lt_cv_ar_at_file
5778 if test -n "$ac_tool_prefix"; then
5779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5780 set dummy ${ac_tool_prefix}strip; ac_word=$2
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5782 $as_echo_n "checking for $ac_word... " >&6; }
5783 if ${ac_cv_prog_STRIP+:} false; then :
5784 $as_echo_n "(cached) " >&6
5786 if test -n "$STRIP"; then
5787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 STRIP=$ac_cv_prog_STRIP
5807 if test -n "$STRIP"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5809 $as_echo "$STRIP" >&6; }
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5817 if test -z "$ac_cv_prog_STRIP"; then
5819 # Extract the first word of "strip", so it can be a program name with args.
5820 set dummy strip; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5824 $as_echo_n "(cached) " >&6
5826 if test -n "$ac_ct_STRIP"; then
5827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_ac_ct_STRIP="strip"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5847 if test -n "$ac_ct_STRIP"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5849 $as_echo "$ac_ct_STRIP" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5855 if test "x$ac_ct_STRIP" = x; then
5858 case $cross_compiling:$ac_tool_warned in
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5862 ac_tool_warned=yes ;;
5867 STRIP="$ac_cv_prog_STRIP"
5870 test -z "$STRIP" && STRIP=:
5877 if test -n "$ac_tool_prefix"; then
5878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_RANLIB+:} false; then :
5883 $as_echo_n "(cached) " >&6
5885 if test -n "$RANLIB"; then
5886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 RANLIB=$ac_cv_prog_RANLIB
5906 if test -n "$RANLIB"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5908 $as_echo "$RANLIB" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5916 if test -z "$ac_cv_prog_RANLIB"; then
5917 ac_ct_RANLIB=$RANLIB
5918 # Extract the first word of "ranlib", so it can be a program name with args.
5919 set dummy ranlib; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5923 $as_echo_n "(cached) " >&6
5925 if test -n "$ac_ct_RANLIB"; then
5926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935 ac_cv_prog_ac_ct_RANLIB="ranlib"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5946 if test -n "$ac_ct_RANLIB"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5948 $as_echo "$ac_ct_RANLIB" >&6; }
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5954 if test "x$ac_ct_RANLIB" = x; then
5957 case $cross_compiling:$ac_tool_warned in
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961 ac_tool_warned=yes ;;
5963 RANLIB=$ac_ct_RANLIB
5966 RANLIB="$ac_cv_prog_RANLIB"
5969 test -z "$RANLIB" && RANLIB=:
5976 # Determine commands to create old-style static archives.
5977 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5978 old_postinstall_cmds='chmod 644 $oldlib'
5979 old_postuninstall_cmds=
5981 if test -n "$RANLIB"; then
5984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5987 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5990 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5995 lock_old_archive_extraction=yes ;;
5997 lock_old_archive_extraction=no ;;
6038 # If no C compiler was specified, use CC.
6041 # If no C compiler flags were specified, use CFLAGS.
6042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6044 # Allow CC to be a program name with arguments.
6048 # Check for command to grab the raw symbol name followed by C symbol from nm.
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6050 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6051 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6052 $as_echo_n "(cached) " >&6
6055 # These are sane defaults that work on at least a few old systems.
6056 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6058 # Character class describing NM global symbol codes.
6059 symcode='[BCDEGRST]'
6061 # Regexp to match symbols that can be accessed directly from C.
6062 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6064 # Define system-specific variables.
6069 cygwin* | mingw* | pw32* | cegcc*)
6070 symcode='[ABCDGISTW]'
6073 if test "$host_cpu" = ia64; then
6074 symcode='[ABCDEGRST]'
6078 symcode='[BCDEGRST]'
6081 symcode='[BCDEGQRST]'
6092 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6100 # If we're using GNU nm, then use its standard symbol codes.
6101 case `$NM -V 2>&1` in
6102 *GNU* | *'with BFD'*)
6103 symcode='[ABCDGIRSTW]' ;;
6106 # Transform an extracted symbol line into a proper C declaration.
6107 # Some systems (esp. on ia64) link data and code symbols differently,
6108 # so use this general approach.
6109 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6111 # Transform an extracted symbol line into symbol name and symbol address
6112 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6113 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'"
6115 # Handle CRLF in mingw tool chain
6119 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6123 # Try without a prefix underscore, then with it.
6124 for ac_symprfx in "" "_"; do
6126 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6127 symxfrm="\\1 $ac_symprfx\\2 \\2"
6129 # Write the raw and C identifiers.
6130 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6131 # Fake it for dumpbin and say T for any non-static function
6132 # and D for any global variable.
6133 # Also find C++ and __fastcall symbols from MSVC++,
6134 # which start with @ or ?.
6135 lt_cv_sys_global_symbol_pipe="$AWK '"\
6136 " {last_section=section; section=\$ 3};"\
6137 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6138 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6139 " \$ 0!~/External *\|/{next};"\
6140 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6141 " {if(hide[section]) next};"\
6142 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6143 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6144 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6145 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6146 " ' prfx=^$ac_symprfx"
6148 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6150 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6152 # Check to see that the pipe works correctly.
6156 cat > conftest.$ac_ext <<_LT_EOF
6161 void nm_test_func(void);
6162 void nm_test_func(void){}
6166 int main(){nm_test_var='a';nm_test_func();return(0);}
6169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6170 (eval $ac_compile) 2>&5
6172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6173 test $ac_status = 0; }; then
6174 # Now try to grab the symbols.
6176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6177 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180 test $ac_status = 0; } && test -s "$nlist"; then
6181 # Try sorting and uniquifying the output.
6182 if sort "$nlist" | uniq > "$nlist"T; then
6183 mv -f "$nlist"T "$nlist"
6188 # Make sure that we snagged all the symbols we need.
6189 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6190 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6191 cat <<_LT_EOF > conftest.$ac_ext
6192 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6193 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6194 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6195 relocations are performed -- see ld's documentation on pseudo-relocs. */
6196 # define LT_DLSYM_CONST
6197 #elif defined(__osf__)
6198 /* This system does not cope well with relocations in const data. */
6199 # define LT_DLSYM_CONST
6201 # define LT_DLSYM_CONST const
6209 # Now generate the symbol file.
6210 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6212 cat <<_LT_EOF >> conftest.$ac_ext
6214 /* The mapping between symbol names and symbols. */
6215 LT_DLSYM_CONST struct {
6219 lt__PROGRAM__LTX_preloaded_symbols[] =
6221 { "@PROGRAM@", (void *) 0 },
6223 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6224 cat <<\_LT_EOF >> conftest.$ac_ext
6228 /* This works around a problem in FreeBSD linker */
6229 #ifdef FREEBSD_WORKAROUND
6230 static const void *lt_preloaded_setup() {
6231 return lt__PROGRAM__LTX_preloaded_symbols;
6239 # Now try linking the two files.
6240 mv conftest.$ac_objext conftstm.$ac_objext
6241 lt_globsym_save_LIBS=$LIBS
6242 lt_globsym_save_CFLAGS=$CFLAGS
6243 LIBS="conftstm.$ac_objext"
6244 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6246 (eval $ac_link) 2>&5
6248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6249 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6252 LIBS=$lt_globsym_save_LIBS
6253 CFLAGS=$lt_globsym_save_CFLAGS
6255 echo "cannot find nm_test_func in $nlist" >&5
6258 echo "cannot find nm_test_var in $nlist" >&5
6261 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6264 echo "$progname: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 rm -rf conftest* conftst*
6269 # Do not use the global_symbol_pipe unless it works.
6270 if test "$pipe_works" = yes; then
6273 lt_cv_sys_global_symbol_pipe=
6279 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6280 lt_cv_sys_global_symbol_to_cdecl=
6282 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6284 $as_echo "failed" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6287 $as_echo "ok" >&6; }
6290 # Response file support.
6291 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6292 nm_file_list_spec='@'
6293 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6294 nm_file_list_spec='@'
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6324 $as_echo_n "checking for sysroot... " >&6; }
6326 # Check whether --with-sysroot was given.
6327 if test "${with_sysroot+set}" = set; then :
6328 withval=$with_sysroot;
6335 case ${with_sysroot} in #(
6337 if test "$GCC" = yes; then
6338 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6342 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6348 $as_echo "${with_sysroot}" >&6; }
6349 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6354 $as_echo "${lt_sysroot:-no}" >&6; }
6360 # Check whether --enable-libtool-lock was given.
6361 if test "${enable_libtool_lock+set}" = set; then :
6362 enableval=$enable_libtool_lock;
6365 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6367 # Some flags need to be propagated to the compiler or linker for good
6371 # Find out which ABI we are using.
6372 echo 'int i;' > conftest.$ac_ext
6373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6374 (eval $ac_compile) 2>&5
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; }; then
6378 case `/usr/bin/file conftest.$ac_objext` in
6390 # Find out which ABI we are using.
6391 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6393 (eval $ac_compile) 2>&5
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }; then
6397 if test "$lt_cv_prog_gnu_ld" = yes; then
6398 case `/usr/bin/file conftest.$ac_objext` in
6400 LD="${LD-ld} -melf32bsmip"
6403 LD="${LD-ld} -melf32bmipn32"
6406 LD="${LD-ld} -melf64bmip"
6410 case `/usr/bin/file conftest.$ac_objext` in
6426 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6427 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6428 # Find out which ABI we are using.
6429 echo 'int i;' > conftest.$ac_ext
6430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6431 (eval $ac_compile) 2>&5
6433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434 test $ac_status = 0; }; then
6435 case `/usr/bin/file conftest.o` in
6438 x86_64-*kfreebsd*-gnu)
6439 LD="${LD-ld} -m elf_i386_fbsd"
6442 LD="${LD-ld} -m elf_i386"
6444 ppc64-*linux*|powerpc64-*linux*)
6445 LD="${LD-ld} -m elf32ppclinux"
6448 LD="${LD-ld} -m elf_s390"
6451 LD="${LD-ld} -m elf32_sparc"
6457 x86_64-*kfreebsd*-gnu)
6458 LD="${LD-ld} -m elf_x86_64_fbsd"
6461 LD="${LD-ld} -m elf_x86_64"
6463 ppc*-*linux*|powerpc*-*linux*)
6464 LD="${LD-ld} -m elf64ppc"
6466 s390*-*linux*|s390*-*tpf*)
6467 LD="${LD-ld} -m elf64_s390"
6470 LD="${LD-ld} -m elf64_sparc"
6480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6481 SAVE_CFLAGS="$CFLAGS"
6482 CFLAGS="$CFLAGS -belf"
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6484 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6485 if ${lt_cv_cc_needs_belf+:} false; then :
6486 $as_echo_n "(cached) " >&6
6489 ac_cpp='$CPP $CPPFLAGS'
6490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6505 if ac_fn_c_try_link "$LINENO"; then :
6506 lt_cv_cc_needs_belf=yes
6508 lt_cv_cc_needs_belf=no
6510 rm -f core conftest.err conftest.$ac_objext \
6511 conftest$ac_exeext conftest.$ac_ext
6513 ac_cpp='$CPP $CPPFLAGS'
6514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6520 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6523 CFLAGS="$SAVE_CFLAGS"
6527 # Find out which ABI we are using.
6528 echo 'int i;' > conftest.$ac_ext
6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530 (eval $ac_compile) 2>&5
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; then
6534 case `/usr/bin/file conftest.o` in
6536 case $lt_cv_prog_gnu_ld in
6540 LD="${LD-ld} -m elf_x86_64"
6543 LD="${LD-ld} -m elf64_sparc"
6546 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6547 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6552 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6564 need_locks="$enable_libtool_lock"
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}mt; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6572 $as_echo_n "(cached) " >&6
6574 if test -n "$MANIFEST_TOOL"; then
6575 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6595 if test -n "$MANIFEST_TOOL"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6597 $as_echo "$MANIFEST_TOOL" >&6; }
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6605 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6606 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6607 # Extract the first word of "mt", so it can be a program name with args.
6608 set dummy mt; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6612 $as_echo_n "(cached) " >&6
6614 if test -n "$ac_ct_MANIFEST_TOOL"; then
6615 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6635 if test -n "$ac_ct_MANIFEST_TOOL"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6637 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6643 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6646 case $cross_compiling:$ac_tool_warned in
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6650 ac_tool_warned=yes ;;
6652 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6655 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6658 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6660 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6661 if ${lt_cv_path_mainfest_tool+:} false; then :
6662 $as_echo_n "(cached) " >&6
6664 lt_cv_path_mainfest_tool=no
6665 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6666 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6667 cat conftest.err >&5
6668 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6669 lt_cv_path_mainfest_tool=yes
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6674 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6675 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6685 rhapsody* | darwin*)
6686 if test -n "$ac_tool_prefix"; then
6687 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6688 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6692 $as_echo_n "(cached) " >&6
6694 if test -n "$DSYMUTIL"; then
6695 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6715 if test -n "$DSYMUTIL"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6717 $as_echo "$DSYMUTIL" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6725 if test -z "$ac_cv_prog_DSYMUTIL"; then
6726 ac_ct_DSYMUTIL=$DSYMUTIL
6727 # Extract the first word of "dsymutil", so it can be a program name with args.
6728 set dummy dsymutil; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6732 $as_echo_n "(cached) " >&6
6734 if test -n "$ac_ct_DSYMUTIL"; then
6735 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6755 if test -n "$ac_ct_DSYMUTIL"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6757 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6763 if test "x$ac_ct_DSYMUTIL" = x; then
6766 case $cross_compiling:$ac_tool_warned in
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770 ac_tool_warned=yes ;;
6772 DSYMUTIL=$ac_ct_DSYMUTIL
6775 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_prog_NMEDIT+:} false; then :
6784 $as_echo_n "(cached) " >&6
6786 if test -n "$NMEDIT"; then
6787 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 NMEDIT=$ac_cv_prog_NMEDIT
6807 if test -n "$NMEDIT"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6809 $as_echo "$NMEDIT" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6817 if test -z "$ac_cv_prog_NMEDIT"; then
6818 ac_ct_NMEDIT=$NMEDIT
6819 # Extract the first word of "nmedit", so it can be a program name with args.
6820 set dummy nmedit; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6824 $as_echo_n "(cached) " >&6
6826 if test -n "$ac_ct_NMEDIT"; then
6827 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6847 if test -n "$ac_ct_NMEDIT"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6849 $as_echo "$ac_ct_NMEDIT" >&6; }
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6855 if test "x$ac_ct_NMEDIT" = x; then
6858 case $cross_compiling:$ac_tool_warned in
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6864 NMEDIT=$ac_ct_NMEDIT
6867 NMEDIT="$ac_cv_prog_NMEDIT"
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_LIPO+:} false; then :
6876 $as_echo_n "(cached) " >&6
6878 if test -n "$LIPO"; then
6879 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 LIPO=$ac_cv_prog_LIPO
6899 if test -n "$LIPO"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6901 $as_echo "$LIPO" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6909 if test -z "$ac_cv_prog_LIPO"; then
6911 # Extract the first word of "lipo", so it can be a program name with args.
6912 set dummy lipo; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6916 $as_echo_n "(cached) " >&6
6918 if test -n "$ac_ct_LIPO"; then
6919 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928 ac_cv_prog_ac_ct_LIPO="lipo"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6939 if test -n "$ac_ct_LIPO"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6941 $as_echo "$ac_ct_LIPO" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6947 if test "x$ac_ct_LIPO" = x; then
6950 case $cross_compiling:$ac_tool_warned in
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6959 LIPO="$ac_cv_prog_LIPO"
6962 if test -n "$ac_tool_prefix"; then
6963 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6964 set dummy ${ac_tool_prefix}otool; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_OTOOL+:} false; then :
6968 $as_echo_n "(cached) " >&6
6970 if test -n "$OTOOL"; then
6971 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 OTOOL=$ac_cv_prog_OTOOL
6991 if test -n "$OTOOL"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6993 $as_echo "$OTOOL" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
7001 if test -z "$ac_cv_prog_OTOOL"; then
7003 # Extract the first word of "otool", so it can be a program name with args.
7004 set dummy otool; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7008 $as_echo_n "(cached) " >&6
7010 if test -n "$ac_ct_OTOOL"; then
7011 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020 ac_cv_prog_ac_ct_OTOOL="otool"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7031 if test -n "$ac_ct_OTOOL"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7033 $as_echo "$ac_ct_OTOOL" >&6; }
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7039 if test "x$ac_ct_OTOOL" = x; then
7042 case $cross_compiling:$ac_tool_warned in
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046 ac_tool_warned=yes ;;
7051 OTOOL="$ac_cv_prog_OTOOL"
7054 if test -n "$ac_tool_prefix"; then
7055 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7056 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if ${ac_cv_prog_OTOOL64+:} false; then :
7060 $as_echo_n "(cached) " >&6
7062 if test -n "$OTOOL64"; then
7063 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 OTOOL64=$ac_cv_prog_OTOOL64
7083 if test -n "$OTOOL64"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7085 $as_echo "$OTOOL64" >&6; }
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7093 if test -z "$ac_cv_prog_OTOOL64"; then
7094 ac_ct_OTOOL64=$OTOOL64
7095 # Extract the first word of "otool64", so it can be a program name with args.
7096 set dummy otool64; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7100 $as_echo_n "(cached) " >&6
7102 if test -n "$ac_ct_OTOOL64"; then
7103 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_ac_ct_OTOOL64="otool64"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7123 if test -n "$ac_ct_OTOOL64"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7125 $as_echo "$ac_ct_OTOOL64" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7131 if test "x$ac_ct_OTOOL64" = x; then
7134 case $cross_compiling:$ac_tool_warned in
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7138 ac_tool_warned=yes ;;
7140 OTOOL64=$ac_ct_OTOOL64
7143 OTOOL64="$ac_cv_prog_OTOOL64"
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7173 $as_echo_n "checking for -single_module linker flag... " >&6; }
7174 if ${lt_cv_apple_cc_single_mod+:} false; then :
7175 $as_echo_n "(cached) " >&6
7177 lt_cv_apple_cc_single_mod=no
7178 if test -z "${LT_MULTI_MODULE}"; then
7179 # By default we will add the -single_module flag. You can override
7180 # by either setting the environment variable LT_MULTI_MODULE
7181 # non-empty at configure time, or by adding -multi_module to the
7183 rm -rf libconftest.dylib*
7184 echo "int foo(void){return 1;}" > conftest.c
7185 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7186 -dynamiclib -Wl,-single_module conftest.c" >&5
7187 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7188 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7190 # If there is a non-empty error log, and "single_module"
7191 # appears in it, assume the flag caused a linker warning
7192 if test -s conftest.err && $GREP single_module conftest.err; then
7193 cat conftest.err >&5
7194 # Otherwise, if the output was created with a 0 exit code from
7195 # the compiler, it worked.
7196 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7197 lt_cv_apple_cc_single_mod=yes
7199 cat conftest.err >&5
7201 rm -rf libconftest.dylib*
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7206 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7209 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7210 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 lt_cv_ld_exported_symbols_list=no
7214 save_LDFLAGS=$LDFLAGS
7215 echo "_main" > conftest.sym
7216 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7228 if ac_fn_c_try_link "$LINENO"; then :
7229 lt_cv_ld_exported_symbols_list=yes
7231 lt_cv_ld_exported_symbols_list=no
7233 rm -f core conftest.err conftest.$ac_objext \
7234 conftest$ac_exeext conftest.$ac_ext
7235 LDFLAGS="$save_LDFLAGS"
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7239 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7242 $as_echo_n "checking for -force_load linker flag... " >&6; }
7243 if ${lt_cv_ld_force_load+:} false; then :
7244 $as_echo_n "(cached) " >&6
7246 lt_cv_ld_force_load=no
7247 cat > conftest.c << _LT_EOF
7248 int forced_loaded() { return 2;}
7250 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7251 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7252 echo "$AR cru libconftest.a conftest.o" >&5
7253 $AR cru libconftest.a conftest.o 2>&5
7254 echo "$RANLIB libconftest.a" >&5
7255 $RANLIB libconftest.a 2>&5
7256 cat > conftest.c << _LT_EOF
7257 int main() { return 0;}
7259 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7260 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7262 if test -s conftest.err && $GREP force_load conftest.err; then
7263 cat conftest.err >&5
7264 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7265 lt_cv_ld_force_load=yes
7267 cat conftest.err >&5
7269 rm -f conftest.err libconftest.a conftest conftest.c
7270 rm -rf conftest.dSYM
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7274 $as_echo "$lt_cv_ld_force_load" >&6; }
7276 rhapsody* | darwin1.[012])
7277 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7279 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7280 darwin*) # darwin 5.x on
7281 # if running on 10.5 or later, the deployment target defaults
7282 # to the OS version, if on x86, and 10.4, the deployment
7283 # target defaults to 10.4. Don't you love it?
7284 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7285 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7286 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7290 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7294 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7295 _lt_dar_single_mod='$single_module'
7297 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7298 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7300 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7302 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7303 _lt_dsymutil='~$DSYMUTIL $lib || :'
7311 ac_cpp='$CPP $CPPFLAGS'
7312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7316 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7317 # On Suns, sometimes $CPP names a directory.
7318 if test -n "$CPP" && test -d "$CPP"; then
7321 if test -z "$CPP"; then
7322 if ${ac_cv_prog_CPP+:} false; then :
7323 $as_echo_n "(cached) " >&6
7325 # Double quotes because CPP needs to be expanded
7326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7329 for ac_c_preproc_warn_flag in '' yes
7331 # Use a header file that comes with gcc, so configuring glibc
7332 # with a fresh cross-compiler works.
7333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7334 # <limits.h> exists even on freestanding compilers.
7335 # On the NeXT, cc -E runs the code through the compiler's parser,
7336 # not just through cpp. "Syntax error" is here to catch this case.
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7340 # include <limits.h>
7342 # include <assert.h>
7346 if ac_fn_c_try_cpp "$LINENO"; then :
7349 # Broken: fails on valid input.
7352 rm -f conftest.err conftest.i conftest.$ac_ext
7354 # OK, works on sane cases. Now check whether nonexistent headers
7355 # can be detected and how.
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358 #include <ac_nonexistent.h>
7360 if ac_fn_c_try_cpp "$LINENO"; then :
7361 # Broken: success on invalid input.
7364 # Passes both tests.
7368 rm -f conftest.err conftest.i conftest.$ac_ext
7371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7372 rm -f conftest.i conftest.err conftest.$ac_ext
7373 if $ac_preproc_ok; then :
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7386 $as_echo "$CPP" >&6; }
7388 for ac_c_preproc_warn_flag in '' yes
7390 # Use a header file that comes with gcc, so configuring glibc
7391 # with a fresh cross-compiler works.
7392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7393 # <limits.h> exists even on freestanding compilers.
7394 # On the NeXT, cc -E runs the code through the compiler's parser,
7395 # not just through cpp. "Syntax error" is here to catch this case.
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7399 # include <limits.h>
7401 # include <assert.h>
7405 if ac_fn_c_try_cpp "$LINENO"; then :
7408 # Broken: fails on valid input.
7411 rm -f conftest.err conftest.i conftest.$ac_ext
7413 # OK, works on sane cases. Now check whether nonexistent headers
7414 # can be detected and how.
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 #include <ac_nonexistent.h>
7419 if ac_fn_c_try_cpp "$LINENO"; then :
7420 # Broken: success on invalid input.
7423 # Passes both tests.
7427 rm -f conftest.err conftest.i conftest.$ac_ext
7430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7431 rm -f conftest.i conftest.err conftest.$ac_ext
7432 if $ac_preproc_ok; then :
7435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7437 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7438 See \`config.log' for more details" "$LINENO" 5; }
7442 ac_cpp='$CPP $CPPFLAGS'
7443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7449 $as_echo_n "checking for ANSI C header files... " >&6; }
7450 if ${ac_cv_header_stdc+:} false; then :
7451 $as_echo_n "(cached) " >&6
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7468 if ac_fn_c_try_compile "$LINENO"; then :
7469 ac_cv_header_stdc=yes
7471 ac_cv_header_stdc=no
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 if test $ac_cv_header_stdc = yes; then
7476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7483 $EGREP "memchr" >/dev/null 2>&1; then :
7486 ac_cv_header_stdc=no
7492 if test $ac_cv_header_stdc = yes; then
7493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7500 $EGREP "free" >/dev/null 2>&1; then :
7503 ac_cv_header_stdc=no
7509 if test $ac_cv_header_stdc = yes; then
7510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7511 if test "$cross_compiling" = yes; then :
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7518 #if ((' ' & 0x0FF) == 0x020)
7519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7522 # define ISLOWER(c) \
7523 (('a' <= (c) && (c) <= 'i') \
7524 || ('j' <= (c) && (c) <= 'r') \
7525 || ('s' <= (c) && (c) <= 'z'))
7526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7534 for (i = 0; i < 256; i++)
7535 if (XOR (islower (i), ISLOWER (i))
7536 || toupper (i) != TOUPPER (i))
7541 if ac_fn_c_try_run "$LINENO"; then :
7544 ac_cv_header_stdc=no
7546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7547 conftest.$ac_objext conftest.beam conftest.$ac_ext
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7553 $as_echo "$ac_cv_header_stdc" >&6; }
7554 if test $ac_cv_header_stdc = yes; then
7556 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7561 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7562 inttypes.h stdint.h unistd.h
7564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7567 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7568 cat >>confdefs.h <<_ACEOF
7569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7577 for ac_header in dlfcn.h
7579 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7581 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7582 cat >>confdefs.h <<_ACEOF
7583 #define HAVE_DLFCN_H 1
7604 # Check whether --enable-shared was given.
7605 if test "${enable_shared+set}" = set; then :
7606 enableval=$enable_shared; p=${PACKAGE-default}
7608 yes) enable_shared=yes ;;
7609 no) enable_shared=no ;;
7612 # Look at the argument we got. We use all the common list separators.
7613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7614 for pkg in $enableval; do
7616 if test "X$pkg" = "X$p"; then
7635 # Check whether --enable-static was given.
7636 if test "${enable_static+set}" = set; then :
7637 enableval=$enable_static; p=${PACKAGE-default}
7639 yes) enable_static=yes ;;
7640 no) enable_static=no ;;
7643 # Look at the argument we got. We use all the common list separators.
7644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645 for pkg in $enableval; do
7647 if test "X$pkg" = "X$p"; then
7667 # Check whether --with-pic was given.
7668 if test "${with_pic+set}" = set; then :
7669 withval=$with_pic; lt_p=${PACKAGE-default}
7671 yes|no) pic_mode=$withval ;;
7674 # Look at the argument we got. We use all the common list separators.
7675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7676 for lt_pkg in $withval; do
7678 if test "X$lt_pkg" = "X$lt_p"; then
7690 test -z "$pic_mode" && pic_mode=default
7698 # Check whether --enable-fast-install was given.
7699 if test "${enable_fast_install+set}" = set; then :
7700 enableval=$enable_fast_install; p=${PACKAGE-default}
7702 yes) enable_fast_install=yes ;;
7703 no) enable_fast_install=no ;;
7705 enable_fast_install=no
7706 # Look at the argument we got. We use all the common list separators.
7707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7708 for pkg in $enableval; do
7710 if test "X$pkg" = "X$p"; then
7711 enable_fast_install=yes
7718 enable_fast_install=yes
7731 # This can be used to rebuild libtool when needed
7732 LIBTOOL_DEPS="$ltmain"
7734 # Always use our own libtool.
7735 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7766 test -z "$LN_S" && LN_S="ln -s"
7781 if test -n "${ZSH_VERSION+set}" ; then
7782 setopt NO_GLOB_SUBST
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7786 $as_echo_n "checking for objdir... " >&6; }
7787 if ${lt_cv_objdir+:} false; then :
7788 $as_echo_n "(cached) " >&6
7790 rm -f .libs 2>/dev/null
7791 mkdir .libs 2>/dev/null
7792 if test -d .libs; then
7795 # MS-DOS does not allow filenames that begin with a dot.
7798 rmdir .libs 2>/dev/null
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7801 $as_echo "$lt_cv_objdir" >&6; }
7802 objdir=$lt_cv_objdir
7808 cat >>confdefs.h <<_ACEOF
7809 #define LT_OBJDIR "$lt_cv_objdir/"
7817 # AIX sometimes has problems with the GCC collect2 program. For some
7818 # reason, if we set the COLLECT_NAMES environment variable, the problems
7819 # vanish in a puff of smoke.
7820 if test "X${COLLECT_NAMES+set}" != Xset; then
7822 export COLLECT_NAMES
7829 can_build_shared=yes
7831 # All known linkers require a `.a' archive for static linking (except MSVC,
7832 # which needs '.lib').
7835 with_gnu_ld="$lt_cv_prog_gnu_ld"
7838 old_CFLAGS="$CFLAGS"
7840 # Set sane defaults for various variables
7841 test -z "$CC" && CC=cc
7842 test -z "$LTCC" && LTCC=$CC
7843 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7844 test -z "$LD" && LD=ld
7845 test -z "$ac_objext" && ac_objext=o
7847 for cc_temp in $compiler""; do
7849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7855 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7858 # Only perform the check for file, if the check method requires it
7859 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7860 case $deplibs_check_method in
7862 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7864 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7865 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7866 $as_echo_n "(cached) " >&6
7870 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7873 lt_save_MAGIC_CMD="$MAGIC_CMD"
7874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7875 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7876 for ac_dir in $ac_dummy; do
7878 test -z "$ac_dir" && ac_dir=.
7879 if test -f $ac_dir/${ac_tool_prefix}file; then
7880 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7881 if test -n "$file_magic_test_file"; then
7882 case $deplibs_check_method in
7884 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7885 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7886 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7887 $EGREP "$file_magic_regex" > /dev/null; then
7892 *** Warning: the command libtool uses to detect shared libraries,
7893 *** $file_magic_cmd, produces output that libtool cannot recognize.
7894 *** The result is that libtool may fail to recognize shared libraries
7895 *** as such. This will affect the creation of libtool libraries that
7896 *** depend on shared libraries, but programs linked with such libtool
7897 *** libraries will work regardless of this problem. Nevertheless, you
7898 *** may want to report the problem to your system manager and/or to
7899 *** bug-libtool@gnu.org
7909 MAGIC_CMD="$lt_save_MAGIC_CMD"
7914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7915 if test -n "$MAGIC_CMD"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7917 $as_echo "$MAGIC_CMD" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7927 if test -z "$lt_cv_path_MAGIC_CMD"; then
7928 if test -n "$ac_tool_prefix"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7930 $as_echo_n "checking for file... " >&6; }
7931 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7932 $as_echo_n "(cached) " >&6
7936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7939 lt_save_MAGIC_CMD="$MAGIC_CMD"
7940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7942 for ac_dir in $ac_dummy; do
7944 test -z "$ac_dir" && ac_dir=.
7945 if test -f $ac_dir/file; then
7946 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7947 if test -n "$file_magic_test_file"; then
7948 case $deplibs_check_method in
7950 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7953 $EGREP "$file_magic_regex" > /dev/null; then
7958 *** Warning: the command libtool uses to detect shared libraries,
7959 *** $file_magic_cmd, produces output that libtool cannot recognize.
7960 *** The result is that libtool may fail to recognize shared libraries
7961 *** as such. This will affect the creation of libtool libraries that
7962 *** depend on shared libraries, but programs linked with such libtool
7963 *** libraries will work regardless of this problem. Nevertheless, you
7964 *** may want to report the problem to your system manager and/or to
7965 *** bug-libtool@gnu.org
7975 MAGIC_CMD="$lt_save_MAGIC_CMD"
7980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981 if test -n "$MAGIC_CMD"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7983 $as_echo "$MAGIC_CMD" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7999 # Use C for the default configuration in the libtool script
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8009 # Source file extension for C test sources.
8012 # Object file extension for compiled C test sources.
8016 # Code to be used in simple compile tests
8017 lt_simple_compile_test_code="int some_variable = 0;"
8019 # Code to be used in simple link tests
8020 lt_simple_link_test_code='int main(){return(0);}'
8028 # If no C compiler was specified, use CC.
8031 # If no C compiler flags were specified, use CFLAGS.
8032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8034 # Allow CC to be a program name with arguments.
8037 # Save the default compiler, since it gets overwritten when the other
8038 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8039 compiler_DEFAULT=$CC
8041 # save warnings/boilerplate of simple test code
8042 ac_outfile=conftest.$ac_objext
8043 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8045 _lt_compiler_boilerplate=`cat conftest.err`
8048 ac_outfile=conftest.$ac_objext
8049 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8051 _lt_linker_boilerplate=`cat conftest.err`
8055 if test -n "$compiler"; then
8057 lt_prog_compiler_no_builtin_flag=
8059 if test "$GCC" = yes; then
8060 case $cc_basename in
8062 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8064 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8068 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8069 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 lt_cv_prog_compiler_rtti_exceptions=no
8073 ac_outfile=conftest.$ac_objext
8074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8075 lt_compiler_flag="-fno-rtti -fno-exceptions"
8076 # Insert the option either (1) after the last *FLAGS variable, or
8077 # (2) before a word containing "conftest.", or (3) at the end.
8078 # Note that $ac_compile itself does not contain backslashes and begins
8079 # with a dollar sign (not a hyphen), so the echo should work correctly.
8080 # The option is referenced via a variable to avoid confusing sed.
8081 lt_compile=`echo "$ac_compile" | $SED \
8082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8084 -e 's:$: $lt_compiler_flag:'`
8085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8086 (eval "$lt_compile" 2>conftest.err)
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 if (exit $ac_status) && test -s "$ac_outfile"; then
8091 # The compiler can only warn and ignore the option if not recognized
8092 # So say no if there are warnings other than the usual output.
8093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8096 lt_cv_prog_compiler_rtti_exceptions=yes
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8103 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8105 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8106 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8118 lt_prog_compiler_wl=
8119 lt_prog_compiler_pic=
8120 lt_prog_compiler_static=
8123 if test "$GCC" = yes; then
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_static='-static'
8129 # All AIX code is PIC.
8130 if test "$host_cpu" = ia64; then
8131 # AIX 5 now supports IA64 processor
8132 lt_prog_compiler_static='-Bstatic'
8139 # see comment about AmigaOS4 .so support
8140 lt_prog_compiler_pic='-fPIC'
8143 # FIXME: we need at least 68020 code to build shared libraries, but
8144 # adding the `-m68020' flag to GCC prevents building anything better,
8146 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8151 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8152 # PIC is the default for these OSes.
8155 mingw* | cygwin* | pw32* | os2* | cegcc*)
8156 # This hack is so that the source file can tell whether it is being
8157 # built for inclusion in a dll (and should export symbols for example).
8158 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8159 # (--disable-auto-import) libraries
8160 lt_prog_compiler_pic='-DDLL_EXPORT'
8163 darwin* | rhapsody*)
8164 # PIC is the default on this platform
8165 # Common symbols not allowed in MH_DYLIB files
8166 lt_prog_compiler_pic='-fno-common'
8170 # PIC is the default for Haiku.
8171 # The "-static" flag exists, but is broken.
8172 lt_prog_compiler_static=
8176 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8177 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8178 # sets the default TLS model and affects inlining.
8184 lt_prog_compiler_pic='-fPIC'
8190 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8191 # Instead, we relocate shared libraries at runtime.
8195 # Just because we use GCC doesn't mean we suddenly get shared libraries
8196 # on systems that don't support them.
8197 lt_prog_compiler_can_build_shared=no
8202 # QNX uses GNU C++, but need to define -shared option too, otherwise
8204 lt_prog_compiler_pic='-fPIC -shared'
8208 if test -d /usr/nec; then
8209 lt_prog_compiler_pic=-Kconform_pic
8214 lt_prog_compiler_pic='-fPIC'
8218 case $cc_basename in
8219 nvcc*) # Cuda Compiler Driver 2.2
8220 lt_prog_compiler_wl='-Xlinker '
8221 if test -n "$lt_prog_compiler_pic"; then
8222 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8227 # PORTME Check for flag to pass linker flags through the system compiler.
8230 lt_prog_compiler_wl='-Wl,'
8231 if test "$host_cpu" = ia64; then
8232 # AIX 5 now supports IA64 processor
8233 lt_prog_compiler_static='-Bstatic'
8235 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8239 mingw* | cygwin* | pw32* | os2* | cegcc*)
8240 # This hack is so that the source file can tell whether it is being
8241 # built for inclusion in a dll (and should export symbols for example).
8242 lt_prog_compiler_pic='-DDLL_EXPORT'
8245 hpux9* | hpux10* | hpux11*)
8246 lt_prog_compiler_wl='-Wl,'
8247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8254 lt_prog_compiler_pic='+Z'
8257 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8258 lt_prog_compiler_static='${wl}-a ${wl}archive'
8261 irix5* | irix6* | nonstopux*)
8262 lt_prog_compiler_wl='-Wl,'
8263 # PIC (with -KPIC) is the default.
8264 lt_prog_compiler_static='-non_shared'
8267 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8268 case $cc_basename in
8269 # old Intel for x86_64 which still supported -KPIC.
8271 lt_prog_compiler_wl='-Wl,'
8272 lt_prog_compiler_pic='-KPIC'
8273 lt_prog_compiler_static='-static'
8275 # icc used to be incompatible with GCC.
8276 # ICC 10 doesn't accept -KPIC any more.
8278 lt_prog_compiler_wl='-Wl,'
8279 lt_prog_compiler_pic='-fPIC'
8280 lt_prog_compiler_static='-static'
8282 # Lahey Fortran 8.1.
8284 lt_prog_compiler_wl='-Wl,'
8285 lt_prog_compiler_pic='--shared'
8286 lt_prog_compiler_static='--static'
8289 # NAG Fortran compiler
8290 lt_prog_compiler_wl='-Wl,-Wl,,'
8291 lt_prog_compiler_pic='-PIC'
8292 lt_prog_compiler_static='-Bstatic'
8294 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8295 # Portland Group compilers (*not* the Pentium gcc compiler,
8296 # which looks to be a dead project)
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_pic='-fpic'
8299 lt_prog_compiler_static='-Bstatic'
8302 lt_prog_compiler_wl='-Wl,'
8303 # All Alpha code is PIC.
8304 lt_prog_compiler_static='-non_shared'
8306 xl* | bgxl* | bgf* | mpixl*)
8307 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_pic='-qpic'
8310 lt_prog_compiler_static='-qstaticlink'
8313 case `$CC -V 2>&1 | sed 5q` in
8314 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8315 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-Bstatic'
8318 lt_prog_compiler_wl=''
8320 *Sun\ F* | *Sun*Fortran*)
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-Bstatic'
8323 lt_prog_compiler_wl='-Qoption ld '
8327 lt_prog_compiler_pic='-KPIC'
8328 lt_prog_compiler_static='-Bstatic'
8329 lt_prog_compiler_wl='-Wl,'
8331 *Intel*\ [CF]*Compiler*)
8332 lt_prog_compiler_wl='-Wl,'
8333 lt_prog_compiler_pic='-fPIC'
8334 lt_prog_compiler_static='-static'
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='-fpic'
8339 lt_prog_compiler_static='-Bstatic'
8347 lt_prog_compiler_pic='-KPIC'
8348 lt_prog_compiler_static='-Bstatic'
8352 # QNX uses GNU C++, but need to define -shared option too, otherwise
8354 lt_prog_compiler_pic='-fPIC -shared'
8357 osf3* | osf4* | osf5*)
8358 lt_prog_compiler_wl='-Wl,'
8359 # All OSF/1 code is PIC.
8360 lt_prog_compiler_static='-non_shared'
8364 lt_prog_compiler_static='-non_shared'
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 case $cc_basename in
8371 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8372 lt_prog_compiler_wl='-Qoption ld ';;
8374 lt_prog_compiler_wl='-Wl,';;
8379 lt_prog_compiler_wl='-Qoption ld '
8380 lt_prog_compiler_pic='-PIC'
8381 lt_prog_compiler_static='-Bstatic'
8384 sysv4 | sysv4.2uw2* | sysv4.3*)
8385 lt_prog_compiler_wl='-Wl,'
8386 lt_prog_compiler_pic='-KPIC'
8387 lt_prog_compiler_static='-Bstatic'
8391 if test -d /usr/nec ;then
8392 lt_prog_compiler_pic='-Kconform_pic'
8393 lt_prog_compiler_static='-Bstatic'
8397 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_pic='-KPIC'
8400 lt_prog_compiler_static='-Bstatic'
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_can_build_shared=no
8409 lt_prog_compiler_pic='-pic'
8410 lt_prog_compiler_static='-Bstatic'
8414 lt_prog_compiler_can_build_shared=no
8420 # For platforms which do not support PIC, -DPIC is meaningless:
8422 lt_prog_compiler_pic=
8425 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8430 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8431 if ${lt_cv_prog_compiler_pic+:} false; then :
8432 $as_echo_n "(cached) " >&6
8434 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8437 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8438 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8441 # Check to make sure the PIC flag actually works.
8443 if test -n "$lt_prog_compiler_pic"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8445 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8446 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8447 $as_echo_n "(cached) " >&6
8449 lt_cv_prog_compiler_pic_works=no
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8453 # Insert the option either (1) after the last *FLAGS variable, or
8454 # (2) before a word containing "conftest.", or (3) at the end.
8455 # Note that $ac_compile itself does not contain backslashes and begins
8456 # with a dollar sign (not a hyphen), so the echo should work correctly.
8457 # The option is referenced via a variable to avoid confusing sed.
8458 lt_compile=`echo "$ac_compile" | $SED \
8459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8461 -e 's:$: $lt_compiler_flag:'`
8462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8463 (eval "$lt_compile" 2>conftest.err)
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 if (exit $ac_status) && test -s "$ac_outfile"; then
8468 # The compiler can only warn and ignore the option if not recognized
8469 # So say no if there are warnings other than the usual output.
8470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8473 lt_cv_prog_compiler_pic_works=yes
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8480 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8482 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8483 case $lt_prog_compiler_pic in
8485 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8488 lt_prog_compiler_pic=
8489 lt_prog_compiler_can_build_shared=no
8505 # Check to make sure the static flag actually works.
8507 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8509 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8510 if ${lt_cv_prog_compiler_static_works+:} false; then :
8511 $as_echo_n "(cached) " >&6
8513 lt_cv_prog_compiler_static_works=no
8514 save_LDFLAGS="$LDFLAGS"
8515 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8516 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8518 # The linker can only warn and ignore the option if not recognized
8519 # So say no if there are warnings
8520 if test -s conftest.err; then
8521 # Append any errors to the config.log.
8522 cat conftest.err 1>&5
8523 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8525 if diff conftest.exp conftest.er2 >/dev/null; then
8526 lt_cv_prog_compiler_static_works=yes
8529 lt_cv_prog_compiler_static_works=yes
8533 LDFLAGS="$save_LDFLAGS"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8537 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8539 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8542 lt_prog_compiler_static=
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8552 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8553 if ${lt_cv_prog_compiler_c_o+:} false; then :
8554 $as_echo_n "(cached) " >&6
8556 lt_cv_prog_compiler_c_o=no
8557 $RM -r conftest 2>/dev/null
8561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8563 lt_compiler_flag="-o out/conftest2.$ac_objext"
8564 # Insert the option either (1) after the last *FLAGS variable, or
8565 # (2) before a word containing "conftest.", or (3) at the end.
8566 # Note that $ac_compile itself does not contain backslashes and begins
8567 # with a dollar sign (not a hyphen), so the echo should work correctly.
8568 lt_compile=`echo "$ac_compile" | $SED \
8569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8571 -e 's:$: $lt_compiler_flag:'`
8572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8573 (eval "$lt_compile" 2>out/conftest.err)
8575 cat out/conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8579 # The compiler can only warn and ignore the option if not recognized
8580 # So say no if there are warnings
8581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8582 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8583 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8584 lt_cv_prog_compiler_c_o=yes
8589 # SGI C++ compiler will create directory out/ii_files/ for
8590 # template instantiation
8591 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8592 $RM out/* && rmdir out
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8599 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8607 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8608 if ${lt_cv_prog_compiler_c_o+:} false; then :
8609 $as_echo_n "(cached) " >&6
8611 lt_cv_prog_compiler_c_o=no
8612 $RM -r conftest 2>/dev/null
8616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8618 lt_compiler_flag="-o out/conftest2.$ac_objext"
8619 # Insert the option either (1) after the last *FLAGS variable, or
8620 # (2) before a word containing "conftest.", or (3) at the end.
8621 # Note that $ac_compile itself does not contain backslashes and begins
8622 # with a dollar sign (not a hyphen), so the echo should work correctly.
8623 lt_compile=`echo "$ac_compile" | $SED \
8624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8626 -e 's:$: $lt_compiler_flag:'`
8627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8628 (eval "$lt_compile" 2>out/conftest.err)
8630 cat out/conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8634 # The compiler can only warn and ignore the option if not recognized
8635 # So say no if there are warnings
8636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8639 lt_cv_prog_compiler_c_o=yes
8644 # SGI C++ compiler will create directory out/ii_files/ for
8645 # template instantiation
8646 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8647 $RM out/* && rmdir out
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8654 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8659 hard_links="nottested"
8660 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8661 # do not overwrite the value of need_locks provided by the user
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8663 $as_echo_n "checking if we can lock with hard links... " >&6; }
8666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8668 ln conftest.a conftest.b 2>&5 || hard_links=no
8669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8671 $as_echo "$hard_links" >&6; }
8672 if test "$hard_links" = no; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8674 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8690 allow_undefined_flag=
8691 always_export_symbols=no
8693 archive_expsym_cmds=
8694 compiler_needs_object=no
8695 enable_shared_with_static_runtimes=no
8696 export_dynamic_flag_spec=
8697 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8698 hardcode_automatic=no
8700 hardcode_direct_absolute=no
8701 hardcode_libdir_flag_spec=
8702 hardcode_libdir_separator=
8704 hardcode_shlibpath_var=unsupported
8706 link_all_deplibs=unknown
8709 old_archive_from_new_cmds=
8710 old_archive_from_expsyms_cmds=
8711 thread_safe_flag_spec=
8712 whole_archive_flag_spec=
8713 # include_expsyms should be a list of space-separated symbols to be *always*
8714 # included in the symbol list
8716 # exclude_expsyms can be an extended regexp of symbols to exclude
8717 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8718 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8719 # as well as any symbol that contains `d'.
8720 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8721 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8722 # platforms (ab)use it in PIC code, but their linkers get confused if
8723 # the symbol is explicitly referenced. Since portable code cannot
8724 # rely on this symbol name, it's probably fine to never include it in
8725 # preloaded symbol tables.
8726 # Exclude shared library initialization/finalization symbols.
8727 extract_expsyms_cmds=
8730 cygwin* | mingw* | pw32* | cegcc*)
8731 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8732 # When not using gcc, we currently assume that we are using
8733 # Microsoft Visual C++.
8734 if test "$GCC" != yes; then
8739 # we just hope/assume this is gcc and not c89 (= MSVC++)
8745 linux* | k*bsd*-gnu | gnu*)
8752 # On some targets, GNU ld is compatible enough with the native linker
8753 # that we're better off using the native interface for both.
8754 lt_use_gnu_ld_interface=no
8755 if test "$with_gnu_ld" = yes; then
8758 # The AIX port of GNU ld has always aspired to compatibility
8759 # with the native linker. However, as the warning in the GNU ld
8760 # block says, versions before 2.19.5* couldn't really create working
8761 # shared libraries, regardless of the interface used.
8762 case `$LD -v 2>&1` in
8763 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8764 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8765 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8767 lt_use_gnu_ld_interface=yes
8772 lt_use_gnu_ld_interface=yes
8777 if test "$lt_use_gnu_ld_interface" = yes; then
8778 # If archive_cmds runs LD, not CC, wlarc should be empty
8781 # Set some defaults for GNU ld with shared library support. These
8782 # are reset later if shared libraries are not supported. Putting them
8783 # here allows them to be overridden if necessary.
8784 runpath_var=LD_RUN_PATH
8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786 export_dynamic_flag_spec='${wl}--export-dynamic'
8787 # ancient GNU ld didn't support --whole-archive et. al.
8788 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8789 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8791 whole_archive_flag_spec=
8793 supports_anon_versioning=no
8794 case `$LD -v 2>&1` in
8795 *GNU\ gold*) supports_anon_versioning=yes ;;
8796 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8797 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8798 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8799 *\ 2.11.*) ;; # other 2.11 versions
8800 *) supports_anon_versioning=yes ;;
8803 # See if GNU ld supports shared libraries.
8806 # On AIX/PPC, the GNU linker is very broken
8807 if test "$host_cpu" != ia64; then
8811 *** Warning: the GNU linker, at least up to release 2.19, is reported
8812 *** to be unable to reliably create shared libraries on AIX.
8813 *** Therefore, libtool is disabling shared libraries support. If you
8814 *** really care for shared libraries, you may want to install binutils
8815 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8816 *** You will then need to restart the configuration process.
8825 # see comment about AmigaOS4 .so support
8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 archive_expsym_cmds=''
8830 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)'
8831 hardcode_libdir_flag_spec='-L$libdir'
8832 hardcode_minus_L=yes
8838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8839 allow_undefined_flag=unsupported
8840 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8841 # support --undefined. This deserves some investigation. FIXME
8842 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848 cygwin* | mingw* | pw32* | cegcc*)
8849 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8850 # as there is no search path for DLLs.
8851 hardcode_libdir_flag_spec='-L$libdir'
8852 export_dynamic_flag_spec='${wl}--export-all-symbols'
8853 allow_undefined_flag=unsupported
8854 always_export_symbols=no
8855 enable_shared_with_static_runtimes=yes
8856 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'
8857 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8859 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8861 # If the export-symbols file already is a .def file (1st line
8862 # is EXPORTS), use it as is; otherwise, prepend...
8863 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8864 cp $export_symbols $output_objdir/$soname.def;
8866 echo EXPORTS > $output_objdir/$soname.def;
8867 cat $export_symbols >> $output_objdir/$soname.def;
8869 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877 link_all_deplibs=yes
8882 hardcode_shlibpath_var=no
8883 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8884 export_dynamic_flag_spec='${wl}-E'
8885 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8886 # Instead, shared libraries are loaded at an image base (0x10000000 by
8887 # default) and relocated if they conflict, which is a slow very memory
8888 # consuming and fragmenting process. To avoid this, we pick a random,
8889 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8890 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8892 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'
8895 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8897 if test "$host_os" = linux-dietlibc; then
8898 case $cc_basename in
8899 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8902 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8903 && test "$tmp_diet" = no
8905 tmp_addflag=' $pic_flag'
8906 tmp_sharedflag='-shared'
8907 case $cc_basename,$host_cpu in
8908 pgcc*) # Portland Group C compiler
8909 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'
8910 tmp_addflag=' $pic_flag'
8912 pgf77* | pgf90* | pgf95* | pgfortran*)
8913 # Portland Group f77 and f90 compilers
8914 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'
8915 tmp_addflag=' $pic_flag -Mnomain' ;;
8916 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8917 tmp_addflag=' -i_dynamic' ;;
8918 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8919 tmp_addflag=' -i_dynamic -nofor_main' ;;
8920 ifc* | ifort*) # Intel Fortran compiler
8921 tmp_addflag=' -nofor_main' ;;
8922 lf95*) # Lahey Fortran 8.1
8923 whole_archive_flag_spec=
8924 tmp_sharedflag='--shared' ;;
8925 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8926 tmp_sharedflag='-qmkshrobj'
8928 nvcc*) # Cuda Compiler Driver 2.2
8929 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'
8930 compiler_needs_object=yes
8933 case `$CC -V 2>&1 | sed 5q` in
8934 *Sun\ C*) # Sun C 5.9
8935 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'
8936 compiler_needs_object=yes
8937 tmp_sharedflag='-G' ;;
8938 *Sun\ F*) # Sun Fortran 8.3
8939 tmp_sharedflag='-G' ;;
8941 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8943 if test "x$supports_anon_versioning" = xyes; then
8944 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8946 echo "local: *; };" >> $output_objdir/$libname.ver~
8947 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8950 case $cc_basename in
8951 xlf* | bgf* | bgxlf* | mpixlf*)
8952 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8953 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8956 if test "x$supports_anon_versioning" = xyes; then
8957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8959 echo "local: *; };" >> $output_objdir/$libname.ver~
8960 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8969 netbsd* | netbsdelf*-gnu)
8970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8980 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8984 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8985 *** create shared libraries on Solaris systems. Therefore, libtool
8986 *** is disabling shared libraries support. We urge you to upgrade GNU
8987 *** binutils to release 2.9.1 or newer. Another option is to modify
8988 *** your PATH or compiler configuration so that the native linker is
8989 *** used, and then restart.
8992 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9001 case `$LD -v 2>&1` in
9002 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9006 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9007 *** reliably create shared libraries on SCO systems. Therefore, libtool
9008 *** is disabling shared libraries support. We urge you to upgrade GNU
9009 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9010 *** your PATH or compiler configuration so that the native linker is
9011 *** used, and then restart.
9016 # For security reasons, it is highly recommended that you always
9017 # use absolute paths for naming shared libraries, and exclude the
9018 # DT_RUNPATH tag from executables and libraries. But doing so
9019 # requires that you compile everything twice, which is a pain.
9020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_shlibpath_var=no
9039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9048 if test "$ld_shlibs" = no; then
9050 hardcode_libdir_flag_spec=
9051 export_dynamic_flag_spec=
9052 whole_archive_flag_spec=
9055 # PORTME fill in a description of your system's linker (not GNU ld)
9058 allow_undefined_flag=unsupported
9059 always_export_symbols=yes
9060 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'
9061 # Note: this linker hardcodes the directories in LIBPATH if there
9062 # are no directories specified by -L.
9063 hardcode_minus_L=yes
9064 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9065 # Neither direct hardcoding nor static linking is supported with a
9067 hardcode_direct=unsupported
9072 if test "$host_cpu" = ia64; then
9073 # On IA64, the linker does run time linking by default, so we don't
9074 # have to do anything special.
9075 aix_use_runtimelinking=no
9076 exp_sym_flag='-Bexport'
9079 # If we're using GNU nm, then we don't want the "-C" option.
9080 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9081 # Also, AIX nm treats weak defined symbols like other global
9082 # defined symbols, whereas GNU nm marks them as "W".
9083 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9084 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'
9086 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'
9088 aix_use_runtimelinking=no
9090 # Test if we are trying to use run time linking or normal
9091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9092 # need to do runtime linking.
9093 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9094 for ld_flag in $LDFLAGS; do
9095 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9096 aix_use_runtimelinking=yes
9103 exp_sym_flag='-bexport'
9104 no_entry_flag='-bnoentry'
9107 # When large executables or shared objects are built, AIX ld can
9108 # have problems creating the table of contents. If linking a library
9109 # or program results in "error TOC overflow" add -mminimal-toc to
9110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9115 hardcode_direct_absolute=yes
9116 hardcode_libdir_separator=':'
9117 link_all_deplibs=yes
9118 file_list_spec='${wl}-f,'
9120 if test "$GCC" = yes; then
9121 case $host_os in aix4.[012]|aix4.[012].*)
9122 # We only want to do this on AIX 4.2 and lower, the check
9123 # below for broken collect2 doesn't work under 4.3+
9124 collect2name=`${CC} -print-prog-name=collect2`
9125 if test -f "$collect2name" &&
9126 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9128 # We have reworked collect2
9131 # We have old collect2
9132 hardcode_direct=unsupported
9133 # It fails to find uninstalled libraries when the uninstalled
9134 # path is not listed in the libpath. Setting hardcode_minus_L
9135 # to unsupported forces relinking
9136 hardcode_minus_L=yes
9137 hardcode_libdir_flag_spec='-L$libdir'
9138 hardcode_libdir_separator=
9142 shared_flag='-shared'
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag="$shared_flag "'${wl}-G'
9149 if test "$host_cpu" = ia64; then
9150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9151 # chokes on -Wl,-G. The following line is correct:
9154 if test "$aix_use_runtimelinking" = yes; then
9155 shared_flag='${wl}-G'
9157 shared_flag='${wl}-bM:SRE'
9162 export_dynamic_flag_spec='${wl}-bexpall'
9163 # It seems that -bexpall does not export symbols beginning with
9164 # underscore (_), so it is better to generate a list of symbols to export.
9165 always_export_symbols=yes
9166 if test "$aix_use_runtimelinking" = yes; then
9167 # Warning - without using the other runtime loading flags (-brtl),
9168 # -berok will link without error, but may produce a broken library.
9169 allow_undefined_flag='-berok'
9170 # Determine the default libpath from the value encoded in an
9172 if test "${lt_cv_aix_libpath+set}" = set; then
9173 aix_libpath=$lt_cv_aix_libpath
9175 if ${lt_cv_aix_libpath_+:} false; then :
9176 $as_echo_n "(cached) " >&6
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9189 if ac_fn_c_try_link "$LINENO"; then :
9191 lt_aix_libpath_sed='
9192 /Import File Strings/,/^$/ {
9194 s/^0 *\([^ ]*\) *$/\1/
9198 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199 # Check for a 64-bit object if we didn't find anything.
9200 if test -z "$lt_cv_aix_libpath_"; then
9201 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9206 if test -z "$lt_cv_aix_libpath_"; then
9207 lt_cv_aix_libpath_="/usr/lib:/lib"
9212 aix_libpath=$lt_cv_aix_libpath_
9215 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9216 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"
9218 if test "$host_cpu" = ia64; then
9219 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9220 allow_undefined_flag="-z nodefs"
9221 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"
9223 # Determine the default libpath from the value encoded in an
9225 if test "${lt_cv_aix_libpath+set}" = set; then
9226 aix_libpath=$lt_cv_aix_libpath
9228 if ${lt_cv_aix_libpath_+:} false; then :
9229 $as_echo_n "(cached) " >&6
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9242 if ac_fn_c_try_link "$LINENO"; then :
9244 lt_aix_libpath_sed='
9245 /Import File Strings/,/^$/ {
9247 s/^0 *\([^ ]*\) *$/\1/
9251 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9252 # Check for a 64-bit object if we didn't find anything.
9253 if test -z "$lt_cv_aix_libpath_"; then
9254 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9257 rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 if test -z "$lt_cv_aix_libpath_"; then
9260 lt_cv_aix_libpath_="/usr/lib:/lib"
9265 aix_libpath=$lt_cv_aix_libpath_
9268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9269 # Warning - without using the other run time loading flags,
9270 # -berok will link without error, but may produce a broken library.
9271 no_undefined_flag=' ${wl}-bernotok'
9272 allow_undefined_flag=' ${wl}-berok'
9273 if test "$with_gnu_ld" = yes; then
9274 # We only use this code for GNU lds that support --whole-archive.
9275 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9277 # Exported symbols can be pulled into shared objects from archives
9278 whole_archive_flag_spec='$convenience'
9280 archive_cmds_need_lc=yes
9281 # This is similar to how AIX traditionally builds its shared libraries.
9282 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'
9290 # see comment about AmigaOS4 .so support
9291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292 archive_expsym_cmds=''
9295 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)'
9296 hardcode_libdir_flag_spec='-L$libdir'
9297 hardcode_minus_L=yes
9303 export_dynamic_flag_spec=-rdynamic
9306 cygwin* | mingw* | pw32* | cegcc*)
9307 # When not using gcc, we currently assume that we are using
9308 # Microsoft Visual C++.
9309 # hardcode_libdir_flag_spec is actually meaningless, as there is
9310 # no search path for DLLs.
9311 case $cc_basename in
9314 hardcode_libdir_flag_spec=' '
9315 allow_undefined_flag=unsupported
9316 always_export_symbols=yes
9318 # Tell ltmain to make .lib files, not .a files.
9320 # Tell ltmain to make .dll files, not .so files.
9322 # FIXME: Setting linknames here is a bad hack.
9323 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9324 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9325 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9327 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9329 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9331 # The linker will not automatically build a static lib if we build a DLL.
9332 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9333 enable_shared_with_static_runtimes=yes
9334 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9337 old_postinstall_cmds='chmod 644 $oldlib'
9338 postlink_cmds='lt_outputfile="@OUTPUT@"~
9339 lt_tool_outputfile="@TOOL_OUTPUT@"~
9340 case $lt_outputfile in
9343 lt_outputfile="$lt_outputfile.exe"
9344 lt_tool_outputfile="$lt_tool_outputfile.exe"
9347 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9348 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9349 $RM "$lt_outputfile.manifest";
9353 # Assume MSVC wrapper
9354 hardcode_libdir_flag_spec=' '
9355 allow_undefined_flag=unsupported
9356 # Tell ltmain to make .lib files, not .a files.
9358 # Tell ltmain to make .dll files, not .so files.
9360 # FIXME: Setting linknames here is a bad hack.
9361 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9362 # The linker will automatically build a .lib file if we build a DLL.
9363 old_archive_from_new_cmds='true'
9364 # FIXME: Should let the user specify the lib program.
9365 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9366 enable_shared_with_static_runtimes=yes
9371 darwin* | rhapsody*)
9374 archive_cmds_need_lc=no
9376 hardcode_automatic=yes
9377 hardcode_shlibpath_var=unsupported
9378 if test "$lt_cv_ld_force_load" = "yes"; then
9379 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\"`'
9382 whole_archive_flag_spec=''
9384 link_all_deplibs=yes
9385 allow_undefined_flag="$_lt_dar_allow_undefined"
9386 case $cc_basename in
9387 ifort*) _lt_dar_can_shared=yes ;;
9388 *) _lt_dar_can_shared=$GCC ;;
9390 if test "$_lt_dar_can_shared" = "yes"; then
9391 output_verbose_link_cmd=func_echo_all
9392 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9393 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9394 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}"
9395 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}"
9404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_libdir_flag_spec='-L$libdir'
9406 hardcode_shlibpath_var=no
9409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9410 # support. Future versions do this automatically, but an explicit c++rt0.o
9411 # does not break anything, and helps significantly (at the cost of a little
9414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9415 hardcode_libdir_flag_spec='-R$libdir'
9417 hardcode_shlibpath_var=no
9420 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_minus_L=yes
9425 hardcode_shlibpath_var=no
9428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9429 freebsd* | dragonfly*)
9430 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9431 hardcode_libdir_flag_spec='-R$libdir'
9433 hardcode_shlibpath_var=no
9437 if test "$GCC" = yes; then
9438 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'
9440 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'
9442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9443 hardcode_libdir_separator=:
9446 # hardcode_minus_L: Not really in the search PATH,
9447 # but as the default location of the library.
9448 hardcode_minus_L=yes
9449 export_dynamic_flag_spec='${wl}-E'
9453 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9454 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9458 if test "$with_gnu_ld" = no; then
9459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9460 hardcode_libdir_separator=:
9462 hardcode_direct_absolute=yes
9463 export_dynamic_flag_spec='${wl}-E'
9464 # hardcode_minus_L: Not really in the search PATH,
9465 # but as the default location of the library.
9466 hardcode_minus_L=yes
9471 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9474 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9477 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9493 # Older versions of the 11.00 compiler do not understand -b yet
9494 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9496 $as_echo_n "checking if $CC understands -b... " >&6; }
9497 if ${lt_cv_prog_compiler__b+:} false; then :
9498 $as_echo_n "(cached) " >&6
9500 lt_cv_prog_compiler__b=no
9501 save_LDFLAGS="$LDFLAGS"
9502 LDFLAGS="$LDFLAGS -b"
9503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9505 # The linker can only warn and ignore the option if not recognized
9506 # So say no if there are warnings
9507 if test -s conftest.err; then
9508 # Append any errors to the config.log.
9509 cat conftest.err 1>&5
9510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9512 if diff conftest.exp conftest.er2 >/dev/null; then
9513 lt_cv_prog_compiler__b=yes
9516 lt_cv_prog_compiler__b=yes
9520 LDFLAGS="$save_LDFLAGS"
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9524 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9526 if test x"$lt_cv_prog_compiler__b" = xyes; then
9527 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9535 if test "$with_gnu_ld" = no; then
9536 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537 hardcode_libdir_separator=:
9542 hardcode_shlibpath_var=no
9546 hardcode_direct_absolute=yes
9547 export_dynamic_flag_spec='${wl}-E'
9549 # hardcode_minus_L: Not really in the search PATH,
9550 # but as the default location of the library.
9551 hardcode_minus_L=yes
9557 irix5* | irix6* | nonstopux*)
9558 if test "$GCC" = yes; then
9559 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'
9560 # Try to use the -exported_symbol ld option, if it does not
9561 # work, assume that -exports_file does not work either and
9562 # implicitly export all symbols.
9563 # This should be the same for all languages, so no per-tag cache variable.
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9565 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9566 if ${lt_cv_irix_exported_symbol+:} false; then :
9567 $as_echo_n "(cached) " >&6
9569 save_LDFLAGS="$LDFLAGS"
9570 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572 /* end confdefs.h. */
9573 int foo (void) { return 0; }
9575 if ac_fn_c_try_link "$LINENO"; then :
9576 lt_cv_irix_exported_symbol=yes
9578 lt_cv_irix_exported_symbol=no
9580 rm -f core conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LDFLAGS="$save_LDFLAGS"
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9585 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9586 if test "$lt_cv_irix_exported_symbol" = yes; then
9587 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'
9590 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'
9591 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'
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9595 hardcode_libdir_separator=:
9597 link_all_deplibs=yes
9600 netbsd* | netbsdelf*-gnu)
9601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9604 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9606 hardcode_libdir_flag_spec='-R$libdir'
9608 hardcode_shlibpath_var=no
9612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9615 hardcode_libdir_separator=:
9616 hardcode_shlibpath_var=no
9623 if test -f /usr/libexec/ld.so; then
9625 hardcode_shlibpath_var=no
9626 hardcode_direct_absolute=yes
9627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9631 export_dynamic_flag_spec='${wl}-E'
9634 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636 hardcode_libdir_flag_spec='-R$libdir'
9639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9640 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_minus_L=yes
9652 allow_undefined_flag=unsupported
9653 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'
9654 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9658 if test "$GCC" = yes; then
9659 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9660 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'
9662 allow_undefined_flag=' -expect_unresolved \*'
9663 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'
9665 archive_cmds_need_lc='no'
9666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9667 hardcode_libdir_separator=:
9670 osf4* | osf5*) # as osf3* with the addition of -msym flag
9671 if test "$GCC" = yes; then
9672 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9673 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'
9674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 allow_undefined_flag=' -expect_unresolved \*'
9677 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'
9678 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~
9679 $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'
9681 # Both c and cxx compiler support -rpath directly
9682 hardcode_libdir_flag_spec='-rpath $libdir'
9684 archive_cmds_need_lc='no'
9685 hardcode_libdir_separator=:
9689 no_undefined_flag=' -z defs'
9690 if test "$GCC" = yes; then
9692 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9694 $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'
9696 case `$CC -V 2>&1` in
9699 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9705 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9707 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9711 hardcode_libdir_flag_spec='-R$libdir'
9712 hardcode_shlibpath_var=no
9714 solaris2.[0-5] | solaris2.[0-5].*) ;;
9716 # The compiler driver will combine and reorder linker options,
9717 # but understands `-z linker_flag'. GCC discards it without `$wl',
9718 # but is careful enough not to reorder.
9719 # Supported since Solaris 2.6 (maybe 2.5.1?)
9720 if test "$GCC" = yes; then
9721 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9723 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9727 link_all_deplibs=yes
9731 if test "x$host_vendor" = xsequent; then
9732 # Use $CC to link under sequent, because it throws in some extra .o
9733 # files that make .init and .fini sections work.
9734 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9738 hardcode_libdir_flag_spec='-L$libdir'
9740 hardcode_minus_L=yes
9741 hardcode_shlibpath_var=no
9745 case $host_vendor in
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_direct=yes # is this really true???
9751 ## LD is ld it makes a PLAMLIB
9752 ## CC just makes a GrossModule.
9753 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9754 reload_cmds='$CC -r -o $output$reload_objs'
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9762 runpath_var='LD_RUN_PATH'
9763 hardcode_shlibpath_var=no
9767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9768 hardcode_shlibpath_var=no
9769 export_dynamic_flag_spec='-Bexport'
9773 if test -d /usr/nec; then
9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_shlibpath_var=no
9776 runpath_var=LD_RUN_PATH
9777 hardcode_runpath_var=yes
9782 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9783 no_undefined_flag='${wl}-z,text'
9784 archive_cmds_need_lc=no
9785 hardcode_shlibpath_var=no
9786 runpath_var='LD_RUN_PATH'
9788 if test "$GCC" = yes; then
9789 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9793 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797 sysv5* | sco3.2v5* | sco5v6*)
9798 # Note: We can NOT use -z defs as we might desire, because we do not
9799 # link with -lc, and that would cause any symbols used from libc to
9800 # always be unresolved, which means just about no library would
9801 # ever link correctly. If we're not using GNU ld we use -z text
9802 # though, which does catch some bad symbols but isn't as heavy-handed
9804 no_undefined_flag='${wl}-z,text'
9805 allow_undefined_flag='${wl}-z,nodefs'
9806 archive_cmds_need_lc=no
9807 hardcode_shlibpath_var=no
9808 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9809 hardcode_libdir_separator=':'
9810 link_all_deplibs=yes
9811 export_dynamic_flag_spec='${wl}-Bexport'
9812 runpath_var='LD_RUN_PATH'
9814 if test "$GCC" = yes; then
9815 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9816 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 hardcode_shlibpath_var=no
9834 if test x$host_vendor = xsni; then
9836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9837 export_dynamic_flag_spec='${wl}-Blargedynsym'
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9844 $as_echo "$ld_shlibs" >&6; }
9845 test "$ld_shlibs" = no && can_build_shared=no
9847 with_gnu_ld=$with_gnu_ld
9864 # Do we need to explicitly link libc?
9866 case "x$archive_cmds_need_lc" in
9868 # Assume -lc should be added
9869 archive_cmds_need_lc=yes
9871 if test "$enable_shared" = yes && test "$GCC" = yes; then
9872 case $archive_cmds in
9874 # FIXME: we may have to deal with multi-command sequences.
9877 # Test whether the compiler implicitly links with -lc since on some
9878 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9879 # to ld, don't add -lc before -lgcc.
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9881 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9882 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9883 $as_echo_n "(cached) " >&6
9886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9889 (eval $ac_compile) 2>&5
9891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9892 test $ac_status = 0; } 2>conftest.err; then
9895 libobjs=conftest.$ac_objext
9897 wl=$lt_prog_compiler_wl
9898 pic_flag=$lt_prog_compiler_pic
9904 lt_save_allow_undefined_flag=$allow_undefined_flag
9905 allow_undefined_flag=
9906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9907 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9910 test $ac_status = 0; }
9912 lt_cv_archive_cmds_need_lc=no
9914 lt_cv_archive_cmds_need_lc=yes
9916 allow_undefined_flag=$lt_save_allow_undefined_flag
9918 cat conftest.err 1>&5
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9924 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9925 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10084 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10086 if test "$GCC" = yes; then
10088 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10089 *) lt_awk_arg="/^libraries:/" ;;
10092 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10093 *) lt_sed_strip_eq="s,=/,/,g" ;;
10095 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10096 case $lt_search_path_spec in
10098 # if the path contains ";" then we assume it to be the separator
10099 # otherwise default to the standard path separator (i.e. ":") - it is
10100 # assumed that no part of a normal pathname contains ";" but that should
10101 # okay in the real world where ";" in dirpaths is itself problematic.
10102 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10105 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10108 # Ok, now we have the path, separated by spaces, we can step through it
10109 # and add multilib dir if necessary.
10110 lt_tmp_lt_search_path_spec=
10111 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10112 for lt_sys_path in $lt_search_path_spec; do
10113 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10116 test -d "$lt_sys_path" && \
10117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10120 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10121 BEGIN {RS=" "; FS="/|\n";} {
10124 for (lt_i = NF; lt_i > 0; lt_i--) {
10125 if ($lt_i != "" && $lt_i != ".") {
10126 if ($lt_i == "..") {
10129 if (lt_count == 0) {
10130 lt_foo="/" $lt_i lt_foo;
10137 if (lt_foo != "") { lt_freq[lt_foo]++; }
10138 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10140 # AWK program above erroneously prepends '/' to C:/dos/paths
10143 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10144 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10146 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10150 library_names_spec=
10151 libname_spec='lib$name'
10155 postuninstall_cmds=
10159 shlibpath_overrides_runpath=unknown
10161 dynamic_linker="$host_os ld.so"
10162 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10163 need_lib_prefix=unknown
10164 hardcode_into_libs=no
10166 # when you set need_version to no, make sure it does not cause -set_version
10167 # flags to be left without arguments
10168 need_version=unknown
10172 version_type=linux # correct to gnu/linux during the next big refactor
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10174 shlibpath_var=LIBPATH
10176 # AIX 3 has no versioning support, so we append a major version to the name.
10177 soname_spec='${libname}${release}${shared_ext}$major'
10181 version_type=linux # correct to gnu/linux during the next big refactor
10184 hardcode_into_libs=yes
10185 if test "$host_cpu" = ia64; then
10186 # AIX 5 supports IA64
10187 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10188 shlibpath_var=LD_LIBRARY_PATH
10190 # With GCC up to 2.95.x, collect2 would create an import file
10191 # for dependence libraries. The import file would start with
10192 # the line `#! .'. This would cause the generated library to
10193 # depend on `.', always an invalid library. This was fixed in
10194 # development snapshots of GCC prior to 3.0.
10196 aix4 | aix4.[01] | aix4.[01].*)
10197 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10199 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10202 can_build_shared=no
10206 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10207 # soname into executable. Probably we can add versioning support to
10208 # collect2, so additional links can be useful in future.
10209 if test "$aix_use_runtimelinking" = yes; then
10210 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10211 # instead of lib<name>.a to let people know that these are not
10212 # typical AIX shared libraries.
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 # We preserve .a as extension for shared libraries through AIX4.2
10216 # and later when we are not doing run time linking.
10217 library_names_spec='${libname}${release}.a $libname.a'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LIBPATH
10227 # Since July 2007 AmigaOS4 officially supports .so libraries.
10228 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232 library_names_spec='$libname.ixlibrary $libname.a'
10233 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10234 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'
10240 library_names_spec='${libname}${shared_ext}'
10241 dynamic_linker="$host_os ld.so"
10242 shlibpath_var=LIBRARY_PATH
10246 version_type=linux # correct to gnu/linux during the next big refactor
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10254 # the default ld.so.conf also contains /usr/contrib/lib and
10255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10256 # libtool to hard-code these into programs
10259 cygwin* | mingw* | pw32* | cegcc*)
10260 version_type=windows
10265 case $GCC,$cc_basename in
10268 library_names_spec='$libname.dll.a'
10269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10270 postinstall_cmds='base_file=`basename \${file}`~
10271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10272 dldir=$destdir/`dirname \$dlpath`~
10273 test -d \$dldir || mkdir -p \$dldir~
10274 $install_prog $dir/$dlname \$dldir/$dlname~
10275 chmod a+x \$dldir/$dlname~
10276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10280 dlpath=$dir/\$dldll~
10282 shlibpath_overrides_runpath=yes
10286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10292 # MinGW DLLs use traditional 'lib' prefix
10293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10296 # pw32 DLLs use 'pw' prefix rather than 'lib'
10297 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300 dynamic_linker='Win32 ld.exe'
10305 libname_spec='$name'
10306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10307 library_names_spec='${libname}.dll.lib'
10311 sys_lib_search_path_spec=
10314 for lt_path in $LIB
10317 # Let DOS variable expansion print the short 8.3 style file name.
10318 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10319 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10322 # Convert to MSYS style.
10323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10326 # Convert to unix form, then to dos form, then back to unix form
10327 # but this time dos style (no spaces!) so that the unix form looks
10328 # like /cygdrive/c/PROGRA~1:/cygdr...
10329 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10330 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10331 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10334 sys_lib_search_path_spec="$LIB"
10335 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10336 # It is most probably a Windows format PATH.
10337 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10341 # FIXME: find the short name or the path components, as spaces are
10342 # common. (e.g. "Program Files" -> "PROGRA~1")
10346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10347 postinstall_cmds='base_file=`basename \${file}`~
10348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10349 dldir=$destdir/`dirname \$dlpath`~
10350 test -d \$dldir || mkdir -p \$dldir~
10351 $install_prog $dir/$dlname \$dldir/$dlname'
10352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10353 dlpath=$dir/\$dldll~
10355 shlibpath_overrides_runpath=yes
10356 dynamic_linker='Win32 link.exe'
10360 # Assume MSVC wrapper
10361 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10362 dynamic_linker='Win32 ld.exe'
10365 # FIXME: first we should search . and the directory the executable is in
10369 darwin* | rhapsody*)
10370 dynamic_linker="$host_os dyld"
10371 version_type=darwin
10374 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10375 soname_spec='${libname}${release}${major}$shared_ext'
10376 shlibpath_overrides_runpath=yes
10377 shlibpath_var=DYLD_LIBRARY_PATH
10378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10385 version_type=linux # correct to gnu/linux during the next big refactor
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 shlibpath_var=LD_LIBRARY_PATH
10393 freebsd* | dragonfly*)
10394 # DragonFly does not have aout. When/if they implement a new
10395 # versioning mechanism, adjust this.
10396 if test -x /usr/bin/objformat; then
10397 objformat=`/usr/bin/objformat`
10400 freebsd[23].*) objformat=aout ;;
10401 *) objformat=elf ;;
10404 version_type=freebsd-$objformat
10405 case $version_type in
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10416 shlibpath_var=LD_LIBRARY_PATH
10419 shlibpath_overrides_runpath=yes
10421 freebsd3.[01]* | freebsdelf3.[01]*)
10422 shlibpath_overrides_runpath=yes
10423 hardcode_into_libs=yes
10425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10427 shlibpath_overrides_runpath=no
10428 hardcode_into_libs=yes
10430 *) # from 4.6 on, and DragonFly
10431 shlibpath_overrides_runpath=yes
10432 hardcode_into_libs=yes
10438 version_type=linux # correct to gnu/linux during the next big refactor
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 shlibpath_overrides_runpath=no
10445 hardcode_into_libs=yes
10449 version_type=linux # correct to gnu/linux during the next big refactor
10452 dynamic_linker="$host_os runtime_loader"
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 shlibpath_var=LIBRARY_PATH
10456 shlibpath_overrides_runpath=yes
10457 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10458 hardcode_into_libs=yes
10461 hpux9* | hpux10* | hpux11*)
10462 # Give a soname corresponding to the major version so that dld.sl refuses to
10463 # link against other versions.
10470 hardcode_into_libs=yes
10471 dynamic_linker="$host_os dld.so"
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 if test "X$HPUX_IA64_MODE" = X32; then
10477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10485 hardcode_into_libs=yes
10486 dynamic_linker="$host_os dld.sl"
10487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10496 dynamic_linker="$host_os dld.sl"
10497 shlibpath_var=SHLIB_PATH
10498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10503 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10504 postinstall_cmds='chmod 555 $lib'
10505 # or fails outright, so override atomically:
10506 install_override_mode=555
10510 version_type=linux # correct to gnu/linux during the next big refactor
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=no
10518 hardcode_into_libs=yes
10521 irix5* | irix6* | nonstopux*)
10523 nonstopux*) version_type=nonstopux ;;
10525 if test "$lt_cv_prog_gnu_ld" = yes; then
10526 version_type=linux # correct to gnu/linux during the next big refactor
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10536 irix5* | nonstopux*)
10537 libsuff= shlibsuff=
10540 case $LD in # libtool.m4 will add one of these switches to LD
10541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10542 libsuff= shlibsuff= libmagic=32-bit;;
10543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10544 libsuff=32 shlibsuff=N32 libmagic=N32;;
10545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10547 *) libsuff= shlibsuff= libmagic=never-match;;
10551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10552 shlibpath_overrides_runpath=no
10553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10555 hardcode_into_libs=yes
10558 # No shared lib support for Linux oldld, aout, or coff.
10559 linux*oldld* | linux*aout* | linux*coff*)
10563 # This must be glibc/ELF.
10564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10565 version_type=linux # correct to gnu/linux during the next big refactor
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=no
10574 # Some binutils ld are patched to set DT_RUNPATH
10575 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10576 $as_echo_n "(cached) " >&6
10578 lt_cv_shlibpath_overrides_runpath=no
10579 save_LDFLAGS=$LDFLAGS
10580 save_libdir=$libdir
10581 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10582 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10594 if ac_fn_c_try_link "$LINENO"; then :
10595 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10596 lt_cv_shlibpath_overrides_runpath=yes
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LDFLAGS=$save_LDFLAGS
10602 libdir=$save_libdir
10606 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10608 # This implies no fast_install, which is unacceptable.
10609 # Some rework will be needed to allow for fast_install
10610 # before this can be enabled.
10611 hardcode_into_libs=yes
10613 # Append ld.so.conf contents to the search path
10614 if test -f /etc/ld.so.conf; then
10615 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' ' '`
10616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10619 # We used to test for /lib/ld.so.1 and disable shared libraries on
10620 # powerpc, because MkLinux only supported shared libraries with the
10621 # GNU dynamic linker. Since this was broken with cross compilers,
10622 # most powerpc-linux boxes support dynamic linking these days and
10623 # people can always --disable-shared, the test was removed, and we
10624 # assume the GNU/Linux dynamic linker is in use.
10625 dynamic_linker='GNU/Linux ld.so'
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=no
10636 hardcode_into_libs=yes
10637 dynamic_linker='NetBSD ld.elf_so'
10644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10647 dynamic_linker='NetBSD (a.out) ld.so'
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 dynamic_linker='NetBSD ld.elf_so'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 shlibpath_overrides_runpath=yes
10655 hardcode_into_libs=yes
10659 version_type=linux # correct to gnu/linux during the next big refactor
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=yes
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10674 dynamic_linker='ldqnx.so'
10679 sys_lib_dlsearch_path_spec="/usr/lib"
10681 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10683 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10684 *) need_version=no ;;
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10691 openbsd2.[89] | openbsd2.[89].*)
10692 shlibpath_overrides_runpath=no
10695 shlibpath_overrides_runpath=yes
10699 shlibpath_overrides_runpath=yes
10704 libname_spec='$name'
10707 library_names_spec='$libname${shared_ext} $libname.a'
10708 dynamic_linker='OS/2 ld.exe'
10709 shlibpath_var=LIBPATH
10712 osf3* | osf4* | osf5*)
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10720 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10728 version_type=linux # correct to gnu/linux during the next big refactor
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 shlibpath_overrides_runpath=yes
10735 hardcode_into_libs=yes
10736 # ldd complains unless libraries are executable
10737 postinstall_cmds='chmod +x $lib'
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=yes
10746 if test "$with_gnu_ld" = yes; then
10753 version_type=linux # correct to gnu/linux during the next big refactor
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 case $host_vendor in
10759 shlibpath_overrides_runpath=no
10761 runpath_var=LD_RUN_PATH
10769 shlibpath_overrides_runpath=no
10770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10776 if test -d /usr/nec ;then
10777 version_type=linux # correct to gnu/linux during the next big refactor
10778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10779 soname_spec='$libname${shared_ext}.$major'
10780 shlibpath_var=LD_LIBRARY_PATH
10784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10785 version_type=freebsd-elf
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=yes
10792 hardcode_into_libs=yes
10793 if test "$with_gnu_ld" = yes; then
10794 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10796 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10799 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10803 sys_lib_dlsearch_path_spec='/usr/lib'
10807 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10808 version_type=linux # correct to gnu/linux during the next big refactor
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10818 version_type=linux # correct to gnu/linux during the next big refactor
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 shlibpath_var=LD_LIBRARY_PATH
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10829 $as_echo "$dynamic_linker" >&6; }
10830 test "$dynamic_linker" = no && can_build_shared=no
10832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10833 if test "$GCC" = yes; then
10834 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10837 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10838 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10840 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10841 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10936 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10938 if test -n "$hardcode_libdir_flag_spec" ||
10939 test -n "$runpath_var" ||
10940 test "X$hardcode_automatic" = "Xyes" ; then
10942 # We can hardcode non-existent directories.
10943 if test "$hardcode_direct" != no &&
10944 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10945 # have to relink, otherwise we might link with an installed library
10946 # when we should be linking with a yet-to-be-installed one
10947 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10948 test "$hardcode_minus_L" != no; then
10949 # Linking always hardcodes the temporary library directory.
10950 hardcode_action=relink
10952 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10953 hardcode_action=immediate
10956 # We cannot hardcode anything, or else we can only hardcode existing
10958 hardcode_action=unsupported
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10961 $as_echo "$hardcode_action" >&6; }
10963 if test "$hardcode_action" = relink ||
10964 test "$inherit_rpath" = yes; then
10965 # Fast installation is not supported
10966 enable_fast_install=no
10967 elif test "$shlibpath_overrides_runpath" = yes ||
10968 test "$enable_shared" = no; then
10969 # Fast installation is not necessary
10970 enable_fast_install=needless
10978 if test "x$enable_dlopen" != xyes; then
10979 enable_dlopen=unknown
10980 enable_dlopen_self=unknown
10981 enable_dlopen_self_static=unknown
10988 lt_cv_dlopen="load_add_on"
10990 lt_cv_dlopen_self=yes
10993 mingw* | pw32* | cegcc*)
10994 lt_cv_dlopen="LoadLibrary"
10999 lt_cv_dlopen="dlopen"
11004 # if libdl is installed we need to link against it
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11006 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11007 if ${ac_cv_lib_dl_dlopen+:} false; then :
11008 $as_echo_n "(cached) " >&6
11010 ac_check_lib_save_LIBS=$LIBS
11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11015 /* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
11030 if ac_fn_c_try_link "$LINENO"; then :
11031 ac_cv_lib_dl_dlopen=yes
11033 ac_cv_lib_dl_dlopen=no
11035 rm -f core conftest.err conftest.$ac_objext \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11040 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11041 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11045 lt_cv_dlopen="dyld"
11047 lt_cv_dlopen_self=yes
11054 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11055 if test "x$ac_cv_func_shl_load" = xyes; then :
11056 lt_cv_dlopen="shl_load"
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11059 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11060 if ${ac_cv_lib_dld_shl_load+:} false; then :
11061 $as_echo_n "(cached) " >&6
11063 ac_check_lib_save_LIBS=$LIBS
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11068 /* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
11078 return shl_load ();
11083 if ac_fn_c_try_link "$LINENO"; then :
11084 ac_cv_lib_dld_shl_load=yes
11086 ac_cv_lib_dld_shl_load=no
11088 rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11093 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11094 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11095 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11097 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11098 if test "x$ac_cv_func_dlopen" = xyes; then :
11099 lt_cv_dlopen="dlopen"
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11102 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11103 if ${ac_cv_lib_dl_dlopen+:} false; then :
11104 $as_echo_n "(cached) " >&6
11106 ac_check_lib_save_LIBS=$LIBS
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11111 /* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
11126 if ac_fn_c_try_link "$LINENO"; then :
11127 ac_cv_lib_dl_dlopen=yes
11129 ac_cv_lib_dl_dlopen=no
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11136 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11137 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11138 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11141 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11142 if ${ac_cv_lib_svld_dlopen+:} false; then :
11143 $as_echo_n "(cached) " >&6
11145 ac_check_lib_save_LIBS=$LIBS
11146 LIBS="-lsvld $LIBS"
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 /* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11165 if ac_fn_c_try_link "$LINENO"; then :
11166 ac_cv_lib_svld_dlopen=yes
11168 ac_cv_lib_svld_dlopen=no
11170 rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
11172 LIBS=$ac_check_lib_save_LIBS
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11175 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11176 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11180 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11181 if ${ac_cv_lib_dld_dld_link+:} false; then :
11182 $as_echo_n "(cached) " >&6
11184 ac_check_lib_save_LIBS=$LIBS
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11189 /* Override any GCC internal prototype to avoid an error.
11190 Use char because int might match the return type of a GCC
11191 builtin and then its argument prototype would still apply. */
11199 return dld_link ();
11204 if ac_fn_c_try_link "$LINENO"; then :
11205 ac_cv_lib_dld_dld_link=yes
11207 ac_cv_lib_dld_dld_link=no
11209 rm -f core conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_lib_save_LIBS
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11214 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11215 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11216 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11237 if test "x$lt_cv_dlopen" != xno; then
11243 case $lt_cv_dlopen in
11245 save_CPPFLAGS="$CPPFLAGS"
11246 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11248 save_LDFLAGS="$LDFLAGS"
11249 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11252 LIBS="$lt_cv_dlopen_libs $LIBS"
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11255 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11256 if ${lt_cv_dlopen_self+:} false; then :
11257 $as_echo_n "(cached) " >&6
11259 if test "$cross_compiling" = yes; then :
11260 lt_cv_dlopen_self=cross
11262 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11263 lt_status=$lt_dlunknown
11264 cat > conftest.$ac_ext <<_LT_EOF
11265 #line $LINENO "configure"
11266 #include "confdefs.h"
11275 # define LT_DLGLOBAL RTLD_GLOBAL
11278 # define LT_DLGLOBAL DL_GLOBAL
11280 # define LT_DLGLOBAL 0
11284 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11285 find out it does not work in some platform. */
11286 #ifndef LT_DLLAZY_OR_NOW
11288 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11291 # define LT_DLLAZY_OR_NOW DL_LAZY
11294 # define LT_DLLAZY_OR_NOW RTLD_NOW
11297 # define LT_DLLAZY_OR_NOW DL_NOW
11299 # define LT_DLLAZY_OR_NOW 0
11306 /* When -fvisbility=hidden is used, assume the code has been annotated
11307 correspondingly for the symbols needed. */
11308 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11309 int fnord () __attribute__((visibility("default")));
11312 int fnord () { return 42; }
11315 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11316 int status = $lt_dlunknown;
11320 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11323 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11324 else puts (dlerror ());
11326 /* dlclose (self); */
11334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11335 (eval $ac_link) 2>&5
11337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11338 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11339 (./conftest; exit; ) >&5 2>/dev/null
11341 case x$lt_status in
11342 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11343 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11344 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11347 # compilation failed
11348 lt_cv_dlopen_self=no
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11356 $as_echo "$lt_cv_dlopen_self" >&6; }
11358 if test "x$lt_cv_dlopen_self" = xyes; then
11359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11361 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11362 if ${lt_cv_dlopen_self_static+:} false; then :
11363 $as_echo_n "(cached) " >&6
11365 if test "$cross_compiling" = yes; then :
11366 lt_cv_dlopen_self_static=cross
11368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11369 lt_status=$lt_dlunknown
11370 cat > conftest.$ac_ext <<_LT_EOF
11371 #line $LINENO "configure"
11372 #include "confdefs.h"
11381 # define LT_DLGLOBAL RTLD_GLOBAL
11384 # define LT_DLGLOBAL DL_GLOBAL
11386 # define LT_DLGLOBAL 0
11390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11391 find out it does not work in some platform. */
11392 #ifndef LT_DLLAZY_OR_NOW
11394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11397 # define LT_DLLAZY_OR_NOW DL_LAZY
11400 # define LT_DLLAZY_OR_NOW RTLD_NOW
11403 # define LT_DLLAZY_OR_NOW DL_NOW
11405 # define LT_DLLAZY_OR_NOW 0
11412 /* When -fvisbility=hidden is used, assume the code has been annotated
11413 correspondingly for the symbols needed. */
11414 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11415 int fnord () __attribute__((visibility("default")));
11418 int fnord () { return 42; }
11421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11422 int status = $lt_dlunknown;
11426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11429 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11430 else puts (dlerror ());
11432 /* dlclose (self); */
11440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11441 (eval $ac_link) 2>&5
11443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11444 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11445 (./conftest; exit; ) >&5 2>/dev/null
11447 case x$lt_status in
11448 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11449 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11450 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11453 # compilation failed
11454 lt_cv_dlopen_self_static=no
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11462 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11465 CPPFLAGS="$save_CPPFLAGS"
11466 LDFLAGS="$save_LDFLAGS"
11471 case $lt_cv_dlopen_self in
11472 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11473 *) enable_dlopen_self=unknown ;;
11476 case $lt_cv_dlopen_self_static in
11477 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11478 *) enable_dlopen_self_static=unknown ;;
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11501 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11502 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11503 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11504 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11506 $as_echo "yes" >&6; }
11508 # FIXME - insert some real tests, host_os isn't really good enough
11511 if test -n "$STRIP" ; then
11512 striplib="$STRIP -x"
11513 old_striplib="$STRIP -S"
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11515 $as_echo "yes" >&6; }
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11539 # Report which library types will actually be built
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11541 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11543 $as_echo "$can_build_shared" >&6; }
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11546 $as_echo_n "checking whether to build shared libraries... " >&6; }
11547 test "$can_build_shared" = "no" && enable_shared=no
11549 # On AIX, shared libraries and static libraries use the same namespace, and
11550 # are all built from PIC.
11553 test "$enable_shared" = yes && enable_static=no
11554 if test -n "$RANLIB"; then
11555 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11556 postinstall_cmds='$RANLIB $lib'
11561 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11562 test "$enable_shared" = yes && enable_static=no
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11567 $as_echo "$enable_shared" >&6; }
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11570 $as_echo_n "checking whether to build static libraries... " >&6; }
11571 # Make sure either enable_shared or enable_static is yes.
11572 test "$enable_shared" = yes || enable_static=yes
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11574 $as_echo "$enable_static" >&6; }
11581 ac_cpp='$CPP $CPPFLAGS'
11582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11602 ac_config_commands="$ac_config_commands libtool"
11607 # Only expand once:
11611 if test "x$CC" != xcc; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11613 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11616 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11618 set dummy $CC; ac_cc=`$as_echo "$2" |
11619 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11620 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11621 $as_echo_n "(cached) " >&6
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11634 # Make sure it works both with $CC and with simple cc.
11635 # We do the test twice because some compilers refuse to overwrite an
11636 # existing .o file with -o, though they will create one.
11637 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11639 if { { case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11644 $as_echo "$ac_try_echo"; } >&5
11645 (eval "$ac_try") 2>&5
11647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11648 test $ac_status = 0; } &&
11649 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11654 $as_echo "$ac_try_echo"; } >&5
11655 (eval "$ac_try") 2>&5
11657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658 test $ac_status = 0; };
11660 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11661 if test "x$CC" != xcc; then
11662 # Test first that cc exists at all.
11663 if { ac_try='cc -c conftest.$ac_ext >&5'
11664 { { case "(($ac_try" in
11665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666 *) ac_try_echo=$ac_try;;
11668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11669 $as_echo "$ac_try_echo"; } >&5
11670 (eval "$ac_try") 2>&5
11672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11673 test $ac_status = 0; }; }; then
11674 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11676 if { { case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11681 $as_echo "$ac_try_echo"; } >&5
11682 (eval "$ac_try") 2>&5
11684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685 test $ac_status = 0; } &&
11686 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11691 $as_echo "$ac_try_echo"; } >&5
11692 (eval "$ac_try") 2>&5
11694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695 test $ac_status = 0; };
11700 # cc exists but doesn't like -o.
11701 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11706 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11708 rm -f core conftest*
11711 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11713 $as_echo "yes" >&6; }
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11718 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11722 # FIXME: we rely on the cache variable name because
11723 # there is no other way.
11725 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11726 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11727 if test "$am_t" != yes; then
11728 # Losing compiler, so override with the script.
11729 # FIXME: It is wrong to rewrite CC.
11730 # But if we don't then we get into trouble of one sort or another.
11731 # A longer-term fix would be to have automake use am__CC in this case,
11732 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11733 CC="$am_aux_dir/compile $CC"
11737 enable_win32_dll=yes
11740 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11741 if test -n "$ac_tool_prefix"; then
11742 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11743 set dummy ${ac_tool_prefix}as; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if ${ac_cv_prog_AS+:} false; then :
11747 $as_echo_n "(cached) " >&6
11749 if test -n "$AS"; then
11750 ac_cv_prog_AS="$AS" # Let the user override the test.
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11759 ac_cv_prog_AS="${ac_tool_prefix}as"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 if test -n "$AS"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11772 $as_echo "$AS" >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11780 if test -z "$ac_cv_prog_AS"; then
11782 # Extract the first word of "as", so it can be a program name with args.
11783 set dummy as; ac_word=$2
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11787 $as_echo_n "(cached) " >&6
11789 if test -n "$ac_ct_AS"; then
11790 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11796 test -z "$as_dir" && as_dir=.
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11799 ac_cv_prog_ac_ct_AS="as"
11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11810 if test -n "$ac_ct_AS"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11812 $as_echo "$ac_ct_AS" >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11818 if test "x$ac_ct_AS" = x; then
11821 case $cross_compiling:$ac_tool_warned in
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11825 ac_tool_warned=yes ;;
11830 AS="$ac_cv_prog_AS"
11833 if test -n "$ac_tool_prefix"; then
11834 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11835 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if ${ac_cv_prog_DLLTOOL+:} false; then :
11839 $as_echo_n "(cached) " >&6
11841 if test -n "$DLLTOOL"; then
11842 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11861 DLLTOOL=$ac_cv_prog_DLLTOOL
11862 if test -n "$DLLTOOL"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11864 $as_echo "$DLLTOOL" >&6; }
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11872 if test -z "$ac_cv_prog_DLLTOOL"; then
11873 ac_ct_DLLTOOL=$DLLTOOL
11874 # Extract the first word of "dlltool", so it can be a program name with args.
11875 set dummy dlltool; ac_word=$2
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877 $as_echo_n "checking for $ac_word... " >&6; }
11878 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11879 $as_echo_n "(cached) " >&6
11881 if test -n "$ac_ct_DLLTOOL"; then
11882 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885 for as_dir in $PATH
11888 test -z "$as_dir" && as_dir=.
11889 for ac_exec_ext in '' $ac_executable_extensions; do
11890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11891 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11902 if test -n "$ac_ct_DLLTOOL"; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11904 $as_echo "$ac_ct_DLLTOOL" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11910 if test "x$ac_ct_DLLTOOL" = x; then
11913 case $cross_compiling:$ac_tool_warned in
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11917 ac_tool_warned=yes ;;
11919 DLLTOOL=$ac_ct_DLLTOOL
11922 DLLTOOL="$ac_cv_prog_DLLTOOL"
11925 if test -n "$ac_tool_prefix"; then
11926 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11927 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if ${ac_cv_prog_OBJDUMP+:} false; then :
11931 $as_echo_n "(cached) " >&6
11933 if test -n "$OBJDUMP"; then
11934 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11953 OBJDUMP=$ac_cv_prog_OBJDUMP
11954 if test -n "$OBJDUMP"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11956 $as_echo "$OBJDUMP" >&6; }
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11964 if test -z "$ac_cv_prog_OBJDUMP"; then
11965 ac_ct_OBJDUMP=$OBJDUMP
11966 # Extract the first word of "objdump", so it can be a program name with args.
11967 set dummy objdump; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11971 $as_echo_n "(cached) " >&6
11973 if test -n "$ac_ct_OBJDUMP"; then
11974 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11983 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11994 if test -n "$ac_ct_OBJDUMP"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11996 $as_echo "$ac_ct_OBJDUMP" >&6; }
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12002 if test "x$ac_ct_OBJDUMP" = x; then
12005 case $cross_compiling:$ac_tool_warned in
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12009 ac_tool_warned=yes ;;
12011 OBJDUMP=$ac_ct_OBJDUMP
12014 OBJDUMP="$ac_cv_prog_OBJDUMP"
12020 test -z "$AS" && AS=as
12026 test -z "$DLLTOOL" && DLLTOOL=dlltool
12029 test -z "$OBJDUMP" && OBJDUMP=objdump
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12037 $as_echo_n "checking for ANSI C header files... " >&6; }
12038 if ${ac_cv_header_stdc+:} false; then :
12039 $as_echo_n "(cached) " >&6
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043 #include <stdlib.h>
12044 #include <stdarg.h>
12045 #include <string.h>
12056 if ac_fn_c_try_compile "$LINENO"; then :
12057 ac_cv_header_stdc=yes
12059 ac_cv_header_stdc=no
12061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 if test $ac_cv_header_stdc = yes; then
12064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 #include <string.h>
12070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12071 $EGREP "memchr" >/dev/null 2>&1; then :
12074 ac_cv_header_stdc=no
12080 if test $ac_cv_header_stdc = yes; then
12081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #include <stdlib.h>
12087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12088 $EGREP "free" >/dev/null 2>&1; then :
12091 ac_cv_header_stdc=no
12097 if test $ac_cv_header_stdc = yes; then
12098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12099 if test "$cross_compiling" = yes; then :
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12105 #include <stdlib.h>
12106 #if ((' ' & 0x0FF) == 0x020)
12107 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12108 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12110 # define ISLOWER(c) \
12111 (('a' <= (c) && (c) <= 'i') \
12112 || ('j' <= (c) && (c) <= 'r') \
12113 || ('s' <= (c) && (c) <= 'z'))
12114 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12117 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12122 for (i = 0; i < 256; i++)
12123 if (XOR (islower (i), ISLOWER (i))
12124 || toupper (i) != TOUPPER (i))
12129 if ac_fn_c_try_run "$LINENO"; then :
12132 ac_cv_header_stdc=no
12134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12135 conftest.$ac_objext conftest.beam conftest.$ac_ext
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12141 $as_echo "$ac_cv_header_stdc" >&6; }
12142 if test $ac_cv_header_stdc = yes; then
12144 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12148 for ac_header in unistd.h time.h string.h alloca.h stdio.h stdarg.h math.h
12150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12153 cat >>confdefs.h <<_ACEOF
12154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
12163 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
12164 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
12165 $as_echo_n "(cached) " >&6
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 #include <sys/types.h>
12173 return makedev(0, 0);
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_header_sys_types_h_makedev=yes
12181 ac_cv_header_sys_types_h_makedev=no
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
12188 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
12190 if test $ac_cv_header_sys_types_h_makedev = no; then
12191 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12192 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
12194 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
12200 if test $ac_cv_header_sys_mkdev_h = no; then
12201 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12202 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
12204 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
12212 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12213 if test "x$ac_cv_type_size_t" = xyes; then :
12217 cat >>confdefs.h <<_ACEOF
12218 #define size_t unsigned int
12223 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12224 # for constant arguments. Useless!
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12226 $as_echo_n "checking for working alloca.h... " >&6; }
12227 if ${ac_cv_working_alloca_h+:} false; then :
12228 $as_echo_n "(cached) " >&6
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232 #include <alloca.h>
12236 char *p = (char *) alloca (2 * sizeof (int));
12242 if ac_fn_c_try_link "$LINENO"; then :
12243 ac_cv_working_alloca_h=yes
12245 ac_cv_working_alloca_h=no
12247 rm -f core conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12251 $as_echo "$ac_cv_working_alloca_h" >&6; }
12252 if test $ac_cv_working_alloca_h = yes; then
12254 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12259 $as_echo_n "checking for alloca... " >&6; }
12260 if ${ac_cv_func_alloca_works+:} false; then :
12261 $as_echo_n "(cached) " >&6
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12266 # define alloca __builtin_alloca
12269 # include <malloc.h>
12270 # define alloca _alloca
12272 # ifdef HAVE_ALLOCA_H
12273 # include <alloca.h>
12278 # ifndef alloca /* predefined by HP cc +Olibcalls */
12279 void *alloca (size_t);
12289 char *p = (char *) alloca (1);
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_func_alloca_works=yes
12298 ac_cv_func_alloca_works=no
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12304 $as_echo "$ac_cv_func_alloca_works" >&6; }
12306 if test $ac_cv_func_alloca_works = yes; then
12308 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12311 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12312 # that cause trouble. Some versions do not even contain alloca or
12313 # contain a buggy version. If you still want to use their alloca,
12314 # use ar to extract alloca.o from them instead of compiling alloca.c.
12316 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12318 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12322 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12323 if ${ac_cv_os_cray+:} false; then :
12324 $as_echo_n "(cached) " >&6
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328 #if defined CRAY && ! defined CRAY2
12335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12336 $EGREP "webecray" >/dev/null 2>&1; then :
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12345 $as_echo "$ac_cv_os_cray" >&6; }
12346 if test $ac_cv_os_cray = yes; then
12347 for ac_func in _getb67 GETB67 getb67; do
12348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12350 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12352 cat >>confdefs.h <<_ACEOF
12353 #define CRAY_STACKSEG_END $ac_func
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12363 $as_echo_n "checking stack direction for C alloca... " >&6; }
12364 if ${ac_cv_c_stack_direction+:} false; then :
12365 $as_echo_n "(cached) " >&6
12367 if test "$cross_compiling" = yes; then :
12368 ac_cv_c_stack_direction=0
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372 $ac_includes_default
12374 find_stack_direction (int *addr, int depth)
12376 int dir, dummy = 0;
12379 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12380 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12381 return dir + dummy;
12385 main (int argc, char **argv)
12387 return find_stack_direction (0, argc + !argv + 20) < 0;
12390 if ac_fn_c_try_run "$LINENO"; then :
12391 ac_cv_c_stack_direction=1
12393 ac_cv_c_stack_direction=-1
12395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12396 conftest.$ac_objext conftest.beam conftest.$ac_ext
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12401 $as_echo "$ac_cv_c_stack_direction" >&6; }
12402 cat >>confdefs.h <<_ACEOF
12403 #define STACK_DIRECTION $ac_cv_c_stack_direction
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12410 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12411 if ${ac_cv_struct_tm+:} false; then :
12412 $as_echo_n "(cached) " >&6
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12416 #include <sys/types.h>
12423 int *p = &tm.tm_sec;
12429 if ac_fn_c_try_compile "$LINENO"; then :
12430 ac_cv_struct_tm=time.h
12432 ac_cv_struct_tm=sys/time.h
12434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12437 $as_echo "$ac_cv_struct_tm" >&6; }
12438 if test $ac_cv_struct_tm = sys/time.h; then
12440 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12444 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12445 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12452 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
12455 case " $LIBOBJS " in
12456 *" fileblocks.$ac_objext "* ) ;;
12457 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12464 ac_header_dirent=no
12465 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12466 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12468 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12469 if eval \${$as_ac_Header+:} false; then :
12470 $as_echo_n "(cached) " >&6
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474 #include <sys/types.h>
12486 if ac_fn_c_try_compile "$LINENO"; then :
12487 eval "$as_ac_Header=yes"
12489 eval "$as_ac_Header=no"
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493 eval ac_res=\$$as_ac_Header
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12495 $as_echo "$ac_res" >&6; }
12496 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12497 cat >>confdefs.h <<_ACEOF
12498 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12501 ac_header_dirent=$ac_hdr; break
12505 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12506 if test $ac_header_dirent = dirent.h; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12508 $as_echo_n "checking for library containing opendir... " >&6; }
12509 if ${ac_cv_search_opendir+:} false; then :
12510 $as_echo_n "(cached) " >&6
12512 ac_func_search_save_LIBS=$LIBS
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12516 /* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12531 for ac_lib in '' dir; do
12532 if test -z "$ac_lib"; then
12533 ac_res="none required"
12536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 ac_cv_search_opendir=$ac_res
12541 rm -f core conftest.err conftest.$ac_objext \
12543 if ${ac_cv_search_opendir+:} false; then :
12547 if ${ac_cv_search_opendir+:} false; then :
12550 ac_cv_search_opendir=no
12552 rm conftest.$ac_ext
12553 LIBS=$ac_func_search_save_LIBS
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12556 $as_echo "$ac_cv_search_opendir" >&6; }
12557 ac_res=$ac_cv_search_opendir
12558 if test "$ac_res" != no; then :
12559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12565 $as_echo_n "checking for library containing opendir... " >&6; }
12566 if ${ac_cv_search_opendir+:} false; then :
12567 $as_echo_n "(cached) " >&6
12569 ac_func_search_save_LIBS=$LIBS
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12573 /* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12588 for ac_lib in '' x; do
12589 if test -z "$ac_lib"; then
12590 ac_res="none required"
12593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12595 if ac_fn_c_try_link "$LINENO"; then :
12596 ac_cv_search_opendir=$ac_res
12598 rm -f core conftest.err conftest.$ac_objext \
12600 if ${ac_cv_search_opendir+:} false; then :
12604 if ${ac_cv_search_opendir+:} false; then :
12607 ac_cv_search_opendir=no
12609 rm conftest.$ac_ext
12610 LIBS=$ac_func_search_save_LIBS
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12613 $as_echo "$ac_cv_search_opendir" >&6; }
12614 ac_res=$ac_cv_search_opendir
12615 if test "$ac_res" != no; then :
12616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
12623 $as_echo_n "checking whether closedir returns void... " >&6; }
12624 if ${ac_cv_func_closedir_void+:} false; then :
12625 $as_echo_n "(cached) " >&6
12627 if test "$cross_compiling" = yes; then :
12628 ac_cv_func_closedir_void=yes
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632 $ac_includes_default
12633 #include <$ac_header_dirent>
12634 #ifndef __cplusplus
12641 return closedir (opendir (".")) != 0;
12646 if ac_fn_c_try_run "$LINENO"; then :
12647 ac_cv_func_closedir_void=no
12649 ac_cv_func_closedir_void=yes
12651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12652 conftest.$ac_objext conftest.beam conftest.$ac_ext
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
12657 $as_echo "$ac_cv_func_closedir_void" >&6; }
12658 if test $ac_cv_func_closedir_void = yes; then
12660 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
12672 TEST_UNICODE=-DTEST_UNICODE
12687 LIBOAUTH_CFLAGS="-Wall"
12688 LIBOAUTH_LDFLAGS="${LIBOAUTH_CFLAGS} -export-symbols-regex '^oauth_.*'"
12689 #LIBOAUTH_CFLAGS="${LIBOAUTH_CFLAGS} -g -posix -std=c99 -pedantic"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wl,--as-needed works" >&5
12692 $as_echo_n "checking if -Wl,--as-needed works... " >&6; }
12693 LDFLAGS_save=$LDFLAGS
12694 LDFLAGS="$LDFLAGS -Wl,--as-needed"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12706 if ac_fn_c_try_link "$LINENO"; then :
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12709 $as_echo "yes" >&6; }
12710 LIBOAUTH_LDFLAGS="$LIBOAUTH_LDFLAGS -Wl,--as-needed"
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12716 rm -f core conftest.err conftest.$ac_objext \
12717 conftest$ac_exeext conftest.$ac_ext
12718 LDFLAGS=$LDFLAGS_save
12727 # Check whether --enable-curl was given.
12728 if test "${enable_curl+set}" = set; then :
12729 enableval=$enable_curl;
12732 # Check whether --enable-libcurl was given.
12733 if test "${enable_libcurl+set}" = set; then :
12734 enableval=$enable_libcurl;
12737 # Check whether --enable-builtinhash was given.
12738 if test "${enable_builtinhash+set}" = set; then :
12739 enableval=$enable_builtinhash;
12742 # Check whether --enable-nss was given.
12743 if test "${enable_nss+set}" = set; then :
12744 enableval=$enable_nss;
12748 # Check whether --with-curltimeout was given.
12749 if test "${with_curltimeout+set}" = set; then :
12750 withval=$with_curltimeout;
12755 if test "${enable_curl}" != "no"; then
12756 # Extract the first word of "curl", so it can be a program name with args.
12757 set dummy curl; ac_word=$2
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759 $as_echo_n "checking for $ac_word... " >&6; }
12760 if ${ac_cv_path_CURLCMD+:} false; then :
12761 $as_echo_n "(cached) " >&6
12765 ac_cv_path_CURLCMD="$CURLCMD" # Let the user override the test with a path.
12768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 as_dummy="$PATH:/bin:/usr/bin:/usr/local/bin"
12770 for as_dir in $as_dummy
12773 test -z "$as_dir" && as_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12776 ac_cv_path_CURLCMD="$as_dir/$ac_word$ac_exec_ext"
12777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 test -z "$ac_cv_path_CURLCMD" && ac_cv_path_CURLCMD="no"
12788 CURLCMD=$ac_cv_path_CURLCMD
12789 if test -n "$CURLCMD"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLCMD" >&5
12791 $as_echo "$CURLCMD" >&6; }
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12798 if test "$CURLCMD" != "no"; then
12799 $as_echo "#define HAVE_SHELL_CURL 1" >>confdefs.h
12801 report_curl="shell command"
12812 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12813 if test -n "$ac_tool_prefix"; then
12814 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12815 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817 $as_echo_n "checking for $ac_word... " >&6; }
12818 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12819 $as_echo_n "(cached) " >&6
12821 case $PKG_CONFIG in
12823 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12845 if test -n "$PKG_CONFIG"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12847 $as_echo "$PKG_CONFIG" >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12855 if test -z "$ac_cv_path_PKG_CONFIG"; then
12856 ac_pt_PKG_CONFIG=$PKG_CONFIG
12857 # Extract the first word of "pkg-config", so it can be a program name with args.
12858 set dummy pkg-config; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12862 $as_echo_n "(cached) " >&6
12864 case $ac_pt_PKG_CONFIG in
12866 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12876 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12888 if test -n "$ac_pt_PKG_CONFIG"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12890 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12896 if test "x$ac_pt_PKG_CONFIG" = x; then
12899 case $cross_compiling:$ac_tool_warned in
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12903 ac_tool_warned=yes ;;
12905 PKG_CONFIG=$ac_pt_PKG_CONFIG
12908 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12912 if test -n "$PKG_CONFIG"; then
12913 _pkg_min_version=0.9.0
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12915 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12916 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12918 $as_echo "yes" >&6; }
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12925 if test "${enable_libcurl}" != "no"; then :
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5
12930 $as_echo_n "checking for CURL... " >&6; }
12932 if test -n "$CURL_CFLAGS"; then
12933 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
12934 elif test -n "$PKG_CONFIG"; then
12935 if test -n "$PKG_CONFIG" && \
12936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
12937 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
12939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12940 test $ac_status = 0; }; then
12941 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
12942 test "x$?" != "x0" && pkg_failed=yes
12949 if test -n "$CURL_LIBS"; then
12950 pkg_cv_CURL_LIBS="$CURL_LIBS"
12951 elif test -n "$PKG_CONFIG"; then
12952 if test -n "$PKG_CONFIG" && \
12953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
12954 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
12956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12957 test $ac_status = 0; }; then
12958 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
12959 test "x$?" != "x0" && pkg_failed=yes
12969 if test $pkg_failed = yes; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12974 _pkg_short_errors_supported=yes
12976 _pkg_short_errors_supported=no
12978 if test $_pkg_short_errors_supported = yes; then
12979 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1`
12981 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1`
12983 # Put the nasty error message in config.log where it belongs
12984 echo "$CURL_PKG_ERRORS" >&5
12987 for ac_header in curl/curl.h
12989 ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
12990 if test "x$ac_cv_header_curl_curl_h" = xyes; then :
12991 cat >>confdefs.h <<_ACEOF
12992 #define HAVE_CURL_CURL_H 1
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
13000 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
13001 if ${ac_cv_lib_curl_curl_global_init+:} false; then :
13002 $as_echo_n "(cached) " >&6
13004 ac_check_lib_save_LIBS=$LIBS
13005 LIBS="-lcurl $LIBS"
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13009 /* Override any GCC internal prototype to avoid an error.
13010 Use char because int might match the return type of a GCC
13011 builtin and then its argument prototype would still apply. */
13015 char curl_global_init ();
13019 return curl_global_init ();
13024 if ac_fn_c_try_link "$LINENO"; then :
13025 ac_cv_lib_curl_curl_global_init=yes
13027 ac_cv_lib_curl_curl_global_init=no
13029 rm -f core conftest.err conftest.$ac_objext \
13030 conftest$ac_exeext conftest.$ac_ext
13031 LIBS=$ac_check_lib_save_LIBS
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
13034 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
13035 if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
13036 $as_echo "#define HAVE_CURL 1" >>confdefs.h
13037 HAVE_CURL=1 PC_REQ="$PC_REQ libcurl" PC_LIB="$PC_LIB -lcurl" report_curl="libcurl"
13043 elif test $pkg_failed = untried; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13047 for ac_header in curl/curl.h
13049 ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
13050 if test "x$ac_cv_header_curl_curl_h" = xyes; then :
13051 cat >>confdefs.h <<_ACEOF
13052 #define HAVE_CURL_CURL_H 1
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
13060 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
13061 if ${ac_cv_lib_curl_curl_global_init+:} false; then :
13062 $as_echo_n "(cached) " >&6
13064 ac_check_lib_save_LIBS=$LIBS
13065 LIBS="-lcurl $LIBS"
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13069 /* Override any GCC internal prototype to avoid an error.
13070 Use char because int might match the return type of a GCC
13071 builtin and then its argument prototype would still apply. */
13075 char curl_global_init ();
13079 return curl_global_init ();
13084 if ac_fn_c_try_link "$LINENO"; then :
13085 ac_cv_lib_curl_curl_global_init=yes
13087 ac_cv_lib_curl_curl_global_init=no
13089 rm -f core conftest.err conftest.$ac_objext \
13090 conftest$ac_exeext conftest.$ac_ext
13091 LIBS=$ac_check_lib_save_LIBS
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
13094 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
13095 if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
13096 $as_echo "#define HAVE_CURL 1" >>confdefs.h
13097 HAVE_CURL=1 PC_REQ="$PC_REQ libcurl" PC_LIB="$PC_LIB -lcurl" report_curl="libcurl"
13104 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
13105 CURL_LIBS=$pkg_cv_CURL_LIBS
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107 $as_echo "yes" >&6; }
13108 $as_echo "#define HAVE_CURL 1" >>confdefs.h
13109 HAVE_CURL=1 PC_REQ="$PC_REQ libcurl" PC_LIB="$PC_LIB ${CURL_LIBS}" report_curl="libcurl"
13114 report_curltimeout="-"
13115 if test -n "${with_curltimeout}"; then
13116 if test "${with_curltimeout}" == "yes"; then
13117 $as_echo "#define OAUTH_CURL_TIMEOUT 60" >>confdefs.h
13119 report_curltimeout="60"
13121 if test "${with_curltimeout}" -gt 0; then
13122 cat >>confdefs.h <<_ACEOF
13123 #define OAUTH_CURL_TIMEOUT ${with_curltimeout}
13126 report_curltimeout=${with_curltimeout}
13134 if test "${enable_builtinhash}" == "yes"; then :
13136 $as_echo "#define USE_BUILTIN_HASH 1" >>confdefs.h
13140 report_hash="built-in HMAC/SHA1 - no RSA"
13141 { $as_echo "$as_me:${as_lineno-$LINENO}:
13142 using built-in HMAC/SHA1 hash algorithm without RSA/PK11 support.
13143 This option is not recommended for general use and should only
13144 be used on small devices (AVR, mircocontrollers) where neither
13145 NSS nor OpenSSL is available.
13148 using built-in HMAC/SHA1 hash algorithm without RSA/PK11 support.
13149 This option is not recommended for general use and should only
13150 be used on small devices (AVR, mircocontrollers) where neither
13151 NSS nor OpenSSL is available.
13156 if test "${enable_nss}" == "yes"; then :
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
13161 $as_echo_n "checking for NSS... " >&6; }
13163 if test -n "$NSS_CFLAGS"; then
13164 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
13165 elif test -n "$PKG_CONFIG"; then
13166 if test -n "$PKG_CONFIG" && \
13167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
13168 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
13170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171 test $ac_status = 0; }; then
13172 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
13173 test "x$?" != "x0" && pkg_failed=yes
13180 if test -n "$NSS_LIBS"; then
13181 pkg_cv_NSS_LIBS="$NSS_LIBS"
13182 elif test -n "$PKG_CONFIG"; then
13183 if test -n "$PKG_CONFIG" && \
13184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
13185 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }; then
13189 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
13190 test "x$?" != "x0" && pkg_failed=yes
13200 if test $pkg_failed = yes; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13205 _pkg_short_errors_supported=yes
13207 _pkg_short_errors_supported=no
13209 if test $_pkg_short_errors_supported = yes; then
13210 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
13212 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
13214 # Put the nasty error message in config.log where it belongs
13215 echo "$NSS_PKG_ERRORS" >&5
13217 as_fn_error $? "Package requirements (nss) were not met:
13221 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13222 installed software in a non-standard prefix.
13224 Alternatively, you may set the environment variables NSS_CFLAGS
13225 and NSS_LIBS to avoid the need to call pkg-config.
13226 See the pkg-config man page for more details." "$LINENO" 5
13227 elif test $pkg_failed = untried; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13232 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13233 is in your PATH or set the PKG_CONFIG environment variable to the full
13234 path to pkg-config.
13236 Alternatively, you may set the environment variables NSS_CFLAGS
13237 and NSS_LIBS to avoid the need to call pkg-config.
13238 See the pkg-config man page for more details.
13240 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13241 See \`config.log' for more details" "$LINENO" 5; }
13243 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
13244 NSS_LIBS=$pkg_cv_NSS_LIBS
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13246 $as_echo "yes" >&6; }
13247 $as_echo "#define USE_NSS 1" >>confdefs.h
13248 USE_NSS=1 PC_REQ="$PC_REQ nss"
13250 HASH_LIBS=${NSS_LIBS}
13251 HASH_CFLAGS=${NSS_CFLAGS}
13256 for ac_header in openssl/hmac.h
13258 ac_fn_c_check_header_mongrel "$LINENO" "openssl/hmac.h" "ac_cv_header_openssl_hmac_h" "$ac_includes_default"
13259 if test "x$ac_cv_header_openssl_hmac_h" = xyes; then :
13260 cat >>confdefs.h <<_ACEOF
13261 #define HAVE_OPENSSL_HMAC_H 1
13268 if test -z "${HASH_LIBS}"; then
13269 HASH_LIBS="-lcrypto"
13271 if test -z "${HASH_CFLAGS}"; then
13274 report_hash="OpenSSL"
13275 PC_LIB="$PC_LIB ${HASH_LIBS}"
13276 PC_REQ="$PC_REQ libcrypto"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}:
13279 NOTE: OpenSSL is not compatible with GPL applications.
13280 Even if only linked with GPL code you are not allowed to distibute your app.
13281 However liboauth provides an exeption (to the GPL) to circumvent this issue
13282 (see README, src/hash.c). Nevertheless, double-check your licensing.
13284 liboauth itself is licensed under MIT license and comatible with the GPL.
13286 Either way, you are probably better off using NSS (configure --enable-nss);
13287 future versions of liboauth will default to the Mozilla NSS.
13289 see http://people.gnome.org/~markmc/openssl-and-the-gpl.html
13293 NOTE: OpenSSL is not compatible with GPL applications.
13294 Even if only linked with GPL code you are not allowed to distibute your app.
13295 However liboauth provides an exeption (to the GPL) to circumvent this issue
13296 (see README, src/hash.c). Nevertheless, double-check your licensing.
13298 liboauth itself is licensed under MIT license and comatible with the GPL.
13300 Either way, you are probably better off using NSS (configure --enable-nss);
13301 future versions of liboauth will default to the Mozilla NSS.
13303 see http://people.gnome.org/~markmc/openssl-and-the-gpl.html
13314 # Extract the first word of "doxygen", so it can be a program name with args.
13315 set dummy doxygen; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_path_DOXYGEN+:} false; then :
13319 $as_echo_n "(cached) " >&6
13323 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $PATH
13330 test -z "$as_dir" && as_dir=.
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13333 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
13345 DOXYGEN=$ac_cv_path_DOXYGEN
13346 if test -n "$DOXYGEN"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
13348 $as_echo "$DOXYGEN" >&6; }
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13356 if test "$DOXYGEN" != "no"; then
13357 DOXMAKE='run "make dox" to generate API html reference: doc/html/index.html'
13361 # Extract the first word of "dot", so it can be a program name with args.
13362 set dummy dot; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_path_DOT+:} false; then :
13366 $as_echo_n "(cached) " >&6
13370 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13380 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13388 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="no"
13392 DOT=$ac_cv_path_DOT
13393 if test -n "$DOT"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
13395 $as_echo "$DOT" >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13402 if test "$DOT" != "no"; then
13404 DOTPATH=$( dirname "$DOT" )
13413 # Extract the first word of "perl", so it can be a program name with args.
13414 set dummy perl; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if ${ac_cv_path_PERL+:} false; then :
13418 $as_echo_n "(cached) " >&6
13422 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
13444 PERL=$ac_cv_path_PERL
13445 if test -n "$PERL"; then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13447 $as_echo "$PERL" >&6; }
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450 $as_echo "no" >&6; }
13454 if test "$PERL" == "no"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dude, where's your perl? doxygen will not like this!)" >&5
13456 $as_echo "$as_me: WARNING: dude, where's your perl? doxygen will not like this!)" >&2;}
13459 # PKGconfig oauth.pc.in
13464 subdirs="src doc tests"
13467 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile tests/Makefile liboauth.lsm oauth.pc Doxyfile doc/mainpage.dox"
13469 cat >confcache <<\_ACEOF
13470 # This file is a shell script that caches the results of configure
13471 # tests run on this system so they can be shared between configure
13472 # scripts and configure runs, see configure's option --config-cache.
13473 # It is not useful on other systems. If it contains results you don't
13474 # want to keep, you may remove or edit it.
13476 # config.status only pays attention to the cache file if you give it
13477 # the --recheck option to rerun configure.
13479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13481 # following values.
13485 # The following way of writing the cache mishandles newlines in values,
13486 # but we know of no workaround that is simple, portable, and efficient.
13487 # So, we kill variables containing newlines.
13488 # Ultrix sh set writes to stderr and can't be redirected directly,
13489 # and sets the high bit in the cache file unless we assign to the vars.
13491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13492 eval ac_val=\$$ac_var
13496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13500 _ | IFS | as_nl) ;; #(
13501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13502 *) { eval $ac_var=; unset $ac_var;} ;;
13508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13509 *${as_nl}ac_space=\ *)
13510 # `set' does not quote correctly, so add quotes: double-quote
13511 # substitution turns \\\\ into \\, and sed turns \\ into \.
13514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13517 # `set' quotes correctly as required by POSIX, so do not add quotes.
13518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13532 if test -w "$cache_file"; then
13533 if test "x$cache_file" != "x/dev/null"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13535 $as_echo "$as_me: updating cache $cache_file" >&6;}
13536 if test ! -f "$cache_file" || test -h "$cache_file"; then
13537 cat confcache >"$cache_file"
13539 case $cache_file in #(
13541 mv -f confcache "$cache_file"$$ &&
13542 mv -f "$cache_file"$$ "$cache_file" ;; #(
13544 mv -f confcache "$cache_file" ;;
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13550 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13555 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13556 # Let make expand exec_prefix.
13557 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13559 DEFS=-DHAVE_CONFIG_H
13564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13565 # 1. Remove the extension, and $U if already installed.
13566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13567 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13569 # will be set to the directory where LIBOBJS objects are built.
13570 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13571 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13573 LIBOBJS=$ac_libobjs
13575 LTLIBOBJS=$ac_ltlibobjs
13578 if test -n "$EXEEXT"; then
13580 am__EXEEXT_FALSE='#'
13582 am__EXEEXT_TRUE='#'
13586 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13587 as_fn_error $? "conditional \"AMDEP\" was never defined.
13588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13590 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13591 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13595 : "${CONFIG_STATUS=./config.status}"
13597 ac_clean_files_save=$ac_clean_files
13598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13600 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13602 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13604 # Generated by $as_me.
13605 # Run this file to recreate the current configuration.
13606 # Compiler output produced by configure, useful for debugging
13607 # configure, is in config.log if it exists.
13610 ac_cs_recheck=false
13613 SHELL=\${CONFIG_SHELL-$SHELL}
13616 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13617 ## -------------------- ##
13618 ## M4sh Initialization. ##
13619 ## -------------------- ##
13621 # Be more Bourne compatible
13622 DUALCASE=1; export DUALCASE # for MKS sh
13623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13626 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13627 # is contrary to our usage. Disable this feature.
13628 alias -g '${1+"$@"}'='"$@"'
13629 setopt NO_GLOB_SUBST
13631 case `(set -o) 2>/dev/null` in #(
13643 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13644 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13647 # Prefer a ksh shell builtin over an external printf program on Solaris,
13648 # but without wasting forks for bash or zsh.
13649 if test -z "$BASH_VERSION$ZSH_VERSION" \
13650 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13651 as_echo='print -r --'
13652 as_echo_n='print -rn --'
13653 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13654 as_echo='printf %s\n'
13655 as_echo_n='printf %s'
13657 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13658 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13659 as_echo_n='/usr/ucb/echo -n'
13661 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13662 as_echo_n_body='eval
13666 expr "X$arg" : "X\\(.*\\)$as_nl";
13667 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13669 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13671 export as_echo_n_body
13672 as_echo_n='sh -c $as_echo_n_body as_echo'
13674 export as_echo_body
13675 as_echo='sh -c $as_echo_body as_echo'
13678 # The user is always right.
13679 if test "${PATH_SEPARATOR+set}" != set; then
13681 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13682 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13689 # We need space, tab and new line, in precisely that order. Quoting is
13690 # there to prevent editors from complaining about space-tab.
13691 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13692 # splitting by setting IFS to empty value.)
13695 # Find who we are. Look in the path if we contain no directory separator.
13698 *[\\/]* ) as_myself=$0 ;;
13699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13703 test -z "$as_dir" && as_dir=.
13704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13710 # We did not find ourselves, most probably we were run as `sh COMMAND'
13711 # in which case we are not to be found in the path.
13712 if test "x$as_myself" = x; then
13715 if test ! -f "$as_myself"; then
13716 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13720 # Unset variables that we do not need and which cause bugs (e.g. in
13721 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13722 # suppresses any "Segmentation fault" message there. '((' could
13723 # trigger a bug in pdksh 5.2.14.
13724 for as_var in BASH_ENV ENV MAIL MAILPATH
13725 do eval test x\${$as_var+set} = xset \
13726 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13742 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13743 # ----------------------------------------
13744 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13745 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13746 # script with STATUS, using 1 if that was 0.
13749 as_status=$1; test $as_status -eq 0 && as_status=1
13751 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13752 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13754 $as_echo "$as_me: error: $2" >&2
13755 as_fn_exit $as_status
13759 # as_fn_set_status STATUS
13760 # -----------------------
13761 # Set $? to STATUS, without forking.
13762 as_fn_set_status ()
13765 } # as_fn_set_status
13767 # as_fn_exit STATUS
13768 # -----------------
13769 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13773 as_fn_set_status $1
13779 # Portably unset VAR.
13782 { eval $1=; unset $1;}
13784 as_unset=as_fn_unset
13785 # as_fn_append VAR VALUE
13786 # ----------------------
13787 # Append the text in VALUE to the end of the definition contained in VAR. Take
13788 # advantage of any shell optimizations that allow amortized linear growth over
13789 # repeated appends, instead of the typical quadratic growth present in naive
13791 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13792 eval 'as_fn_append ()
13803 # as_fn_arith ARG...
13804 # ------------------
13805 # Perform arithmetic evaluation on the ARGs, and store the result in the
13806 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13807 # must be portable across $(()) and expr.
13808 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13809 eval 'as_fn_arith ()
13816 as_val=`expr "$@" || test $? -eq 1`
13821 if expr a : '\(a\)' >/dev/null 2>&1 &&
13822 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13828 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13829 as_basename=basename
13834 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13840 as_me=`$as_basename -- "$0" ||
13841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13842 X"$0" : 'X\(//\)$' \| \
13843 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13845 sed '/^.*\/\([^/][^/]*\)\/*$/{
13859 # Avoid depending upon Character Ranges.
13860 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13861 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13862 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13863 as_cr_digits='0123456789'
13864 as_cr_alnum=$as_cr_Letters$as_cr_digits
13866 ECHO_C= ECHO_N= ECHO_T=
13867 case `echo -n x` in #(((((
13869 case `echo 'xy\c'` in
13870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13872 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13879 rm -f conf$$ conf$$.exe conf$$.file
13880 if test -d conf$$.dir; then
13881 rm -f conf$$.dir/conf$$.file
13884 mkdir conf$$.dir 2>/dev/null
13886 if (echo >conf$$.file) 2>/dev/null; then
13887 if ln -s conf$$.file conf$$ 2>/dev/null; then
13889 # ... but there are two gotchas:
13890 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13891 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13892 # In both cases, we have to default to `cp -pR'.
13893 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13895 elif ln conf$$.file conf$$ 2>/dev/null; then
13903 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13904 rmdir conf$$.dir 2>/dev/null
13909 # Create "$as_dir" as a directory, including parents if necessary.
13914 -*) as_dir=./$as_dir;;
13916 test -d "$as_dir" || eval $as_mkdir_p || {
13920 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13921 *) as_qdir=$as_dir;;
13923 as_dirs="'$as_qdir' $as_dirs"
13924 as_dir=`$as_dirname -- "$as_dir" ||
13925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13926 X"$as_dir" : 'X\(//\)[^/]' \| \
13927 X"$as_dir" : 'X\(//\)$' \| \
13928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13929 $as_echo X"$as_dir" |
13930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13934 /^X\(\/\/\)[^/].*/{
13947 test -d "$as_dir" && break
13949 test -z "$as_dirs" || eval "mkdir $as_dirs"
13950 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13954 if mkdir -p . 2>/dev/null; then
13955 as_mkdir_p='mkdir -p "$as_dir"'
13957 test -d ./-p && rmdir ./-p
13962 # as_fn_executable_p FILE
13963 # -----------------------
13964 # Test if FILE is an executable regular file.
13965 as_fn_executable_p ()
13967 test -f "$1" && test -x "$1"
13968 } # as_fn_executable_p
13969 as_test_x='test -x'
13970 as_executable_p=as_fn_executable_p
13972 # Sed expression to map a string onto a valid CPP name.
13973 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13975 # Sed expression to map a string onto a valid variable name.
13976 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13980 ## ----------------------------------- ##
13981 ## Main body of $CONFIG_STATUS script. ##
13982 ## ----------------------------------- ##
13984 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13987 # Save the log message, to keep $0 and so on meaningful, and to
13988 # report actual input values of CONFIG_FILES etc. instead of their
13989 # values after options handling.
13991 This file was extended by liboauth $as_me -, which was
13992 generated by GNU Autoconf 2.69. Invocation command line was
13994 CONFIG_FILES = $CONFIG_FILES
13995 CONFIG_HEADERS = $CONFIG_HEADERS
13996 CONFIG_LINKS = $CONFIG_LINKS
13997 CONFIG_COMMANDS = $CONFIG_COMMANDS
14000 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14005 case $ac_config_files in *"
14006 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14009 case $ac_config_headers in *"
14010 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14015 # Files that config.status was made for.
14016 config_files="$ac_config_files"
14017 config_headers="$ac_config_headers"
14018 config_commands="$ac_config_commands"
14022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14024 \`$as_me' instantiates files and other configuration actions
14025 from templates according to the current configuration. Unless the files
14026 and actions are specified as TAGs, all are instantiated by default.
14028 Usage: $0 [OPTION]... [TAG]...
14030 -h, --help print this help, then exit
14031 -V, --version print version number and configuration settings, then exit
14032 --config print configuration, then exit
14033 -q, --quiet, --silent
14034 do not print progress messages
14035 -d, --debug don't remove temporary files
14036 --recheck update $as_me by reconfiguring in the same conditions
14037 --file=FILE[:TEMPLATE]
14038 instantiate the configuration file FILE
14039 --header=FILE[:TEMPLATE]
14040 instantiate the configuration header FILE
14042 Configuration files:
14045 Configuration headers:
14048 Configuration commands:
14051 Report bugs to <robin AT gareus DOT org>.
14052 liboauth home page: <http://liboauth.sourceforge.net/>."
14055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14056 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14058 liboauth config.status -
14059 configured by $0, generated by GNU Autoconf 2.69,
14060 with options \\"\$ac_cs_config\\"
14062 Copyright (C) 2012 Free Software Foundation, Inc.
14063 This config.status script is free software; the Free Software Foundation
14064 gives unlimited permission to copy, distribute and modify it."
14071 test -n "\$AWK" || AWK=awk
14074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14075 # The default lists apply if the user does not specify any file.
14081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14082 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14098 # Handling of the options.
14099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14101 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14102 $as_echo "$ac_cs_version"; exit ;;
14103 --config | --confi | --conf | --con | --co | --c )
14104 $as_echo "$ac_cs_config"; exit ;;
14105 --debug | --debu | --deb | --de | --d | -d )
14107 --file | --fil | --fi | --f )
14110 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14111 '') as_fn_error $? "missing file argument" ;;
14113 as_fn_append CONFIG_FILES " '$ac_optarg'"
14114 ac_need_defaults=false;;
14115 --header | --heade | --head | --hea )
14118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14120 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14121 ac_need_defaults=false;;
14123 # Conflict between --help and --header
14124 as_fn_error $? "ambiguous option: \`$1'
14125 Try \`$0 --help' for more information.";;
14126 --help | --hel | -h )
14127 $as_echo "$ac_cs_usage"; exit ;;
14128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14132 # This is an error.
14133 -*) as_fn_error $? "unrecognized option: \`$1'
14134 Try \`$0 --help' for more information." ;;
14136 *) as_fn_append ac_config_targets " $1"
14137 ac_need_defaults=false ;;
14143 ac_configure_extra_args=
14145 if $ac_cs_silent; then
14147 ac_configure_extra_args="$ac_configure_extra_args --silent"
14151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14152 if \$ac_cs_recheck; then
14153 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14155 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14156 CONFIG_SHELL='$SHELL'
14157 export CONFIG_SHELL
14162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14166 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14167 ## Running $as_me. ##
14173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14178 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14181 # The HP-UX ksh and POSIX shell print the target directory to stdout
14182 # if CDPATH is set.
14183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14185 sed_quote_subst='$sed_quote_subst'
14186 double_quote_subst='$double_quote_subst'
14187 delay_variable_subst='$delay_variable_subst'
14188 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14189 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14190 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14191 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14192 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14193 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14194 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14195 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14196 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14197 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14198 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14199 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14200 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14201 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14202 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14203 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14204 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14205 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14206 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14207 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14208 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14209 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14210 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14211 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14212 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14213 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14214 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14215 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14216 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14217 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14218 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14219 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14220 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14221 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14222 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14223 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14224 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14225 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14226 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14227 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14228 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14229 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14230 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14231 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14232 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14233 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14234 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14235 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14236 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14237 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14238 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14239 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14240 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14241 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14242 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14243 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14244 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"`'
14245 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14246 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14247 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14248 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14249 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14250 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14251 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14252 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14253 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14254 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14255 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14256 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14257 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14258 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14259 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14260 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14261 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14262 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14263 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14264 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14265 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14266 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14267 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14268 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14269 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14270 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14271 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14272 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14273 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14274 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14275 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14276 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14277 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14278 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14279 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14280 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14281 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14282 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14283 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14284 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14285 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14286 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14287 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14288 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14289 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14290 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14291 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14292 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14293 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14294 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14295 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14296 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14297 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14298 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14299 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14300 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14301 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14302 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14303 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14304 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14305 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14306 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14307 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14308 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14309 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14310 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14311 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14312 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14313 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14314 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14315 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14316 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14317 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14318 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14321 LTCFLAGS='$LTCFLAGS'
14322 compiler='$compiler_DEFAULT'
14324 # A function that is used when there is no print builtin or printf.
14325 func_fallback_echo ()
14327 eval 'cat <<_LTECHO_EOF
14332 # Quote evaled strings.
14347 deplibs_check_method \
14352 sharedlib_from_linklib_cmd \
14355 archiver_list_spec \
14361 lt_cv_sys_global_symbol_pipe \
14362 lt_cv_sys_global_symbol_to_cdecl \
14363 lt_cv_sys_global_symbol_to_c_name_address \
14364 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14365 nm_file_list_spec \
14366 lt_prog_compiler_no_builtin_flag \
14367 lt_prog_compiler_pic \
14368 lt_prog_compiler_wl \
14369 lt_prog_compiler_static \
14370 lt_cv_prog_compiler_c_o \
14379 export_dynamic_flag_spec \
14380 whole_archive_flag_spec \
14381 compiler_needs_object \
14383 allow_undefined_flag \
14384 no_undefined_flag \
14385 hardcode_libdir_flag_spec \
14386 hardcode_libdir_separator \
14390 variables_saved_for_relink \
14392 library_names_spec \
14394 install_override_mode \
14399 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14400 *[\\\\\\\`\\"\\\$]*)
14401 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14404 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14409 # Double-quote double-evaled strings.
14410 for var in reload_cmds \
14411 old_postinstall_cmds \
14412 old_postuninstall_cmds \
14414 extract_expsyms_cmds \
14415 old_archive_from_new_cmds \
14416 old_archive_from_expsyms_cmds \
14418 archive_expsym_cmds \
14420 module_expsym_cmds \
14421 export_symbols_cmds \
14425 postuninstall_cmds \
14427 sys_lib_search_path_spec \
14428 sys_lib_dlsearch_path_spec; do
14429 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14430 *[\\\\\\\`\\"\\\$]*)
14431 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14434 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14439 ac_aux_dir='$ac_aux_dir'
14440 xsi_shell='$xsi_shell'
14441 lt_shell_append='$lt_shell_append'
14443 # See if we are running on zsh, and set the options which allow our
14444 # commands through without removal of \ escapes INIT.
14445 if test -n "\${ZSH_VERSION+set}" ; then
14446 setopt NO_GLOB_SUBST
14452 TIMESTAMP='$TIMESTAMP'
14461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14463 # Handling of arguments.
14464 for ac_config_target in $ac_config_targets
14466 case $ac_config_target in
14467 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
14468 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14469 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14470 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14471 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14472 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14473 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14474 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14475 "liboauth.lsm") CONFIG_FILES="$CONFIG_FILES liboauth.lsm" ;;
14476 "oauth.pc") CONFIG_FILES="$CONFIG_FILES oauth.pc" ;;
14477 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
14478 "doc/mainpage.dox") CONFIG_FILES="$CONFIG_FILES doc/mainpage.dox" ;;
14480 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14485 # If the user did not use the arguments to specify the items to instantiate,
14486 # then the envvar interface is used. Set only those that are not.
14487 # We use the long form for the default assignment because of an extremely
14488 # bizarre bug on SunOS 4.1.3.
14489 if $ac_need_defaults; then
14490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14491 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14492 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14495 # Have a temporary directory for convenience. Make it in the build tree
14496 # simply because there is no reason against having it here, and in addition,
14497 # creating and moving files from /tmp can sometimes cause problems.
14498 # Hook for its removal unless debugging.
14499 # Note that there is a small window in which the directory will not be cleaned:
14500 # after its creation but before its name has been assigned to `$tmp'.
14504 trap 'exit_status=$?
14505 : "${ac_tmp:=$tmp}"
14506 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14508 trap 'as_fn_exit 1' 1 2 13 15
14510 # Create a (secure) tmp directory for tmp files.
14513 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14517 tmp=./conf$$-$RANDOM
14518 (umask 077 && mkdir "$tmp")
14519 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14522 # Set up the scripts for CONFIG_FILES section.
14523 # No need to generate them if there are no CONFIG_FILES.
14524 # This happens for instance with `./config.status config.h'.
14525 if test -n "$CONFIG_FILES"; then
14528 ac_cr=`echo X | tr X '\015'`
14529 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14530 # But we know of no other shell where ac_cr would be empty at this
14531 # point, so we can use a bashism as a fallback.
14532 if test "x$ac_cr" = x; then
14533 eval ac_cr=\$\'\\r\'
14535 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14536 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14539 ac_cs_awk_cr=$ac_cr
14542 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14547 echo "cat >conf$$subs.awk <<_ACEOF" &&
14548 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14550 } >conf$$subs.sh ||
14551 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14552 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14554 for ac_last_try in false false false false false :; do
14555 . ./conf$$subs.sh ||
14556 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14558 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14559 if test $ac_delim_n = $ac_delim_num; then
14561 elif $ac_last_try; then
14562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14567 rm -f conf$$subs.sh
14569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14570 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14574 s/^/S["/; s/!.*/"]=/
14584 s/\(.\{148\}\)..*/\1/
14586 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14598 s/\(.\{148\}\)..*/\1/
14600 s/["\\]/\\&/g; s/^/"/; s/$/"/
14604 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14609 ' <conf$$subs.awk | sed '
14614 ' >>$CONFIG_STATUS || ac_write_fail=1
14615 rm -f conf$$subs.awk
14616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14618 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14619 for (key in S) S_is_set[key] = 1
14625 nfields = split(line, field, "@")
14627 len = length(field[1])
14628 for (i = 2; i < nfields; i++) {
14630 keylen = length(key)
14631 if (S_is_set[key]) {
14633 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14634 len += length(value) + length(field[++i])
14645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14646 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14647 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14650 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14651 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14654 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14655 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14656 # trailing colons and then remove the whole line if VPATH becomes empty
14657 # (actually we leave an empty line to preserve line numbers).
14658 if test "x$srcdir" = x.; then
14659 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14678 fi # test -n "$CONFIG_FILES"
14680 # Set up the scripts for CONFIG_HEADERS section.
14681 # No need to generate them if there are no CONFIG_HEADERS.
14682 # This happens for instance with `./config.status Makefile'.
14683 if test -n "$CONFIG_HEADERS"; then
14684 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14688 # Transform confdefs.h into an awk script `defines.awk', embedded as
14689 # here-document in config.status, that substitutes the proper values into
14690 # config.h.in to produce config.h.
14692 # Create a delimiter string that does not exist in confdefs.h, to ease
14693 # handling of long lines.
14695 for ac_last_try in false false :; do
14696 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14697 if test -z "$ac_tt"; then
14699 elif $ac_last_try; then
14700 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14706 # For the awk script, D is an array of macro values keyed by name,
14707 # likewise P contains macro parameters if any. Preserve backslash
14708 # newline sequences.
14710 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14712 s/.\{148\}/&'"$ac_delim"'/g
14715 s/^[ ]*#[ ]*define[ ][ ]*/ /
14722 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14724 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14729 D["\1"]=" \3\\\\\\n"\\/p
14731 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14736 s/.\{148\}/&'"$ac_delim"'/g
14741 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14744 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14746 ' <confdefs.h | sed '
14747 s/'"$ac_delim"'/"\\\
14748 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14751 for (key in D) D_is_set[key] = 1
14754 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14756 split(line, arg, " ")
14757 if (arg[1] == "#") {
14761 defundef = substr(arg[1], 2)
14764 split(mac1, mac2, "(") #)
14766 prefix = substr(line, 1, index(line, defundef) - 1)
14767 if (D_is_set[macro]) {
14768 # Preserve the white space surrounding the "#".
14769 print prefix "define", macro P[macro] D[macro]
14772 # Replace #undef with comments. This is necessary, for example,
14773 # in the case of _POSIX_SOURCE, which is predefined and required
14774 # on some systems where configure will not decide to define it.
14775 if (defundef == "undef") {
14776 print "/*", prefix defundef, macro, "*/"
14784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14785 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14786 fi # test -n "$CONFIG_HEADERS"
14789 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14794 :[FHLC]) ac_mode=$ac_tag; continue;;
14796 case $ac_mode$ac_tag in
14798 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14799 :[FH]-) ac_tag=-:-;;
14800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14817 -) ac_f="$ac_tmp/stdin";;
14818 *) # Look for the file first in the build tree, then in the source tree
14819 # (if the path is not absolute). The absolute path cannot be DOS-style,
14820 # because $ac_f cannot contain `:'.
14824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14826 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14829 as_fn_append ac_file_inputs " '$ac_f'"
14832 # Let's still pretend it is `configure' which instantiates (i.e., don't
14833 # use $as_me), people would be surprised to read:
14834 # /* config.h. Generated by config.status. */
14835 configure_input='Generated from '`
14836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14838 if test x"$ac_file" != x-; then
14839 configure_input="$ac_file. $configure_input"
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14841 $as_echo "$as_me: creating $ac_file" >&6;}
14843 # Neutralize special characters interpreted by sed in replacement strings.
14844 case $configure_input in #(
14845 *\&* | *\|* | *\\* )
14846 ac_sed_conf_input=`$as_echo "$configure_input" |
14847 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14848 *) ac_sed_conf_input=$configure_input;;
14852 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14858 ac_dir=`$as_dirname -- "$ac_file" ||
14859 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14860 X"$ac_file" : 'X\(//\)[^/]' \| \
14861 X"$ac_file" : 'X\(//\)$' \| \
14862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14863 $as_echo X"$ac_file" |
14864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14868 /^X\(\/\/\)[^/].*/{
14881 as_dir="$ac_dir"; as_fn_mkdir_p
14885 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14888 # A ".." for each directory in $ac_dir_suffix.
14889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14890 case $ac_top_builddir_sub in
14891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14895 ac_abs_top_builddir=$ac_pwd
14896 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14897 # for backward compatibility:
14898 ac_top_builddir=$ac_top_build_prefix
14901 .) # We are building in place.
14903 ac_top_srcdir=$ac_top_builddir_sub
14904 ac_abs_top_srcdir=$ac_pwd ;;
14905 [\\/]* | ?:[\\/]* ) # Absolute name.
14906 ac_srcdir=$srcdir$ac_dir_suffix;
14907 ac_top_srcdir=$srcdir
14908 ac_abs_top_srcdir=$srcdir ;;
14909 *) # Relative name.
14910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14911 ac_top_srcdir=$ac_top_build_prefix$srcdir
14912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14914 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14925 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14927 ac_MKDIR_P=$MKDIR_P
14929 [\\/$]* | ?:[\\/]* ) ;;
14930 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14935 # If the template does not know about datarootdir, expand it.
14936 # FIXME: This hack should be removed a few years after 2.60.
14937 ac_datarootdir_hack=; ac_datarootdir_seen=
14948 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14949 *datarootdir*) ac_datarootdir_seen=yes;;
14950 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14952 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14955 ac_datarootdir_hack='
14956 s&@datadir@&$datadir&g
14957 s&@docdir@&$docdir&g
14958 s&@infodir@&$infodir&g
14959 s&@localedir@&$localedir&g
14960 s&@mandir@&$mandir&g
14961 s&\\\${datarootdir}&$datarootdir&g' ;;
14965 # Neutralize VPATH when `$srcdir' = `.'.
14966 # Shell code in configure.ac might set extrasub.
14967 # FIXME: do we really want to maintain this feature?
14968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14969 ac_sed_extra="$ac_vpsub
14972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14974 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14975 s|@configure_input@|$ac_sed_conf_input|;t t
14976 s&@top_builddir@&$ac_top_builddir_sub&;t t
14977 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14978 s&@srcdir@&$ac_srcdir&;t t
14979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14980 s&@top_srcdir@&$ac_top_srcdir&;t t
14981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14982 s&@builddir@&$ac_builddir&;t t
14983 s&@abs_builddir@&$ac_abs_builddir&;t t
14984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14985 s&@INSTALL@&$ac_INSTALL&;t t
14986 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14987 $ac_datarootdir_hack
14989 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14990 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14992 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14993 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14995 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14997 which seems to be undefined. Please make sure it is defined" >&5
14998 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14999 which seems to be undefined. Please make sure it is defined" >&2;}
15001 rm -f "$ac_tmp/stdin"
15003 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15004 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15012 if test x"$ac_file" != x-; then
15014 $as_echo "/* $configure_input */" \
15015 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15016 } >"$ac_tmp/config.h" \
15017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15018 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15020 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15023 mv "$ac_tmp/config.h" "$ac_file" \
15024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15027 $as_echo "/* $configure_input */" \
15028 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15029 || as_fn_error $? "could not create -" "$LINENO" 5
15031 # Compute "$ac_file"'s index in $config_headers.
15034 for _am_header in $config_headers :; do
15035 case $_am_header in
15036 $_am_arg | $_am_arg:* )
15039 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15042 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15043 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15044 X"$_am_arg" : 'X\(//\)[^/]' \| \
15045 X"$_am_arg" : 'X\(//\)$' \| \
15046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15047 $as_echo X"$_am_arg" |
15048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15052 /^X\(\/\/\)[^/].*/{
15064 s/.*/./; q'`/stamp-h$_am_stamp_count
15067 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15068 $as_echo "$as_me: executing $ac_file commands" >&6;}
15073 case $ac_file$ac_mode in
15074 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
15075 # Configurable variable values for building test suites.
15077 # Copyright (C) 2012 Free Software Foundation, Inc.
15079 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
15081 abs_builddir='$ac_abs_builddir'
15082 at_srcdir='$ac_srcdir'
15083 abs_srcdir='$ac_abs_srcdir'
15084 at_top_srcdir='$ac_top_srcdir'
15085 abs_top_srcdir='$ac_abs_top_srcdir'
15086 at_top_build_prefix='$ac_top_build_prefix'
15087 abs_top_builddir='$ac_abs_top_builddir'
15089 # Backward compatibility with Autotest <= 2.59b:
15090 at_top_builddir=\$at_top_build_prefix
15092 AUTOTEST_PATH='tests'
15094 SHELL=\${CONFIG_SHELL-'$SHELL'}
15097 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15098 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15099 # are listed without --file. Let's play safe and only enable the eval
15100 # if we detect the quoting.
15101 case $CONFIG_FILES in
15102 *\'*) eval set x "$CONFIG_FILES" ;;
15103 *) set x $CONFIG_FILES ;;
15108 # Strip MF so we end up with the name of the file.
15109 mf=`echo "$mf" | sed -e 's/:.*$//'`
15110 # Check whether this is an Automake generated Makefile or not.
15111 # We used to match only the files named `Makefile.in', but
15112 # some people rename them; so instead we look at the file content.
15113 # Grep'ing the first line is not enough: some people post-process
15114 # each Makefile.in and add a new line on top of each file to say so.
15115 # Grep'ing the whole file is not good either: AIX grep has a line
15116 # limit of 2048, but all sed's we know have understand at least 4000.
15117 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15118 dirpart=`$as_dirname -- "$mf" ||
15119 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15120 X"$mf" : 'X\(//\)[^/]' \| \
15121 X"$mf" : 'X\(//\)$' \| \
15122 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15128 /^X\(\/\/\)[^/].*/{
15144 # Extract the definition of DEPDIR, am__include, and am__quote
15145 # from the Makefile without running `make'.
15146 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15147 test -z "$DEPDIR" && continue
15148 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15149 test -z "am__include" && continue
15150 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15151 # When using ansi2knr, U may be empty or an underscore; expand it
15152 U=`sed -n 's/^U = //p' < "$mf"`
15153 # Find all dependency output files, they are included files with
15154 # $(DEPDIR) in their names. We invoke sed twice because it is the
15155 # simplest approach to changing $(DEPDIR) to its actual value in the
15157 for file in `sed -n "
15158 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15159 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15160 # Make sure the directory exists.
15161 test -f "$dirpart/$file" && continue
15162 fdir=`$as_dirname -- "$file" ||
15163 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15164 X"$file" : 'X\(//\)[^/]' \| \
15165 X"$file" : 'X\(//\)$' \| \
15166 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15167 $as_echo X"$file" |
15168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15172 /^X\(\/\/\)[^/].*/{
15185 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15186 # echo "creating $dirpart/$file"
15187 echo '# dummy' > "$dirpart/$file"
15194 # See if we are running on zsh, and set the options which allow our
15195 # commands through without removal of \ escapes.
15196 if test -n "${ZSH_VERSION+set}" ; then
15197 setopt NO_GLOB_SUBST
15200 cfgfile="${ofile}T"
15201 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15204 cat <<_LT_EOF >> "$cfgfile"
15207 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15208 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15210 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15212 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15213 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15215 # Written by Gordon Matzigkeit, 1996
15217 # This file is part of GNU Libtool.
15219 # GNU Libtool is free software; you can redistribute it and/or
15220 # modify it under the terms of the GNU General Public License as
15221 # published by the Free Software Foundation; either version 2 of
15222 # the License, or (at your option) any later version.
15224 # As a special exception to the GNU General Public License,
15225 # if you distribute this file as part of a program or library that
15226 # is built using GNU Libtool, you may include this file under the
15227 # same distribution terms that you use for the rest of that program.
15229 # GNU Libtool is distributed in the hope that it will be useful,
15230 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15231 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15232 # GNU General Public License for more details.
15234 # You should have received a copy of the GNU General Public License
15235 # along with GNU Libtool; see the file COPYING. If not, a copy
15236 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15237 # obtained by writing to the Free Software Foundation, Inc.,
15238 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15241 # The names of the tagged configurations supported by this script.
15244 # ### BEGIN LIBTOOL CONFIG
15246 # Which release of libtool.m4 was used?
15247 macro_version=$macro_version
15248 macro_revision=$macro_revision
15250 # Whether or not to build shared libraries.
15251 build_libtool_libs=$enable_shared
15253 # Whether or not to build static libraries.
15254 build_old_libs=$enable_static
15256 # What type of objects to build.
15259 # Whether or not to optimize for fast installation.
15260 fast_install=$enable_fast_install
15262 # Shell to use when invoking shell scripts.
15265 # An echo program that protects backslashes.
15268 # The PATH separator for the build system.
15269 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15272 host_alias=$host_alias
15276 # The build system.
15277 build_alias=$build_alias
15281 # A sed program that does not truncate output.
15284 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15285 Xsed="\$SED -e 1s/^X//"
15287 # A grep program that handles long lines.
15293 # A literal string matcher.
15296 # A BSD- or MS-compatible name lister.
15299 # Whether we need soft or hard links.
15302 # What is the maximum length of a command?
15303 max_cmd_len=$max_cmd_len
15305 # Object file suffix (normally "o").
15308 # Executable file suffix (normally "").
15311 # whether the shell understands "unset".
15314 # turn spaces into newlines.
15317 # turn newlines into spaces.
15320 # convert \$build file names to \$host format.
15321 to_host_file_cmd=$lt_cv_to_host_file_cmd
15323 # convert \$build files to toolchain format.
15324 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15326 # An object symbol dumper.
15327 OBJDUMP=$lt_OBJDUMP
15329 # Method to check whether dependent libraries are shared objects.
15330 deplibs_check_method=$lt_deplibs_check_method
15332 # Command to use when deplibs_check_method = "file_magic".
15333 file_magic_cmd=$lt_file_magic_cmd
15335 # How to find potential files when deplibs_check_method = "file_magic".
15336 file_magic_glob=$lt_file_magic_glob
15338 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15339 want_nocaseglob=$lt_want_nocaseglob
15341 # DLL creation program.
15342 DLLTOOL=$lt_DLLTOOL
15344 # Command to associate shared and link libraries.
15345 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15350 # Flags to create an archive.
15351 AR_FLAGS=$lt_AR_FLAGS
15353 # How to feed a file listing to the archiver.
15354 archiver_list_spec=$lt_archiver_list_spec
15356 # A symbol stripping program.
15359 # Commands used to install an old-style archive.
15361 old_postinstall_cmds=$lt_old_postinstall_cmds
15362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15364 # Whether to use a lock for old archive extraction.
15365 lock_old_archive_extraction=$lock_old_archive_extraction
15370 # LTCC compiler flags.
15371 LTCFLAGS=$lt_CFLAGS
15373 # Take the output of nm and produce a listing of raw symbols and C names.
15374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15376 # Transform the output of nm in a proper C declaration.
15377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15379 # Transform the output of nm in a C name address pair.
15380 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15382 # Transform the output of nm in a C name address pair when lib prefix is needed.
15383 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15385 # Specify filename containing input files for \$NM.
15386 nm_file_list_spec=$lt_nm_file_list_spec
15388 # The root where to search for dependent libraries,and in which our libraries should be installed.
15389 lt_sysroot=$lt_sysroot
15391 # The name of the directory that contains temporary libtool files.
15394 # Used to examine libraries when file_magic_cmd begins with "file".
15395 MAGIC_CMD=$MAGIC_CMD
15397 # Must we lock files when doing compilation?
15398 need_locks=$lt_need_locks
15401 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15403 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15404 DSYMUTIL=$lt_DSYMUTIL
15406 # Tool to change global to local symbols on Mac OS X.
15409 # Tool to manipulate fat objects and archives on Mac OS X.
15412 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15415 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15416 OTOOL64=$lt_OTOOL64
15418 # Old archive suffix (normally "a").
15421 # Shared library suffix (normally ".so").
15422 shrext_cmds=$lt_shrext_cmds
15424 # The commands to extract the exported symbol list from a shared archive.
15425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15427 # Variables whose values should be saved in libtool wrapper scripts and
15428 # restored at link time.
15429 variables_saved_for_relink=$lt_variables_saved_for_relink
15431 # Do we need the "lib" prefix for modules?
15432 need_lib_prefix=$need_lib_prefix
15434 # Do we need a version for libraries?
15435 need_version=$need_version
15437 # Library versioning type.
15438 version_type=$version_type
15440 # Shared library runtime path variable.
15441 runpath_var=$runpath_var
15443 # Shared library path variable.
15444 shlibpath_var=$shlibpath_var
15446 # Is shlibpath searched before the hard-coded library search path?
15447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15449 # Format of library name prefix.
15450 libname_spec=$lt_libname_spec
15452 # List of archive names. First name is the real one, the rest are links.
15453 # The last name is the one that the linker finds with -lNAME
15454 library_names_spec=$lt_library_names_spec
15456 # The coded name of the library, if different from the real name.
15457 soname_spec=$lt_soname_spec
15459 # Permission mode override for installation of shared libraries.
15460 install_override_mode=$lt_install_override_mode
15462 # Command to use after installation of a shared archive.
15463 postinstall_cmds=$lt_postinstall_cmds
15465 # Command to use after uninstallation of a shared archive.
15466 postuninstall_cmds=$lt_postuninstall_cmds
15468 # Commands used to finish a libtool library installation in a directory.
15469 finish_cmds=$lt_finish_cmds
15471 # As "finish_cmds", except a single script fragment to be evaled but
15473 finish_eval=$lt_finish_eval
15475 # Whether we should hardcode library paths into libraries.
15476 hardcode_into_libs=$hardcode_into_libs
15478 # Compile-time system search path for libraries.
15479 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15481 # Run-time system search path for libraries.
15482 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15484 # Whether dlopen is supported.
15485 dlopen_support=$enable_dlopen
15487 # Whether dlopen of programs is supported.
15488 dlopen_self=$enable_dlopen_self
15490 # Whether dlopen of statically linked programs is supported.
15491 dlopen_self_static=$enable_dlopen_self_static
15493 # Commands to strip libraries.
15494 old_striplib=$lt_old_striplib
15495 striplib=$lt_striplib
15497 # Assembler program.
15501 # The linker used to build libraries.
15504 # How to create reloadable object files.
15505 reload_flag=$lt_reload_flag
15506 reload_cmds=$lt_reload_cmds
15508 # Commands used to build an old-style archive.
15509 old_archive_cmds=$lt_old_archive_cmds
15511 # A language specific compiler.
15514 # Is the compiler the GNU compiler?
15517 # Compiler flag to turn off builtin functions.
15518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15520 # Additional compiler flags for building library objects.
15521 pic_flag=$lt_lt_prog_compiler_pic
15523 # How to pass a linker flag through the compiler.
15524 wl=$lt_lt_prog_compiler_wl
15526 # Compiler flag to prevent dynamic linking.
15527 link_static_flag=$lt_lt_prog_compiler_static
15529 # Does compiler simultaneously support -c and -o options?
15530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15532 # Whether or not to add -lc for building shared libraries.
15533 build_libtool_need_lc=$archive_cmds_need_lc
15535 # Whether or not to disallow shared libs when runtime libs are static.
15536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15538 # Compiler flag to allow reflexive dlopens.
15539 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15541 # Compiler flag to generate shared objects directly from archives.
15542 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15544 # Whether the compiler copes with passing no objects directly.
15545 compiler_needs_object=$lt_compiler_needs_object
15547 # Create an old-style archive from a shared archive.
15548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15550 # Create a temporary old-style archive to link instead of a shared archive.
15551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15553 # Commands used to build a shared archive.
15554 archive_cmds=$lt_archive_cmds
15555 archive_expsym_cmds=$lt_archive_expsym_cmds
15557 # Commands used to build a loadable module if different from building
15558 # a shared archive.
15559 module_cmds=$lt_module_cmds
15560 module_expsym_cmds=$lt_module_expsym_cmds
15562 # Whether we are building with GNU ld or not.
15563 with_gnu_ld=$lt_with_gnu_ld
15565 # Flag that allows shared libraries with undefined symbols to be built.
15566 allow_undefined_flag=$lt_allow_undefined_flag
15568 # Flag that enforces no undefined symbols.
15569 no_undefined_flag=$lt_no_undefined_flag
15571 # Flag to hardcode \$libdir into a binary during linking.
15572 # This must work even if \$libdir does not exist
15573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15575 # Whether we need a single "-rpath" flag with a separated argument.
15576 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15578 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15579 # DIR into the resulting binary.
15580 hardcode_direct=$hardcode_direct
15582 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15583 # DIR into the resulting binary and the resulting library dependency is
15584 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15585 # library is relocated.
15586 hardcode_direct_absolute=$hardcode_direct_absolute
15588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15589 # into the resulting binary.
15590 hardcode_minus_L=$hardcode_minus_L
15592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15593 # into the resulting binary.
15594 hardcode_shlibpath_var=$hardcode_shlibpath_var
15596 # Set to "yes" if building a shared library automatically hardcodes DIR
15597 # into the library and all subsequent libraries and executables linked
15599 hardcode_automatic=$hardcode_automatic
15601 # Set to yes if linker adds runtime paths of dependent libraries
15602 # to runtime path list.
15603 inherit_rpath=$inherit_rpath
15605 # Whether libtool must link a program against all its dependency libraries.
15606 link_all_deplibs=$link_all_deplibs
15608 # Set to "yes" if exported symbols are required.
15609 always_export_symbols=$always_export_symbols
15611 # The commands to list exported symbols.
15612 export_symbols_cmds=$lt_export_symbols_cmds
15614 # Symbols that should not be listed in the preloaded symbols.
15615 exclude_expsyms=$lt_exclude_expsyms
15617 # Symbols that must always be exported.
15618 include_expsyms=$lt_include_expsyms
15620 # Commands necessary for linking programs (against libraries) with templates.
15621 prelink_cmds=$lt_prelink_cmds
15623 # Commands necessary for finishing linking programs.
15624 postlink_cmds=$lt_postlink_cmds
15626 # Specify filename containing input files.
15627 file_list_spec=$lt_file_list_spec
15629 # How to hardcode a shared library path into an executable.
15630 hardcode_action=$hardcode_action
15632 # ### END LIBTOOL CONFIG
15638 cat <<\_LT_EOF >> "$cfgfile"
15639 # AIX sometimes has problems with the GCC collect2 program. For some
15640 # reason, if we set the COLLECT_NAMES environment variable, the problems
15641 # vanish in a puff of smoke.
15642 if test "X${COLLECT_NAMES+set}" != Xset; then
15644 export COLLECT_NAMES
15651 ltmain="$ac_aux_dir/ltmain.sh"
15654 # We use sed instead of cat because bash on DJGPP gets confused if
15655 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15656 # text mode, it properly converts lines to CR/LF. This bash problem
15657 # is reportedly fixed, but why not run on old versions too?
15658 sed '$q' "$ltmain" >> "$cfgfile" \
15659 || (rm -f "$cfgfile"; exit 1)
15661 if test x"$xsi_shell" = xyes; then
15662 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15666 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15667 \ * ) func_dirname_result="${3}" ;;\
15669 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15670 && mv -f "$cfgfile.tmp" "$cfgfile" \
15671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15672 test 0 -eq $? || _lt_function_replace_fail=:
15675 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15678 \ func_basename_result="${1##*/}"\
15679 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15680 && mv -f "$cfgfile.tmp" "$cfgfile" \
15681 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15682 test 0 -eq $? || _lt_function_replace_fail=:
15685 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15686 func_dirname_and_basename ()\
15689 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15690 \ * ) func_dirname_result="${3}" ;;\
15692 \ func_basename_result="${1##*/}"\
15693 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15694 && mv -f "$cfgfile.tmp" "$cfgfile" \
15695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15696 test 0 -eq $? || _lt_function_replace_fail=:
15699 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15702 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15703 \ # positional parameters, so assign one to ordinary parameter first.\
15704 \ func_stripname_result=${3}\
15705 \ func_stripname_result=${func_stripname_result#"${1}"}\
15706 \ func_stripname_result=${func_stripname_result%"${2}"}\
15707 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15708 && mv -f "$cfgfile.tmp" "$cfgfile" \
15709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15710 test 0 -eq $? || _lt_function_replace_fail=:
15713 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15714 func_split_long_opt ()\
15716 \ func_split_long_opt_name=${1%%=*}\
15717 \ func_split_long_opt_arg=${1#*=}\
15718 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15719 && mv -f "$cfgfile.tmp" "$cfgfile" \
15720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15721 test 0 -eq $? || _lt_function_replace_fail=:
15724 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15725 func_split_short_opt ()\
15727 \ func_split_short_opt_arg=${1#??}\
15728 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15729 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15730 && mv -f "$cfgfile.tmp" "$cfgfile" \
15731 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15732 test 0 -eq $? || _lt_function_replace_fail=:
15735 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15739 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15740 \ *) func_lo2o_result=${1} ;;\
15742 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15743 && mv -f "$cfgfile.tmp" "$cfgfile" \
15744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15745 test 0 -eq $? || _lt_function_replace_fail=:
15748 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15751 func_xform_result=${1%.*}.lo\
15752 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15753 && mv -f "$cfgfile.tmp" "$cfgfile" \
15754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15755 test 0 -eq $? || _lt_function_replace_fail=:
15758 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15761 func_arith_result=$(( $* ))\
15762 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15763 && mv -f "$cfgfile.tmp" "$cfgfile" \
15764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15765 test 0 -eq $? || _lt_function_replace_fail=:
15768 sed -e '/^func_len ()$/,/^} # func_len /c\
15771 func_len_result=${#1}\
15772 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15773 && mv -f "$cfgfile.tmp" "$cfgfile" \
15774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15775 test 0 -eq $? || _lt_function_replace_fail=:
15779 if test x"$lt_shell_append" = xyes; then
15780 sed -e '/^func_append ()$/,/^} # func_append /c\
15783 eval "${1}+=\\${2}"\
15784 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15785 && mv -f "$cfgfile.tmp" "$cfgfile" \
15786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15787 test 0 -eq $? || _lt_function_replace_fail=:
15790 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15791 func_append_quoted ()\
15793 \ func_quote_for_eval "${2}"\
15794 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15795 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15796 && mv -f "$cfgfile.tmp" "$cfgfile" \
15797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15798 test 0 -eq $? || _lt_function_replace_fail=:
15801 # Save a `func_append' function call where possible by direct use of '+='
15802 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15803 && mv -f "$cfgfile.tmp" "$cfgfile" \
15804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15805 test 0 -eq $? || _lt_function_replace_fail=:
15807 # Save a `func_append' function call even when '+=' is not available
15808 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15809 && mv -f "$cfgfile.tmp" "$cfgfile" \
15810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15811 test 0 -eq $? || _lt_function_replace_fail=:
15814 if test x"$_lt_function_replace_fail" = x":"; then
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15816 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15820 mv -f "$cfgfile" "$ofile" ||
15821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15832 ac_clean_files=$ac_clean_files_save
15834 test $ac_write_fail = 0 ||
15835 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15838 # configure is writing to config.log, and then calls config.status.
15839 # config.status does its own redirection, appending to config.log.
15840 # Unfortunately, on DOS this fails, as config.log is still kept open
15841 # by configure, so config.status won't be able to write to it; its
15842 # output is simply discarded. So we exec the FD to /dev/null,
15843 # effectively closing config.log, so it can be properly (re)opened and
15844 # appended to by config.status. When coming back to configure, we
15845 # need to make the FD available again.
15846 if test "$no_create" != yes; then
15848 ac_config_status_args=
15849 test "$silent" = yes &&
15850 ac_config_status_args="$ac_config_status_args --quiet"
15852 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15854 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15855 # would make configure fail if this is the last instruction.
15856 $ac_cs_success || as_fn_exit 1
15858 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15860 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15864 { $as_echo "$as_me:${as_lineno-$LINENO}:
15866 liboauth configured:
15867 -----------------------
15870 interface revision: $VERSION_INFO
15871 hash/signature: $report_hash
15872 http integration: $report_curl
15873 libcurl-timeout: $report_curltimeout
15874 generate documentation: $DOXYGEN
15875 installation prefix: $prefix
15876 CFLAGS: $LIBOAUTH_CFLAGS $CFLAGS
15877 LDFLAGS: $LIBOAUTH_LDFLAGS $LDFLAGS
15879 type \"make\" followed my \"make install\" as root.
15884 liboauth configured:
15885 -----------------------
15888 interface revision: $VERSION_INFO
15889 hash/signature: $report_hash
15890 http integration: $report_curl
15891 libcurl-timeout: $report_curltimeout
15892 generate documentation: $DOXYGEN
15893 installation prefix: $prefix
15894 CFLAGS: $LIBOAUTH_CFLAGS $CFLAGS
15895 LDFLAGS: $LIBOAUTH_LDFLAGS $LDFLAGS
15897 type \"make\" followed my \"make install\" as root.