2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmtp 1.1.9.
5 # Report bugs to <libmtp-discuss@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: libmtp-discuss@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libmtp'
592 PACKAGE_TARNAME='libmtp'
593 PACKAGE_VERSION='1.1.9'
594 PACKAGE_STRING='libmtp 1.1.9'
595 PACKAGE_BUGREPORT='libmtp-discuss@lists.sourceforge.net'
598 ac_unique_file="src/libmtp.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
640 LIBOPENUSB_COMPILE_FALSE
641 LIBOPENUSB_COMPILE_TRUE
642 LIBUSB0_COMPILE_FALSE
644 LIBUSB1_COMPILE_FALSE
657 COMPILE_MINGW32_FALSE
731 INSTALL_STRIP_PROGRAM
773 program_transform_name
786 enable_option_checking
788 enable_dependency_tracking
806 ac_precious_vars='build_alias
822 # Initialize some variables set by options.
824 ac_init_version=false
825 ac_unrecognized_opts=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
836 program_transform_name=s,x,x,
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
980 -help | --help | --hel | --he | -h)
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1129 -site=* | --site=* | --sit=*)
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=no ;;
1188 # Obsolete; use --with-x.
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1256 # Be sure to have absolute directory names.
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1360 \`configure' configures libmtp 1.1.9 to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libmtp]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of libmtp 1.1.9:";;
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-dependency-tracking
1441 do not reject slow dependency extractors
1442 --disable-dependency-tracking
1443 speeds up one-time build
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --disable-rpath do not hardcode runtime library paths
1450 --enable-doxygen Build API documentation using Doxygen [default=auto]
1451 --disable-mtpz Disable functionality to connect to MTPZ devices
1453 --disable-largefile omit support for large files
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-sysroot=DIR Search for dependent libraries within DIR
1462 (or the compiler's sysroot if not specified).
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1465 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1466 --with-udev=DIR directory where udev is installed
1467 [default=/usr/lib/udev]
1468 --with-udev-rules=NAME file name for udev rules [default=69-libmtp.rules]
1469 --with-udev-group=GROUP file group for device nodes [default: none
1471 --with-udev-mode=GROUP file mode for device nodes [default: none specified]
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1482 PKG_CONFIG path to pkg-config utility
1484 directories to add to pkg-config's search path
1486 path overriding pkg-config's built-in search path
1488 C compiler flags for LIBUSB, overriding pkg-config
1489 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1494 Report bugs to <libmtp-discuss@lists.sourceforge.net>.
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" ||
1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1511 # A ".." for each directory in $ac_dir_suffix.
1512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1513 case $ac_top_builddir_sub in
1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 ac_abs_top_builddir=$ac_pwd
1519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1520 # for backward compatibility:
1521 ac_top_builddir=$ac_top_build_prefix
1524 .) # We are building in place.
1526 ac_top_srcdir=$ac_top_builddir_sub
1527 ac_abs_top_srcdir=$ac_pwd ;;
1528 [\\/]* | ?:[\\/]* ) # Absolute name.
1529 ac_srcdir=$srcdir$ac_dir_suffix;
1530 ac_top_srcdir=$srcdir
1531 ac_abs_top_srcdir=$srcdir ;;
1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1534 ac_top_srcdir=$ac_top_build_prefix$srcdir
1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1539 cd "$ac_dir" || { ac_status=$?; continue; }
1540 # Check for guested configure.
1541 if test -f "$ac_srcdir/configure.gnu"; then
1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1544 elif test -f "$ac_srcdir/configure"; then
1546 $SHELL "$ac_srcdir/configure" --help=recursive
1548 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550 cd "$ac_pwd" || { ac_status=$?; break; }
1554 test -n "$ac_init_help" && exit $ac_status
1555 if $ac_init_version; then
1557 libmtp configure 1.1.9
1558 generated by GNU Autoconf 2.69
1560 Copyright (C) 2012 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1567 ## ------------------------ ##
1568 ## Autoconf initialization. ##
1569 ## ------------------------ ##
1571 # ac_fn_c_try_compile LINENO
1572 # --------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_compile ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext
1578 if { { ac_try="$ac_compile"
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext; then :
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1607 } # ac_fn_c_try_compile
1609 # ac_fn_c_try_link LINENO
1610 # -----------------------
1611 # Try to link conftest.$ac_ext, and return whether this succeeded.
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext conftest$ac_exeext
1616 if { { ac_try="$ac_link"
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_link") 2>conftest.err
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest$ac_exeext && {
1635 test "$cross_compiling" = yes ||
1636 test -x conftest$ac_exeext
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1647 # interfere with the next link command; also delete a directory that is
1648 # left behind by Apple's compiler. We do this before executing the actions.
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1653 } # ac_fn_c_try_link
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1672 if ac_fn_c_try_compile "$LINENO"; then :
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 } # ac_fn_c_check_header_compile
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } > conftest.i && {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1723 # ac_fn_c_try_run LINENO
1724 # ----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726 # that executables *can* be run.
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_link"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>&5
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741 { { case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_try") 2>&5
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; }; }; then :
1753 $as_echo "$as_me: program exited with status $ac_status" >&5
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=$ac_status
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1765 # ac_fn_c_check_func LINENO FUNC VAR
1766 # ----------------------------------
1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1768 ac_fn_c_check_func ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \${$3+:} false; then :
1774 $as_echo_n "(cached) " >&6
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1780 #define $2 innocuous_$2
1782 /* System header to define __stub macros and hopefully few prototypes,
1783 which can conflict with char $2 (); below.
1784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1785 <limits.h> exists even on freestanding compilers. */
1788 # include <limits.h>
1790 # include <assert.h>
1795 /* Override any GCC internal prototype to avoid an error.
1796 Use char because int might match the return type of a GCC
1797 builtin and then its argument prototype would still apply. */
1802 /* The GNU C library defines this for functions which it implements
1803 to always fail with ENOSYS. Some functions are actually named
1804 something starting with __ and the normal name is an alias. */
1805 #if defined __stub_$2 || defined __stub___$2
1817 if ac_fn_c_try_link "$LINENO"; then :
1822 rm -f core conftest.err conftest.$ac_objext \
1823 conftest$ac_exeext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 } # ac_fn_c_check_func
1832 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1835 # the include files in INCLUDES and setting the cache variable VAR
1837 ac_fn_c_check_header_mongrel ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if eval \${$3+:} false; then :
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1850 # Is the header compilable?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1852 $as_echo_n "checking $2 usability... " >&6; }
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859 ac_header_compiler=yes
1861 ac_header_compiler=no
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1865 $as_echo "$ac_header_compiler" >&6; }
1867 # Is the header present?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1869 $as_echo_n "checking $2 presence... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1874 if ac_fn_c_try_cpp "$LINENO"; then :
1875 ac_header_preproc=yes
1877 ac_header_preproc=no
1879 rm -f conftest.err conftest.i conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1881 $as_echo "$ac_header_preproc" >&6; }
1883 # So? What about this header?
1884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1887 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1893 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1895 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1897 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1899 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 ( $as_echo "## --------------------------------------------------- ##
1903 ## Report this to libmtp-discuss@lists.sourceforge.net ##
1904 ## --------------------------------------------------- ##"
1905 ) | sed "s/^/$as_me: WARNING: /" >&2
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1913 eval "$3=\$ac_header_compiler"
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 } # ac_fn_c_check_header_mongrel
1923 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1924 # -------------------------------------------
1925 # Tests whether TYPE exists after having included INCLUDES, setting cache
1926 # variable VAR accordingly.
1927 ac_fn_c_check_type ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if eval \${$3+:} false; then :
1933 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1961 if ac_fn_c_try_compile "$LINENO"; then :
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_type
1977 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1978 # ----------------------------------------------------
1979 # Tries to find if the field MEMBER exists in type AGGR, after including
1980 # INCLUDES, setting cache variable VAR accordingly.
1981 ac_fn_c_check_member ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1985 $as_echo_n "checking for $2.$3... " >&6; }
1986 if eval \${$4+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
2002 if ac_fn_c_try_compile "$LINENO"; then :
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2012 if (sizeof ac_aggr.$3)
2018 if ac_fn_c_try_compile "$LINENO"; then :
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_member
2033 cat >config.log <<_ACEOF
2034 This file contains any messages produced by compilers while
2035 running configure, to aid debugging if configure makes a mistake.
2037 It was created by libmtp $as_me 1.1.9, which was
2038 generated by GNU Autoconf 2.69. Invocation command line was
2050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2062 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 test -z "$as_dir" && as_dir=.
2074 $as_echo "PATH: $as_dir"
2090 # Keep a trace of the command line.
2091 # Strip out --no-create and --no-recursion so they do not pile up.
2092 # Strip out --silent because we don't want to record it for future runs.
2093 # Also quote any args containing shell meta-characters.
2094 # Make two passes to allow for proper duplicate-argument suppression.
2098 ac_must_keep_next=false
2104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2106 | -silent | --silent | --silen | --sile | --sil)
2109 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2112 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2114 as_fn_append ac_configure_args1 " '$ac_arg'"
2115 if test $ac_must_keep_next = true; then
2116 ac_must_keep_next=false # Got value, back to normal.
2119 *=* | --config-cache | -C | -disable-* | --disable-* \
2120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2122 | -with-* | --with-* | -without-* | --without-* | --x)
2123 case "$ac_configure_args0 " in
2124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2127 -* ) ac_must_keep_next=true ;;
2130 as_fn_append ac_configure_args " '$ac_arg'"
2135 { ac_configure_args0=; unset ac_configure_args0;}
2136 { ac_configure_args1=; unset ac_configure_args1;}
2138 # When interrupted or exit'd, cleanup temporary files, and complete
2139 # config.log. We remove comments because anyway the quotes in there
2140 # would cause problems or look ugly.
2141 # WARNING: Use '\'' to represent an apostrophe within the trap.
2142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2143 trap 'exit_status=$?
2144 # Save into config.log some information that might help in debugging.
2148 $as_echo "## ---------------- ##
2149 ## Cache variables. ##
2150 ## ---------------- ##"
2152 # The following way of writing the cache mishandles newlines in values,
2154 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2155 eval ac_val=\$$ac_var
2159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2163 _ | IFS | as_nl) ;; #(
2164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2165 *) { eval $ac_var=; unset $ac_var;} ;;
2170 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2171 *${as_nl}ac_space=\ *)
2173 "s/'\''/'\''\\\\'\'''\''/g;
2174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2184 $as_echo "## ----------------- ##
2185 ## Output variables. ##
2186 ## ----------------- ##"
2188 for ac_var in $ac_subst_vars
2190 eval ac_val=\$$ac_var
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194 $as_echo "$ac_var='\''$ac_val'\''"
2198 if test -n "$ac_subst_files"; then
2199 $as_echo "## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##"
2203 for ac_var in $ac_subst_files
2205 eval ac_val=\$$ac_var
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209 $as_echo "$ac_var='\''$ac_val'\''"
2214 if test -s confdefs.h; then
2215 $as_echo "## ----------- ##
2222 test "$ac_signal" != 0 &&
2223 $as_echo "$as_me: caught signal $ac_signal"
2224 $as_echo "$as_me: exit $exit_status"
2226 rm -f core *.core core.conftest.* &&
2227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230 for ac_signal in 1 2 13 15; do
2231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2236 rm -f -r conftest* confdefs.h
2238 $as_echo "/* confdefs.h */" > confdefs.h
2240 # Predefined preprocessor variables.
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_NAME "$PACKAGE_NAME"
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_STRING "$PACKAGE_STRING"
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_URL "$PACKAGE_URL"
2267 # Let the site file select an alternate cache file if it wants to.
2268 # Prefer an explicitly selected file to automatically selected ones.
2271 if test -n "$CONFIG_SITE"; then
2272 # We do not want a PATH search for config.site.
2273 case $CONFIG_SITE in #((
2274 -*) ac_site_file1=./$CONFIG_SITE;;
2275 */*) ac_site_file1=$CONFIG_SITE;;
2276 *) ac_site_file1=./$CONFIG_SITE;;
2278 elif test "x$prefix" != xNONE; then
2279 ac_site_file1=$prefix/share/config.site
2280 ac_site_file2=$prefix/etc/config.site
2282 ac_site_file1=$ac_default_prefix/share/config.site
2283 ac_site_file2=$ac_default_prefix/etc/config.site
2285 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287 test "x$ac_site_file" = xNONE && continue
2288 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2291 sed 's/^/| /' "$ac_site_file" >&5
2293 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 as_fn_error $? "failed to load site script $ac_site_file
2296 See \`config.log' for more details" "$LINENO" 5; }
2300 if test -r "$cache_file"; then
2301 # Some versions of bash will fail to source /dev/null (special files
2302 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2303 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2305 $as_echo "$as_me: loading cache $cache_file" >&6;}
2307 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2308 *) . "./$cache_file";;
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2313 $as_echo "$as_me: creating cache $cache_file" >&6;}
2317 # Check that the precious variables saved in the cache have kept the same
2319 ac_cache_corrupted=false
2320 for ac_var in $ac_precious_vars; do
2321 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2322 eval ac_new_set=\$ac_env_${ac_var}_set
2323 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2324 eval ac_new_val=\$ac_env_${ac_var}_value
2325 case $ac_old_set,$ac_new_set in
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2328 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2329 ac_cache_corrupted=: ;;
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2333 ac_cache_corrupted=: ;;
2336 if test "x$ac_old_val" != "x$ac_new_val"; then
2337 # differences in whitespace do not lead to failure.
2338 ac_old_val_w=`echo x $ac_old_val`
2339 ac_new_val_w=`echo x $ac_new_val`
2340 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2342 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2343 ac_cache_corrupted=:
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2346 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2347 eval $ac_var=\$ac_old_val
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2350 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2352 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2355 # Pass precious variables to config.status.
2356 if test "$ac_new_set" = set; then
2358 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2359 *) ac_arg=$ac_var=$ac_new_val ;;
2361 case " $ac_configure_args " in
2362 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2363 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2367 if $ac_cache_corrupted; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2371 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2372 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2374 ## -------------------- ##
2375 ## Main body of script. ##
2376 ## -------------------- ##
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386 am__api_version='1.13'
2389 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2390 if test -f "$ac_dir/install-sh"; then
2392 ac_install_sh="$ac_aux_dir/install-sh -c"
2394 elif test -f "$ac_dir/install.sh"; then
2396 ac_install_sh="$ac_aux_dir/install.sh -c"
2398 elif test -f "$ac_dir/shtool"; then
2400 ac_install_sh="$ac_aux_dir/shtool install -c"
2404 if test -z "$ac_aux_dir"; then
2405 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2408 # These three variables are undocumented and unsupported,
2409 # and are intended to be withdrawn in a future Autoconf release.
2410 # They can cause serious problems if a builder's source tree is in a directory
2411 # whose full name contains unusual characters.
2412 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2413 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2414 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2417 # Find a good install program. We prefer a C program (faster),
2418 # so one script is as good as another. But avoid the broken or
2419 # incompatible versions:
2420 # SysV /etc/install, /usr/sbin/install
2421 # SunOS /usr/etc/install
2422 # IRIX /sbin/install
2424 # AmigaOS /C/install, which installs bootblocks on floppy discs
2425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2428 # OS/2's system install, which has a completely different semantic
2429 # ./install, which can be erroneously created by make from ./install.sh.
2430 # Reject install programs that cannot install multiple files.
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2433 if test -z "$INSTALL"; then
2434 if ${ac_cv_path_install+:} false; then :
2435 $as_echo_n "(cached) " >&6
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 # Account for people who put trailing slashes in PATH elements.
2443 case $as_dir/ in #((
2444 ./ | .// | /[cC]/* | \
2445 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2446 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2449 # OSF1 and SCO ODT 3.0 have their own names for install.
2450 # Don't use installbsd from OSF since it installs stuff as root
2452 for ac_prog in ginstall scoinst install; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2455 if test $ac_prog = install &&
2456 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # AIX install. It has an incompatible calling convention.
2459 elif test $ac_prog = install &&
2460 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # program-specific install script used by HP pwplus--don't use.
2464 rm -rf conftest.one conftest.two conftest.dir
2465 echo one > conftest.one
2466 echo two > conftest.two
2468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2469 test -s conftest.one && test -s conftest.two &&
2470 test -s conftest.dir/conftest.one &&
2471 test -s conftest.dir/conftest.two
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2486 rm -rf conftest.one conftest.two conftest.dir
2489 if test "${ac_cv_path_install+set}" = set; then
2490 INSTALL=$ac_cv_path_install
2492 # As a last resort, use the slow shell script. Don't cache a
2493 # value for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the value is a relative name.
2496 INSTALL=$ac_install_sh
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2500 $as_echo "$INSTALL" >&6; }
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2511 $as_echo_n "checking whether build environment is sane... " >&6; }
2512 # Reject unsafe characters in $srcdir or the absolute working directory
2513 # name. Accept space and tab only in the latter.
2517 *[\\\"\#\$\&\'\`$am_lf]*)
2518 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2521 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2522 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2525 # Do 'set' in a subshell so we don't clobber the current shell's
2526 # arguments. Must try -L first in case configure is actually a
2527 # symlink; some systems play weird games with the mod time of symlinks
2528 # (eg FreeBSD returns the mod time of the symlink's containing
2532 for am_try in 1 2; do
2533 echo "timestamp, slept: $am_has_slept" > conftest.file
2534 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2535 if test "$*" = "X"; then
2537 set X `ls -t "$srcdir/configure" conftest.file`
2539 if test "$*" != "X $srcdir/configure conftest.file" \
2540 && test "$*" != "X conftest.file $srcdir/configure"; then
2542 # If neither matched, then we have a broken ls. This can happen
2543 # if, for instance, CONFIG_SHELL is bash and it inherits a
2544 # broken ls alias from the environment. This has actually
2545 # happened. Such a system could not be considered "sane".
2546 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2547 alias in your environment" "$LINENO" 5
2549 if test "$2" = conftest.file || test $am_try -eq 2; then
2556 test "$2" = conftest.file
2562 as_fn_error $? "newly created file is older than distributed files!
2563 Check your system clock" "$LINENO" 5
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2566 $as_echo "yes" >&6; }
2567 # If we didn't sleep, we still need to ensure time stamps of config.status and
2568 # generated files are strictly newer.
2570 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2577 test "$program_prefix" != NONE &&
2578 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2579 # Use a double $ so make ignores it.
2580 test "$program_suffix" != NONE &&
2581 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582 # Double any \ or $.
2583 # By default was `s,x,x', remove it if useless.
2584 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2587 # expand $ac_aux_dir to an absolute path
2588 am_aux_dir=`cd $ac_aux_dir && pwd`
2590 if test x"${MISSING+set}" != xset; then
2593 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2595 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2598 # Use eval to expand $SHELL
2599 if eval "$MISSING --is-lightweight"; then
2600 am_missing_run="$MISSING "
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2604 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2607 if test x"${install_sh}" != xset; then
2610 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2612 install_sh="\${SHELL} $am_aux_dir/install-sh"
2616 # Installed binaries are usually stripped using 'strip' when the user
2617 # run "make install-strip". However 'strip' might not be the right
2618 # tool to use in cross-compilation environments, therefore Automake
2619 # will honor the 'STRIP' environment variable to overrule this program.
2620 if test "$cross_compiling" != no; then
2621 if test -n "$ac_tool_prefix"; then
2622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2623 set dummy ${ac_tool_prefix}strip; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_STRIP+:} false; then :
2627 $as_echo_n "(cached) " >&6
2629 if test -n "$STRIP"; then
2630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 STRIP=$ac_cv_prog_STRIP
2650 if test -n "$STRIP"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2652 $as_echo "$STRIP" >&6; }
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655 $as_echo "no" >&6; }
2660 if test -z "$ac_cv_prog_STRIP"; then
2662 # Extract the first word of "strip", so it can be a program name with args.
2663 set dummy strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2667 $as_echo_n "(cached) " >&6
2669 if test -n "$ac_ct_STRIP"; then
2670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2679 ac_cv_prog_ac_ct_STRIP="strip"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2690 if test -n "$ac_ct_STRIP"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2692 $as_echo "$ac_ct_STRIP" >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2698 if test "x$ac_ct_STRIP" = x; then
2701 case $cross_compiling:$ac_tool_warned in
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned=yes ;;
2710 STRIP="$ac_cv_prog_STRIP"
2714 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2717 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2718 if test -z "$MKDIR_P"; then
2719 if ${ac_cv_path_mkdir+:} false; then :
2720 $as_echo_n "(cached) " >&6
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2726 test -z "$as_dir" && as_dir=.
2727 for ac_prog in mkdir gmkdir; do
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2730 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2731 'mkdir (GNU coreutils) '* | \
2732 'mkdir (coreutils) '* | \
2733 'mkdir (fileutils) '4.1*)
2734 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2744 test -d ./--version && rmdir ./--version
2745 if test "${ac_cv_path_mkdir+set}" = set; then
2746 MKDIR_P="$ac_cv_path_mkdir -p"
2748 # As a last resort, use the slow shell script. Don't cache a
2749 # value for MKDIR_P within a source directory, because that will
2750 # break other packages using the cache if that directory is
2751 # removed, or if the value is a relative name.
2752 MKDIR_P="$ac_install_sh -d"
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2756 $as_echo "$MKDIR_P" >&6; }
2758 for ac_prog in gawk mawk nawk awk
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_AWK+:} false; then :
2765 $as_echo_n "(cached) " >&6
2767 if test -n "$AWK"; then
2768 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_AWK="$ac_prog"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 if test -n "$AWK"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2790 $as_echo "$AWK" >&6; }
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2797 test -n "$AWK" && break
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2801 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2803 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2804 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2805 $as_echo_n "(cached) " >&6
2807 cat >conftest.make <<\_ACEOF
2810 @echo '@@@%%%=$(MAKE)=@@@%%%'
2812 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2813 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2815 eval ac_cv_prog_make_${ac_make}_set=yes;;
2817 eval ac_cv_prog_make_${ac_make}_set=no;;
2821 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2823 $as_echo "yes" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 SET_MAKE="MAKE=${MAKE-make}"
2831 rm -rf .tst 2>/dev/null
2832 mkdir .tst 2>/dev/null
2833 if test -d .tst; then
2838 rmdir .tst 2>/dev/null
2840 # Check whether --enable-silent-rules was given.
2841 if test "${enable_silent_rules+set}" = set; then :
2842 enableval=$enable_silent_rules;
2845 case $enable_silent_rules in # (((
2846 yes) AM_DEFAULT_VERBOSITY=0;;
2847 no) AM_DEFAULT_VERBOSITY=1;;
2848 *) AM_DEFAULT_VERBOSITY=1;;
2850 am_make=${MAKE-make}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2852 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2853 if ${am_cv_make_support_nested_variables+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if $as_echo 'TRUE=$(BAR$(V))
2862 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2863 am_cv_make_support_nested_variables=yes
2865 am_cv_make_support_nested_variables=no
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2869 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2870 if test $am_cv_make_support_nested_variables = yes; then
2872 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2874 AM_V=$AM_DEFAULT_VERBOSITY
2875 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2879 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2880 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2881 # is not polluted with repeated "-I."
2882 am__isrc=' -I$(srcdir)'
2883 # test to see if srcdir already configured
2884 if test -f $srcdir/config.status; then
2885 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2889 # test whether we have cygpath
2890 if test -z "$CYGPATH_W"; then
2891 if (cygpath --version) >/dev/null 2>/dev/null; then
2892 CYGPATH_W='cygpath -w'
2899 # Define the identity of the package.
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE "$PACKAGE"
2909 cat >>confdefs.h <<_ACEOF
2910 #define VERSION "$VERSION"
2913 # Some tools Automake needs.
2915 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2918 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2921 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2924 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2927 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2929 # For better backward compatibility. To be removed once Automake 1.9.x
2930 # dies out for good. For more background, see:
2931 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2932 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2933 mkdir_p='$(MKDIR_P)'
2935 # We need awk for the "check" target. The system "awk" is bad on
2937 # Always define AMTAR for backward compatibility. Yes, it's still used
2938 # in the wild :-( We should find a proper way to deprecate it ...
2942 # We'll loop over all known methods to create a tar archive until one works.
2943 _am_tools='gnutar pax cpio none'
2945 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2953 ac_config_headers="$ac_config_headers config.h"
2956 # Checks for programs.
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 if test -n "$CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
3001 if test -z "$ac_cv_prog_CC"; then
3003 # Extract the first word of "gcc", so it can be a program name with args.
3004 set dummy gcc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$ac_ct_CC"; then
3011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 ac_cv_prog_ac_ct_CC="gcc"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031 if test -n "$ac_ct_CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033 $as_echo "$ac_ct_CC" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3039 if test "x$ac_ct_CC" = x; then
3042 case $cross_compiling:$ac_tool_warned in
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3054 if test -z "$CC"; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061 $as_echo_n "(cached) " >&6
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_CC="${ac_tool_prefix}cc"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3095 if test -z "$CC"; then
3096 # Extract the first word of "cc", so it can be a program name with args.
3097 set dummy cc; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if ${ac_cv_prog_CC+:} false; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115 ac_prog_rejected=yes
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test $ac_prog_rejected = yes; then
3127 # We found a bogon in the path, so make sure we never use it.
3128 set dummy $ac_cv_prog_CC
3130 if test $# != 0; then
3131 # We chose a different compiler from the bogus one.
3132 # However, it has the same basename, so the bogon will be chosen
3133 # first if we set CC to just the basename; use the full file name.
3135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3151 if test -z "$CC"; then
3152 if test -n "$ac_tool_prefix"; then
3153 for ac_prog in cl.exe
3155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160 $as_echo_n "(cached) " >&6
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3192 test -n "$CC" && break
3195 if test -z "$CC"; then
3197 for ac_prog in cl.exe
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_CC="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3236 test -n "$ac_ct_CC" && break
3239 if test "x$ac_ct_CC" = x; then
3242 case $cross_compiling:$ac_tool_warned in
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3255 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error $? "no acceptable C compiler found in \$PATH
3258 See \`config.log' for more details" "$LINENO" 5; }
3260 # Provide some information about the compiler.
3261 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3264 for ac_option in --version -v -V -qversion; do
3265 { { ac_try="$ac_compiler $ac_option >&5"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3274 if test -s conftest.err; then
3276 ... rest of stderr output deleted ...
3277 10q' conftest.err >conftest.er1
3278 cat conftest.er1 >&5
3280 rm -f conftest.er1 conftest.err
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3296 ac_clean_files_save=$ac_clean_files
3297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298 # Try to create an executable without -o first, disregard a.out.
3299 # It will help us diagnose broken compilers, and finding out an intuition
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3302 $as_echo_n "checking whether the C compiler works... " >&6; }
3303 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305 # The possible output files:
3306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3309 for ac_file in $ac_files
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318 if { { ac_try="$ac_link_default"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link_default") 2>&5
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }; then :
3329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3332 # so that the user can short-circuit this test for compilers unknown to
3334 for ac_file in $ac_files ''
3336 test -f "$ac_file" || continue
3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3341 # We found the default executable, but exeext='' is most
3345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 # We set ac_cv_exeext here because the later test for it is not
3350 # safe: cross compilers may not add the suffix if given an `-o'
3351 # argument, so we may need to know it at that point already.
3352 # Even if this section looks crufty: it has the advantage of
3359 test "$ac_cv_exeext" = no && ac_cv_exeext=
3364 if test -z "$ac_file"; then :
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 $as_echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error 77 "C compiler cannot create executables
3373 See \`config.log' for more details" "$LINENO" 5; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376 $as_echo "yes" >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3379 $as_echo_n "checking for C compiler default output file name... " >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3381 $as_echo "$ac_file" >&6; }
3382 ac_exeext=$ac_cv_exeext
3384 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3385 ac_clean_files=$ac_clean_files_save
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3387 $as_echo_n "checking for suffix of executables... " >&6; }
3388 if { { ac_try="$ac_link"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link") 2>&5
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3401 # work properly (i.e., refer to `conftest.exe'), while it won't with
3403 for ac_file in conftest.exe conftest conftest.*; do
3404 test -f "$ac_file" || continue
3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3416 See \`config.log' for more details" "$LINENO" 5; }
3418 rm -f conftest conftest$ac_cv_exeext
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420 $as_echo "$ac_cv_exeext" >&6; }
3422 rm -f conftest.$ac_ext
3423 EXEEXT=$ac_cv_exeext
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3431 FILE *f = fopen ("conftest.out", "w");
3432 return ferror (f) || fclose (f) != 0;
3438 ac_clean_files="$ac_clean_files conftest.out"
3439 # Check that the compiler produces executables we can run. If not, either
3440 # the compiler is broken, or we cross compile.
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3442 $as_echo_n "checking whether we are cross compiling... " >&6; }
3443 if test "$cross_compiling" != yes; then
3444 { { ac_try="$ac_link"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_link") 2>&5
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }
3455 if { ac_try='./conftest$ac_cv_exeext'
3456 { { case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_try") 2>&5
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; }; then
3468 if test "$cross_compiling" = maybe; then
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot run C compiled programs.
3474 If you meant to cross compile, use \`--host'.
3475 See \`config.log' for more details" "$LINENO" 5; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3480 $as_echo "$cross_compiling" >&6; }
3482 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3483 ac_clean_files=$ac_clean_files_save
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3485 $as_echo_n "checking for suffix of object files... " >&6; }
3486 if ${ac_cv_objext+:} false; then :
3487 $as_echo_n "(cached) " >&6
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3500 rm -f conftest.o conftest.obj
3501 if { { ac_try="$ac_compile"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_compile") 2>&5
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 for ac_file in conftest.o conftest.obj conftest.*; do
3513 test -f "$ac_file" || continue;
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3516 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3521 $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of object files: cannot compile
3527 See \`config.log' for more details" "$LINENO" 5; }
3529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3532 $as_echo "$ac_cv_objext" >&6; }
3533 OBJEXT=$ac_cv_objext
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3536 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537 if ${ac_cv_c_compiler_gnu+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3554 if ac_fn_c_try_compile "$LINENO"; then :
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3564 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3565 if test $ac_compiler_gnu = yes; then
3570 ac_test_CFLAGS=${CFLAGS+set}
3571 ac_save_CFLAGS=$CFLAGS
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3574 if ${ac_cv_prog_cc_g+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 ac_save_c_werror_flag=$ac_c_werror_flag
3578 ac_c_werror_flag=yes
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3592 if ac_fn_c_try_compile "$LINENO"; then :
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3607 if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3623 if ac_fn_c_try_compile "$LINENO"; then :
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_c_werror_flag=$ac_save_c_werror_flag
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3634 $as_echo "$ac_cv_prog_cc_g" >&6; }
3635 if test "$ac_test_CFLAGS" = set; then
3636 CFLAGS=$ac_save_CFLAGS
3637 elif test $ac_cv_prog_cc_g = yes; then
3638 if test "$GCC" = yes; then
3644 if test "$GCC" = yes; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3651 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652 if ${ac_cv_prog_cc_c89+:} false; then :
3653 $as_echo_n "(cached) " >&6
3655 ac_cv_prog_cc_c89=no
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3663 struct buf { int x; };
3664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3665 static char *e (p, i)
3671 static char *f (char * (*g) (char **, int), char **p, ...)
3676 s = g (p, va_arg (v,int));
3681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3682 function prototypes and stuff, but not '\xHH' hex character constants.
3683 These don't provoke an error unfortunately, instead are silently treated
3684 as 'x'. The following induces an error, until -std is added to get
3685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3686 array size at least. It's necessary to write '\x00'==0 to get something
3687 that's true only with -std. */
3688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691 inside strings and character constants. */
3693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3695 int test (int i, double x);
3696 struct s1 {int (*f) (int a);};
3697 struct s2 {int (*f) (double a);};
3698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3712 CC="$ac_save_CC $ac_arg"
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714 ac_cv_prog_cc_c89=$ac_arg
3716 rm -f core conftest.err conftest.$ac_objext
3717 test "x$ac_cv_prog_cc_c89" != "xno" && break
3719 rm -f conftest.$ac_ext
3724 case "x$ac_cv_prog_cc_c89" in
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727 $as_echo "none needed" >&6; } ;;
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730 $as_echo "unsupported" >&6; } ;;
3732 CC="$CC $ac_cv_prog_cc_c89"
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3734 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3736 if test "x$ac_cv_prog_cc_c89" != xno; then :
3741 ac_cpp='$CPP $CPPFLAGS'
3742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 DEPDIR="${am__leading_dot}deps"
3747 ac_config_commands="$ac_config_commands depfiles"
3750 am_make=${MAKE-make}
3751 cat > confinc << 'END'
3753 @echo this is the am__doit target
3756 # If we don't find an include directive, just comment out the code.
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3758 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3762 # First try GNU make style include.
3763 echo "include confinc" > confmf
3764 # Ignore all kinds of additional output from 'make'.
3765 case `$am_make -s -f confmf 2> /dev/null` in #(
3766 *the\ am__doit\ target*)
3772 # Now try BSD make style include.
3773 if test "$am__include" = "#"; then
3774 echo '.include "confinc"' > confmf
3775 case `$am_make -s -f confmf 2> /dev/null` in #(
3776 *the\ am__doit\ target*)
3777 am__include=.include
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3786 $as_echo "$_am_result" >&6; }
3787 rm -f confinc confmf
3789 # Check whether --enable-dependency-tracking was given.
3790 if test "${enable_dependency_tracking+set}" = set; then :
3791 enableval=$enable_dependency_tracking;
3794 if test "x$enable_dependency_tracking" != xno; then
3795 am_depcomp="$ac_aux_dir/depcomp"
3799 if test "x$enable_dependency_tracking" != xno; then
3809 depcc="$CC" am_compiler_list=
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812 $as_echo_n "checking dependency style of $depcc... " >&6; }
3813 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817 # We make a subdir and do the tests there. Otherwise we can end up
3818 # making bogus files that we don't know about and never remove. For
3819 # instance it was reported that on HP-UX the gcc test will end up
3820 # making a dummy file named 'D' -- because '-MD' means "put the output
3824 # Copy depcomp to subdir because otherwise we won't find it if we're
3825 # using a relative directory.
3826 cp "$am_depcomp" conftest.dir
3828 # We will build objects and dependencies in a subdirectory because
3829 # it helps to detect inapplicable dependency modes. For instance
3830 # both Tru64's cc and ICC support -MD to output dependencies as a
3831 # side effect of compilation, but ICC will put the dependencies in
3832 # the current directory while Tru64 will put them in the object
3836 am_cv_CC_dependencies_compiler_type=none
3837 if test "$am_compiler_list" = ""; then
3838 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3841 case " $depcc " in #(
3842 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3845 for depmode in $am_compiler_list; do
3846 # Setup a source with many dependencies, because some compilers
3847 # like to wrap large dependency lists on column 80 (with \), and
3848 # we should not choose a depcomp mode which is confused by this.
3850 # We need to recreate these files for each test, as the compiler may
3851 # overwrite some of them when testing with obscure command lines.
3852 # This happens at least with the AIX C compiler.
3854 for i in 1 2 3 4 5 6; do
3855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3856 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3857 # Solaris 10 /bin/sh.
3858 echo '/* dummy */' > sub/conftst$i.h
3860 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3862 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3863 # mode. It turns out that the SunPro C++ compiler does not properly
3864 # handle '-M -o', and we need to detect this. Also, some Intel
3865 # versions had trouble with output in subdirs.
3866 am__obj=sub/conftest.${OBJEXT-o}
3867 am__minus_obj="-o $am__obj"
3870 # This depmode causes a compiler race in universal mode.
3871 test "$am__universal" = false || continue
3874 # After this tag, mechanisms are not by side-effect, so they'll
3875 # only be used when explicitly requested.
3876 if test "x$enable_dependency_tracking" = xyes; then
3882 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3883 # This compiler won't grok '-c -o', but also, the minuso test has
3884 # not run yet. These depmodes are late enough in the game, and
3885 # so weak that their functioning should not be impacted.
3886 am__obj=conftest.${OBJEXT-o}
3891 if depmode=$depmode \
3892 source=sub/conftest.c object=$am__obj \
3893 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3894 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3895 >/dev/null 2>conftest.err &&
3896 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3897 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3898 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3899 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3900 # icc doesn't choke on unknown options, it will just issue warnings
3901 # or remarks (even with -Werror). So we grep stderr for any message
3902 # that says an option was ignored or not supported.
3903 # When given -MP, icc 7.0 and 7.1 complain thusly:
3904 # icc: Command line warning: ignoring option '-M'; no argument required
3905 # The diagnosis changed in icc 8.0:
3906 # icc: Command line remark: option '-MP' not supported
3907 if (grep 'ignoring option' conftest.err ||
3908 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3909 am_cv_CC_dependencies_compiler_type=$depmode
3918 am_cv_CC_dependencies_compiler_type=none
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3923 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3924 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3927 test "x$enable_dependency_tracking" != xno \
3928 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3930 am__fastdepCC_FALSE='#'
3932 am__fastdepCC_TRUE='#'
3933 am__fastdepCC_FALSE=
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3939 $as_echo_n "checking whether ln -s works... " >&6; }
3941 if test "$LN_S" = "ln -s"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3943 $as_echo "yes" >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3946 $as_echo "no, using $LN_S" >&6; }
3949 # Make sure we can run config.sub.
3950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3951 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3954 $as_echo_n "checking build system type... " >&6; }
3955 if ${ac_cv_build+:} false; then :
3956 $as_echo_n "(cached) " >&6
3958 ac_build_alias=$build_alias
3959 test "x$ac_build_alias" = x &&
3960 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3961 test "x$ac_build_alias" = x &&
3962 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3963 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3964 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3968 $as_echo "$ac_cv_build" >&6; }
3969 case $ac_cv_build in
3971 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3974 ac_save_IFS=$IFS; IFS='-'
3980 # Remember, the first character of IFS is used to create $*,
3981 # except with old shells:
3984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3988 $as_echo_n "checking host system type... " >&6; }
3989 if ${ac_cv_host+:} false; then :
3990 $as_echo_n "(cached) " >&6
3992 if test "x$host_alias" = x; then
3993 ac_cv_host=$ac_cv_build
3995 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3996 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4001 $as_echo "$ac_cv_host" >&6; }
4004 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4007 ac_save_IFS=$IFS; IFS='-'
4013 # Remember, the first character of IFS is used to create $*,
4014 # except with old shells:
4017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4020 enable_win32_dll=yes
4023 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4024 if test -n "$ac_tool_prefix"; then
4025 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4026 set dummy ${ac_tool_prefix}as; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_AS+:} false; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -n "$AS"; then
4033 ac_cv_prog_AS="$AS" # Let the user override the test.
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_AS="${ac_tool_prefix}as"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 if test -n "$AS"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4055 $as_echo "$AS" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4063 if test -z "$ac_cv_prog_AS"; then
4065 # Extract the first word of "as", so it can be a program name with args.
4066 set dummy as; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 if test -n "$ac_ct_AS"; then
4073 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_prog_ac_ct_AS="as"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4093 if test -n "$ac_ct_AS"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4095 $as_echo "$ac_ct_AS" >&6; }
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4101 if test "x$ac_ct_AS" = x; then
4104 case $cross_compiling:$ac_tool_warned in
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4108 ac_tool_warned=yes ;;
4116 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_DLLTOOL+:} false; then :
4122 $as_echo_n "(cached) " >&6
4124 if test -n "$DLLTOOL"; then
4125 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 DLLTOOL=$ac_cv_prog_DLLTOOL
4145 if test -n "$DLLTOOL"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4147 $as_echo "$DLLTOOL" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4155 if test -z "$ac_cv_prog_DLLTOOL"; then
4156 ac_ct_DLLTOOL=$DLLTOOL
4157 # Extract the first word of "dlltool", so it can be a program name with args.
4158 set dummy dlltool; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 if test -n "$ac_ct_DLLTOOL"; then
4165 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4185 if test -n "$ac_ct_DLLTOOL"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4187 $as_echo "$ac_ct_DLLTOOL" >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4193 if test "x$ac_ct_DLLTOOL" = x; then
4196 case $cross_compiling:$ac_tool_warned in
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4200 ac_tool_warned=yes ;;
4202 DLLTOOL=$ac_ct_DLLTOOL
4205 DLLTOOL="$ac_cv_prog_DLLTOOL"
4208 if test -n "$ac_tool_prefix"; then
4209 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4210 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_OBJDUMP+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -n "$OBJDUMP"; then
4217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 OBJDUMP=$ac_cv_prog_OBJDUMP
4237 if test -n "$OBJDUMP"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4239 $as_echo "$OBJDUMP" >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4247 if test -z "$ac_cv_prog_OBJDUMP"; then
4248 ac_ct_OBJDUMP=$OBJDUMP
4249 # Extract the first word of "objdump", so it can be a program name with args.
4250 set dummy objdump; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4256 if test -n "$ac_ct_OBJDUMP"; then
4257 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4277 if test -n "$ac_ct_OBJDUMP"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4279 $as_echo "$ac_ct_OBJDUMP" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4285 if test "x$ac_ct_OBJDUMP" = x; then
4288 case $cross_compiling:$ac_tool_warned in
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4292 ac_tool_warned=yes ;;
4294 OBJDUMP=$ac_ct_OBJDUMP
4297 OBJDUMP="$ac_cv_prog_OBJDUMP"
4303 test -z "$AS" && AS=as
4309 test -z "$DLLTOOL" && DLLTOOL=dlltool
4315 test -z "$OBJDUMP" && OBJDUMP=objdump
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4331 macro_version='2.4.2'
4332 macro_revision='1.3337'
4346 ltmain="$ac_aux_dir/ltmain.sh"
4348 # Backslashify metacharacters that are still active within
4349 # double-quoted strings.
4350 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4352 # Same as above, but do not quote variable references.
4353 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4355 # Sed substitution to delay expansion of an escaped shell variable in a
4356 # double_quote_subst'ed string.
4357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4359 # Sed substitution to delay expansion of an escaped single quote.
4360 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4362 # Sed substitution to avoid accidental globbing in evaled expressions
4363 no_glob_subst='s/\*/\\\*/g'
4365 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4366 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4370 $as_echo_n "checking how to print strings... " >&6; }
4371 # Test print first, because it will be a builtin if present.
4372 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4373 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4375 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4378 # Use this function as a fallback that always works.
4379 func_fallback_echo ()
4381 eval 'cat <<_LTECHO_EOF
4385 ECHO='func_fallback_echo'
4388 # func_echo_all arg...
4389 # Invoke $ECHO with all args, space-separated.
4396 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4397 $as_echo "printf" >&6; } ;;
4398 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4399 $as_echo "print -r" >&6; } ;;
4400 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4401 $as_echo "cat" >&6; } ;;
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4418 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4419 if ${ac_cv_path_SED+:} false; then :
4420 $as_echo_n "(cached) " >&6
4422 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4423 for ac_i in 1 2 3 4 5 6 7; do
4424 ac_script="$ac_script$as_nl$ac_script"
4426 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4427 { ac_script=; unset ac_script;}
4428 if test -z "$SED"; then
4429 ac_path_SED_found=false
4430 # Loop through the user's path and test for each of PROGNAME-LIST
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_prog in sed gsed; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4439 as_fn_executable_p "$ac_path_SED" || continue
4440 # Check for GNU ac_path_SED and select it if it is found.
4441 # Check for GNU $ac_path_SED
4442 case `"$ac_path_SED" --version 2>&1` in
4444 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4447 $as_echo_n 0123456789 >"conftest.in"
4450 cat "conftest.in" "conftest.in" >"conftest.tmp"
4451 mv "conftest.tmp" "conftest.in"
4452 cp "conftest.in" "conftest.nl"
4453 $as_echo '' >> "conftest.nl"
4454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456 as_fn_arith $ac_count + 1 && ac_count=$as_val
4457 if test $ac_count -gt ${ac_path_SED_max-0}; then
4458 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_SED="$ac_path_SED"
4460 ac_path_SED_max=$ac_count
4462 # 10*(2^10) chars as input seems more than enough
4463 test $ac_count -gt 10 && break
4465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4468 $ac_path_SED_found && break 3
4473 if test -z "$ac_cv_path_SED"; then
4474 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4482 $as_echo "$ac_cv_path_SED" >&6; }
4483 SED="$ac_cv_path_SED"
4486 test -z "$SED" && SED=sed
4487 Xsed="$SED -e 1s/^X//"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4500 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4501 if ${ac_cv_path_GREP+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -z "$GREP"; then
4505 ac_path_GREP_found=false
4506 # Loop through the user's path and test for each of PROGNAME-LIST
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511 test -z "$as_dir" && as_dir=.
4512 for ac_prog in grep ggrep; do
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4515 as_fn_executable_p "$ac_path_GREP" || continue
4516 # Check for GNU ac_path_GREP and select it if it is found.
4517 # Check for GNU $ac_path_GREP
4518 case `"$ac_path_GREP" --version 2>&1` in
4520 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4523 $as_echo_n 0123456789 >"conftest.in"
4526 cat "conftest.in" "conftest.in" >"conftest.tmp"
4527 mv "conftest.tmp" "conftest.in"
4528 cp "conftest.in" "conftest.nl"
4529 $as_echo 'GREP' >> "conftest.nl"
4530 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4532 as_fn_arith $ac_count + 1 && ac_count=$as_val
4533 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4534 # Best one so far, save it but keep looking for a better one
4535 ac_cv_path_GREP="$ac_path_GREP"
4536 ac_path_GREP_max=$ac_count
4538 # 10*(2^10) chars as input seems more than enough
4539 test $ac_count -gt 10 && break
4541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 $ac_path_GREP_found && break 3
4549 if test -z "$ac_cv_path_GREP"; then
4550 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553 ac_cv_path_GREP=$GREP
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4558 $as_echo "$ac_cv_path_GREP" >&6; }
4559 GREP="$ac_cv_path_GREP"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4563 $as_echo_n "checking for egrep... " >&6; }
4564 if ${ac_cv_path_EGREP+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4568 then ac_cv_path_EGREP="$GREP -E"
4570 if test -z "$EGREP"; then
4571 ac_path_EGREP_found=false
4572 # Loop through the user's path and test for each of PROGNAME-LIST
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 test -z "$as_dir" && as_dir=.
4578 for ac_prog in egrep; do
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4581 as_fn_executable_p "$ac_path_EGREP" || continue
4582 # Check for GNU ac_path_EGREP and select it if it is found.
4583 # Check for GNU $ac_path_EGREP
4584 case `"$ac_path_EGREP" --version 2>&1` in
4586 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4589 $as_echo_n 0123456789 >"conftest.in"
4592 cat "conftest.in" "conftest.in" >"conftest.tmp"
4593 mv "conftest.tmp" "conftest.in"
4594 cp "conftest.in" "conftest.nl"
4595 $as_echo 'EGREP' >> "conftest.nl"
4596 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598 as_fn_arith $ac_count + 1 && ac_count=$as_val
4599 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4600 # Best one so far, save it but keep looking for a better one
4601 ac_cv_path_EGREP="$ac_path_EGREP"
4602 ac_path_EGREP_max=$ac_count
4604 # 10*(2^10) chars as input seems more than enough
4605 test $ac_count -gt 10 && break
4607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610 $ac_path_EGREP_found && break 3
4615 if test -z "$ac_cv_path_EGREP"; then
4616 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619 ac_cv_path_EGREP=$EGREP
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4625 $as_echo "$ac_cv_path_EGREP" >&6; }
4626 EGREP="$ac_cv_path_EGREP"
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4630 $as_echo_n "checking for fgrep... " >&6; }
4631 if ${ac_cv_path_FGREP+:} false; then :
4632 $as_echo_n "(cached) " >&6
4634 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4635 then ac_cv_path_FGREP="$GREP -F"
4637 if test -z "$FGREP"; then
4638 ac_path_FGREP_found=false
4639 # Loop through the user's path and test for each of PROGNAME-LIST
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644 test -z "$as_dir" && as_dir=.
4645 for ac_prog in fgrep; do
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4648 as_fn_executable_p "$ac_path_FGREP" || continue
4649 # Check for GNU ac_path_FGREP and select it if it is found.
4650 # Check for GNU $ac_path_FGREP
4651 case `"$ac_path_FGREP" --version 2>&1` in
4653 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4656 $as_echo_n 0123456789 >"conftest.in"
4659 cat "conftest.in" "conftest.in" >"conftest.tmp"
4660 mv "conftest.tmp" "conftest.in"
4661 cp "conftest.in" "conftest.nl"
4662 $as_echo 'FGREP' >> "conftest.nl"
4663 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665 as_fn_arith $ac_count + 1 && ac_count=$as_val
4666 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4667 # Best one so far, save it but keep looking for a better one
4668 ac_cv_path_FGREP="$ac_path_FGREP"
4669 ac_path_FGREP_max=$ac_count
4671 # 10*(2^10) chars as input seems more than enough
4672 test $ac_count -gt 10 && break
4674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677 $ac_path_FGREP_found && break 3
4682 if test -z "$ac_cv_path_FGREP"; then
4683 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4686 ac_cv_path_FGREP=$FGREP
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4692 $as_echo "$ac_cv_path_FGREP" >&6; }
4693 FGREP="$ac_cv_path_FGREP"
4696 test -z "$GREP" && GREP=grep
4716 # Check whether --with-gnu-ld was given.
4717 if test "${with_gnu_ld+set}" = set; then :
4718 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4724 if test "$GCC" = yes; then
4725 # Check if gcc -print-prog-name=ld gives a path.
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4727 $as_echo_n "checking for ld used by $CC... " >&6; }
4730 # gcc leaves a trailing carriage return which upsets mingw
4731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4736 # Accept absolute paths.
4738 re_direlt='/[^/][^/]*/\.\./'
4739 # Canonicalize the pathname of ld
4740 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4741 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4742 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4744 test -z "$LD" && LD="$ac_prog"
4747 # If it fails, then pretend we aren't using GCC.
4751 # If it is relative, then search for the first ld in PATH.
4755 elif test "$with_gnu_ld" = yes; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4757 $as_echo_n "checking for GNU ld... " >&6; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4760 $as_echo_n "checking for non-GNU ld... " >&6; }
4762 if ${lt_cv_path_LD+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 if test -z "$LD"; then
4766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4767 for ac_dir in $PATH; do
4769 test -z "$ac_dir" && ac_dir=.
4770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4771 lt_cv_path_LD="$ac_dir/$ac_prog"
4772 # Check to see if the program is GNU ld. I'd rather use --version,
4773 # but apparently some variants of GNU ld only accept -v.
4774 # Break only if it was the GNU/non-GNU ld that we prefer.
4775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4776 *GNU* | *'with BFD'*)
4777 test "$with_gnu_ld" != no && break
4780 test "$with_gnu_ld" != yes && break
4787 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4792 if test -n "$LD"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4794 $as_echo "$LD" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4799 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4802 if ${lt_cv_prog_gnu_ld+:} false; then :
4803 $as_echo_n "(cached) " >&6
4805 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4806 case `$LD -v 2>&1 </dev/null` in
4807 *GNU* | *'with BFD'*)
4808 lt_cv_prog_gnu_ld=yes
4811 lt_cv_prog_gnu_ld=no
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4816 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4817 with_gnu_ld=$lt_cv_prog_gnu_ld
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4828 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4829 if ${lt_cv_path_NM+:} false; then :
4830 $as_echo_n "(cached) " >&6
4832 if test -n "$NM"; then
4833 # Let the user override the test.
4836 lt_nm_to_check="${ac_tool_prefix}nm"
4837 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4838 lt_nm_to_check="$lt_nm_to_check nm"
4840 for lt_tmp_nm in $lt_nm_to_check; do
4841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4842 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4844 test -z "$ac_dir" && ac_dir=.
4845 tmp_nm="$ac_dir/$lt_tmp_nm"
4846 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4847 # Check to see if the nm accepts a BSD-compat flag.
4848 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4849 # nm: unknown option "B" ignored
4850 # Tru64's nm complains that /dev/null is an invalid object file
4851 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4852 */dev/null* | *'Invalid file or object type'*)
4853 lt_cv_path_NM="$tmp_nm -B"
4857 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4859 lt_cv_path_NM="$tmp_nm -p"
4863 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4864 continue # so that we can try to find one that supports BSD flags
4873 : ${lt_cv_path_NM=no}
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4877 $as_echo "$lt_cv_path_NM" >&6; }
4878 if test "$lt_cv_path_NM" != "no"; then
4881 # Didn't find any BSD compatible name lister, look for dumpbin.
4882 if test -n "$DUMPBIN"; then :
4883 # Let the user override the test.
4885 if test -n "$ac_tool_prefix"; then
4886 for ac_prog in dumpbin "link -dump"
4888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_DUMPBIN+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -n "$DUMPBIN"; then
4896 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 DUMPBIN=$ac_cv_prog_DUMPBIN
4916 if test -n "$DUMPBIN"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4918 $as_echo "$DUMPBIN" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4925 test -n "$DUMPBIN" && break
4928 if test -z "$DUMPBIN"; then
4929 ac_ct_DUMPBIN=$DUMPBIN
4930 for ac_prog in dumpbin "link -dump"
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4937 $as_echo_n "(cached) " >&6
4939 if test -n "$ac_ct_DUMPBIN"; then
4940 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4962 $as_echo "$ac_ct_DUMPBIN" >&6; }
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4969 test -n "$ac_ct_DUMPBIN" && break
4972 if test "x$ac_ct_DUMPBIN" = x; then
4975 case $cross_compiling:$ac_tool_warned in
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4981 DUMPBIN=$ac_ct_DUMPBIN
4985 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4987 DUMPBIN="$DUMPBIN -symbols"
4995 if test "$DUMPBIN" != ":"; then
4999 test -z "$NM" && NM=nm
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5007 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5008 if ${lt_cv_nm_interface+:} false; then :
5009 $as_echo_n "(cached) " >&6
5011 lt_cv_nm_interface="BSD nm"
5012 echo "int some_variable = 0;" > conftest.$ac_ext
5013 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5014 (eval "$ac_compile" 2>conftest.err)
5015 cat conftest.err >&5
5016 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5017 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5018 cat conftest.err >&5
5019 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5020 cat conftest.out >&5
5021 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5022 lt_cv_nm_interface="MS dumpbin"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5027 $as_echo "$lt_cv_nm_interface" >&6; }
5029 # find the maximum length of command line arguments
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5031 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5032 if ${lt_cv_sys_max_cmd_len+:} false; then :
5033 $as_echo_n "(cached) " >&6
5040 # On DJGPP, this test can blow up pretty badly due to problems in libc
5041 # (any single argument exceeding 2000 bytes causes a buffer overrun
5042 # during glob expansion). Even if it were fixed, the result of this
5043 # check would be larger than it should be.
5044 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5048 # Under GNU Hurd, this test is not required because there is
5049 # no limit to the length of command line arguments.
5050 # Libtool will interpret -1 as no limit whatsoever
5051 lt_cv_sys_max_cmd_len=-1;
5054 cygwin* | mingw* | cegcc*)
5055 # On Win9x/ME, this test blows up -- it succeeds, but takes
5056 # about 5 minutes as the teststring grows exponentially.
5057 # Worse, since 9x/ME are not pre-emptively multitasking,
5058 # you end up with a "frozen" computer, even though with patience
5059 # the test eventually succeeds (with a max line length of 256k).
5060 # Instead, let's just punt: use the minimum linelength reported by
5061 # all of the supported platforms: 8192 (on NT/2K/XP).
5062 lt_cv_sys_max_cmd_len=8192;
5066 # On MiNT this can take a long time and run out of memory.
5067 lt_cv_sys_max_cmd_len=8192;
5071 # On AmigaOS with pdksh, this test takes hours, literally.
5072 # So we just punt and use a minimum line length of 8192.
5073 lt_cv_sys_max_cmd_len=8192;
5076 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5077 # This has been around since 386BSD, at least. Likely further.
5078 if test -x /sbin/sysctl; then
5079 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5080 elif test -x /usr/sbin/sysctl; then
5081 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5083 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5085 # And add a safety zone
5086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5091 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5092 lt_cv_sys_max_cmd_len=196608
5096 # The test takes a long time on OS/2.
5097 lt_cv_sys_max_cmd_len=8192
5101 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5102 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5103 # nice to cause kernel panics so lets avoid the loop below.
5104 # First set a reasonable default.
5105 lt_cv_sys_max_cmd_len=16384
5107 if test -x /sbin/sysconfig; then
5108 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5109 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5114 lt_cv_sys_max_cmd_len=102400
5116 sysv5* | sco5v6* | sysv4.2uw2*)
5117 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5118 if test -n "$kargmax"; then
5119 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5121 lt_cv_sys_max_cmd_len=32768
5125 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5126 if test -n "$lt_cv_sys_max_cmd_len"; then
5127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5130 # Make teststring a little bigger before we do anything with it.
5131 # a 1K string should be a reasonable start.
5132 for i in 1 2 3 4 5 6 7 8 ; do
5133 teststring=$teststring$teststring
5135 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5136 # If test is not a shell built-in, we'll probably end up computing a
5137 # maximum length that is only half of the actual maximum length, but
5139 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5140 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5141 test $i != 17 # 1/2 MB should be enough
5144 teststring=$teststring$teststring
5146 # Only check the string length outside the loop.
5147 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5149 # Add a significant safety factor because C++ compilers can tack on
5150 # massive amounts of additional arguments before passing them to the
5151 # linker. It appears as though 1/2 is a usable value.
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5159 if test -n $lt_cv_sys_max_cmd_len ; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5161 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5164 $as_echo "none" >&6; }
5166 max_cmd_len=$lt_cv_sys_max_cmd_len
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5178 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5179 # Try some XSI features
5182 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5184 && eval 'test $(( 1 + 1 )) -eq 2 \
5185 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5188 $as_echo "$xsi_shell" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5192 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5194 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5196 && lt_shell_append=yes
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5198 $as_echo "$lt_shell_append" >&6; }
5201 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5211 # test EBCDIC or ASCII
5212 case `echo X|tr X '\101'` in
5213 A) # ASCII based system
5214 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5215 lt_SP2NL='tr \040 \012'
5216 lt_NL2SP='tr \015\012 \040\040'
5218 *) # EBCDIC based system
5219 lt_SP2NL='tr \100 \n'
5220 lt_NL2SP='tr \r\n \100\100'
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5233 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5234 if ${lt_cv_to_host_file_cmd+:} false; then :
5235 $as_echo_n "(cached) " >&6
5240 *-*-mingw* ) # actually msys
5241 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5244 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5246 * ) # otherwise, assume *nix
5247 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5253 *-*-mingw* ) # actually msys
5254 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5257 lt_cv_to_host_file_cmd=func_convert_file_noop
5259 * ) # otherwise, assume *nix
5260 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5264 * ) # unhandled hosts (and "normal" native builds)
5265 lt_cv_to_host_file_cmd=func_convert_file_noop
5271 to_host_file_cmd=$lt_cv_to_host_file_cmd
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5273 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5280 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5281 if ${lt_cv_to_tool_file_cmd+:} false; then :
5282 $as_echo_n "(cached) " >&6
5284 #assume ordinary cross tools, or native build.
5285 lt_cv_to_tool_file_cmd=func_convert_file_noop
5289 *-*-mingw* ) # actually msys
5290 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5298 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5300 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5307 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5308 if ${lt_cv_ld_reload_flag+:} false; then :
5309 $as_echo_n "(cached) " >&6
5311 lt_cv_ld_reload_flag='-r'
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5314 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5315 reload_flag=$lt_cv_ld_reload_flag
5316 case $reload_flag in
5318 *) reload_flag=" $reload_flag" ;;
5320 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5322 cygwin* | mingw* | pw32* | cegcc*)
5323 if test "$GCC" != yes; then
5328 if test "$GCC" = yes; then
5329 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5331 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if ${ac_cv_prog_OBJDUMP+:} false; then :
5350 $as_echo_n "(cached) " >&6
5352 if test -n "$OBJDUMP"; then
5353 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 OBJDUMP=$ac_cv_prog_OBJDUMP
5373 if test -n "$OBJDUMP"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5375 $as_echo "$OBJDUMP" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5383 if test -z "$ac_cv_prog_OBJDUMP"; then
5384 ac_ct_OBJDUMP=$OBJDUMP
5385 # Extract the first word of "objdump", so it can be a program name with args.
5386 set dummy objdump; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5390 $as_echo_n "(cached) " >&6
5392 if test -n "$ac_ct_OBJDUMP"; then
5393 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5413 if test -n "$ac_ct_OBJDUMP"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5415 $as_echo "$ac_ct_OBJDUMP" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5421 if test "x$ac_ct_OBJDUMP" = x; then
5424 case $cross_compiling:$ac_tool_warned in
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428 ac_tool_warned=yes ;;
5430 OBJDUMP=$ac_ct_OBJDUMP
5433 OBJDUMP="$ac_cv_prog_OBJDUMP"
5436 test -z "$OBJDUMP" && OBJDUMP=objdump
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5444 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5445 if ${lt_cv_deplibs_check_method+:} false; then :
5446 $as_echo_n "(cached) " >&6
5448 lt_cv_file_magic_cmd='$MAGIC_CMD'
5449 lt_cv_file_magic_test_file=
5450 lt_cv_deplibs_check_method='unknown'
5451 # Need to set the preceding variable on all platforms that support
5452 # interlibrary dependencies.
5453 # 'none' -- dependencies not supported.
5454 # `unknown' -- same as none, but documents that we really don't know.
5455 # 'pass_all' -- all dependencies passed with no checks.
5456 # 'test_compile' -- check by making test program.
5457 # 'file_magic [[regex]]' -- check by looking for files in library path
5458 # which responds to the $file_magic_cmd with a given extended regex.
5459 # If you have `file' or equivalent on your system and you're not sure
5460 # whether `pass_all' will *always* work, you probably want this one.
5464 lt_cv_deplibs_check_method=pass_all
5468 lt_cv_deplibs_check_method=pass_all
5472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5473 lt_cv_file_magic_cmd='/usr/bin/file -L'
5474 lt_cv_file_magic_test_file=/shlib/libc.so
5478 # func_win32_libid is a shell function defined in ltmain.sh
5479 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5480 lt_cv_file_magic_cmd='func_win32_libid'
5484 # Base MSYS/MinGW do not provide the 'file' command needed by
5485 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5486 # unless we find 'file', for example because we are cross-compiling.
5487 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5488 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5489 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5490 lt_cv_file_magic_cmd='func_win32_libid'
5492 # Keep this pattern in sync with the one in func_win32_libid.
5493 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5494 lt_cv_file_magic_cmd='$OBJDUMP -f'
5499 # use the weaker test based on 'objdump'. See mingw*.
5500 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5501 lt_cv_file_magic_cmd='$OBJDUMP -f'
5504 darwin* | rhapsody*)
5505 lt_cv_deplibs_check_method=pass_all
5508 freebsd* | dragonfly*)
5509 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5512 # Not sure whether the presence of OpenBSD here was a mistake.
5513 # Let's accept both of them until this is cleared up.
5514 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5515 lt_cv_file_magic_cmd=/usr/bin/file
5516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5520 lt_cv_deplibs_check_method=pass_all
5525 lt_cv_deplibs_check_method=pass_all
5529 lt_cv_deplibs_check_method=pass_all
5532 hpux10.20* | hpux11*)
5533 lt_cv_file_magic_cmd=/usr/bin/file
5536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5537 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5540 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]'
5541 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5545 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5551 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5555 irix5* | irix6* | nonstopux*)
5557 *-32|*"-32 ") libmagic=32-bit;;
5558 *-n32|*"-n32 ") libmagic=N32;;
5559 *-64|*"-64 ") libmagic=64-bit;;
5560 *) libmagic=never-match;;
5562 lt_cv_deplibs_check_method=pass_all
5565 # This must be glibc/ELF.
5566 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5567 lt_cv_deplibs_check_method=pass_all
5571 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5580 lt_cv_file_magic_cmd=/usr/bin/file
5581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5585 lt_cv_deplibs_check_method=pass_all
5589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5596 osf3* | osf4* | osf5*)
5597 lt_cv_deplibs_check_method=pass_all
5601 lt_cv_deplibs_check_method=pass_all
5605 lt_cv_deplibs_check_method=pass_all
5608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5609 lt_cv_deplibs_check_method=pass_all
5613 case $host_vendor in
5615 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]'
5616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5619 lt_cv_deplibs_check_method=pass_all
5622 lt_cv_file_magic_cmd='/bin/file'
5623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5626 lt_cv_file_magic_cmd='/bin/file'
5627 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5628 lt_cv_file_magic_test_file=/lib/libc.so
5631 lt_cv_deplibs_check_method=pass_all
5634 lt_cv_deplibs_check_method=pass_all
5640 lt_cv_deplibs_check_method=pass_all
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5646 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5650 if test "$build" = "$host"; then
5653 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5656 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5662 file_magic_cmd=$lt_cv_file_magic_cmd
5663 deplibs_check_method=$lt_cv_deplibs_check_method
5664 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5687 if test -n "$ac_tool_prefix"; then
5688 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5689 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691 $as_echo_n "checking for $ac_word... " >&6; }
5692 if ${ac_cv_prog_DLLTOOL+:} false; then :
5693 $as_echo_n "(cached) " >&6
5695 if test -n "$DLLTOOL"; then
5696 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 DLLTOOL=$ac_cv_prog_DLLTOOL
5716 if test -n "$DLLTOOL"; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5718 $as_echo "$DLLTOOL" >&6; }
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5726 if test -z "$ac_cv_prog_DLLTOOL"; then
5727 ac_ct_DLLTOOL=$DLLTOOL
5728 # Extract the first word of "dlltool", so it can be a program name with args.
5729 set dummy dlltool; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5733 $as_echo_n "(cached) " >&6
5735 if test -n "$ac_ct_DLLTOOL"; then
5736 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5756 if test -n "$ac_ct_DLLTOOL"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5758 $as_echo "$ac_ct_DLLTOOL" >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5764 if test "x$ac_ct_DLLTOOL" = x; then
5767 case $cross_compiling:$ac_tool_warned in
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771 ac_tool_warned=yes ;;
5773 DLLTOOL=$ac_ct_DLLTOOL
5776 DLLTOOL="$ac_cv_prog_DLLTOOL"
5779 test -z "$DLLTOOL" && DLLTOOL=dlltool
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5788 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5789 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5790 $as_echo_n "(cached) " >&6
5792 lt_cv_sharedlib_from_linklib_cmd='unknown'
5795 cygwin* | mingw* | pw32* | cegcc*)
5796 # two different shell functions defined in ltmain.sh
5797 # decide which to use based on capabilities of $DLLTOOL
5798 case `$DLLTOOL --help 2>&1` in
5799 *--identify-strict*)
5800 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5803 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5808 # fallback: assume linklib IS sharedlib
5809 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5815 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5816 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5817 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5826 if test -n "$ac_tool_prefix"; then
5829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_AR+:} false; then :
5834 $as_echo_n "(cached) " >&6
5836 if test -n "$AR"; then
5837 ac_cv_prog_AR="$AR" # Let the user override the test.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 if test -n "$AR"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5859 $as_echo "$AR" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5866 test -n "$AR" && break
5869 if test -z "$AR"; then
5873 # Extract the first word of "$ac_prog", so it can be a program name with args.
5874 set dummy $ac_prog; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5878 $as_echo_n "(cached) " >&6
5880 if test -n "$ac_ct_AR"; then
5881 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_ac_ct_AR="$ac_prog"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5901 if test -n "$ac_ct_AR"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5903 $as_echo "$ac_ct_AR" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5910 test -n "$ac_ct_AR" && break
5913 if test "x$ac_ct_AR" = x; then
5916 case $cross_compiling:$ac_tool_warned in
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5940 $as_echo_n "checking for archiver @FILE support... " >&6; }
5941 if ${lt_cv_ar_at_file+:} false; then :
5942 $as_echo_n "(cached) " >&6
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5956 if ac_fn_c_try_compile "$LINENO"; then :
5957 echo conftest.$ac_objext > conftest.lst
5958 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5960 (eval $lt_ar_try) 2>&5
5962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5963 test $ac_status = 0; }
5964 if test "$ac_status" -eq 0; then
5965 # Ensure the archiver fails upon bogus file names.
5966 rm -f conftest.$ac_objext libconftest.a
5967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5968 (eval $lt_ar_try) 2>&5
5970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5971 test $ac_status = 0; }
5972 if test "$ac_status" -ne 0; then
5976 rm -f conftest.* libconftest.a
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5983 $as_echo "$lt_cv_ar_at_file" >&6; }
5985 if test "x$lt_cv_ar_at_file" = xno; then
5988 archiver_list_spec=$lt_cv_ar_at_file
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_prog_STRIP+:} false; then :
6003 $as_echo_n "(cached) " >&6
6005 if test -n "$STRIP"; then
6006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6028 $as_echo "$STRIP" >&6; }
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6036 if test -z "$ac_cv_prog_STRIP"; then
6038 # Extract the first word of "strip", so it can be a program name with args.
6039 set dummy strip; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 if test -n "$ac_ct_STRIP"; then
6046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_ac_ct_STRIP="strip"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066 if test -n "$ac_ct_STRIP"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6068 $as_echo "$ac_ct_STRIP" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6074 if test "x$ac_ct_STRIP" = x; then
6077 case $cross_compiling:$ac_tool_warned in
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6086 STRIP="$ac_cv_prog_STRIP"
6089 test -z "$STRIP" && STRIP=:
6096 if test -n "$ac_tool_prefix"; then
6097 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6098 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_RANLIB+:} false; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$RANLIB"; then
6105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6114 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 RANLIB=$ac_cv_prog_RANLIB
6125 if test -n "$RANLIB"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6127 $as_echo "$RANLIB" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6135 if test -z "$ac_cv_prog_RANLIB"; then
6136 ac_ct_RANLIB=$RANLIB
6137 # Extract the first word of "ranlib", so it can be a program name with args.
6138 set dummy ranlib; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6142 $as_echo_n "(cached) " >&6
6144 if test -n "$ac_ct_RANLIB"; then
6145 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_prog_ac_ct_RANLIB="ranlib"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6165 if test -n "$ac_ct_RANLIB"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6167 $as_echo "$ac_ct_RANLIB" >&6; }
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6173 if test "x$ac_ct_RANLIB" = x; then
6176 case $cross_compiling:$ac_tool_warned in
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6182 RANLIB=$ac_ct_RANLIB
6185 RANLIB="$ac_cv_prog_RANLIB"
6188 test -z "$RANLIB" && RANLIB=:
6195 # Determine commands to create old-style static archives.
6196 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6197 old_postinstall_cmds='chmod 644 $oldlib'
6198 old_postuninstall_cmds=
6200 if test -n "$RANLIB"; then
6203 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6206 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6209 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6214 lock_old_archive_extraction=yes ;;
6216 lock_old_archive_extraction=no ;;
6257 # If no C compiler was specified, use CC.
6260 # If no C compiler flags were specified, use CFLAGS.
6261 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6263 # Allow CC to be a program name with arguments.
6267 # Check for command to grab the raw symbol name followed by C symbol from nm.
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6269 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6270 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6271 $as_echo_n "(cached) " >&6
6274 # These are sane defaults that work on at least a few old systems.
6275 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6277 # Character class describing NM global symbol codes.
6278 symcode='[BCDEGRST]'
6280 # Regexp to match symbols that can be accessed directly from C.
6281 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6283 # Define system-specific variables.
6288 cygwin* | mingw* | pw32* | cegcc*)
6289 symcode='[ABCDGISTW]'
6292 if test "$host_cpu" = ia64; then
6293 symcode='[ABCDEGRST]'
6297 symcode='[BCDEGRST]'
6300 symcode='[BCDEGQRST]'
6311 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6319 # If we're using GNU nm, then use its standard symbol codes.
6320 case `$NM -V 2>&1` in
6321 *GNU* | *'with BFD'*)
6322 symcode='[ABCDGIRSTW]' ;;
6325 # Transform an extracted symbol line into a proper C declaration.
6326 # Some systems (esp. on ia64) link data and code symbols differently,
6327 # so use this general approach.
6328 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6330 # Transform an extracted symbol line into symbol name and symbol address
6331 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6332 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'"
6334 # Handle CRLF in mingw tool chain
6338 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6342 # Try without a prefix underscore, then with it.
6343 for ac_symprfx in "" "_"; do
6345 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6346 symxfrm="\\1 $ac_symprfx\\2 \\2"
6348 # Write the raw and C identifiers.
6349 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6350 # Fake it for dumpbin and say T for any non-static function
6351 # and D for any global variable.
6352 # Also find C++ and __fastcall symbols from MSVC++,
6353 # which start with @ or ?.
6354 lt_cv_sys_global_symbol_pipe="$AWK '"\
6355 " {last_section=section; section=\$ 3};"\
6356 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6357 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6358 " \$ 0!~/External *\|/{next};"\
6359 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6360 " {if(hide[section]) next};"\
6361 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6362 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6363 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6364 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6365 " ' prfx=^$ac_symprfx"
6367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6369 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6371 # Check to see that the pipe works correctly.
6375 cat > conftest.$ac_ext <<_LT_EOF
6380 void nm_test_func(void);
6381 void nm_test_func(void){}
6385 int main(){nm_test_var='a';nm_test_func();return(0);}
6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6389 (eval $ac_compile) 2>&5
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; }; then
6393 # Now try to grab the symbols.
6395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6396 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; } && test -s "$nlist"; then
6400 # Try sorting and uniquifying the output.
6401 if sort "$nlist" | uniq > "$nlist"T; then
6402 mv -f "$nlist"T "$nlist"
6407 # Make sure that we snagged all the symbols we need.
6408 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6409 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6410 cat <<_LT_EOF > conftest.$ac_ext
6411 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6412 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6413 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6414 relocations are performed -- see ld's documentation on pseudo-relocs. */
6415 # define LT_DLSYM_CONST
6416 #elif defined(__osf__)
6417 /* This system does not cope well with relocations in const data. */
6418 # define LT_DLSYM_CONST
6420 # define LT_DLSYM_CONST const
6428 # Now generate the symbol file.
6429 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6431 cat <<_LT_EOF >> conftest.$ac_ext
6433 /* The mapping between symbol names and symbols. */
6434 LT_DLSYM_CONST struct {
6438 lt__PROGRAM__LTX_preloaded_symbols[] =
6440 { "@PROGRAM@", (void *) 0 },
6442 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6443 cat <<\_LT_EOF >> conftest.$ac_ext
6447 /* This works around a problem in FreeBSD linker */
6448 #ifdef FREEBSD_WORKAROUND
6449 static const void *lt_preloaded_setup() {
6450 return lt__PROGRAM__LTX_preloaded_symbols;
6458 # Now try linking the two files.
6459 mv conftest.$ac_objext conftstm.$ac_objext
6460 lt_globsym_save_LIBS=$LIBS
6461 lt_globsym_save_CFLAGS=$CFLAGS
6462 LIBS="conftstm.$ac_objext"
6463 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6465 (eval $ac_link) 2>&5
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6471 LIBS=$lt_globsym_save_LIBS
6472 CFLAGS=$lt_globsym_save_CFLAGS
6474 echo "cannot find nm_test_func in $nlist" >&5
6477 echo "cannot find nm_test_var in $nlist" >&5
6480 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6483 echo "$progname: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6486 rm -rf conftest* conftst*
6488 # Do not use the global_symbol_pipe unless it works.
6489 if test "$pipe_works" = yes; then
6492 lt_cv_sys_global_symbol_pipe=
6498 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6499 lt_cv_sys_global_symbol_to_cdecl=
6501 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6503 $as_echo "failed" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6506 $as_echo "ok" >&6; }
6509 # Response file support.
6510 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6511 nm_file_list_spec='@'
6512 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6513 nm_file_list_spec='@'
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6543 $as_echo_n "checking for sysroot... " >&6; }
6545 # Check whether --with-sysroot was given.
6546 if test "${with_sysroot+set}" = set; then :
6547 withval=$with_sysroot;
6554 case ${with_sysroot} in #(
6556 if test "$GCC" = yes; then
6557 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6561 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6567 $as_echo "${with_sysroot}" >&6; }
6568 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6573 $as_echo "${lt_sysroot:-no}" >&6; }
6579 # Check whether --enable-libtool-lock was given.
6580 if test "${enable_libtool_lock+set}" = set; then :
6581 enableval=$enable_libtool_lock;
6584 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6586 # Some flags need to be propagated to the compiler or linker for good
6590 # Find out which ABI we are using.
6591 echo 'int i;' > conftest.$ac_ext
6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593 (eval $ac_compile) 2>&5
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; }; then
6597 case `/usr/bin/file conftest.$ac_objext` in
6609 # Find out which ABI we are using.
6610 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6612 (eval $ac_compile) 2>&5
6614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615 test $ac_status = 0; }; then
6616 if test "$lt_cv_prog_gnu_ld" = yes; then
6617 case `/usr/bin/file conftest.$ac_objext` in
6619 LD="${LD-ld} -melf32bsmip"
6622 LD="${LD-ld} -melf32bmipn32"
6625 LD="${LD-ld} -melf64bmip"
6629 case `/usr/bin/file conftest.$ac_objext` in
6645 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6646 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6647 # Find out which ABI we are using.
6648 echo 'int i;' > conftest.$ac_ext
6649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6650 (eval $ac_compile) 2>&5
6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653 test $ac_status = 0; }; then
6654 case `/usr/bin/file conftest.o` in
6657 x86_64-*kfreebsd*-gnu)
6658 LD="${LD-ld} -m elf_i386_fbsd"
6661 LD="${LD-ld} -m elf_i386"
6663 ppc64-*linux*|powerpc64-*linux*)
6664 LD="${LD-ld} -m elf32ppclinux"
6667 LD="${LD-ld} -m elf_s390"
6670 LD="${LD-ld} -m elf32_sparc"
6676 x86_64-*kfreebsd*-gnu)
6677 LD="${LD-ld} -m elf_x86_64_fbsd"
6680 LD="${LD-ld} -m elf_x86_64"
6682 ppc*-*linux*|powerpc*-*linux*)
6683 LD="${LD-ld} -m elf64ppc"
6685 s390*-*linux*|s390*-*tpf*)
6686 LD="${LD-ld} -m elf64_s390"
6689 LD="${LD-ld} -m elf64_sparc"
6699 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6700 SAVE_CFLAGS="$CFLAGS"
6701 CFLAGS="$CFLAGS -belf"
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6703 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6704 if ${lt_cv_cc_needs_belf+:} false; then :
6705 $as_echo_n "(cached) " >&6
6708 ac_cpp='$CPP $CPPFLAGS'
6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6724 if ac_fn_c_try_link "$LINENO"; then :
6725 lt_cv_cc_needs_belf=yes
6727 lt_cv_cc_needs_belf=no
6729 rm -f core conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6732 ac_cpp='$CPP $CPPFLAGS'
6733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6739 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6740 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6741 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6742 CFLAGS="$SAVE_CFLAGS"
6746 # Find out which ABI we are using.
6747 echo 'int i;' > conftest.$ac_ext
6748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6749 (eval $ac_compile) 2>&5
6751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6752 test $ac_status = 0; }; then
6753 case `/usr/bin/file conftest.o` in
6755 case $lt_cv_prog_gnu_ld in
6759 LD="${LD-ld} -m elf_x86_64"
6762 LD="${LD-ld} -m elf64_sparc"
6765 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6766 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6771 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6783 need_locks="$enable_libtool_lock"
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}mt; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 if test -n "$MANIFEST_TOOL"; then
6794 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6814 if test -n "$MANIFEST_TOOL"; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6816 $as_echo "$MANIFEST_TOOL" >&6; }
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6824 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6825 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6826 # Extract the first word of "mt", so it can be a program name with args.
6827 set dummy mt; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6831 $as_echo_n "(cached) " >&6
6833 if test -n "$ac_ct_MANIFEST_TOOL"; then
6834 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6854 if test -n "$ac_ct_MANIFEST_TOOL"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6856 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6862 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6865 case $cross_compiling:$ac_tool_warned in
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869 ac_tool_warned=yes ;;
6871 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6874 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6877 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6879 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6880 if ${lt_cv_path_mainfest_tool+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 lt_cv_path_mainfest_tool=no
6884 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6885 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6886 cat conftest.err >&5
6887 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6888 lt_cv_path_mainfest_tool=yes
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6893 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6894 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6904 rhapsody* | darwin*)
6905 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6907 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6911 $as_echo_n "(cached) " >&6
6913 if test -n "$DSYMUTIL"; then
6914 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6934 if test -n "$DSYMUTIL"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6936 $as_echo "$DSYMUTIL" >&6; }
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6944 if test -z "$ac_cv_prog_DSYMUTIL"; then
6945 ac_ct_DSYMUTIL=$DSYMUTIL
6946 # Extract the first word of "dsymutil", so it can be a program name with args.
6947 set dummy dsymutil; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6951 $as_echo_n "(cached) " >&6
6953 if test -n "$ac_ct_DSYMUTIL"; then
6954 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6974 if test -n "$ac_ct_DSYMUTIL"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6976 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6982 if test "x$ac_ct_DSYMUTIL" = x; then
6985 case $cross_compiling:$ac_tool_warned in
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6989 ac_tool_warned=yes ;;
6991 DSYMUTIL=$ac_ct_DSYMUTIL
6994 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6997 if test -n "$ac_tool_prefix"; then
6998 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6999 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_NMEDIT+:} false; then :
7003 $as_echo_n "(cached) " >&6
7005 if test -n "$NMEDIT"; then
7006 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 NMEDIT=$ac_cv_prog_NMEDIT
7026 if test -n "$NMEDIT"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7028 $as_echo "$NMEDIT" >&6; }
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7036 if test -z "$ac_cv_prog_NMEDIT"; then
7037 ac_ct_NMEDIT=$NMEDIT
7038 # Extract the first word of "nmedit", so it can be a program name with args.
7039 set dummy nmedit; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7043 $as_echo_n "(cached) " >&6
7045 if test -n "$ac_ct_NMEDIT"; then
7046 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7066 if test -n "$ac_ct_NMEDIT"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7068 $as_echo "$ac_ct_NMEDIT" >&6; }
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7074 if test "x$ac_ct_NMEDIT" = x; then
7077 case $cross_compiling:$ac_tool_warned in
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081 ac_tool_warned=yes ;;
7083 NMEDIT=$ac_ct_NMEDIT
7086 NMEDIT="$ac_cv_prog_NMEDIT"
7089 if test -n "$ac_tool_prefix"; then
7090 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_LIPO+:} false; then :
7095 $as_echo_n "(cached) " >&6
7097 if test -n "$LIPO"; then
7098 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 LIPO=$ac_cv_prog_LIPO
7118 if test -n "$LIPO"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7120 $as_echo "$LIPO" >&6; }
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7128 if test -z "$ac_cv_prog_LIPO"; then
7130 # Extract the first word of "lipo", so it can be a program name with args.
7131 set dummy lipo; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7135 $as_echo_n "(cached) " >&6
7137 if test -n "$ac_ct_LIPO"; then
7138 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_ac_ct_LIPO="lipo"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7158 if test -n "$ac_ct_LIPO"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7160 $as_echo "$ac_ct_LIPO" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7166 if test "x$ac_ct_LIPO" = x; then
7169 case $cross_compiling:$ac_tool_warned in
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned=yes ;;
7178 LIPO="$ac_cv_prog_LIPO"
7181 if test -n "$ac_tool_prefix"; then
7182 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7183 set dummy ${ac_tool_prefix}otool; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_prog_OTOOL+:} false; then :
7187 $as_echo_n "(cached) " >&6
7189 if test -n "$OTOOL"; then
7190 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 OTOOL=$ac_cv_prog_OTOOL
7210 if test -n "$OTOOL"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7212 $as_echo "$OTOOL" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7220 if test -z "$ac_cv_prog_OTOOL"; then
7222 # Extract the first word of "otool", so it can be a program name with args.
7223 set dummy otool; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7227 $as_echo_n "(cached) " >&6
7229 if test -n "$ac_ct_OTOOL"; then
7230 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_ac_ct_OTOOL="otool"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7250 if test -n "$ac_ct_OTOOL"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7252 $as_echo "$ac_ct_OTOOL" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7258 if test "x$ac_ct_OTOOL" = x; then
7261 case $cross_compiling:$ac_tool_warned in
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7265 ac_tool_warned=yes ;;
7270 OTOOL="$ac_cv_prog_OTOOL"
7273 if test -n "$ac_tool_prefix"; then
7274 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7275 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_OTOOL64+:} false; then :
7279 $as_echo_n "(cached) " >&6
7281 if test -n "$OTOOL64"; then
7282 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 OTOOL64=$ac_cv_prog_OTOOL64
7302 if test -n "$OTOOL64"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7304 $as_echo "$OTOOL64" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7312 if test -z "$ac_cv_prog_OTOOL64"; then
7313 ac_ct_OTOOL64=$OTOOL64
7314 # Extract the first word of "otool64", so it can be a program name with args.
7315 set dummy otool64; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7319 $as_echo_n "(cached) " >&6
7321 if test -n "$ac_ct_OTOOL64"; then
7322 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_ac_ct_OTOOL64="otool64"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7342 if test -n "$ac_ct_OTOOL64"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7344 $as_echo "$ac_ct_OTOOL64" >&6; }
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7350 if test "x$ac_ct_OTOOL64" = x; then
7353 case $cross_compiling:$ac_tool_warned in
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357 ac_tool_warned=yes ;;
7359 OTOOL64=$ac_ct_OTOOL64
7362 OTOOL64="$ac_cv_prog_OTOOL64"
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7392 $as_echo_n "checking for -single_module linker flag... " >&6; }
7393 if ${lt_cv_apple_cc_single_mod+:} false; then :
7394 $as_echo_n "(cached) " >&6
7396 lt_cv_apple_cc_single_mod=no
7397 if test -z "${LT_MULTI_MODULE}"; then
7398 # By default we will add the -single_module flag. You can override
7399 # by either setting the environment variable LT_MULTI_MODULE
7400 # non-empty at configure time, or by adding -multi_module to the
7402 rm -rf libconftest.dylib*
7403 echo "int foo(void){return 1;}" > conftest.c
7404 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7405 -dynamiclib -Wl,-single_module conftest.c" >&5
7406 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7407 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7409 # If there is a non-empty error log, and "single_module"
7410 # appears in it, assume the flag caused a linker warning
7411 if test -s conftest.err && $GREP single_module conftest.err; then
7412 cat conftest.err >&5
7413 # Otherwise, if the output was created with a 0 exit code from
7414 # the compiler, it worked.
7415 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7416 lt_cv_apple_cc_single_mod=yes
7418 cat conftest.err >&5
7420 rm -rf libconftest.dylib*
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7425 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7428 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7429 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7430 $as_echo_n "(cached) " >&6
7432 lt_cv_ld_exported_symbols_list=no
7433 save_LDFLAGS=$LDFLAGS
7434 echo "_main" > conftest.sym
7435 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7447 if ac_fn_c_try_link "$LINENO"; then :
7448 lt_cv_ld_exported_symbols_list=yes
7450 lt_cv_ld_exported_symbols_list=no
7452 rm -f core conftest.err conftest.$ac_objext \
7453 conftest$ac_exeext conftest.$ac_ext
7454 LDFLAGS="$save_LDFLAGS"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7458 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7461 $as_echo_n "checking for -force_load linker flag... " >&6; }
7462 if ${lt_cv_ld_force_load+:} false; then :
7463 $as_echo_n "(cached) " >&6
7465 lt_cv_ld_force_load=no
7466 cat > conftest.c << _LT_EOF
7467 int forced_loaded() { return 2;}
7469 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7470 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7471 echo "$AR cru libconftest.a conftest.o" >&5
7472 $AR cru libconftest.a conftest.o 2>&5
7473 echo "$RANLIB libconftest.a" >&5
7474 $RANLIB libconftest.a 2>&5
7475 cat > conftest.c << _LT_EOF
7476 int main() { return 0;}
7478 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7479 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7481 if test -s conftest.err && $GREP force_load conftest.err; then
7482 cat conftest.err >&5
7483 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7484 lt_cv_ld_force_load=yes
7486 cat conftest.err >&5
7488 rm -f conftest.err libconftest.a conftest conftest.c
7489 rm -rf conftest.dSYM
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7493 $as_echo "$lt_cv_ld_force_load" >&6; }
7495 rhapsody* | darwin1.[012])
7496 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7499 darwin*) # darwin 5.x on
7500 # if running on 10.5 or later, the deployment target defaults
7501 # to the OS version, if on x86, and 10.4, the deployment
7502 # target defaults to 10.4. Don't you love it?
7503 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7504 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7513 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7514 _lt_dar_single_mod='$single_module'
7516 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7517 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7519 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7521 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7522 _lt_dsymutil='~$DSYMUTIL $lib || :'
7530 ac_cpp='$CPP $CPPFLAGS'
7531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7535 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7536 # On Suns, sometimes $CPP names a directory.
7537 if test -n "$CPP" && test -d "$CPP"; then
7540 if test -z "$CPP"; then
7541 if ${ac_cv_prog_CPP+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 # Double quotes because CPP needs to be expanded
7545 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7548 for ac_c_preproc_warn_flag in '' yes
7550 # Use a header file that comes with gcc, so configuring glibc
7551 # with a fresh cross-compiler works.
7552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7553 # <limits.h> exists even on freestanding compilers.
7554 # On the NeXT, cc -E runs the code through the compiler's parser,
7555 # not just through cpp. "Syntax error" is here to catch this case.
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 # include <limits.h>
7561 # include <assert.h>
7565 if ac_fn_c_try_cpp "$LINENO"; then :
7568 # Broken: fails on valid input.
7571 rm -f conftest.err conftest.i conftest.$ac_ext
7573 # OK, works on sane cases. Now check whether nonexistent headers
7574 # can be detected and how.
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 #include <ac_nonexistent.h>
7579 if ac_fn_c_try_cpp "$LINENO"; then :
7580 # Broken: success on invalid input.
7583 # Passes both tests.
7587 rm -f conftest.err conftest.i conftest.$ac_ext
7590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7591 rm -f conftest.i conftest.err conftest.$ac_ext
7592 if $ac_preproc_ok; then :
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7605 $as_echo "$CPP" >&6; }
7607 for ac_c_preproc_warn_flag in '' yes
7609 # Use a header file that comes with gcc, so configuring glibc
7610 # with a fresh cross-compiler works.
7611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7612 # <limits.h> exists even on freestanding compilers.
7613 # On the NeXT, cc -E runs the code through the compiler's parser,
7614 # not just through cpp. "Syntax error" is here to catch this case.
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7618 # include <limits.h>
7620 # include <assert.h>
7624 if ac_fn_c_try_cpp "$LINENO"; then :
7627 # Broken: fails on valid input.
7630 rm -f conftest.err conftest.i conftest.$ac_ext
7632 # OK, works on sane cases. Now check whether nonexistent headers
7633 # can be detected and how.
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 #include <ac_nonexistent.h>
7638 if ac_fn_c_try_cpp "$LINENO"; then :
7639 # Broken: success on invalid input.
7642 # Passes both tests.
7646 rm -f conftest.err conftest.i conftest.$ac_ext
7649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7650 rm -f conftest.i conftest.err conftest.$ac_ext
7651 if $ac_preproc_ok; then :
7654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7656 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7657 See \`config.log' for more details" "$LINENO" 5; }
7661 ac_cpp='$CPP $CPPFLAGS'
7662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7668 $as_echo_n "checking for ANSI C header files... " >&6; }
7669 if ${ac_cv_header_stdc+:} false; then :
7670 $as_echo_n "(cached) " >&6
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7687 if ac_fn_c_try_compile "$LINENO"; then :
7688 ac_cv_header_stdc=yes
7690 ac_cv_header_stdc=no
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 if test $ac_cv_header_stdc = yes; then
7695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7702 $EGREP "memchr" >/dev/null 2>&1; then :
7705 ac_cv_header_stdc=no
7711 if test $ac_cv_header_stdc = yes; then
7712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7719 $EGREP "free" >/dev/null 2>&1; then :
7722 ac_cv_header_stdc=no
7728 if test $ac_cv_header_stdc = yes; then
7729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7730 if test "$cross_compiling" = yes; then :
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7737 #if ((' ' & 0x0FF) == 0x020)
7738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7741 # define ISLOWER(c) \
7742 (('a' <= (c) && (c) <= 'i') \
7743 || ('j' <= (c) && (c) <= 'r') \
7744 || ('s' <= (c) && (c) <= 'z'))
7745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7753 for (i = 0; i < 256; i++)
7754 if (XOR (islower (i), ISLOWER (i))
7755 || toupper (i) != TOUPPER (i))
7760 if ac_fn_c_try_run "$LINENO"; then :
7763 ac_cv_header_stdc=no
7765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7766 conftest.$ac_objext conftest.beam conftest.$ac_ext
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7772 $as_echo "$ac_cv_header_stdc" >&6; }
7773 if test $ac_cv_header_stdc = yes; then
7775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7780 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7781 inttypes.h stdint.h unistd.h
7783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7784 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7787 cat >>confdefs.h <<_ACEOF
7788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7796 for ac_header in dlfcn.h
7798 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7800 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7801 cat >>confdefs.h <<_ACEOF
7802 #define HAVE_DLFCN_H 1
7821 # Check whether --enable-shared was given.
7822 if test "${enable_shared+set}" = set; then :
7823 enableval=$enable_shared; p=${PACKAGE-default}
7825 yes) enable_shared=yes ;;
7826 no) enable_shared=no ;;
7829 # Look at the argument we got. We use all the common list separators.
7830 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7831 for pkg in $enableval; do
7833 if test "X$pkg" = "X$p"; then
7852 # Check whether --enable-static was given.
7853 if test "${enable_static+set}" = set; then :
7854 enableval=$enable_static; p=${PACKAGE-default}
7856 yes) enable_static=yes ;;
7857 no) enable_static=no ;;
7860 # Look at the argument we got. We use all the common list separators.
7861 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7862 for pkg in $enableval; do
7864 if test "X$pkg" = "X$p"; then
7884 # Check whether --with-pic was given.
7885 if test "${with_pic+set}" = set; then :
7886 withval=$with_pic; lt_p=${PACKAGE-default}
7888 yes|no) pic_mode=$withval ;;
7891 # Look at the argument we got. We use all the common list separators.
7892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7893 for lt_pkg in $withval; do
7895 if test "X$lt_pkg" = "X$lt_p"; then
7907 test -z "$pic_mode" && pic_mode=default
7915 # Check whether --enable-fast-install was given.
7916 if test "${enable_fast_install+set}" = set; then :
7917 enableval=$enable_fast_install; p=${PACKAGE-default}
7919 yes) enable_fast_install=yes ;;
7920 no) enable_fast_install=no ;;
7922 enable_fast_install=no
7923 # Look at the argument we got. We use all the common list separators.
7924 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7925 for pkg in $enableval; do
7927 if test "X$pkg" = "X$p"; then
7928 enable_fast_install=yes
7935 enable_fast_install=yes
7948 # This can be used to rebuild libtool when needed
7949 LIBTOOL_DEPS="$ltmain"
7951 # Always use our own libtool.
7952 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7983 test -z "$LN_S" && LN_S="ln -s"
7998 if test -n "${ZSH_VERSION+set}" ; then
7999 setopt NO_GLOB_SUBST
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8003 $as_echo_n "checking for objdir... " >&6; }
8004 if ${lt_cv_objdir+:} false; then :
8005 $as_echo_n "(cached) " >&6
8007 rm -f .libs 2>/dev/null
8008 mkdir .libs 2>/dev/null
8009 if test -d .libs; then
8012 # MS-DOS does not allow filenames that begin with a dot.
8015 rmdir .libs 2>/dev/null
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8018 $as_echo "$lt_cv_objdir" >&6; }
8019 objdir=$lt_cv_objdir
8025 cat >>confdefs.h <<_ACEOF
8026 #define LT_OBJDIR "$lt_cv_objdir/"
8034 # AIX sometimes has problems with the GCC collect2 program. For some
8035 # reason, if we set the COLLECT_NAMES environment variable, the problems
8036 # vanish in a puff of smoke.
8037 if test "X${COLLECT_NAMES+set}" != Xset; then
8039 export COLLECT_NAMES
8046 can_build_shared=yes
8048 # All known linkers require a `.a' archive for static linking (except MSVC,
8049 # which needs '.lib').
8052 with_gnu_ld="$lt_cv_prog_gnu_ld"
8055 old_CFLAGS="$CFLAGS"
8057 # Set sane defaults for various variables
8058 test -z "$CC" && CC=cc
8059 test -z "$LTCC" && LTCC=$CC
8060 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8061 test -z "$LD" && LD=ld
8062 test -z "$ac_objext" && ac_objext=o
8064 for cc_temp in $compiler""; do
8066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8072 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8075 # Only perform the check for file, if the check method requires it
8076 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8077 case $deplibs_check_method in
8079 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8081 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8083 $as_echo_n "(cached) " >&6
8087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8090 lt_save_MAGIC_CMD="$MAGIC_CMD"
8091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8092 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8093 for ac_dir in $ac_dummy; do
8095 test -z "$ac_dir" && ac_dir=.
8096 if test -f $ac_dir/${ac_tool_prefix}file; then
8097 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8098 if test -n "$file_magic_test_file"; then
8099 case $deplibs_check_method in
8101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8104 $EGREP "$file_magic_regex" > /dev/null; then
8109 *** Warning: the command libtool uses to detect shared libraries,
8110 *** $file_magic_cmd, produces output that libtool cannot recognize.
8111 *** The result is that libtool may fail to recognize shared libraries
8112 *** as such. This will affect the creation of libtool libraries that
8113 *** depend on shared libraries, but programs linked with such libtool
8114 *** libraries will work regardless of this problem. Nevertheless, you
8115 *** may want to report the problem to your system manager and/or to
8116 *** bug-libtool@gnu.org
8126 MAGIC_CMD="$lt_save_MAGIC_CMD"
8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8132 if test -n "$MAGIC_CMD"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8134 $as_echo "$MAGIC_CMD" >&6; }
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8144 if test -z "$lt_cv_path_MAGIC_CMD"; then
8145 if test -n "$ac_tool_prefix"; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8147 $as_echo_n "checking for file... " >&6; }
8148 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8149 $as_echo_n "(cached) " >&6
8153 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8156 lt_save_MAGIC_CMD="$MAGIC_CMD"
8157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8158 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8159 for ac_dir in $ac_dummy; do
8161 test -z "$ac_dir" && ac_dir=.
8162 if test -f $ac_dir/file; then
8163 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8164 if test -n "$file_magic_test_file"; then
8165 case $deplibs_check_method in
8167 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8169 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8170 $EGREP "$file_magic_regex" > /dev/null; then
8175 *** Warning: the command libtool uses to detect shared libraries,
8176 *** $file_magic_cmd, produces output that libtool cannot recognize.
8177 *** The result is that libtool may fail to recognize shared libraries
8178 *** as such. This will affect the creation of libtool libraries that
8179 *** depend on shared libraries, but programs linked with such libtool
8180 *** libraries will work regardless of this problem. Nevertheless, you
8181 *** may want to report the problem to your system manager and/or to
8182 *** bug-libtool@gnu.org
8192 MAGIC_CMD="$lt_save_MAGIC_CMD"
8197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8198 if test -n "$MAGIC_CMD"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8200 $as_echo "$MAGIC_CMD" >&6; }
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8216 # Use C for the default configuration in the libtool script
8220 ac_cpp='$CPP $CPPFLAGS'
8221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8226 # Source file extension for C test sources.
8229 # Object file extension for compiled C test sources.
8233 # Code to be used in simple compile tests
8234 lt_simple_compile_test_code="int some_variable = 0;"
8236 # Code to be used in simple link tests
8237 lt_simple_link_test_code='int main(){return(0);}'
8245 # If no C compiler was specified, use CC.
8248 # If no C compiler flags were specified, use CFLAGS.
8249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8251 # Allow CC to be a program name with arguments.
8254 # Save the default compiler, since it gets overwritten when the other
8255 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8256 compiler_DEFAULT=$CC
8258 # save warnings/boilerplate of simple test code
8259 ac_outfile=conftest.$ac_objext
8260 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8261 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8262 _lt_compiler_boilerplate=`cat conftest.err`
8265 ac_outfile=conftest.$ac_objext
8266 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8267 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8268 _lt_linker_boilerplate=`cat conftest.err`
8273 ## There is no encapsulation within the following macros, do not change
8274 ## the running order or otherwise move them around unless you know exactly
8275 ## what you are doing...
8276 if test -n "$compiler"; then
8278 lt_prog_compiler_no_builtin_flag=
8280 if test "$GCC" = yes; then
8281 case $cc_basename in
8283 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8285 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8289 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8290 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8291 $as_echo_n "(cached) " >&6
8293 lt_cv_prog_compiler_rtti_exceptions=no
8294 ac_outfile=conftest.$ac_objext
8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296 lt_compiler_flag="-fno-rtti -fno-exceptions"
8297 # Insert the option either (1) after the last *FLAGS variable, or
8298 # (2) before a word containing "conftest.", or (3) at the end.
8299 # Note that $ac_compile itself does not contain backslashes and begins
8300 # with a dollar sign (not a hyphen), so the echo should work correctly.
8301 # The option is referenced via a variable to avoid confusing sed.
8302 lt_compile=`echo "$ac_compile" | $SED \
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 -e 's:$: $lt_compiler_flag:'`
8306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8307 (eval "$lt_compile" 2>conftest.err)
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 if (exit $ac_status) && test -s "$ac_outfile"; then
8312 # The compiler can only warn and ignore the option if not recognized
8313 # So say no if there are warnings other than the usual output.
8314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8317 lt_cv_prog_compiler_rtti_exceptions=yes
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8324 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8339 lt_prog_compiler_wl=
8340 lt_prog_compiler_pic=
8341 lt_prog_compiler_static=
8344 if test "$GCC" = yes; then
8345 lt_prog_compiler_wl='-Wl,'
8346 lt_prog_compiler_static='-static'
8350 # All AIX code is PIC.
8351 if test "$host_cpu" = ia64; then
8352 # AIX 5 now supports IA64 processor
8353 lt_prog_compiler_static='-Bstatic'
8360 # see comment about AmigaOS4 .so support
8361 lt_prog_compiler_pic='-fPIC'
8364 # FIXME: we need at least 68020 code to build shared libraries, but
8365 # adding the `-m68020' flag to GCC prevents building anything better,
8367 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8372 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8373 # PIC is the default for these OSes.
8376 mingw* | cygwin* | pw32* | os2* | cegcc*)
8377 # This hack is so that the source file can tell whether it is being
8378 # built for inclusion in a dll (and should export symbols for example).
8379 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8380 # (--disable-auto-import) libraries
8381 lt_prog_compiler_pic='-DDLL_EXPORT'
8384 darwin* | rhapsody*)
8385 # PIC is the default on this platform
8386 # Common symbols not allowed in MH_DYLIB files
8387 lt_prog_compiler_pic='-fno-common'
8391 # PIC is the default for Haiku.
8392 # The "-static" flag exists, but is broken.
8393 lt_prog_compiler_static=
8397 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8398 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8399 # sets the default TLS model and affects inlining.
8405 lt_prog_compiler_pic='-fPIC'
8411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8412 # Instead, we relocate shared libraries at runtime.
8416 # Just because we use GCC doesn't mean we suddenly get shared libraries
8417 # on systems that don't support them.
8418 lt_prog_compiler_can_build_shared=no
8423 # QNX uses GNU C++, but need to define -shared option too, otherwise
8425 lt_prog_compiler_pic='-fPIC -shared'
8429 if test -d /usr/nec; then
8430 lt_prog_compiler_pic=-Kconform_pic
8435 lt_prog_compiler_pic='-fPIC'
8439 case $cc_basename in
8440 nvcc*) # Cuda Compiler Driver 2.2
8441 lt_prog_compiler_wl='-Xlinker '
8442 if test -n "$lt_prog_compiler_pic"; then
8443 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8448 # PORTME Check for flag to pass linker flags through the system compiler.
8451 lt_prog_compiler_wl='-Wl,'
8452 if test "$host_cpu" = ia64; then
8453 # AIX 5 now supports IA64 processor
8454 lt_prog_compiler_static='-Bstatic'
8456 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8460 mingw* | cygwin* | pw32* | os2* | cegcc*)
8461 # This hack is so that the source file can tell whether it is being
8462 # built for inclusion in a dll (and should export symbols for example).
8463 lt_prog_compiler_pic='-DDLL_EXPORT'
8466 hpux9* | hpux10* | hpux11*)
8467 lt_prog_compiler_wl='-Wl,'
8468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8475 lt_prog_compiler_pic='+Z'
8478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8479 lt_prog_compiler_static='${wl}-a ${wl}archive'
8482 irix5* | irix6* | nonstopux*)
8483 lt_prog_compiler_wl='-Wl,'
8484 # PIC (with -KPIC) is the default.
8485 lt_prog_compiler_static='-non_shared'
8488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8489 case $cc_basename in
8490 # old Intel for x86_64 which still supported -KPIC.
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='-KPIC'
8494 lt_prog_compiler_static='-static'
8496 # icc used to be incompatible with GCC.
8497 # ICC 10 doesn't accept -KPIC any more.
8499 lt_prog_compiler_wl='-Wl,'
8500 lt_prog_compiler_pic='-fPIC'
8501 lt_prog_compiler_static='-static'
8503 # Lahey Fortran 8.1.
8505 lt_prog_compiler_wl='-Wl,'
8506 lt_prog_compiler_pic='--shared'
8507 lt_prog_compiler_static='--static'
8510 # NAG Fortran compiler
8511 lt_prog_compiler_wl='-Wl,-Wl,,'
8512 lt_prog_compiler_pic='-PIC'
8513 lt_prog_compiler_static='-Bstatic'
8515 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8516 # Portland Group compilers (*not* the Pentium gcc compiler,
8517 # which looks to be a dead project)
8518 lt_prog_compiler_wl='-Wl,'
8519 lt_prog_compiler_pic='-fpic'
8520 lt_prog_compiler_static='-Bstatic'
8523 lt_prog_compiler_wl='-Wl,'
8524 # All Alpha code is PIC.
8525 lt_prog_compiler_static='-non_shared'
8527 xl* | bgxl* | bgf* | mpixl*)
8528 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8529 lt_prog_compiler_wl='-Wl,'
8530 lt_prog_compiler_pic='-qpic'
8531 lt_prog_compiler_static='-qstaticlink'
8534 case `$CC -V 2>&1 | sed 5q` in
8535 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8536 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8537 lt_prog_compiler_pic='-KPIC'
8538 lt_prog_compiler_static='-Bstatic'
8539 lt_prog_compiler_wl=''
8541 *Sun\ F* | *Sun*Fortran*)
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 lt_prog_compiler_wl='-Qoption ld '
8548 lt_prog_compiler_pic='-KPIC'
8549 lt_prog_compiler_static='-Bstatic'
8550 lt_prog_compiler_wl='-Wl,'
8552 *Intel*\ [CF]*Compiler*)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-fPIC'
8555 lt_prog_compiler_static='-static'
8558 lt_prog_compiler_wl='-Wl,'
8559 lt_prog_compiler_pic='-fpic'
8560 lt_prog_compiler_static='-Bstatic'
8568 lt_prog_compiler_pic='-KPIC'
8569 lt_prog_compiler_static='-Bstatic'
8573 # QNX uses GNU C++, but need to define -shared option too, otherwise
8575 lt_prog_compiler_pic='-fPIC -shared'
8578 osf3* | osf4* | osf5*)
8579 lt_prog_compiler_wl='-Wl,'
8580 # All OSF/1 code is PIC.
8581 lt_prog_compiler_static='-non_shared'
8585 lt_prog_compiler_static='-non_shared'
8589 lt_prog_compiler_pic='-KPIC'
8590 lt_prog_compiler_static='-Bstatic'
8591 case $cc_basename in
8592 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8593 lt_prog_compiler_wl='-Qoption ld ';;
8595 lt_prog_compiler_wl='-Wl,';;
8600 lt_prog_compiler_wl='-Qoption ld '
8601 lt_prog_compiler_pic='-PIC'
8602 lt_prog_compiler_static='-Bstatic'
8605 sysv4 | sysv4.2uw2* | sysv4.3*)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-KPIC'
8608 lt_prog_compiler_static='-Bstatic'
8612 if test -d /usr/nec ;then
8613 lt_prog_compiler_pic='-Kconform_pic'
8614 lt_prog_compiler_static='-Bstatic'
8618 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-KPIC'
8621 lt_prog_compiler_static='-Bstatic'
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_can_build_shared=no
8630 lt_prog_compiler_pic='-pic'
8631 lt_prog_compiler_static='-Bstatic'
8635 lt_prog_compiler_can_build_shared=no
8641 # For platforms which do not support PIC, -DPIC is meaningless:
8643 lt_prog_compiler_pic=
8646 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8651 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8652 if ${lt_cv_prog_compiler_pic+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8658 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8659 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8662 # Check to make sure the PIC flag actually works.
8664 if test -n "$lt_prog_compiler_pic"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8666 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8667 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8668 $as_echo_n "(cached) " >&6
8670 lt_cv_prog_compiler_pic_works=no
8671 ac_outfile=conftest.$ac_objext
8672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8673 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8674 # Insert the option either (1) after the last *FLAGS variable, or
8675 # (2) before a word containing "conftest.", or (3) at the end.
8676 # Note that $ac_compile itself does not contain backslashes and begins
8677 # with a dollar sign (not a hyphen), so the echo should work correctly.
8678 # The option is referenced via a variable to avoid confusing sed.
8679 lt_compile=`echo "$ac_compile" | $SED \
8680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8682 -e 's:$: $lt_compiler_flag:'`
8683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8684 (eval "$lt_compile" 2>conftest.err)
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 if (exit $ac_status) && test -s "$ac_outfile"; then
8689 # The compiler can only warn and ignore the option if not recognized
8690 # So say no if there are warnings other than the usual output.
8691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8692 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8693 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8694 lt_cv_prog_compiler_pic_works=yes
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8701 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8703 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8704 case $lt_prog_compiler_pic in
8706 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8709 lt_prog_compiler_pic=
8710 lt_prog_compiler_can_build_shared=no
8726 # Check to make sure the static flag actually works.
8728 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8730 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8731 if ${lt_cv_prog_compiler_static_works+:} false; then :
8732 $as_echo_n "(cached) " >&6
8734 lt_cv_prog_compiler_static_works=no
8735 save_LDFLAGS="$LDFLAGS"
8736 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8737 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8739 # The linker can only warn and ignore the option if not recognized
8740 # So say no if there are warnings
8741 if test -s conftest.err; then
8742 # Append any errors to the config.log.
8743 cat conftest.err 1>&5
8744 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746 if diff conftest.exp conftest.er2 >/dev/null; then
8747 lt_cv_prog_compiler_static_works=yes
8750 lt_cv_prog_compiler_static_works=yes
8754 LDFLAGS="$save_LDFLAGS"
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8758 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8760 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8763 lt_prog_compiler_static=
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8774 if ${lt_cv_prog_compiler_c_o+:} false; then :
8775 $as_echo_n "(cached) " >&6
8777 lt_cv_prog_compiler_c_o=no
8778 $RM -r conftest 2>/dev/null
8782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8784 lt_compiler_flag="-o out/conftest2.$ac_objext"
8785 # Insert the option either (1) after the last *FLAGS variable, or
8786 # (2) before a word containing "conftest.", or (3) at the end.
8787 # Note that $ac_compile itself does not contain backslashes and begins
8788 # with a dollar sign (not a hyphen), so the echo should work correctly.
8789 lt_compile=`echo "$ac_compile" | $SED \
8790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8792 -e 's:$: $lt_compiler_flag:'`
8793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8794 (eval "$lt_compile" 2>out/conftest.err)
8796 cat out/conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8800 # The compiler can only warn and ignore the option if not recognized
8801 # So say no if there are warnings
8802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8805 lt_cv_prog_compiler_c_o=yes
8810 # SGI C++ compiler will create directory out/ii_files/ for
8811 # template instantiation
8812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8813 $RM out/* && rmdir out
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8820 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8829 if ${lt_cv_prog_compiler_c_o+:} false; then :
8830 $as_echo_n "(cached) " >&6
8832 lt_cv_prog_compiler_c_o=no
8833 $RM -r conftest 2>/dev/null
8837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8839 lt_compiler_flag="-o out/conftest2.$ac_objext"
8840 # Insert the option either (1) after the last *FLAGS variable, or
8841 # (2) before a word containing "conftest.", or (3) at the end.
8842 # Note that $ac_compile itself does not contain backslashes and begins
8843 # with a dollar sign (not a hyphen), so the echo should work correctly.
8844 lt_compile=`echo "$ac_compile" | $SED \
8845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8847 -e 's:$: $lt_compiler_flag:'`
8848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8849 (eval "$lt_compile" 2>out/conftest.err)
8851 cat out/conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8855 # The compiler can only warn and ignore the option if not recognized
8856 # So say no if there are warnings
8857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8860 lt_cv_prog_compiler_c_o=yes
8865 # SGI C++ compiler will create directory out/ii_files/ for
8866 # template instantiation
8867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8868 $RM out/* && rmdir out
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8875 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8880 hard_links="nottested"
8881 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8882 # do not overwrite the value of need_locks provided by the user
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8884 $as_echo_n "checking if we can lock with hard links... " >&6; }
8887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8889 ln conftest.a conftest.b 2>&5 || hard_links=no
8890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8892 $as_echo "$hard_links" >&6; }
8893 if test "$hard_links" = no; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8895 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8908 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8911 allow_undefined_flag=
8912 always_export_symbols=no
8914 archive_expsym_cmds=
8915 compiler_needs_object=no
8916 enable_shared_with_static_runtimes=no
8917 export_dynamic_flag_spec=
8918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8919 hardcode_automatic=no
8921 hardcode_direct_absolute=no
8922 hardcode_libdir_flag_spec=
8923 hardcode_libdir_separator=
8925 hardcode_shlibpath_var=unsupported
8927 link_all_deplibs=unknown
8930 old_archive_from_new_cmds=
8931 old_archive_from_expsyms_cmds=
8932 thread_safe_flag_spec=
8933 whole_archive_flag_spec=
8934 # include_expsyms should be a list of space-separated symbols to be *always*
8935 # included in the symbol list
8937 # exclude_expsyms can be an extended regexp of symbols to exclude
8938 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8939 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8940 # as well as any symbol that contains `d'.
8941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8942 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8943 # platforms (ab)use it in PIC code, but their linkers get confused if
8944 # the symbol is explicitly referenced. Since portable code cannot
8945 # rely on this symbol name, it's probably fine to never include it in
8946 # preloaded symbol tables.
8947 # Exclude shared library initialization/finalization symbols.
8948 extract_expsyms_cmds=
8951 cygwin* | mingw* | pw32* | cegcc*)
8952 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8953 # When not using gcc, we currently assume that we are using
8954 # Microsoft Visual C++.
8955 if test "$GCC" != yes; then
8960 # we just hope/assume this is gcc and not c89 (= MSVC++)
8970 # On some targets, GNU ld is compatible enough with the native linker
8971 # that we're better off using the native interface for both.
8972 lt_use_gnu_ld_interface=no
8973 if test "$with_gnu_ld" = yes; then
8976 # The AIX port of GNU ld has always aspired to compatibility
8977 # with the native linker. However, as the warning in the GNU ld
8978 # block says, versions before 2.19.5* couldn't really create working
8979 # shared libraries, regardless of the interface used.
8980 case `$LD -v 2>&1` in
8981 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8982 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8983 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8985 lt_use_gnu_ld_interface=yes
8990 lt_use_gnu_ld_interface=yes
8995 if test "$lt_use_gnu_ld_interface" = yes; then
8996 # If archive_cmds runs LD, not CC, wlarc should be empty
8999 # Set some defaults for GNU ld with shared library support. These
9000 # are reset later if shared libraries are not supported. Putting them
9001 # here allows them to be overridden if necessary.
9002 runpath_var=LD_RUN_PATH
9003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9004 export_dynamic_flag_spec='${wl}--export-dynamic'
9005 # ancient GNU ld didn't support --whole-archive et. al.
9006 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9007 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9009 whole_archive_flag_spec=
9011 supports_anon_versioning=no
9012 case `$LD -v 2>&1` in
9013 *GNU\ gold*) supports_anon_versioning=yes ;;
9014 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9015 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9016 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9017 *\ 2.11.*) ;; # other 2.11 versions
9018 *) supports_anon_versioning=yes ;;
9021 # See if GNU ld supports shared libraries.
9024 # On AIX/PPC, the GNU linker is very broken
9025 if test "$host_cpu" != ia64; then
9029 *** Warning: the GNU linker, at least up to release 2.19, is reported
9030 *** to be unable to reliably create shared libraries on AIX.
9031 *** Therefore, libtool is disabling shared libraries support. If you
9032 *** really care for shared libraries, you may want to install binutils
9033 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9034 *** You will then need to restart the configuration process.
9043 # see comment about AmigaOS4 .so support
9044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 archive_expsym_cmds=''
9048 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)'
9049 hardcode_libdir_flag_spec='-L$libdir'
9050 hardcode_minus_L=yes
9056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9057 allow_undefined_flag=unsupported
9058 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9059 # support --undefined. This deserves some investigation. FIXME
9060 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 cygwin* | mingw* | pw32* | cegcc*)
9067 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9068 # as there is no search path for DLLs.
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 export_dynamic_flag_spec='${wl}--export-all-symbols'
9071 allow_undefined_flag=unsupported
9072 always_export_symbols=no
9073 enable_shared_with_static_runtimes=yes
9074 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'
9075 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9077 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9079 # If the export-symbols file already is a .def file (1st line
9080 # is EXPORTS), use it as is; otherwise, prepend...
9081 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9082 cp $export_symbols $output_objdir/$soname.def;
9084 echo EXPORTS > $output_objdir/$soname.def;
9085 cat $export_symbols >> $output_objdir/$soname.def;
9087 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9095 link_all_deplibs=yes
9100 hardcode_shlibpath_var=no
9101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9102 export_dynamic_flag_spec='${wl}-E'
9103 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9104 # Instead, shared libraries are loaded at an image base (0x10000000 by
9105 # default) and relocated if they conflict, which is a slow very memory
9106 # consuming and fragmenting process. To avoid this, we pick a random,
9107 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9108 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9109 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9110 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'
9113 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9115 if test "$host_os" = linux-dietlibc; then
9116 case $cc_basename in
9117 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9120 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9121 && test "$tmp_diet" = no
9123 tmp_addflag=' $pic_flag'
9124 tmp_sharedflag='-shared'
9125 case $cc_basename,$host_cpu in
9126 pgcc*) # Portland Group C compiler
9127 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'
9128 tmp_addflag=' $pic_flag'
9130 pgf77* | pgf90* | pgf95* | pgfortran*)
9131 # Portland Group f77 and f90 compilers
9132 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'
9133 tmp_addflag=' $pic_flag -Mnomain' ;;
9134 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9135 tmp_addflag=' -i_dynamic' ;;
9136 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9137 tmp_addflag=' -i_dynamic -nofor_main' ;;
9138 ifc* | ifort*) # Intel Fortran compiler
9139 tmp_addflag=' -nofor_main' ;;
9140 lf95*) # Lahey Fortran 8.1
9141 whole_archive_flag_spec=
9142 tmp_sharedflag='--shared' ;;
9143 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9144 tmp_sharedflag='-qmkshrobj'
9146 nvcc*) # Cuda Compiler Driver 2.2
9147 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'
9148 compiler_needs_object=yes
9151 case `$CC -V 2>&1 | sed 5q` in
9152 *Sun\ C*) # Sun C 5.9
9153 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'
9154 compiler_needs_object=yes
9155 tmp_sharedflag='-G' ;;
9156 *Sun\ F*) # Sun Fortran 8.3
9157 tmp_sharedflag='-G' ;;
9159 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161 if test "x$supports_anon_versioning" = xyes; then
9162 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9164 echo "local: *; };" >> $output_objdir/$libname.ver~
9165 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9168 case $cc_basename in
9169 xlf* | bgf* | bgxlf* | mpixlf*)
9170 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9171 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9174 if test "x$supports_anon_versioning" = xyes; then
9175 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9176 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9177 echo "local: *; };" >> $output_objdir/$libname.ver~
9178 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9189 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9198 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9202 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9203 *** create shared libraries on Solaris systems. Therefore, libtool
9204 *** is disabling shared libraries support. We urge you to upgrade GNU
9205 *** binutils to release 2.9.1 or newer. Another option is to modify
9206 *** your PATH or compiler configuration so that the native linker is
9207 *** used, and then restart.
9210 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9211 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9219 case `$LD -v 2>&1` in
9220 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9224 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9225 *** reliably create shared libraries on SCO systems. Therefore, libtool
9226 *** is disabling shared libraries support. We urge you to upgrade GNU
9227 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9228 *** your PATH or compiler configuration so that the native linker is
9229 *** used, and then restart.
9234 # For security reasons, it is highly recommended that you always
9235 # use absolute paths for naming shared libraries, and exclude the
9236 # DT_RUNPATH tag from executables and libraries. But doing so
9237 # requires that you compile everything twice, which is a pain.
9238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9241 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9250 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_shlibpath_var=no
9257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9258 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9266 if test "$ld_shlibs" = no; then
9268 hardcode_libdir_flag_spec=
9269 export_dynamic_flag_spec=
9270 whole_archive_flag_spec=
9273 # PORTME fill in a description of your system's linker (not GNU ld)
9276 allow_undefined_flag=unsupported
9277 always_export_symbols=yes
9278 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'
9279 # Note: this linker hardcodes the directories in LIBPATH if there
9280 # are no directories specified by -L.
9281 hardcode_minus_L=yes
9282 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9283 # Neither direct hardcoding nor static linking is supported with a
9285 hardcode_direct=unsupported
9290 if test "$host_cpu" = ia64; then
9291 # On IA64, the linker does run time linking by default, so we don't
9292 # have to do anything special.
9293 aix_use_runtimelinking=no
9294 exp_sym_flag='-Bexport'
9297 # If we're using GNU nm, then we don't want the "-C" option.
9298 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9299 # Also, AIX nm treats weak defined symbols like other global
9300 # defined symbols, whereas GNU nm marks them as "W".
9301 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9302 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'
9304 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'
9306 aix_use_runtimelinking=no
9308 # Test if we are trying to use run time linking or normal
9309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9310 # need to do runtime linking.
9311 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9312 for ld_flag in $LDFLAGS; do
9313 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9314 aix_use_runtimelinking=yes
9321 exp_sym_flag='-bexport'
9322 no_entry_flag='-bnoentry'
9325 # When large executables or shared objects are built, AIX ld can
9326 # have problems creating the table of contents. If linking a library
9327 # or program results in "error TOC overflow" add -mminimal-toc to
9328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9333 hardcode_direct_absolute=yes
9334 hardcode_libdir_separator=':'
9335 link_all_deplibs=yes
9336 file_list_spec='${wl}-f,'
9338 if test "$GCC" = yes; then
9339 case $host_os in aix4.[012]|aix4.[012].*)
9340 # We only want to do this on AIX 4.2 and lower, the check
9341 # below for broken collect2 doesn't work under 4.3+
9342 collect2name=`${CC} -print-prog-name=collect2`
9343 if test -f "$collect2name" &&
9344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9346 # We have reworked collect2
9349 # We have old collect2
9350 hardcode_direct=unsupported
9351 # It fails to find uninstalled libraries when the uninstalled
9352 # path is not listed in the libpath. Setting hardcode_minus_L
9353 # to unsupported forces relinking
9354 hardcode_minus_L=yes
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_libdir_separator=
9360 shared_flag='-shared'
9361 if test "$aix_use_runtimelinking" = yes; then
9362 shared_flag="$shared_flag "'${wl}-G'
9366 if test "$host_cpu" = ia64; then
9367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9368 # chokes on -Wl,-G. The following line is correct:
9371 if test "$aix_use_runtimelinking" = yes; then
9372 shared_flag='${wl}-G'
9374 shared_flag='${wl}-bM:SRE'
9379 export_dynamic_flag_spec='${wl}-bexpall'
9380 # It seems that -bexpall does not export symbols beginning with
9381 # underscore (_), so it is better to generate a list of symbols to export.
9382 always_export_symbols=yes
9383 if test "$aix_use_runtimelinking" = yes; then
9384 # Warning - without using the other runtime loading flags (-brtl),
9385 # -berok will link without error, but may produce a broken library.
9386 allow_undefined_flag='-berok'
9387 # Determine the default libpath from the value encoded in an
9389 if test "${lt_cv_aix_libpath+set}" = set; then
9390 aix_libpath=$lt_cv_aix_libpath
9392 if ${lt_cv_aix_libpath_+:} false; then :
9393 $as_echo_n "(cached) " >&6
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9406 if ac_fn_c_try_link "$LINENO"; then :
9408 lt_aix_libpath_sed='
9409 /Import File Strings/,/^$/ {
9411 s/^0 *\([^ ]*\) *$/\1/
9415 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9416 # Check for a 64-bit object if we didn't find anything.
9417 if test -z "$lt_cv_aix_libpath_"; then
9418 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421 rm -f core conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423 if test -z "$lt_cv_aix_libpath_"; then
9424 lt_cv_aix_libpath_="/usr/lib:/lib"
9429 aix_libpath=$lt_cv_aix_libpath_
9432 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9433 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"
9435 if test "$host_cpu" = ia64; then
9436 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9437 allow_undefined_flag="-z nodefs"
9438 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"
9440 # Determine the default libpath from the value encoded in an
9442 if test "${lt_cv_aix_libpath+set}" = set; then
9443 aix_libpath=$lt_cv_aix_libpath
9445 if ${lt_cv_aix_libpath_+:} false; then :
9446 $as_echo_n "(cached) " >&6
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9459 if ac_fn_c_try_link "$LINENO"; then :
9461 lt_aix_libpath_sed='
9462 /Import File Strings/,/^$/ {
9464 s/^0 *\([^ ]*\) *$/\1/
9468 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9469 # Check for a 64-bit object if we didn't find anything.
9470 if test -z "$lt_cv_aix_libpath_"; then
9471 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9474 rm -f core conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9476 if test -z "$lt_cv_aix_libpath_"; then
9477 lt_cv_aix_libpath_="/usr/lib:/lib"
9482 aix_libpath=$lt_cv_aix_libpath_
9485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486 # Warning - without using the other run time loading flags,
9487 # -berok will link without error, but may produce a broken library.
9488 no_undefined_flag=' ${wl}-bernotok'
9489 allow_undefined_flag=' ${wl}-berok'
9490 if test "$with_gnu_ld" = yes; then
9491 # We only use this code for GNU lds that support --whole-archive.
9492 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9494 # Exported symbols can be pulled into shared objects from archives
9495 whole_archive_flag_spec='$convenience'
9497 archive_cmds_need_lc=yes
9498 # This is similar to how AIX traditionally builds its shared libraries.
9499 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'
9507 # see comment about AmigaOS4 .so support
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds=''
9512 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)'
9513 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_minus_L=yes
9520 export_dynamic_flag_spec=-rdynamic
9523 cygwin* | mingw* | pw32* | cegcc*)
9524 # When not using gcc, we currently assume that we are using
9525 # Microsoft Visual C++.
9526 # hardcode_libdir_flag_spec is actually meaningless, as there is
9527 # no search path for DLLs.
9528 case $cc_basename in
9531 hardcode_libdir_flag_spec=' '
9532 allow_undefined_flag=unsupported
9533 always_export_symbols=yes
9535 # Tell ltmain to make .lib files, not .a files.
9537 # Tell ltmain to make .dll files, not .so files.
9539 # FIXME: Setting linknames here is a bad hack.
9540 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9541 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9542 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9544 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9546 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9548 # The linker will not automatically build a static lib if we build a DLL.
9549 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9550 enable_shared_with_static_runtimes=yes
9551 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9554 old_postinstall_cmds='chmod 644 $oldlib'
9555 postlink_cmds='lt_outputfile="@OUTPUT@"~
9556 lt_tool_outputfile="@TOOL_OUTPUT@"~
9557 case $lt_outputfile in
9560 lt_outputfile="$lt_outputfile.exe"
9561 lt_tool_outputfile="$lt_tool_outputfile.exe"
9564 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9565 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9566 $RM "$lt_outputfile.manifest";
9570 # Assume MSVC wrapper
9571 hardcode_libdir_flag_spec=' '
9572 allow_undefined_flag=unsupported
9573 # Tell ltmain to make .lib files, not .a files.
9575 # Tell ltmain to make .dll files, not .so files.
9577 # FIXME: Setting linknames here is a bad hack.
9578 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9579 # The linker will automatically build a .lib file if we build a DLL.
9580 old_archive_from_new_cmds='true'
9581 # FIXME: Should let the user specify the lib program.
9582 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9583 enable_shared_with_static_runtimes=yes
9588 darwin* | rhapsody*)
9591 archive_cmds_need_lc=no
9593 hardcode_automatic=yes
9594 hardcode_shlibpath_var=unsupported
9595 if test "$lt_cv_ld_force_load" = "yes"; then
9596 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\"`'
9599 whole_archive_flag_spec=''
9601 link_all_deplibs=yes
9602 allow_undefined_flag="$_lt_dar_allow_undefined"
9603 case $cc_basename in
9604 ifort*) _lt_dar_can_shared=yes ;;
9605 *) _lt_dar_can_shared=$GCC ;;
9607 if test "$_lt_dar_can_shared" = "yes"; then
9608 output_verbose_link_cmd=func_echo_all
9609 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9610 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9611 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}"
9612 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}"
9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_libdir_flag_spec='-L$libdir'
9623 hardcode_shlibpath_var=no
9626 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9627 # support. Future versions do this automatically, but an explicit c++rt0.o
9628 # does not break anything, and helps significantly (at the cost of a little
9631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9632 hardcode_libdir_flag_spec='-R$libdir'
9634 hardcode_shlibpath_var=no
9637 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_minus_L=yes
9642 hardcode_shlibpath_var=no
9645 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9646 freebsd* | dragonfly*)
9647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9648 hardcode_libdir_flag_spec='-R$libdir'
9650 hardcode_shlibpath_var=no
9654 if test "$GCC" = yes; then
9655 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'
9657 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'
9659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9660 hardcode_libdir_separator=:
9663 # hardcode_minus_L: Not really in the search PATH,
9664 # but as the default location of the library.
9665 hardcode_minus_L=yes
9666 export_dynamic_flag_spec='${wl}-E'
9670 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9671 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9675 if test "$with_gnu_ld" = no; then
9676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9677 hardcode_libdir_separator=:
9679 hardcode_direct_absolute=yes
9680 export_dynamic_flag_spec='${wl}-E'
9681 # hardcode_minus_L: Not really in the search PATH,
9682 # but as the default location of the library.
9683 hardcode_minus_L=yes
9688 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9691 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9710 # Older versions of the 11.00 compiler do not understand -b yet
9711 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9713 $as_echo_n "checking if $CC understands -b... " >&6; }
9714 if ${lt_cv_prog_compiler__b+:} false; then :
9715 $as_echo_n "(cached) " >&6
9717 lt_cv_prog_compiler__b=no
9718 save_LDFLAGS="$LDFLAGS"
9719 LDFLAGS="$LDFLAGS -b"
9720 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9722 # The linker can only warn and ignore the option if not recognized
9723 # So say no if there are warnings
9724 if test -s conftest.err; then
9725 # Append any errors to the config.log.
9726 cat conftest.err 1>&5
9727 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729 if diff conftest.exp conftest.er2 >/dev/null; then
9730 lt_cv_prog_compiler__b=yes
9733 lt_cv_prog_compiler__b=yes
9737 LDFLAGS="$save_LDFLAGS"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9741 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9743 if test x"$lt_cv_prog_compiler__b" = xyes; then
9744 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9752 if test "$with_gnu_ld" = no; then
9753 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9754 hardcode_libdir_separator=:
9759 hardcode_shlibpath_var=no
9763 hardcode_direct_absolute=yes
9764 export_dynamic_flag_spec='${wl}-E'
9766 # hardcode_minus_L: Not really in the search PATH,
9767 # but as the default location of the library.
9768 hardcode_minus_L=yes
9774 irix5* | irix6* | nonstopux*)
9775 if test "$GCC" = yes; then
9776 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'
9777 # Try to use the -exported_symbol ld option, if it does not
9778 # work, assume that -exports_file does not work either and
9779 # implicitly export all symbols.
9780 # This should be the same for all languages, so no per-tag cache variable.
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9782 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9783 if ${lt_cv_irix_exported_symbol+:} false; then :
9784 $as_echo_n "(cached) " >&6
9786 save_LDFLAGS="$LDFLAGS"
9787 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789 /* end confdefs.h. */
9790 int foo (void) { return 0; }
9792 if ac_fn_c_try_link "$LINENO"; then :
9793 lt_cv_irix_exported_symbol=yes
9795 lt_cv_irix_exported_symbol=no
9797 rm -f core conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LDFLAGS="$save_LDFLAGS"
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9802 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9803 if test "$lt_cv_irix_exported_symbol" = yes; then
9804 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'
9807 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'
9808 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'
9810 archive_cmds_need_lc='no'
9811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812 hardcode_libdir_separator=:
9814 link_all_deplibs=yes
9818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9823 hardcode_libdir_flag_spec='-R$libdir'
9825 hardcode_shlibpath_var=no
9829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9832 hardcode_libdir_separator=:
9833 hardcode_shlibpath_var=no
9840 if test -f /usr/libexec/ld.so; then
9842 hardcode_shlibpath_var=no
9843 hardcode_direct_absolute=yes
9844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9847 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9848 export_dynamic_flag_spec='${wl}-E'
9851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_libdir_flag_spec='-R$libdir'
9856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 hardcode_minus_L=yes
9869 allow_undefined_flag=unsupported
9870 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'
9871 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9875 if test "$GCC" = yes; then
9876 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9877 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'
9879 allow_undefined_flag=' -expect_unresolved \*'
9880 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'
9882 archive_cmds_need_lc='no'
9883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9884 hardcode_libdir_separator=:
9887 osf4* | osf5*) # as osf3* with the addition of -msym flag
9888 if test "$GCC" = yes; then
9889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9890 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'
9891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9893 allow_undefined_flag=' -expect_unresolved \*'
9894 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'
9895 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~
9896 $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'
9898 # Both c and cxx compiler support -rpath directly
9899 hardcode_libdir_flag_spec='-rpath $libdir'
9901 archive_cmds_need_lc='no'
9902 hardcode_libdir_separator=:
9906 no_undefined_flag=' -z defs'
9907 if test "$GCC" = yes; then
9909 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9911 $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'
9913 case `$CC -V 2>&1` in
9916 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9918 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9922 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9924 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9928 hardcode_libdir_flag_spec='-R$libdir'
9929 hardcode_shlibpath_var=no
9931 solaris2.[0-5] | solaris2.[0-5].*) ;;
9933 # The compiler driver will combine and reorder linker options,
9934 # but understands `-z linker_flag'. GCC discards it without `$wl',
9935 # but is careful enough not to reorder.
9936 # Supported since Solaris 2.6 (maybe 2.5.1?)
9937 if test "$GCC" = yes; then
9938 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9940 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9944 link_all_deplibs=yes
9948 if test "x$host_vendor" = xsequent; then
9949 # Use $CC to link under sequent, because it throws in some extra .o
9950 # files that make .init and .fini sections work.
9951 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9953 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_libdir_flag_spec='-L$libdir'
9957 hardcode_minus_L=yes
9958 hardcode_shlibpath_var=no
9962 case $host_vendor in
9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_direct=yes # is this really true???
9968 ## LD is ld it makes a PLAMLIB
9969 ## CC just makes a GrossModule.
9970 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9971 reload_cmds='$CC -r -o $output$reload_objs'
9975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9979 runpath_var='LD_RUN_PATH'
9980 hardcode_shlibpath_var=no
9984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_shlibpath_var=no
9986 export_dynamic_flag_spec='-Bexport'
9990 if test -d /usr/nec; then
9991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992 hardcode_shlibpath_var=no
9993 runpath_var=LD_RUN_PATH
9994 hardcode_runpath_var=yes
9999 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10000 no_undefined_flag='${wl}-z,text'
10001 archive_cmds_need_lc=no
10002 hardcode_shlibpath_var=no
10003 runpath_var='LD_RUN_PATH'
10005 if test "$GCC" = yes; then
10006 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 sysv5* | sco3.2v5* | sco5v6*)
10015 # Note: We can NOT use -z defs as we might desire, because we do not
10016 # link with -lc, and that would cause any symbols used from libc to
10017 # always be unresolved, which means just about no library would
10018 # ever link correctly. If we're not using GNU ld we use -z text
10019 # though, which does catch some bad symbols but isn't as heavy-handed
10021 no_undefined_flag='${wl}-z,text'
10022 allow_undefined_flag='${wl}-z,nodefs'
10023 archive_cmds_need_lc=no
10024 hardcode_shlibpath_var=no
10025 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10026 hardcode_libdir_separator=':'
10027 link_all_deplibs=yes
10028 export_dynamic_flag_spec='${wl}-Bexport'
10029 runpath_var='LD_RUN_PATH'
10031 if test "$GCC" = yes; then
10032 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042 hardcode_libdir_flag_spec='-L$libdir'
10043 hardcode_shlibpath_var=no
10051 if test x$host_vendor = xsni; then
10053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10054 export_dynamic_flag_spec='${wl}-Blargedynsym'
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10061 $as_echo "$ld_shlibs" >&6; }
10062 test "$ld_shlibs" = no && can_build_shared=no
10064 with_gnu_ld=$with_gnu_ld
10081 # Do we need to explicitly link libc?
10083 case "x$archive_cmds_need_lc" in
10085 # Assume -lc should be added
10086 archive_cmds_need_lc=yes
10088 if test "$enable_shared" = yes && test "$GCC" = yes; then
10089 case $archive_cmds in
10091 # FIXME: we may have to deal with multi-command sequences.
10094 # Test whether the compiler implicitly links with -lc since on some
10095 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10096 # to ld, don't add -lc before -lgcc.
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10098 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10099 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10100 $as_echo_n "(cached) " >&6
10103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10106 (eval $ac_compile) 2>&5
10108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10109 test $ac_status = 0; } 2>conftest.err; then
10112 libobjs=conftest.$ac_objext
10114 wl=$lt_prog_compiler_wl
10115 pic_flag=$lt_prog_compiler_pic
10121 lt_save_allow_undefined_flag=$allow_undefined_flag
10122 allow_undefined_flag=
10123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10124 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10127 test $ac_status = 0; }
10129 lt_cv_archive_cmds_need_lc=no
10131 lt_cv_archive_cmds_need_lc=yes
10133 allow_undefined_flag=$lt_save_allow_undefined_flag
10135 cat conftest.err 1>&5
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10141 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10142 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10301 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10303 if test "$GCC" = yes; then
10305 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10306 *) lt_awk_arg="/^libraries:/" ;;
10309 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10310 *) lt_sed_strip_eq="s,=/,/,g" ;;
10312 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10313 case $lt_search_path_spec in
10315 # if the path contains ";" then we assume it to be the separator
10316 # otherwise default to the standard path separator (i.e. ":") - it is
10317 # assumed that no part of a normal pathname contains ";" but that should
10318 # okay in the real world where ";" in dirpaths is itself problematic.
10319 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10322 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10325 # Ok, now we have the path, separated by spaces, we can step through it
10326 # and add multilib dir if necessary.
10327 lt_tmp_lt_search_path_spec=
10328 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10329 for lt_sys_path in $lt_search_path_spec; do
10330 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10331 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10333 test -d "$lt_sys_path" && \
10334 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10337 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10338 BEGIN {RS=" "; FS="/|\n";} {
10341 for (lt_i = NF; lt_i > 0; lt_i--) {
10342 if ($lt_i != "" && $lt_i != ".") {
10343 if ($lt_i == "..") {
10346 if (lt_count == 0) {
10347 lt_foo="/" $lt_i lt_foo;
10354 if (lt_foo != "") { lt_freq[lt_foo]++; }
10355 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10357 # AWK program above erroneously prepends '/' to C:/dos/paths
10360 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10361 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10363 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10367 library_names_spec=
10368 libname_spec='lib$name'
10372 postuninstall_cmds=
10376 shlibpath_overrides_runpath=unknown
10378 dynamic_linker="$host_os ld.so"
10379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10380 need_lib_prefix=unknown
10381 hardcode_into_libs=no
10383 # when you set need_version to no, make sure it does not cause -set_version
10384 # flags to be left without arguments
10385 need_version=unknown
10389 version_type=linux # correct to gnu/linux during the next big refactor
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10391 shlibpath_var=LIBPATH
10393 # AIX 3 has no versioning support, so we append a major version to the name.
10394 soname_spec='${libname}${release}${shared_ext}$major'
10398 version_type=linux # correct to gnu/linux during the next big refactor
10401 hardcode_into_libs=yes
10402 if test "$host_cpu" = ia64; then
10403 # AIX 5 supports IA64
10404 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10405 shlibpath_var=LD_LIBRARY_PATH
10407 # With GCC up to 2.95.x, collect2 would create an import file
10408 # for dependence libraries. The import file would start with
10409 # the line `#! .'. This would cause the generated library to
10410 # depend on `.', always an invalid library. This was fixed in
10411 # development snapshots of GCC prior to 3.0.
10413 aix4 | aix4.[01] | aix4.[01].*)
10414 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10416 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10419 can_build_shared=no
10423 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10424 # soname into executable. Probably we can add versioning support to
10425 # collect2, so additional links can be useful in future.
10426 if test "$aix_use_runtimelinking" = yes; then
10427 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10428 # instead of lib<name>.a to let people know that these are not
10429 # typical AIX shared libraries.
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 # We preserve .a as extension for shared libraries through AIX4.2
10433 # and later when we are not doing run time linking.
10434 library_names_spec='${libname}${release}.a $libname.a'
10435 soname_spec='${libname}${release}${shared_ext}$major'
10437 shlibpath_var=LIBPATH
10444 # Since July 2007 AmigaOS4 officially supports .so libraries.
10445 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 library_names_spec='$libname.ixlibrary $libname.a'
10450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10451 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'
10457 library_names_spec='${libname}${shared_ext}'
10458 dynamic_linker="$host_os ld.so"
10459 shlibpath_var=LIBRARY_PATH
10463 version_type=linux # correct to gnu/linux during the next big refactor
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10468 shlibpath_var=LD_LIBRARY_PATH
10469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10471 # the default ld.so.conf also contains /usr/contrib/lib and
10472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10473 # libtool to hard-code these into programs
10476 cygwin* | mingw* | pw32* | cegcc*)
10477 version_type=windows
10482 case $GCC,$cc_basename in
10485 library_names_spec='$libname.dll.a'
10486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10487 postinstall_cmds='base_file=`basename \${file}`~
10488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10489 dldir=$destdir/`dirname \$dlpath`~
10490 test -d \$dldir || mkdir -p \$dldir~
10491 $install_prog $dir/$dlname \$dldir/$dlname~
10492 chmod a+x \$dldir/$dlname~
10493 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10494 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10497 dlpath=$dir/\$dldll~
10499 shlibpath_overrides_runpath=yes
10503 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10504 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10506 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10509 # MinGW DLLs use traditional 'lib' prefix
10510 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10513 # pw32 DLLs use 'pw' prefix rather than 'lib'
10514 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10517 dynamic_linker='Win32 ld.exe'
10522 libname_spec='$name'
10523 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524 library_names_spec='${libname}.dll.lib'
10528 sys_lib_search_path_spec=
10531 for lt_path in $LIB
10534 # Let DOS variable expansion print the short 8.3 style file name.
10535 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10536 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10539 # Convert to MSYS style.
10540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10543 # Convert to unix form, then to dos form, then back to unix form
10544 # but this time dos style (no spaces!) so that the unix form looks
10545 # like /cygdrive/c/PROGRA~1:/cygdr...
10546 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10547 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10548 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10551 sys_lib_search_path_spec="$LIB"
10552 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10553 # It is most probably a Windows format PATH.
10554 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10556 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10558 # FIXME: find the short name or the path components, as spaces are
10559 # common. (e.g. "Program Files" -> "PROGRA~1")
10563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10564 postinstall_cmds='base_file=`basename \${file}`~
10565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10566 dldir=$destdir/`dirname \$dlpath`~
10567 test -d \$dldir || mkdir -p \$dldir~
10568 $install_prog $dir/$dlname \$dldir/$dlname'
10569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10570 dlpath=$dir/\$dldll~
10572 shlibpath_overrides_runpath=yes
10573 dynamic_linker='Win32 link.exe'
10577 # Assume MSVC wrapper
10578 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10579 dynamic_linker='Win32 ld.exe'
10582 # FIXME: first we should search . and the directory the executable is in
10586 darwin* | rhapsody*)
10587 dynamic_linker="$host_os dyld"
10588 version_type=darwin
10591 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10592 soname_spec='${libname}${release}${major}$shared_ext'
10593 shlibpath_overrides_runpath=yes
10594 shlibpath_var=DYLD_LIBRARY_PATH
10595 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10602 version_type=linux # correct to gnu/linux during the next big refactor
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10610 freebsd* | dragonfly*)
10611 # DragonFly does not have aout. When/if they implement a new
10612 # versioning mechanism, adjust this.
10613 if test -x /usr/bin/objformat; then
10614 objformat=`/usr/bin/objformat`
10617 freebsd[23].*) objformat=aout ;;
10618 *) objformat=elf ;;
10621 version_type=freebsd-$objformat
10622 case $version_type in
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10633 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10638 freebsd3.[01]* | freebsdelf3.[01]*)
10639 shlibpath_overrides_runpath=yes
10640 hardcode_into_libs=yes
10642 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10643 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10644 shlibpath_overrides_runpath=no
10645 hardcode_into_libs=yes
10647 *) # from 4.6 on, and DragonFly
10648 shlibpath_overrides_runpath=yes
10649 hardcode_into_libs=yes
10655 version_type=linux # correct to gnu/linux during the next big refactor
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 shlibpath_overrides_runpath=no
10662 hardcode_into_libs=yes
10666 version_type=linux # correct to gnu/linux during the next big refactor
10669 dynamic_linker="$host_os runtime_loader"
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 shlibpath_var=LIBRARY_PATH
10673 shlibpath_overrides_runpath=yes
10674 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10675 hardcode_into_libs=yes
10678 hpux9* | hpux10* | hpux11*)
10679 # Give a soname corresponding to the major version so that dld.sl refuses to
10680 # link against other versions.
10687 hardcode_into_libs=yes
10688 dynamic_linker="$host_os dld.so"
10689 shlibpath_var=LD_LIBRARY_PATH
10690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 if test "X$HPUX_IA64_MODE" = X32; then
10694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10702 hardcode_into_libs=yes
10703 dynamic_linker="$host_os dld.sl"
10704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10713 dynamic_linker="$host_os dld.sl"
10714 shlibpath_var=SHLIB_PATH
10715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10720 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10721 postinstall_cmds='chmod 555 $lib'
10722 # or fails outright, so override atomically:
10723 install_override_mode=555
10727 version_type=linux # correct to gnu/linux during the next big refactor
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10733 shlibpath_var=LD_LIBRARY_PATH
10734 shlibpath_overrides_runpath=no
10735 hardcode_into_libs=yes
10738 irix5* | irix6* | nonstopux*)
10740 nonstopux*) version_type=nonstopux ;;
10742 if test "$lt_cv_prog_gnu_ld" = yes; then
10743 version_type=linux # correct to gnu/linux during the next big refactor
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10753 irix5* | nonstopux*)
10754 libsuff= shlibsuff=
10757 case $LD in # libtool.m4 will add one of these switches to LD
10758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10759 libsuff= shlibsuff= libmagic=32-bit;;
10760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10761 libsuff=32 shlibsuff=N32 libmagic=N32;;
10762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10763 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10764 *) libsuff= shlibsuff= libmagic=never-match;;
10768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10769 shlibpath_overrides_runpath=no
10770 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10771 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10772 hardcode_into_libs=yes
10775 # No shared lib support for Linux oldld, aout, or coff.
10776 linux*oldld* | linux*aout* | linux*coff*)
10780 # This must be glibc/ELF.
10781 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10782 version_type=linux # correct to gnu/linux during the next big refactor
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=no
10791 # Some binutils ld are patched to set DT_RUNPATH
10792 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10793 $as_echo_n "(cached) " >&6
10795 lt_cv_shlibpath_overrides_runpath=no
10796 save_LDFLAGS=$LDFLAGS
10797 save_libdir=$libdir
10798 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10799 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h. */
10811 if ac_fn_c_try_link "$LINENO"; then :
10812 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10813 lt_cv_shlibpath_overrides_runpath=yes
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LDFLAGS=$save_LDFLAGS
10819 libdir=$save_libdir
10823 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10825 # This implies no fast_install, which is unacceptable.
10826 # Some rework will be needed to allow for fast_install
10827 # before this can be enabled.
10828 hardcode_into_libs=yes
10830 # Append ld.so.conf contents to the search path
10831 if test -f /etc/ld.so.conf; then
10832 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' ' '`
10833 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10836 # We used to test for /lib/ld.so.1 and disable shared libraries on
10837 # powerpc, because MkLinux only supported shared libraries with the
10838 # GNU dynamic linker. Since this was broken with cross compilers,
10839 # most powerpc-linux boxes support dynamic linking these days and
10840 # people can always --disable-shared, the test was removed, and we
10841 # assume the GNU/Linux dynamic linker is in use.
10842 dynamic_linker='GNU/Linux ld.so'
10849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10852 dynamic_linker='NetBSD (a.out) ld.so'
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 dynamic_linker='NetBSD ld.elf_so'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 shlibpath_overrides_runpath=yes
10860 hardcode_into_libs=yes
10864 version_type=linux # correct to gnu/linux during the next big refactor
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 shlibpath_var=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath=yes
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=no
10878 hardcode_into_libs=yes
10879 dynamic_linker='ldqnx.so'
10884 sys_lib_dlsearch_path_spec="/usr/lib"
10886 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10888 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10889 *) need_version=no ;;
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10896 openbsd2.[89] | openbsd2.[89].*)
10897 shlibpath_overrides_runpath=no
10900 shlibpath_overrides_runpath=yes
10904 shlibpath_overrides_runpath=yes
10909 libname_spec='$name'
10912 library_names_spec='$libname${shared_ext} $libname.a'
10913 dynamic_linker='OS/2 ld.exe'
10914 shlibpath_var=LIBPATH
10917 osf3* | osf4* | osf5*)
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10925 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10933 version_type=linux # correct to gnu/linux during the next big refactor
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes
10940 hardcode_into_libs=yes
10941 # ldd complains unless libraries are executable
10942 postinstall_cmds='chmod +x $lib'
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10948 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=yes
10951 if test "$with_gnu_ld" = yes; then
10958 version_type=linux # correct to gnu/linux during the next big refactor
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 case $host_vendor in
10964 shlibpath_overrides_runpath=no
10966 runpath_var=LD_RUN_PATH
10974 shlibpath_overrides_runpath=no
10975 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10981 if test -d /usr/nec ;then
10982 version_type=linux # correct to gnu/linux during the next big refactor
10983 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10984 soname_spec='$libname${shared_ext}.$major'
10985 shlibpath_var=LD_LIBRARY_PATH
10989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10990 version_type=freebsd-elf
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 shlibpath_var=LD_LIBRARY_PATH
10996 shlibpath_overrides_runpath=yes
10997 hardcode_into_libs=yes
10998 if test "$with_gnu_ld" = yes; then
10999 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11001 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11004 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11008 sys_lib_dlsearch_path_spec='/usr/lib'
11012 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11013 version_type=linux # correct to gnu/linux during the next big refactor
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=no
11019 hardcode_into_libs=yes
11023 version_type=linux # correct to gnu/linux during the next big refactor
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 shlibpath_var=LD_LIBRARY_PATH
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11034 $as_echo "$dynamic_linker" >&6; }
11035 test "$dynamic_linker" = no && can_build_shared=no
11037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11038 if test "$GCC" = yes; then
11039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11042 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11043 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11045 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11046 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11141 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11143 if test -n "$hardcode_libdir_flag_spec" ||
11144 test -n "$runpath_var" ||
11145 test "X$hardcode_automatic" = "Xyes" ; then
11147 # We can hardcode non-existent directories.
11148 if test "$hardcode_direct" != no &&
11149 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11150 # have to relink, otherwise we might link with an installed library
11151 # when we should be linking with a yet-to-be-installed one
11152 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11153 test "$hardcode_minus_L" != no; then
11154 # Linking always hardcodes the temporary library directory.
11155 hardcode_action=relink
11157 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11158 hardcode_action=immediate
11161 # We cannot hardcode anything, or else we can only hardcode existing
11163 hardcode_action=unsupported
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11166 $as_echo "$hardcode_action" >&6; }
11168 if test "$hardcode_action" = relink ||
11169 test "$inherit_rpath" = yes; then
11170 # Fast installation is not supported
11171 enable_fast_install=no
11172 elif test "$shlibpath_overrides_runpath" = yes ||
11173 test "$enable_shared" = no; then
11174 # Fast installation is not necessary
11175 enable_fast_install=needless
11183 if test "x$enable_dlopen" != xyes; then
11184 enable_dlopen=unknown
11185 enable_dlopen_self=unknown
11186 enable_dlopen_self_static=unknown
11193 lt_cv_dlopen="load_add_on"
11195 lt_cv_dlopen_self=yes
11198 mingw* | pw32* | cegcc*)
11199 lt_cv_dlopen="LoadLibrary"
11204 lt_cv_dlopen="dlopen"
11209 # if libdl is installed we need to link against it
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11211 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11212 if ${ac_cv_lib_dl_dlopen+:} false; then :
11213 $as_echo_n "(cached) " >&6
11215 ac_check_lib_save_LIBS=$LIBS
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11235 if ac_fn_c_try_link "$LINENO"; then :
11236 ac_cv_lib_dl_dlopen=yes
11238 ac_cv_lib_dl_dlopen=no
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_lib_save_LIBS
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11245 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11246 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11250 lt_cv_dlopen="dyld"
11252 lt_cv_dlopen_self=yes
11259 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11260 if test "x$ac_cv_func_shl_load" = xyes; then :
11261 lt_cv_dlopen="shl_load"
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11264 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11265 if ${ac_cv_lib_dld_shl_load+:} false; then :
11266 $as_echo_n "(cached) " >&6
11268 ac_check_lib_save_LIBS=$LIBS
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11273 /* Override any GCC internal prototype to avoid an error.
11274 Use char because int might match the return type of a GCC
11275 builtin and then its argument prototype would still apply. */
11283 return shl_load ();
11288 if ac_fn_c_try_link "$LINENO"; then :
11289 ac_cv_lib_dld_shl_load=yes
11291 ac_cv_lib_dld_shl_load=no
11293 rm -f core conftest.err conftest.$ac_objext \
11294 conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11298 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11299 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11300 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11302 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11303 if test "x$ac_cv_func_dlopen" = xyes; then :
11304 lt_cv_dlopen="dlopen"
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11307 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11308 if ${ac_cv_lib_dl_dlopen+:} false; then :
11309 $as_echo_n "(cached) " >&6
11311 ac_check_lib_save_LIBS=$LIBS
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11331 if ac_fn_c_try_link "$LINENO"; then :
11332 ac_cv_lib_dl_dlopen=yes
11334 ac_cv_lib_dl_dlopen=no
11336 rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338 LIBS=$ac_check_lib_save_LIBS
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11341 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11342 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11346 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11347 if ${ac_cv_lib_svld_dlopen+:} false; then :
11348 $as_echo_n "(cached) " >&6
11350 ac_check_lib_save_LIBS=$LIBS
11351 LIBS="-lsvld $LIBS"
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11355 /* Override any GCC internal prototype to avoid an error.
11356 Use char because int might match the return type of a GCC
11357 builtin and then its argument prototype would still apply. */
11370 if ac_fn_c_try_link "$LINENO"; then :
11371 ac_cv_lib_svld_dlopen=yes
11373 ac_cv_lib_svld_dlopen=no
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11377 LIBS=$ac_check_lib_save_LIBS
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11380 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11381 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11385 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11386 if ${ac_cv_lib_dld_dld_link+:} false; then :
11387 $as_echo_n "(cached) " >&6
11389 ac_check_lib_save_LIBS=$LIBS
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11394 /* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
11404 return dld_link ();
11409 if ac_fn_c_try_link "$LINENO"; then :
11410 ac_cv_lib_dld_dld_link=yes
11412 ac_cv_lib_dld_dld_link=no
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11419 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11420 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11421 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11442 if test "x$lt_cv_dlopen" != xno; then
11448 case $lt_cv_dlopen in
11450 save_CPPFLAGS="$CPPFLAGS"
11451 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11453 save_LDFLAGS="$LDFLAGS"
11454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11457 LIBS="$lt_cv_dlopen_libs $LIBS"
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11460 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11461 if ${lt_cv_dlopen_self+:} false; then :
11462 $as_echo_n "(cached) " >&6
11464 if test "$cross_compiling" = yes; then :
11465 lt_cv_dlopen_self=cross
11467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11468 lt_status=$lt_dlunknown
11469 cat > conftest.$ac_ext <<_LT_EOF
11470 #line $LINENO "configure"
11471 #include "confdefs.h"
11480 # define LT_DLGLOBAL RTLD_GLOBAL
11483 # define LT_DLGLOBAL DL_GLOBAL
11485 # define LT_DLGLOBAL 0
11489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11490 find out it does not work in some platform. */
11491 #ifndef LT_DLLAZY_OR_NOW
11493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11496 # define LT_DLLAZY_OR_NOW DL_LAZY
11499 # define LT_DLLAZY_OR_NOW RTLD_NOW
11502 # define LT_DLLAZY_OR_NOW DL_NOW
11504 # define LT_DLLAZY_OR_NOW 0
11511 /* When -fvisbility=hidden is used, assume the code has been annotated
11512 correspondingly for the symbols needed. */
11513 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11514 int fnord () __attribute__((visibility("default")));
11517 int fnord () { return 42; }
11520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11521 int status = $lt_dlunknown;
11525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11528 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11529 else puts (dlerror ());
11531 /* dlclose (self); */
11539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11540 (eval $ac_link) 2>&5
11542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11543 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11544 (./conftest; exit; ) >&5 2>/dev/null
11546 case x$lt_status in
11547 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11548 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11549 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11552 # compilation failed
11553 lt_cv_dlopen_self=no
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11561 $as_echo "$lt_cv_dlopen_self" >&6; }
11563 if test "x$lt_cv_dlopen_self" = xyes; then
11564 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11566 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11567 if ${lt_cv_dlopen_self_static+:} false; then :
11568 $as_echo_n "(cached) " >&6
11570 if test "$cross_compiling" = yes; then :
11571 lt_cv_dlopen_self_static=cross
11573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11574 lt_status=$lt_dlunknown
11575 cat > conftest.$ac_ext <<_LT_EOF
11576 #line $LINENO "configure"
11577 #include "confdefs.h"
11586 # define LT_DLGLOBAL RTLD_GLOBAL
11589 # define LT_DLGLOBAL DL_GLOBAL
11591 # define LT_DLGLOBAL 0
11595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11596 find out it does not work in some platform. */
11597 #ifndef LT_DLLAZY_OR_NOW
11599 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11602 # define LT_DLLAZY_OR_NOW DL_LAZY
11605 # define LT_DLLAZY_OR_NOW RTLD_NOW
11608 # define LT_DLLAZY_OR_NOW DL_NOW
11610 # define LT_DLLAZY_OR_NOW 0
11617 /* When -fvisbility=hidden is used, assume the code has been annotated
11618 correspondingly for the symbols needed. */
11619 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11620 int fnord () __attribute__((visibility("default")));
11623 int fnord () { return 42; }
11626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11627 int status = $lt_dlunknown;
11631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11634 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11635 else puts (dlerror ());
11637 /* dlclose (self); */
11645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11646 (eval $ac_link) 2>&5
11648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11649 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11650 (./conftest; exit; ) >&5 2>/dev/null
11652 case x$lt_status in
11653 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11654 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11655 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11658 # compilation failed
11659 lt_cv_dlopen_self_static=no
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11667 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11670 CPPFLAGS="$save_CPPFLAGS"
11671 LDFLAGS="$save_LDFLAGS"
11676 case $lt_cv_dlopen_self in
11677 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11678 *) enable_dlopen_self=unknown ;;
11681 case $lt_cv_dlopen_self_static in
11682 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11683 *) enable_dlopen_self_static=unknown ;;
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11706 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11707 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11708 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11709 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11713 # FIXME - insert some real tests, host_os isn't really good enough
11716 if test -n "$STRIP" ; then
11717 striplib="$STRIP -x"
11718 old_striplib="$STRIP -S"
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720 $as_echo "yes" >&6; }
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11744 # Report which library types will actually be built
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11746 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11748 $as_echo "$can_build_shared" >&6; }
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11751 $as_echo_n "checking whether to build shared libraries... " >&6; }
11752 test "$can_build_shared" = "no" && enable_shared=no
11754 # On AIX, shared libraries and static libraries use the same namespace, and
11755 # are all built from PIC.
11758 test "$enable_shared" = yes && enable_static=no
11759 if test -n "$RANLIB"; then
11760 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11761 postinstall_cmds='$RANLIB $lib'
11766 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11767 test "$enable_shared" = yes && enable_static=no
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11772 $as_echo "$enable_shared" >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11775 $as_echo_n "checking whether to build static libraries... " >&6; }
11776 # Make sure either enable_shared or enable_static is yes.
11777 test "$enable_shared" = yes || enable_static=yes
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11779 $as_echo "$enable_static" >&6; }
11786 ac_cpp='$CPP $CPPFLAGS'
11787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11807 ac_config_commands="$ac_config_commands libtool"
11812 # Only expand once:
11816 if test "X$prefix" = "XNONE"; then
11817 acl_final_prefix="$ac_default_prefix"
11819 acl_final_prefix="$prefix"
11821 if test "X$exec_prefix" = "XNONE"; then
11822 acl_final_exec_prefix='${prefix}'
11824 acl_final_exec_prefix="$exec_prefix"
11826 acl_save_prefix="$prefix"
11827 prefix="$acl_final_prefix"
11828 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11829 prefix="$acl_save_prefix"
11833 # Check whether --with-gnu-ld was given.
11834 if test "${with_gnu_ld+set}" = set; then :
11835 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11840 # Prepare PATH_SEPARATOR.
11841 # The user is always right.
11842 if test "${PATH_SEPARATOR+set}" != set; then
11843 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
11844 # contains only /bin. Note that ksh looks also at the FPATH variable,
11845 # so we have to set that as well for the test.
11847 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11848 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11849 || PATH_SEPARATOR=';'
11854 if test "$GCC" = yes; then
11855 # Check if gcc -print-prog-name=ld gives a path.
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11857 $as_echo_n "checking for ld used by $CC... " >&6; }
11860 # gcc leaves a trailing carriage return which upsets mingw
11861 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11863 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11866 # Accept absolute paths.
11868 re_direlt='/[^/][^/]*/\.\./'
11869 # Canonicalize the pathname of ld
11870 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
11871 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
11872 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11874 test -z "$LD" && LD="$ac_prog"
11877 # If it fails, then pretend we aren't using GCC.
11881 # If it is relative, then search for the first ld in PATH.
11882 with_gnu_ld=unknown
11885 elif test "$with_gnu_ld" = yes; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11887 $as_echo_n "checking for GNU ld... " >&6; }
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11890 $as_echo_n "checking for non-GNU ld... " >&6; }
11892 if ${acl_cv_path_LD+:} false; then :
11893 $as_echo_n "(cached) " >&6
11895 if test -z "$LD"; then
11896 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11897 for ac_dir in $PATH; do
11898 IFS="$acl_save_ifs"
11899 test -z "$ac_dir" && ac_dir=.
11900 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11901 acl_cv_path_LD="$ac_dir/$ac_prog"
11902 # Check to see if the program is GNU ld. I'd rather use --version,
11903 # but apparently some variants of GNU ld only accept -v.
11904 # Break only if it was the GNU/non-GNU ld that we prefer.
11905 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
11906 *GNU* | *'with BFD'*)
11907 test "$with_gnu_ld" != no && break
11910 test "$with_gnu_ld" != yes && break
11915 IFS="$acl_save_ifs"
11917 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11921 LD="$acl_cv_path_LD"
11922 if test -n "$LD"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11924 $as_echo "$LD" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11929 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11931 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11932 if ${acl_cv_prog_gnu_ld+:} false; then :
11933 $as_echo_n "(cached) " >&6
11935 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11936 case `$LD -v 2>&1 </dev/null` in
11937 *GNU* | *'with BFD'*)
11938 acl_cv_prog_gnu_ld=yes
11941 acl_cv_prog_gnu_ld=no
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11946 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11947 with_gnu_ld=$acl_cv_prog_gnu_ld
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11953 $as_echo_n "checking for shared library run path origin... " >&6; }
11954 if ${acl_cv_rpath+:} false; then :
11955 $as_echo_n "(cached) " >&6
11958 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11959 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11961 rm -f ./conftest.sh
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11966 $as_echo "$acl_cv_rpath" >&6; }
11968 acl_libext="$acl_cv_libext"
11969 acl_shlibext="$acl_cv_shlibext"
11970 acl_libname_spec="$acl_cv_libname_spec"
11971 acl_library_names_spec="$acl_cv_library_names_spec"
11972 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11973 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11974 acl_hardcode_direct="$acl_cv_hardcode_direct"
11975 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11976 # Check whether --enable-rpath was given.
11977 if test "${enable_rpath+set}" = set; then :
11978 enableval=$enable_rpath; :
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
11991 $as_echo_n "checking for 64-bit host... " >&6; }
11992 if ${gl_cv_solaris_64bit+:} false; then :
11993 $as_echo_n "(cached) " >&6
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
12003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12004 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12005 gl_cv_solaris_64bit=yes
12007 gl_cv_solaris_64bit=no
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12014 $as_echo "$gl_cv_solaris_64bit" >&6; }
12015 if test $gl_cv_solaris_64bit = yes; then
12016 acl_libdirstem=lib/64
12017 case "$host_cpu" in
12018 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12019 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12024 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12025 if test -n "$searchpath"; then
12026 acl_save_IFS="${IFS= }"; IFS=":"
12027 for searchdir in $searchpath; do
12028 if test -d "$searchdir"; then
12029 case "$searchdir" in
12030 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12032 # Better ignore directories of this form. They are misleading.
12034 *) searchdir=`cd "$searchdir" && pwd`
12035 case "$searchdir" in
12036 */lib64 ) acl_libdirstem=lib64 ;;
12041 IFS="$acl_save_IFS"
12045 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12060 acl_save_prefix="$prefix"
12061 prefix="$acl_final_prefix"
12062 acl_save_exec_prefix="$exec_prefix"
12063 exec_prefix="$acl_final_exec_prefix"
12065 eval additional_includedir=\"$includedir\"
12066 eval additional_libdir=\"$libdir\"
12068 exec_prefix="$acl_save_exec_prefix"
12069 prefix="$acl_save_prefix"
12072 # Check whether --with-libiconv-prefix was given.
12073 if test "${with_libiconv_prefix+set}" = set; then :
12074 withval=$with_libiconv_prefix;
12075 if test "X$withval" = "Xno"; then
12078 if test "X$withval" = "X"; then
12080 acl_save_prefix="$prefix"
12081 prefix="$acl_final_prefix"
12082 acl_save_exec_prefix="$exec_prefix"
12083 exec_prefix="$acl_final_exec_prefix"
12085 eval additional_includedir=\"$includedir\"
12086 eval additional_libdir=\"$libdir\"
12088 exec_prefix="$acl_save_exec_prefix"
12089 prefix="$acl_save_prefix"
12092 additional_includedir="$withval/include"
12093 additional_libdir="$withval/$acl_libdirstem"
12094 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12095 && ! test -d "$withval/$acl_libdirstem"; then
12096 additional_libdir="$withval/$acl_libdirstem2"
12110 names_already_handled=
12111 names_next_round='iconv '
12112 while test -n "$names_next_round"; do
12113 names_this_round="$names_next_round"
12115 for name in $names_this_round; do
12117 for n in $names_already_handled; do
12118 if test "$n" = "$name"; then
12119 already_handled=yes
12123 if test -z "$already_handled"; then
12124 names_already_handled="$names_already_handled $name"
12125 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12126 eval value=\"\$HAVE_LIB$uppername\"
12127 if test -n "$value"; then
12128 if test "$value" = yes; then
12129 eval value=\"\$LIB$uppername\"
12130 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12131 eval value=\"\$LTLIB$uppername\"
12132 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12141 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12142 if test -n "$acl_shlibext"; then
12143 shrext=".$acl_shlibext" # typically: shrext=.so
12147 if test $use_additional = yes; then
12148 dir="$additional_libdir"
12149 if test -n "$acl_shlibext"; then
12150 if test -f "$dir/$libname$shrext"; then
12152 found_so="$dir/$libname$shrext"
12154 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12155 ver=`(cd "$dir" && \
12156 for f in "$libname$shrext".*; do echo "$f"; done \
12157 | sed -e "s,^$libname$shrext\\\\.,," \
12158 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12159 | sed 1q ) 2>/dev/null`
12160 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12162 found_so="$dir/$libname$shrext.$ver"
12165 eval library_names=\"$acl_library_names_spec\"
12166 for f in $library_names; do
12167 if test -f "$dir/$f"; then
12176 if test "X$found_dir" = "X"; then
12177 if test -f "$dir/$libname.$acl_libext"; then
12179 found_a="$dir/$libname.$acl_libext"
12182 if test "X$found_dir" != "X"; then
12183 if test -f "$dir/$libname.la"; then
12184 found_la="$dir/$libname.la"
12188 if test "X$found_dir" = "X"; then
12189 for x in $LDFLAGS $LTLIBICONV; do
12191 acl_save_prefix="$prefix"
12192 prefix="$acl_final_prefix"
12193 acl_save_exec_prefix="$exec_prefix"
12194 exec_prefix="$acl_final_exec_prefix"
12196 exec_prefix="$acl_save_exec_prefix"
12197 prefix="$acl_save_prefix"
12201 dir=`echo "X$x" | sed -e 's/^X-L//'`
12202 if test -n "$acl_shlibext"; then
12203 if test -f "$dir/$libname$shrext"; then
12205 found_so="$dir/$libname$shrext"
12207 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12208 ver=`(cd "$dir" && \
12209 for f in "$libname$shrext".*; do echo "$f"; done \
12210 | sed -e "s,^$libname$shrext\\\\.,," \
12211 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12212 | sed 1q ) 2>/dev/null`
12213 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12215 found_so="$dir/$libname$shrext.$ver"
12218 eval library_names=\"$acl_library_names_spec\"
12219 for f in $library_names; do
12220 if test -f "$dir/$f"; then
12229 if test "X$found_dir" = "X"; then
12230 if test -f "$dir/$libname.$acl_libext"; then
12232 found_a="$dir/$libname.$acl_libext"
12235 if test "X$found_dir" != "X"; then
12236 if test -f "$dir/$libname.la"; then
12237 found_la="$dir/$libname.la"
12242 if test "X$found_dir" != "X"; then
12247 if test "X$found_dir" != "X"; then
12248 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12249 if test "X$found_so" != "X"; then
12250 if test "$enable_rpath" = no \
12251 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12252 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12253 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12256 for x in $ltrpathdirs; do
12257 if test "X$x" = "X$found_dir"; then
12262 if test -z "$haveit"; then
12263 ltrpathdirs="$ltrpathdirs $found_dir"
12265 if test "$acl_hardcode_direct" = yes; then
12266 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12268 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12269 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12271 for x in $rpathdirs; do
12272 if test "X$x" = "X$found_dir"; then
12277 if test -z "$haveit"; then
12278 rpathdirs="$rpathdirs $found_dir"
12282 for x in $LDFLAGS $LIBICONV; do
12284 acl_save_prefix="$prefix"
12285 prefix="$acl_final_prefix"
12286 acl_save_exec_prefix="$exec_prefix"
12287 exec_prefix="$acl_final_exec_prefix"
12289 exec_prefix="$acl_save_exec_prefix"
12290 prefix="$acl_save_prefix"
12292 if test "X$x" = "X-L$found_dir"; then
12297 if test -z "$haveit"; then
12298 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12300 if test "$acl_hardcode_minus_L" != no; then
12301 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12303 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12309 if test "X$found_a" != "X"; then
12310 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12312 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12315 additional_includedir=
12316 case "$found_dir" in
12317 */$acl_libdirstem | */$acl_libdirstem/)
12318 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12319 if test "$name" = 'iconv'; then
12320 LIBICONV_PREFIX="$basedir"
12322 additional_includedir="$basedir/include"
12324 */$acl_libdirstem2 | */$acl_libdirstem2/)
12325 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12326 if test "$name" = 'iconv'; then
12327 LIBICONV_PREFIX="$basedir"
12329 additional_includedir="$basedir/include"
12332 if test "X$additional_includedir" != "X"; then
12333 if test "X$additional_includedir" != "X/usr/include"; then
12335 if test "X$additional_includedir" = "X/usr/local/include"; then
12336 if test -n "$GCC"; then
12338 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12342 if test -z "$haveit"; then
12343 for x in $CPPFLAGS $INCICONV; do
12345 acl_save_prefix="$prefix"
12346 prefix="$acl_final_prefix"
12347 acl_save_exec_prefix="$exec_prefix"
12348 exec_prefix="$acl_final_exec_prefix"
12350 exec_prefix="$acl_save_exec_prefix"
12351 prefix="$acl_save_prefix"
12353 if test "X$x" = "X-I$additional_includedir"; then
12358 if test -z "$haveit"; then
12359 if test -d "$additional_includedir"; then
12360 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12366 if test -n "$found_la"; then
12367 save_libdir="$libdir"
12368 case "$found_la" in
12369 */* | *\\*) . "$found_la" ;;
12370 *) . "./$found_la" ;;
12372 libdir="$save_libdir"
12373 for dep in $dependency_libs; do
12376 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12377 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12378 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12380 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12381 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12382 if test -n "$GCC"; then
12384 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12388 if test -z "$haveit"; then
12390 for x in $LDFLAGS $LIBICONV; do
12392 acl_save_prefix="$prefix"
12393 prefix="$acl_final_prefix"
12394 acl_save_exec_prefix="$exec_prefix"
12395 exec_prefix="$acl_final_exec_prefix"
12397 exec_prefix="$acl_save_exec_prefix"
12398 prefix="$acl_save_prefix"
12400 if test "X$x" = "X-L$additional_libdir"; then
12405 if test -z "$haveit"; then
12406 if test -d "$additional_libdir"; then
12407 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12411 for x in $LDFLAGS $LTLIBICONV; do
12413 acl_save_prefix="$prefix"
12414 prefix="$acl_final_prefix"
12415 acl_save_exec_prefix="$exec_prefix"
12416 exec_prefix="$acl_final_exec_prefix"
12418 exec_prefix="$acl_save_exec_prefix"
12419 prefix="$acl_save_prefix"
12421 if test "X$x" = "X-L$additional_libdir"; then
12426 if test -z "$haveit"; then
12427 if test -d "$additional_libdir"; then
12428 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12435 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12436 if test "$enable_rpath" != no; then
12438 for x in $rpathdirs; do
12439 if test "X$x" = "X$dir"; then
12444 if test -z "$haveit"; then
12445 rpathdirs="$rpathdirs $dir"
12448 for x in $ltrpathdirs; do
12449 if test "X$x" = "X$dir"; then
12454 if test -z "$haveit"; then
12455 ltrpathdirs="$ltrpathdirs $dir"
12460 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12463 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12466 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12467 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12473 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12474 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12480 if test "X$rpathdirs" != "X"; then
12481 if test -n "$acl_hardcode_libdir_separator"; then
12483 for found_dir in $rpathdirs; do
12484 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12486 acl_save_libdir="$libdir"
12488 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12489 libdir="$acl_save_libdir"
12490 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12492 for found_dir in $rpathdirs; do
12493 acl_save_libdir="$libdir"
12494 libdir="$found_dir"
12495 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12496 libdir="$acl_save_libdir"
12497 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12501 if test "X$ltrpathdirs" != "X"; then
12502 for found_dir in $ltrpathdirs; do
12503 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12518 am_save_CPPFLAGS="$CPPFLAGS"
12520 for element in $INCICONV; do
12522 for x in $CPPFLAGS; do
12524 acl_save_prefix="$prefix"
12525 prefix="$acl_final_prefix"
12526 acl_save_exec_prefix="$exec_prefix"
12527 exec_prefix="$acl_final_exec_prefix"
12529 exec_prefix="$acl_save_exec_prefix"
12530 prefix="$acl_save_prefix"
12532 if test "X$x" = "X$element"; then
12537 if test -z "$haveit"; then
12538 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12544 $as_echo_n "checking for iconv... " >&6; }
12545 if ${am_cv_func_iconv+:} false; then :
12546 $as_echo_n "(cached) " >&6
12549 am_cv_func_iconv="no, consider installing GNU libiconv"
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 #include <stdlib.h>
12558 iconv_t cd = iconv_open("","");
12559 iconv(cd,NULL,NULL,NULL,NULL);
12565 if ac_fn_c_try_link "$LINENO"; then :
12566 am_cv_func_iconv=yes
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 if test "$am_cv_func_iconv" != yes; then
12571 am_save_LIBS="$LIBS"
12572 LIBS="$LIBS $LIBICONV"
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 #include <stdlib.h>
12580 iconv_t cd = iconv_open("","");
12581 iconv(cd,NULL,NULL,NULL,NULL);
12587 if ac_fn_c_try_link "$LINENO"; then :
12588 am_cv_lib_iconv=yes
12589 am_cv_func_iconv=yes
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593 LIBS="$am_save_LIBS"
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12598 $as_echo "$am_cv_func_iconv" >&6; }
12599 if test "$am_cv_func_iconv" = yes; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12601 $as_echo_n "checking for working iconv... " >&6; }
12602 if ${am_cv_func_iconv_works+:} false; then :
12603 $as_echo_n "(cached) " >&6
12606 am_save_LIBS="$LIBS"
12607 if test $am_cv_lib_iconv = yes; then
12608 LIBS="$LIBS $LIBICONV"
12610 if test "$cross_compiling" = yes; then :
12612 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12613 *) am_cv_func_iconv_works="guessing yes" ;;
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12620 #include <string.h>
12623 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12626 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12627 if (cd_utf8_to_88591 != (iconv_t)(-1))
12629 static const char input[] = "\342\202\254"; /* EURO SIGN */
12631 const char *inptr = input;
12632 size_t inbytesleft = strlen (input);
12633 char *outptr = buf;
12634 size_t outbytesleft = sizeof (buf);
12635 size_t res = iconv (cd_utf8_to_88591,
12636 (char **) &inptr, &inbytesleft,
12637 &outptr, &outbytesleft);
12642 #if 0 /* This bug could be worked around by the caller. */
12643 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12645 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12646 if (cd_88591_to_utf8 != (iconv_t)(-1))
12648 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12650 const char *inptr = input;
12651 size_t inbytesleft = strlen (input);
12652 char *outptr = buf;
12653 size_t outbytesleft = sizeof (buf);
12654 size_t res = iconv (cd_88591_to_utf8,
12655 (char **) &inptr, &inbytesleft,
12656 &outptr, &outbytesleft);
12662 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12664 if (/* Try standardized names. */
12665 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12666 /* Try IRIX, OSF/1 names. */
12667 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12668 /* Try AIX names. */
12669 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12670 /* Try HP-UX names. */
12671 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12676 if ac_fn_c_try_run "$LINENO"; then :
12677 am_cv_func_iconv_works=yes
12679 am_cv_func_iconv_works=no
12681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12682 conftest.$ac_objext conftest.beam conftest.$ac_ext
12685 LIBS="$am_save_LIBS"
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12689 $as_echo "$am_cv_func_iconv_works" >&6; }
12690 case "$am_cv_func_iconv_works" in
12691 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12692 *) am_func_iconv=yes ;;
12695 am_func_iconv=no am_cv_lib_iconv=no
12697 if test "$am_func_iconv" = yes; then
12699 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12702 if test "$am_cv_lib_iconv" = yes; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12704 $as_echo_n "checking how to link with libiconv... " >&6; }
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12706 $as_echo "$LIBICONV" >&6; }
12708 CPPFLAGS="$am_save_CPPFLAGS"
12715 if test "$am_cv_func_iconv" = yes; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12717 $as_echo_n "checking for iconv declaration... " >&6; }
12718 if ${am_cv_proto_iconv+:} false; then :
12719 $as_echo_n "(cached) " >&6
12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12725 #include <stdlib.h>
12731 #if defined(__STDC__) || defined(__cplusplus)
12732 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12745 if ac_fn_c_try_compile "$LINENO"; then :
12746 am_cv_proto_iconv_arg1=""
12748 am_cv_proto_iconv_arg1="const"
12750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12751 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12754 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12756 $am_cv_proto_iconv" >&5
12758 $am_cv_proto_iconv" >&6; }
12760 cat >>confdefs.h <<_ACEOF
12761 #define ICONV_CONST $am_cv_proto_iconv_arg1
12767 # Optionally set install location of udev
12770 # Check whether --with-udev was given.
12771 if test "${with_udev+set}" = set; then :
12772 withval=$with_udev; UDEV="${withval}"
12777 # Optionally set name of udev rules file, default
12778 # priority is 69, to appear before 70-acl.rules which handles
12779 # access control to the devices. We try to let all other userspace
12780 # libusb-based device handlers take precedence since libmtp may
12781 # attempt to autoprobe the devices.
12783 # Later rules can then use the identifiers for its processing.
12784 UDEV_RULES=69-libmtp.rules
12786 # Check whether --with-udev-rules was given.
12787 if test "${with_udev_rules+set}" = set; then :
12788 withval=$with_udev_rules; UDEV_RULES="${withval}"
12793 # Optionally set group for device nodes
12796 # Check whether --with-udev-group was given.
12797 if test "${with_udev_group+set}" = set; then :
12798 withval=$with_udev_group; UDEV_GROUP="-g\"${withval}\""
12803 # Optionally set mode for device nodes
12806 # Check whether --with-udev-mode was given.
12807 if test "${with_udev_mode+set}" = set; then :
12808 withval=$with_udev_mode; UDEV_MODE="-m\"${withval}\""
12813 # Optionally enable and check for doxygen
12814 # Check whether --enable-doxygen was given.
12815 if test "${enable_doxygen+set}" = set; then :
12816 enableval=$enable_doxygen; ac_enable_doxygen=$enableval
12818 ac_enable_doxygen=auto
12821 if test "x$ac_enable_doxygen" != "xno"; then
12822 # Extract the first word of "doxygen", so it can be a program name with args.
12823 set dummy doxygen; ac_word=$2
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12825 $as_echo_n "checking for $ac_word... " >&6; }
12826 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
12827 $as_echo_n "(cached) " >&6
12829 if test -n "$HAVE_DOXYGEN"; then
12830 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
12832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833 for as_dir in $PATH
12836 test -z "$as_dir" && as_dir=.
12837 for ac_exec_ext in '' $ac_executable_extensions; do
12838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12839 ac_cv_prog_HAVE_DOXYGEN="true"
12840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
12850 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
12851 if test -n "$HAVE_DOXYGEN"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
12853 $as_echo "$HAVE_DOXYGEN" >&6; }
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12860 if test "x$HAVE_DOXYGEN" = "xfalse" -a "x$ac_enable_doxygen" = "xyes"; then
12861 as_fn_error $? "*** API documentation explicitly requested but Doxygen not found" "$LINENO" 5
12863 if test "x$HAVE_DOXYGEN" = "xtrue"; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: API documentation will be generated using Doxygen" >&5
12865 $as_echo "$as_me: API documentation will be generated using Doxygen" >&6;}
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: API documentation will not be generated" >&5
12870 $as_echo "$as_me: API documentation will not be generated" >&6;}
12872 if $HAVE_DOXYGEN; then
12874 HAVE_DOXYGEN_FALSE='#'
12876 HAVE_DOXYGEN_TRUE='#'
12877 HAVE_DOXYGEN_FALSE=
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the host operating system is Darwin" >&5
12883 $as_echo_n "checking if the host operating system is Darwin... " >&6; }
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12887 $as_echo "yes" >&6; }
12888 CFLAGS="$CFLAGS -DUSE_DARWIN"
12889 OSFLAGS="-framework IOKit"
12891 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; } ;;
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the host operating system is Linux" >&5
12897 $as_echo_n "checking if the host operating system is Linux... " >&6; }
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12912 if ac_fn_c_try_compile "$LINENO"; then :
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914 $as_echo "yes" >&6; }
12917 USE_LINUX_FALSE='#'
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12929 USE_LINUX_FALSE='#'
12937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 # Check for mingw compiler platform
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking For MinGW32" >&5
12941 $as_echo_n "checking For MinGW32... " >&6; }
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12945 $as_echo "yes" >&6; }
12948 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; } ;;
12951 if test "$mingw_compiler" = "yes"; then
12952 COMPILE_MINGW32_TRUE=
12953 COMPILE_MINGW32_FALSE='#'
12955 COMPILE_MINGW32_TRUE='#'
12956 COMPILE_MINGW32_FALSE=
12960 # Check if Microsoft LIB.EXE is available
12961 if test "$mingw_compiler" = "yes"; then
12962 # Extract the first word of "lib.exe", so it can be a program name with args.
12963 set dummy lib.exe; ac_word=$2
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12965 $as_echo_n "checking for $ac_word... " >&6; }
12966 if ${ac_cv_prog_ms_lib_exe+:} false; then :
12967 $as_echo_n "(cached) " >&6
12969 if test -n "$ms_lib_exe"; then
12970 ac_cv_prog_ms_lib_exe="$ms_lib_exe" # Let the user override the test.
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12976 test -z "$as_dir" && as_dir=.
12977 for ac_exec_ext in '' $ac_executable_extensions; do
12978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12979 ac_cv_prog_ms_lib_exe="yes"
12980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 test -z "$ac_cv_prog_ms_lib_exe" && ac_cv_prog_ms_lib_exe="no"
12990 ms_lib_exe=$ac_cv_prog_ms_lib_exe
12991 if test -n "$ms_lib_exe"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_lib_exe" >&5
12993 $as_echo "$ms_lib_exe" >&6; }
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
13001 if test x$ms_lib_exe = xyes; then
13003 MS_LIB_EXE_FALSE='#'
13005 MS_LIB_EXE_TRUE='#'
13010 # Check for libusb-1.0
13018 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13019 if test -n "$ac_tool_prefix"; then
13020 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13021 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13025 $as_echo_n "(cached) " >&6
13027 case $PKG_CONFIG in
13029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13051 if test -n "$PKG_CONFIG"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13053 $as_echo "$PKG_CONFIG" >&6; }
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13061 if test -z "$ac_cv_path_PKG_CONFIG"; then
13062 ac_pt_PKG_CONFIG=$PKG_CONFIG
13063 # Extract the first word of "pkg-config", so it can be a program name with args.
13064 set dummy pkg-config; ac_word=$2
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13066 $as_echo_n "checking for $ac_word... " >&6; }
13067 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13068 $as_echo_n "(cached) " >&6
13070 case $ac_pt_PKG_CONFIG in
13072 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13082 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13093 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13094 if test -n "$ac_pt_PKG_CONFIG"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13096 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13102 if test "x$ac_pt_PKG_CONFIG" = x; then
13105 case $cross_compiling:$ac_tool_warned in
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13109 ac_tool_warned=yes ;;
13111 PKG_CONFIG=$ac_pt_PKG_CONFIG
13114 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13118 if test -n "$PKG_CONFIG"; then
13119 _pkg_min_version=0.9.0
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13121 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13122 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13124 $as_echo "yes" >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13134 $as_echo_n "checking for LIBUSB... " >&6; }
13136 if test -n "$LIBUSB_CFLAGS"; then
13137 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13138 elif test -n "$PKG_CONFIG"; then
13139 if test -n "$PKG_CONFIG" && \
13140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
13141 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
13143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13144 test $ac_status = 0; }; then
13145 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.0" 2>/dev/null`
13146 test "x$?" != "x0" && pkg_failed=yes
13153 if test -n "$LIBUSB_LIBS"; then
13154 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13155 elif test -n "$PKG_CONFIG"; then
13156 if test -n "$PKG_CONFIG" && \
13157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.0\""; } >&5
13158 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
13160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13161 test $ac_status = 0; }; then
13162 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.0" 2>/dev/null`
13163 test "x$?" != "x0" && pkg_failed=yes
13173 if test $pkg_failed = yes; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13177 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13178 _pkg_short_errors_supported=yes
13180 _pkg_short_errors_supported=no
13182 if test $_pkg_short_errors_supported = yes; then
13183 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
13185 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 1.0.0" 2>&1`
13187 # Put the nasty error message in config.log where it belongs
13188 echo "$LIBUSB_PKG_ERRORS" >&5
13191 # Check for libopenusb second
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openusb_init in -lopenusb" >&5
13193 $as_echo_n "checking for openusb_init in -lopenusb... " >&6; }
13194 if ${ac_cv_lib_openusb_openusb_init+:} false; then :
13195 $as_echo_n "(cached) " >&6
13197 ac_check_lib_save_LIBS=$LIBS
13198 LIBS="-lopenusb $LIBS"
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13208 char openusb_init ();
13212 return openusb_init ();
13217 if ac_fn_c_try_link "$LINENO"; then :
13218 ac_cv_lib_openusb_openusb_init=yes
13220 ac_cv_lib_openusb_openusb_init=no
13222 rm -f core conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13224 LIBS=$ac_check_lib_save_LIBS
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openusb_openusb_init" >&5
13227 $as_echo "$ac_cv_lib_openusb_openusb_init" >&6; }
13228 if test "x$ac_cv_lib_openusb_openusb_init" = xyes; then :
13231 $as_echo "#define HAVE_OPENUSB /**/" >>confdefs.h
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13240 $as_echo_n "checking for LIBUSB... " >&6; }
13242 if test -n "$LIBUSB_CFLAGS"; then
13243 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13244 elif test -n "$PKG_CONFIG"; then
13245 if test -n "$PKG_CONFIG" && \
13246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13247 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; }; then
13251 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
13252 test "x$?" != "x0" && pkg_failed=yes
13259 if test -n "$LIBUSB_LIBS"; then
13260 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13261 elif test -n "$PKG_CONFIG"; then
13262 if test -n "$PKG_CONFIG" && \
13263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13264 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13267 test $ac_status = 0; }; then
13268 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
13269 test "x$?" != "x0" && pkg_failed=yes
13279 if test $pkg_failed = yes; then
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13284 _pkg_short_errors_supported=yes
13286 _pkg_short_errors_supported=no
13288 if test $_pkg_short_errors_supported = yes; then
13289 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13291 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13293 # Put the nasty error message in config.log where it belongs
13294 echo "$LIBUSB_PKG_ERRORS" >&5
13297 # Some systems don't use pkg-config for libusb, so double check.
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13299 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13300 if ${ac_cv_lib_usb_usb_open+:} false; then :
13301 $as_echo_n "(cached) " >&6
13303 ac_check_lib_save_LIBS=$LIBS
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13318 return usb_open ();
13323 if ac_fn_c_try_link "$LINENO"; then :
13324 ac_cv_lib_usb_usb_open=yes
13326 ac_cv_lib_usb_usb_open=no
13328 rm -f core conftest.err conftest.$ac_objext \
13329 conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13333 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13334 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13338 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13340 found_libusb0_pkg=yes
13344 as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13349 elif test $pkg_failed = untried; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13353 # Some systems don't use pkg-config for libusb, so double check.
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13355 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13356 if ${ac_cv_lib_usb_usb_open+:} false; then :
13357 $as_echo_n "(cached) " >&6
13359 ac_check_lib_save_LIBS=$LIBS
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13374 return usb_open ();
13379 if ac_fn_c_try_link "$LINENO"; then :
13380 ac_cv_lib_usb_usb_open=yes
13382 ac_cv_lib_usb_usb_open=no
13384 rm -f core conftest.err conftest.$ac_objext \
13385 conftest$ac_exeext conftest.$ac_ext
13386 LIBS=$ac_check_lib_save_LIBS
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13389 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13390 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13394 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13396 found_libusb0_pkg=yes
13400 as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13406 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13407 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13409 $as_echo "yes" >&6; }
13411 LIBUSB_VER=`pkg-config --modversion libusb`
13412 LIBUSB_REQUIRES='libusb'
13414 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13416 found_libusb0_pkg=yes
13423 elif test $pkg_failed = untried; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13427 # Check for libopenusb second
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openusb_init in -lopenusb" >&5
13429 $as_echo_n "checking for openusb_init in -lopenusb... " >&6; }
13430 if ${ac_cv_lib_openusb_openusb_init+:} false; then :
13431 $as_echo_n "(cached) " >&6
13433 ac_check_lib_save_LIBS=$LIBS
13434 LIBS="-lopenusb $LIBS"
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13438 /* Override any GCC internal prototype to avoid an error.
13439 Use char because int might match the return type of a GCC
13440 builtin and then its argument prototype would still apply. */
13444 char openusb_init ();
13448 return openusb_init ();
13453 if ac_fn_c_try_link "$LINENO"; then :
13454 ac_cv_lib_openusb_openusb_init=yes
13456 ac_cv_lib_openusb_openusb_init=no
13458 rm -f core conftest.err conftest.$ac_objext \
13459 conftest$ac_exeext conftest.$ac_ext
13460 LIBS=$ac_check_lib_save_LIBS
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openusb_openusb_init" >&5
13463 $as_echo "$ac_cv_lib_openusb_openusb_init" >&6; }
13464 if test "x$ac_cv_lib_openusb_openusb_init" = xyes; then :
13467 $as_echo "#define HAVE_OPENUSB /**/" >>confdefs.h
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
13476 $as_echo_n "checking for LIBUSB... " >&6; }
13478 if test -n "$LIBUSB_CFLAGS"; then
13479 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
13480 elif test -n "$PKG_CONFIG"; then
13481 if test -n "$PKG_CONFIG" && \
13482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13483 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13486 test $ac_status = 0; }; then
13487 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
13488 test "x$?" != "x0" && pkg_failed=yes
13495 if test -n "$LIBUSB_LIBS"; then
13496 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
13497 elif test -n "$PKG_CONFIG"; then
13498 if test -n "$PKG_CONFIG" && \
13499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.8\""; } >&5
13500 ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
13502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13503 test $ac_status = 0; }; then
13504 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
13505 test "x$?" != "x0" && pkg_failed=yes
13515 if test $pkg_failed = yes; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517 $as_echo "no" >&6; }
13519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13520 _pkg_short_errors_supported=yes
13522 _pkg_short_errors_supported=no
13524 if test $_pkg_short_errors_supported = yes; then
13525 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13527 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb >= 0.1.8" 2>&1`
13529 # Put the nasty error message in config.log where it belongs
13530 echo "$LIBUSB_PKG_ERRORS" >&5
13533 # Some systems don't use pkg-config for libusb, so double check.
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13535 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13536 if ${ac_cv_lib_usb_usb_open+:} false; then :
13537 $as_echo_n "(cached) " >&6
13539 ac_check_lib_save_LIBS=$LIBS
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13554 return usb_open ();
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 ac_cv_lib_usb_usb_open=yes
13562 ac_cv_lib_usb_usb_open=no
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13569 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13570 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13574 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13576 found_libusb0_pkg=yes
13580 as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13585 elif test $pkg_failed = untried; then
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587 $as_echo "no" >&6; }
13589 # Some systems don't use pkg-config for libusb, so double check.
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in -lusb" >&5
13591 $as_echo_n "checking for usb_open in -lusb... " >&6; }
13592 if ${ac_cv_lib_usb_usb_open+:} false; then :
13593 $as_echo_n "(cached) " >&6
13595 ac_check_lib_save_LIBS=$LIBS
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13600 /* Override any GCC internal prototype to avoid an error.
13601 Use char because int might match the return type of a GCC
13602 builtin and then its argument prototype would still apply. */
13610 return usb_open ();
13615 if ac_fn_c_try_link "$LINENO"; then :
13616 ac_cv_lib_usb_usb_open=yes
13618 ac_cv_lib_usb_usb_open=no
13620 rm -f core conftest.err conftest.$ac_objext \
13621 conftest$ac_exeext conftest.$ac_ext
13622 LIBS=$ac_check_lib_save_LIBS
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >&5
13625 $as_echo "$ac_cv_lib_usb_usb_open" >&6; }
13626 if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
13630 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13632 found_libusb0_pkg=yes
13636 as_fn_error $? "*** libusb not found! (missing -dev/-devel package?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
13642 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13643 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13645 $as_echo "yes" >&6; }
13647 LIBUSB_VER=`pkg-config --modversion libusb`
13648 LIBUSB_REQUIRES='libusb'
13650 $as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
13652 found_libusb0_pkg=yes
13660 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
13661 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13663 $as_echo "yes" >&6; }
13665 LIBUSB_VER=`pkg-config --modversion libusb-1.0`
13666 LIBUSB_REQUIRES='libusb-1.0'
13668 $as_echo "#define HAVE_LIBUSB1 /**/" >>confdefs.h
13670 found_libusb1_pkg=yes
13674 # Optionally disable MTPZ functionality.
13675 # Check whether --enable-mtpz was given.
13676 if test "${enable_mtpz+set}" = set; then :
13677 enableval=$enable_mtpz; use_mtpz=$enableval
13683 # Include MTPZ if not disabled.
13684 if test x"$use_mtpz" = "xyes" ; then
13685 # Check for libgcrypt.
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
13687 $as_echo_n "checking for libgcrypt... " >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
13689 $as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
13690 if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
13691 $as_echo_n "(cached) " >&6
13693 ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lgcrypt $LIBS"
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13698 /* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13704 char gcry_check_version ();
13708 return gcry_check_version ();
13713 if ac_fn_c_try_link "$LINENO"; then :
13714 ac_cv_lib_gcrypt_gcry_check_version=yes
13716 ac_cv_lib_gcrypt_gcry_check_version=no
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_check_lib_save_LIBS
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
13723 $as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
13724 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_LIBGCRYPT 1
13729 LIBS="-lgcrypt $LIBS"
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: *** libgcrypt not found - disabling MTPZ support ***" >&5
13733 $as_echo "$as_me: *** libgcrypt not found - disabling MTPZ support ***" >&6;} ; use_mtpz="no"
13738 if test x"$use_mtpz" = "xyes" ; then
13740 $as_echo "#define USE_MTPZ /**/" >>confdefs.h
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: MTPZ functionality enabled" >&5
13743 $as_echo "$as_me: MTPZ functionality enabled" >&6;};
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: MTPZ functionality disable" >&5
13746 $as_echo "$as_me: MTPZ functionality disable" >&6;};
13753 if test x"$use_mtpz" = "xyes"; then
13755 MTPZ_COMPILE_FALSE='#'
13757 MTPZ_COMPILE_TRUE='#'
13758 MTPZ_COMPILE_FALSE=
13761 if test x"$found_libusb1_pkg" = "xyes"; then
13762 LIBUSB1_COMPILE_TRUE=
13763 LIBUSB1_COMPILE_FALSE='#'
13765 LIBUSB1_COMPILE_TRUE='#'
13766 LIBUSB1_COMPILE_FALSE=
13769 if test x"$found_libusb0_pkg" = "xyes"; then
13770 LIBUSB0_COMPILE_TRUE=
13771 LIBUSB0_COMPILE_FALSE='#'
13773 LIBUSB0_COMPILE_TRUE='#'
13774 LIBUSB0_COMPILE_FALSE=
13777 if test x"$ac_cv_lib_openusb_openusb_init" = "xyes"; then
13778 LIBOPENUSB_COMPILE_TRUE=
13779 LIBOPENUSB_COMPILE_FALSE='#'
13781 LIBOPENUSB_COMPILE_TRUE='#'
13782 LIBOPENUSB_COMPILE_FALSE=
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: *** using libusb $LIBUSB_VER ***" >&5
13786 $as_echo "$as_me: *** using libusb $LIBUSB_VER ***" >&6;}
13788 # Checks for header files.
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13790 $as_echo_n "checking for ANSI C header files... " >&6; }
13791 if ${ac_cv_header_stdc+:} false; then :
13792 $as_echo_n "(cached) " >&6
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 #include <stdlib.h>
13797 #include <stdarg.h>
13798 #include <string.h>
13809 if ac_fn_c_try_compile "$LINENO"; then :
13810 ac_cv_header_stdc=yes
13812 ac_cv_header_stdc=no
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 if test $ac_cv_header_stdc = yes; then
13817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13820 #include <string.h>
13823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13824 $EGREP "memchr" >/dev/null 2>&1; then :
13827 ac_cv_header_stdc=no
13833 if test $ac_cv_header_stdc = yes; then
13834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #include <stdlib.h>
13840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13841 $EGREP "free" >/dev/null 2>&1; then :
13844 ac_cv_header_stdc=no
13850 if test $ac_cv_header_stdc = yes; then
13851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13852 if test "$cross_compiling" = yes; then :
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13858 #include <stdlib.h>
13859 #if ((' ' & 0x0FF) == 0x020)
13860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13863 # define ISLOWER(c) \
13864 (('a' <= (c) && (c) <= 'i') \
13865 || ('j' <= (c) && (c) <= 'r') \
13866 || ('s' <= (c) && (c) <= 'z'))
13867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13875 for (i = 0; i < 256; i++)
13876 if (XOR (islower (i), ISLOWER (i))
13877 || toupper (i) != TOUPPER (i))
13882 if ac_fn_c_try_run "$LINENO"; then :
13885 ac_cv_header_stdc=no
13887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13888 conftest.$ac_objext conftest.beam conftest.$ac_ext
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13894 $as_echo "$ac_cv_header_stdc" >&6; }
13895 if test $ac_cv_header_stdc = yes; then
13897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13902 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13903 if ${ac_cv_header_time+:} false; then :
13904 $as_echo_n "(cached) " >&6
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13908 #include <sys/types.h>
13909 #include <sys/time.h>
13915 if ((struct tm *) 0)
13921 if ac_fn_c_try_compile "$LINENO"; then :
13922 ac_cv_header_time=yes
13924 ac_cv_header_time=no
13926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13929 $as_echo "$ac_cv_header_time" >&6; }
13930 if test $ac_cv_header_time = yes; then
13932 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13936 # zlib.h the day we need to decompress firmware
13937 for ac_header in ctype.h errno.h fcntl.h getopt.h libgen.h \
13938 limits.h stdio.h string.h sys/stat.h sys/time.h unistd.h \
13939 langinfo.h locale.h arpa/inet.h byteswap.h sys/uio.h
13941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13944 cat >>confdefs.h <<_ACEOF
13945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13953 # Checks for typedefs, structures, and compiler characteristics.
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13955 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13956 if ${ac_cv_c_const+:} false; then :
13957 $as_echo_n "(cached) " >&6
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13966 #ifndef __cplusplus
13967 /* Ultrix mips cc rejects this sort of thing. */
13968 typedef int charset[2];
13969 const charset cs = { 0, 0 };
13970 /* SunOS 4.1.1 cc rejects this. */
13971 char const *const *pcpcc;
13973 /* NEC SVR4.0.2 mips cc rejects this. */
13974 struct point {int x, y;};
13975 static struct point const zero = {0,0};
13976 /* AIX XL C 1.02.0.0 rejects this.
13977 It does not let you subtract one const X* pointer from another in
13978 an arm of an if-expression whose if-part is not a constant
13980 const char *g = "string";
13981 pcpcc = &g + (g ? g-g : 0);
13982 /* HPUX 7.0 cc rejects these. */
13984 ppc = (char**) pcpcc;
13985 pcpcc = (char const *const *) ppc;
13986 { /* SCO 3.2v4 cc rejects this sort of thing. */
13989 char const *s = 0 ? (char *) 0 : (char const *) 0;
13994 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13995 int x[] = {25, 17};
13996 const int *foo = &x[0];
13999 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14000 typedef const int *iptr;
14004 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14005 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14006 struct s { int j; const int *ap[3]; } bx;
14007 struct s *b = &bx; b->j = 5;
14009 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14010 const int foo = 10;
14011 if (!foo) return 0;
14013 return !cs[0] && !zero.x;
14020 if ac_fn_c_try_compile "$LINENO"; then :
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14028 $as_echo "$ac_cv_c_const" >&6; }
14029 if test $ac_cv_c_const = no; then
14031 $as_echo "#define const /**/" >>confdefs.h
14035 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14036 if test "x$ac_cv_type_off_t" = xyes; then :
14040 cat >>confdefs.h <<_ACEOF
14041 #define off_t long int
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14047 $as_echo_n "checking return type of signal handlers... " >&6; }
14048 if ${ac_cv_type_signal+:} false; then :
14049 $as_echo_n "(cached) " >&6
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 #include <sys/types.h>
14054 #include <signal.h>
14059 return *(signal (0, 0)) (0) == 1;
14064 if ac_fn_c_try_compile "$LINENO"; then :
14065 ac_cv_type_signal=int
14067 ac_cv_type_signal=void
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14072 $as_echo "$ac_cv_type_signal" >&6; }
14074 cat >>confdefs.h <<_ACEOF
14075 #define RETSIGTYPE $ac_cv_type_signal
14079 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14080 if test "x$ac_cv_type_size_t" = xyes; then :
14084 cat >>confdefs.h <<_ACEOF
14085 #define size_t unsigned int
14090 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14091 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14098 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
14104 # Checks for library functions.
14105 for ac_header in stdlib.h
14107 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14108 if test "x$ac_cv_header_stdlib_h" = xyes; then :
14109 cat >>confdefs.h <<_ACEOF
14110 #define HAVE_STDLIB_H 1
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14118 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14119 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
14120 $as_echo_n "(cached) " >&6
14122 if test "$cross_compiling" = yes; then :
14123 ac_cv_func_malloc_0_nonnull=no
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14128 # include <stdlib.h>
14136 return ! malloc (0);
14141 if ac_fn_c_try_run "$LINENO"; then :
14142 ac_cv_func_malloc_0_nonnull=yes
14144 ac_cv_func_malloc_0_nonnull=no
14146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14147 conftest.$ac_objext conftest.beam conftest.$ac_ext
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14152 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14153 if test $ac_cv_func_malloc_0_nonnull = yes; then :
14155 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14158 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
14160 case " $LIBOBJS " in
14161 *" malloc.$ac_objext "* ) ;;
14162 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14167 $as_echo "#define malloc rpl_malloc" >>confdefs.h
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14173 $as_echo_n "checking for working memcmp... " >&6; }
14174 if ${ac_cv_func_memcmp_working+:} false; then :
14175 $as_echo_n "(cached) " >&6
14177 if test "$cross_compiling" = yes; then :
14178 ac_cv_func_memcmp_working=no
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 $ac_includes_default
14187 /* Some versions of memcmp are not 8-bit clean. */
14188 char c0 = '\100', c1 = '\200', c2 = '\201';
14189 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14192 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14193 or more and with at least one buffer not starting on a 4-byte boundary.
14194 William Lewis provided this test program. */
14199 for (i = 0; i < 4; i++)
14203 strcpy (a, "--------01111111");
14204 strcpy (b, "--------10000000");
14205 if (memcmp (a, b, 16) >= 0)
14215 if ac_fn_c_try_run "$LINENO"; then :
14216 ac_cv_func_memcmp_working=yes
14218 ac_cv_func_memcmp_working=no
14220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14221 conftest.$ac_objext conftest.beam conftest.$ac_ext
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14226 $as_echo "$ac_cv_func_memcmp_working" >&6; }
14227 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14228 *" memcmp.$ac_objext "* ) ;;
14229 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14235 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14236 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
14237 $as_echo_n "(cached) " >&6
14239 rm -f conftest.sym conftest.file
14240 echo >conftest.file
14241 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14242 if test "$cross_compiling" = yes; then :
14243 ac_cv_func_lstat_dereferences_slashed_symlink=no
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 $ac_includes_default
14252 /* Linux will dereference the symlink and fail, as required by POSIX.
14253 That is better in the sense that it means we will not
14254 have to compile and use the lstat wrapper. */
14255 return lstat ("conftest.sym/", &sbuf) == 0;
14260 if ac_fn_c_try_run "$LINENO"; then :
14261 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14263 ac_cv_func_lstat_dereferences_slashed_symlink=no
14265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14266 conftest.$ac_objext conftest.beam conftest.$ac_ext
14270 # If the `ln -s' command failed, then we probably don't even
14271 # have an lstat function.
14272 ac_cv_func_lstat_dereferences_slashed_symlink=no
14274 rm -f conftest.sym conftest.file
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14278 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14280 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14282 cat >>confdefs.h <<_ACEOF
14283 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14287 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14288 case " $LIBOBJS " in
14289 *" lstat.$ac_objext "* ) ;;
14290 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
14297 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
14298 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
14299 $as_echo_n "(cached) " >&6
14301 if test "$cross_compiling" = yes; then :
14302 ac_cv_func_stat_empty_string_bug=yes
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306 $ac_includes_default
14311 return stat ("", &sbuf) == 0;
14316 if ac_fn_c_try_run "$LINENO"; then :
14317 ac_cv_func_stat_empty_string_bug=no
14319 ac_cv_func_stat_empty_string_bug=yes
14321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14322 conftest.$ac_objext conftest.beam conftest.$ac_ext
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
14327 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
14328 if test $ac_cv_func_stat_empty_string_bug = yes; then
14329 case " $LIBOBJS " in
14330 *" stat.$ac_objext "* ) ;;
14331 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14336 cat >>confdefs.h <<_ACEOF
14337 #define HAVE_STAT_EMPTY_STRING_BUG 1
14342 for ac_func in basename memset select strdup strerror strndup strrchr strtoul usleep mkstemp
14344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14345 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14346 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14347 cat >>confdefs.h <<_ACEOF
14348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14356 # Enable LFS (Large File Support)
14357 # Check whether --enable-largefile was given.
14358 if test "${enable_largefile+set}" = set; then :
14359 enableval=$enable_largefile;
14362 if test "$enable_largefile" != no; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14365 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14366 if ${ac_cv_sys_largefile_CC+:} false; then :
14367 $as_echo_n "(cached) " >&6
14369 ac_cv_sys_largefile_CC=no
14370 if test "$GCC" != yes; then
14373 # IRIX 6.2 and later do not support large files by default,
14374 # so use the C compiler's -n32 option if that helps.
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 #include <sys/types.h>
14378 /* Check that off_t can represent 2**63 - 1 correctly.
14379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14380 since some C++ compilers masquerading as C compilers
14381 incorrectly reject 9223372036854775807. */
14382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14384 && LARGE_OFF_T % 2147483647 == 1)
14394 if ac_fn_c_try_compile "$LINENO"; then :
14397 rm -f core conftest.err conftest.$ac_objext
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400 ac_cv_sys_largefile_CC=' -n32'; break
14402 rm -f core conftest.err conftest.$ac_objext
14406 rm -f conftest.$ac_ext
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14410 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14411 if test "$ac_cv_sys_largefile_CC" != no; then
14412 CC=$CC$ac_cv_sys_largefile_CC
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14416 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14417 if ${ac_cv_sys_file_offset_bits+:} false; then :
14418 $as_echo_n "(cached) " >&6
14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422 /* end confdefs.h. */
14423 #include <sys/types.h>
14424 /* Check that off_t can represent 2**63 - 1 correctly.
14425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14426 since some C++ compilers masquerading as C compilers
14427 incorrectly reject 9223372036854775807. */
14428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14430 && LARGE_OFF_T % 2147483647 == 1)
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441 ac_cv_sys_file_offset_bits=no; break
14443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #define _FILE_OFFSET_BITS 64
14447 #include <sys/types.h>
14448 /* Check that off_t can represent 2**63 - 1 correctly.
14449 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14450 since some C++ compilers masquerading as C compilers
14451 incorrectly reject 9223372036854775807. */
14452 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14454 && LARGE_OFF_T % 2147483647 == 1)
14464 if ac_fn_c_try_compile "$LINENO"; then :
14465 ac_cv_sys_file_offset_bits=64; break
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 ac_cv_sys_file_offset_bits=unknown
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14473 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14474 case $ac_cv_sys_file_offset_bits in #(
14477 cat >>confdefs.h <<_ACEOF
14478 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14483 if test $ac_cv_sys_file_offset_bits = unknown; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14485 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14486 if ${ac_cv_sys_large_files+:} false; then :
14487 $as_echo_n "(cached) " >&6
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #include <sys/types.h>
14493 /* Check that off_t can represent 2**63 - 1 correctly.
14494 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14495 since some C++ compilers masquerading as C compilers
14496 incorrectly reject 9223372036854775807. */
14497 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14498 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14499 && LARGE_OFF_T % 2147483647 == 1)
14509 if ac_fn_c_try_compile "$LINENO"; then :
14510 ac_cv_sys_large_files=no; break
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14515 #define _LARGE_FILES 1
14516 #include <sys/types.h>
14517 /* Check that off_t can represent 2**63 - 1 correctly.
14518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14519 since some C++ compilers masquerading as C compilers
14520 incorrectly reject 9223372036854775807. */
14521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14523 && LARGE_OFF_T % 2147483647 == 1)
14533 if ac_fn_c_try_compile "$LINENO"; then :
14534 ac_cv_sys_large_files=1; break
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 ac_cv_sys_large_files=unknown
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14542 $as_echo "$ac_cv_sys_large_files" >&6; }
14543 case $ac_cv_sys_large_files in #(
14546 cat >>confdefs.h <<_ACEOF
14547 #define _LARGE_FILES $ac_cv_sys_large_files
14557 # Stick in "-Werror" if you want to be more aggressive.
14558 # (No need to use AC_SUBST on this default substituted environment variable.)
14559 # Only add these additional CFLAGS if we are using GCC. Other C compilers may
14560 # not support them.
14561 if test x"$GCC" == "xyes" ; then
14562 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
14567 # Create a stdint.h-like file containing size-specific integer definitions
14568 # that will always be available. The <stdint.h> file is required by the
14569 # library, but we provide this anyway because the libptp2 stuff wants this
14572 ac_dir=`$as_dirname -- "src/_stdint.h" ||
14573 $as_expr X"src/_stdint.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14574 X"src/_stdint.h" : 'X\(//\)[^/]' \| \
14575 X"src/_stdint.h" : 'X\(//\)$' \| \
14576 X"src/_stdint.h" : 'X\(/\)' \| . 2>/dev/null ||
14577 $as_echo X"src/_stdint.h" |
14578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14582 /^X\(\/\/\)[^/].*/{
14595 if test "$ac_dir" != "src/_stdint.h" && test "$ac_dir" != .; then
14596 # The file is in a subdirectory.
14597 test ! -d "$ac_dir" && (as_dir="$ac_dir"; as_fn_mkdir_p)
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in stdint.h" >&5
14601 $as_echo_n "checking for uint8_t in stdint.h... " >&6; }
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604 #include <stdint.h>
14606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14607 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14608 ac_cv_type_uint8_t=yes
14610 ac_cv_type_uint8_t=no
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
14614 $as_echo "$ac_cv_type_uint8_t" >&6; }
14615 if test $ac_cv_type_uint8_t = yes; then
14617 cat > "src/_stdint.h" <<EOF
14618 /* This file is generated automatically by configure */
14619 #include <stdint.h>
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in inttypes.h" >&5
14623 $as_echo_n "checking for uint8_t in inttypes.h... " >&6; }
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h. */
14626 #include <inttypes.h>
14628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14629 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14630 ac_cv_type_uint8_t=yes
14632 ac_cv_type_uint8_t=no
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
14636 $as_echo "$ac_cv_type_uint8_t" >&6; }
14637 if test $ac_cv_type_uint8_t = yes; then
14638 cat > "src/_stdint.h" <<EOF
14639 /* This file is generated automatically by configure */
14640 #include <inttypes.h>
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t in sys/types.h" >&5
14644 $as_echo_n "checking for uint8_t in sys/types.h... " >&6; }
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 #include <sys/types.h>
14649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14650 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14651 ac_cv_type_uint8_t=yes
14653 ac_cv_type_uint8_t=no
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
14657 $as_echo "$ac_cv_type_uint8_t" >&6; }
14658 if test $ac_cv_type_uint8_t = yes; then
14659 cat > "src/_stdint.h" <<EOF
14660 /* This file is generated automatically by configure */
14661 #include <sys/types.h>
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t in sys/types.h" >&5
14665 $as_echo_n "checking for u_int8_t in sys/types.h... " >&6; }
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 #include <sys/types.h>
14670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14671 $EGREP "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14672 ac_cv_type_u_int8_t=yes
14674 ac_cv_type_u_int8_t=no
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
14678 $as_echo "$ac_cv_type_u_int8_t" >&6; }
14679 if test $ac_cv_type_u_int8_t = yes; then
14680 cat > "src/_stdint.h" <<EOF
14681 /* This file is generated automatically by configure */
14684 #include <sys/types.h>
14685 typedef u_int8_t uint8_t;
14686 typedef u_int16_t uint16_t;
14687 typedef u_int32_t uint32_t;
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t in sys/types.h" >&5
14691 $as_echo_n "checking for u_int64_t in sys/types.h... " >&6; }
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14694 #include <sys/types.h>
14696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14697 $EGREP "(^|[^a-zA-Z_0-9])u_int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
14698 ac_cv_type_u_int64_t=yes
14700 ac_cv_type_u_int64_t=no
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
14704 $as_echo "$ac_cv_type_u_int64_t" >&6; }
14705 if test $ac_cv_type_u_int64_t = yes; then
14706 cat >> "src/_stdint.h" <<EOF
14707 typedef u_int64_t uint64_t;
14708 #endif /*!__STDINT_H*/
14711 cat >> "src/_stdint.h" <<EOF
14712 /* 64-bit types are not available on this system */
14713 /* typedef u_int64_t uint64_t; */
14714 #endif /*!__STDINT_H*/
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I can't find size-specific integer definitions on this system" >&5
14722 $as_echo "$as_me: WARNING: I can't find size-specific integer definitions on this system" >&2;}
14723 if test -e "src/_stdint.h" ; then
14724 rm -f "src/_stdint.h"
14736 # Create a header file containing NetBSD-style byte swapping macros.
14737 # This m4 macros has caused severe pain, I am considering creating a
14738 # hard-coded byte swapper that will be eternally portable.
14740 ac_dir=`$as_dirname -- "src/gphoto2-endian.h" ||
14741 $as_expr X"src/gphoto2-endian.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14742 X"src/gphoto2-endian.h" : 'X\(//\)[^/]' \| \
14743 X"src/gphoto2-endian.h" : 'X\(//\)$' \| \
14744 X"src/gphoto2-endian.h" : 'X\(/\)' \| . 2>/dev/null ||
14745 $as_echo X"src/gphoto2-endian.h" |
14746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14750 /^X\(\/\/\)[^/].*/{
14763 if test "$ac_dir" != "src/gphoto2-endian.h" && test "$ac_dir" != .; then
14764 # The file is in a subdirectory.
14765 test ! -d "$ac_dir" && (as_dir="$ac_dir"; as_fn_mkdir_p)
14768 # We're only interested in the target CPU, but it's not always set
14769 effective_target="$target"
14770 if test "x$effective_target" = xNONE -o "x$effective_target" = x ; then
14771 effective_target="$host"
14775 cat > "src/gphoto2-endian.h" << EOF
14776 /* This file is generated automatically by configure */
14777 /* It is valid only for the system type ${effective_target} */
14779 #ifndef __BYTEORDER_H
14780 #define __BYTEORDER_H
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14785 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14786 if ${ac_cv_c_bigendian+:} false; then :
14787 $as_echo_n "(cached) " >&6
14789 ac_cv_c_bigendian=unknown
14790 # See if we're dealing with a universal compiler.
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #ifndef __APPLE_CC__
14794 not a universal capable compiler
14799 if ac_fn_c_try_compile "$LINENO"; then :
14801 # Check for potential -arch flags. It is not universal unless
14802 # there are at least two -arch flags with different values.
14805 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14806 if test -n "$ac_prev"; then
14808 i?86 | x86_64 | ppc | ppc64)
14809 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14812 ac_cv_c_bigendian=universal
14818 elif test "x$ac_word" = "x-arch"; then
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 if test $ac_cv_c_bigendian = unknown; then
14825 # See if sys/param.h defines the BYTE_ORDER macro.
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14828 #include <sys/types.h>
14829 #include <sys/param.h>
14834 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14835 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14837 bogus endian macros
14844 if ac_fn_c_try_compile "$LINENO"; then :
14845 # It does; now see whether it defined to BIG_ENDIAN or not.
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14848 #include <sys/types.h>
14849 #include <sys/param.h>
14854 #if BYTE_ORDER != BIG_ENDIAN
14862 if ac_fn_c_try_compile "$LINENO"; then :
14863 ac_cv_c_bigendian=yes
14865 ac_cv_c_bigendian=no
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 if test $ac_cv_c_bigendian = unknown; then
14872 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 #include <limits.h>
14880 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14881 bogus endian macros
14888 if ac_fn_c_try_compile "$LINENO"; then :
14889 # It does; now see whether it defined to _BIG_ENDIAN or not.
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 #include <limits.h>
14897 #ifndef _BIG_ENDIAN
14905 if ac_fn_c_try_compile "$LINENO"; then :
14906 ac_cv_c_bigendian=yes
14908 ac_cv_c_bigendian=no
14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14914 if test $ac_cv_c_bigendian = unknown; then
14915 # Compile a test program.
14916 if test "$cross_compiling" = yes; then :
14917 # Try to guess by grepping values from an object file.
14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14920 short int ascii_mm[] =
14921 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14922 short int ascii_ii[] =
14923 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14924 int use_ascii (int i) {
14925 return ascii_mm[i] + ascii_ii[i];
14927 short int ebcdic_ii[] =
14928 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14929 short int ebcdic_mm[] =
14930 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14931 int use_ebcdic (int i) {
14932 return ebcdic_mm[i] + ebcdic_ii[i];
14939 return use_ascii (foo) == use_ebcdic (foo);
14944 if ac_fn_c_try_compile "$LINENO"; then :
14945 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14946 ac_cv_c_bigendian=yes
14948 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14949 if test "$ac_cv_c_bigendian" = unknown; then
14950 ac_cv_c_bigendian=no
14952 # finding both strings is unlikely to happen, but who knows?
14953 ac_cv_c_bigendian=unknown
14957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961 $ac_includes_default
14966 /* Are we little or big endian? From Harbison&Steele. */
14970 char c[sizeof (long int)];
14973 return u.c[sizeof (long int) - 1] == 1;
14979 if ac_fn_c_try_run "$LINENO"; then :
14980 ac_cv_c_bigendian=no
14982 ac_cv_c_bigendian=yes
14984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14985 conftest.$ac_objext conftest.beam conftest.$ac_ext
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14991 $as_echo "$ac_cv_c_bigendian" >&6; }
14992 case $ac_cv_c_bigendian in #(
14994 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15000 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15004 as_fn_error $? "unknown endianness
15005 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for le32toh in machine/endian.h" >&5
15011 $as_echo_n "checking for le32toh in machine/endian.h... " >&6; }
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15015 #include <machine/endian.h>
15021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15022 $EGREP "symbol is present|\<le32toh\>" >/dev/null 2>&1; then :
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15024 $as_echo "yes" >&6; }
15026 cat >> "src/gphoto2-endian.h" << EOF
15027 /* extended byte swapping macros are already available */
15028 #include <machine/endian.h>
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15034 $as_echo "no" >&6; }
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in arpa/inet.h" >&5
15039 $as_echo_n "checking for ntohl in arpa/inet.h... " >&6; }
15040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041 /* end confdefs.h. */
15043 #include <arpa/inet.h>
15049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15050 $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15052 $as_echo "yes" >&6; }
15053 cat >> "src/gphoto2-endian.h" << EOF
15054 /* ntohl and relatives live here */
15055 #include <arpa/inet.h>
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohl in netinet/in.h" >&5
15064 $as_echo_n "checking for ntohl in netinet/in.h... " >&6; }
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15068 #include <netinet/in.h>
15074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15075 $EGREP "symbol is present|\<ntohl\>" >/dev/null 2>&1; then :
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077 $as_echo "yes" >&6; }
15078 cat >> "src/gphoto2-endian.h" << EOF
15079 /* ntohl and relatives live here */
15080 #include <netinet/in.h>
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15086 $as_echo "no" >&6; }
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swap32 in machine/endian.h" >&5
15105 $as_echo_n "checking for swap32 in machine/endian.h... " >&6; }
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15109 #include <machine/endian.h>
15115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15116 $EGREP "symbol is present|\<swap32\>" >/dev/null 2>&1; then :
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15118 $as_echo "yes" >&6; }
15119 cat >> "src/gphoto2-endian.h" << EOF
15120 /* swap32 and swap16 are defined in machine/endian.h */
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15126 $as_echo "no" >&6; }
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_32 in byteswap.h" >&5
15130 $as_echo_n "checking for bswap_32 in byteswap.h... " >&6; }
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15134 #include <byteswap.h>
15140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15141 $EGREP "symbol is present|\<bswap_32\>" >/dev/null 2>&1; then :
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15143 $as_echo "yes" >&6; }
15144 cat >> "src/gphoto2-endian.h" << EOF
15145 /* Define generic byte swapping functions */
15146 #include <byteswap.h>
15147 #define swap16(x) bswap_16(x)
15148 #define swap32(x) bswap_32(x)
15149 #define swap64(x) bswap_64(x)
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155 $as_echo "no" >&6; }
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap32 in machine/endian.h" >&5
15159 $as_echo_n "checking for bswap32 in machine/endian.h... " >&6; }
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15163 #include <machine/endian.h>
15169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15170 $EGREP "symbol is present|\<bswap32\>" >/dev/null 2>&1; then :
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15172 $as_echo "yes" >&6; }
15173 cat >> "src/gphoto2-endian.h" << EOF
15174 /* Define generic byte swapping functions */
15176 if test "$HAVE_LE32TOH" != "1"; then
15177 echo '#include <machine/endian.h>'>> "src/gphoto2-endian.h"
15179 cat >> "src/gphoto2-endian.h" << EOF
15180 #define swap16(x) bswap16(x)
15181 #define swap32(x) bswap32(x)
15182 #define swap64(x) bswap64(x)
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188 $as_echo "no" >&6; }
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __byte_swap_long in sys/types.h" >&5
15192 $as_echo_n "checking for __byte_swap_long in sys/types.h... " >&6; }
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15196 #include <sys/types.h>
15197 #ifdef __byte_swap_long
15202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15203 $EGREP "symbol is present|\<__byte_swap_long\>" >/dev/null 2>&1; then :
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15205 $as_echo "yes" >&6; }
15206 cat >> "src/gphoto2-endian.h" << EOF
15207 /* Define generic byte swapping functions */
15208 #include <sys/types.h>
15209 #define swap16(x) __byte_swap_word(x)
15210 #define swap32(x) __byte_swap_long(x)
15211 /* No optimized 64 bit byte swapping macro is available */
15212 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15213 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15214 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15215 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\
15216 ((x) >> 8) & 0x00000000ff000000ULL | \\
15217 ((x) >> 24) & 0x0000000000ff0000ULL | \\
15218 ((x) >> 40) & 0x000000000000ff00ULL | \\
15219 ((x) >> 56) & 0x00000000000000ffULL))
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225 $as_echo "no" >&6; }
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NXSwapLong in machine/byte_order.h" >&5
15229 $as_echo_n "checking for NXSwapLong in machine/byte_order.h... " >&6; }
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15233 #include <machine/byte_order.h>
15239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15240 $EGREP "symbol is present|\<NXSwapLong\>" >/dev/null 2>&1; then :
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15242 $as_echo "yes" >&6; }
15243 cat >> "src/gphoto2-endian.h" << EOF
15244 /* Define generic byte swapping functions */
15245 #include <machine/byte_order.h>
15246 #define swap16(x) NXSwapShort(x)
15247 #define swap32(x) NXSwapLong(x)
15248 #define swap64(x) NXSwapLongLong(x)
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15254 $as_echo "no" >&6; }
15256 if test $ac_cv_c_bigendian = yes; then
15257 cat >> "src/gphoto2-endian.h" << EOF
15258 /* No other byte swapping functions are available on this big-endian system */
15259 #define swap16(x) ((uint16_t)(((x) << 8) | ((uint16_t)(x) >> 8)))
15260 #define swap32(x) ((uint32_t)(((uint32_t)(x) << 24) & 0xff000000UL | \\
15261 ((uint32_t)(x) << 8) & 0x00ff0000UL | \\
15262 ((x) >> 8) & 0x0000ff00UL | \\
15263 ((x) >> 24) & 0x000000ffUL))
15264 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15265 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15266 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15267 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\
15268 ((x) >> 8) & 0x00000000ff000000ULL | \\
15269 ((x) >> 24) & 0x0000000000ff0000ULL | \\
15270 ((x) >> 40) & 0x000000000000ff00ULL | \\
15271 ((x) >> 56) & 0x00000000000000ffULL))
15275 cat >> "src/gphoto2-endian.h" << EOF
15276 /* Use these as generic byteswapping macros on this little endian system */
15277 #define swap16(x) ntohs(x)
15278 #define swap32(x) ntohl(x)
15279 /* No optimized 64 bit byte swapping macro is available */
15280 #define swap64(x) ((uint64_t)(((uint64_t)(x) << 56) & 0xff00000000000000ULL | \\
15281 ((uint64_t)(x) << 40) & 0x00ff000000000000ULL | \\
15282 ((uint64_t)(x) << 24) & 0x0000ff0000000000ULL | \\
15283 ((uint64_t)(x) << 8) & 0x000000ff00000000ULL | \\
15284 ((x) >> 8) & 0x00000000ff000000ULL | \\
15285 ((x) >> 24) & 0x0000000000ff0000ULL | \\
15286 ((x) >> 40) & 0x000000000000ff00ULL | \\
15287 ((x) >> 56) & 0x00000000000000ffULL))
15319 if test "$HAVE_LE32TOH" != "1"; then
15320 cat >> "src/gphoto2-endian.h" << EOF
15321 /* The byte swapping macros have the form: */
15322 /* EENN[a]toh or htoEENN[a] where EE is be (big endian) or */
15323 /* le (little-endian), NN is 16 or 32 (number of bits) and a, */
15324 /* if present, indicates that the endian side is a pointer to an */
15325 /* array of uint8_t bytes instead of an integer of the specified length. */
15326 /* h refers to the host's ordering method. */
15328 /* So, to convert a 32-bit integer stored in a buffer in little-endian */
15329 /* format into a uint32_t usable on this machine, you could use: */
15330 /* uint32_t value = le32atoh(&buf[3]); */
15331 /* To put that value back into the buffer, you could use: */
15332 /* htole32a(&buf[3], value); */
15334 /* Define aliases for the standard byte swapping macros */
15335 /* Arguments to these macros must be properly aligned on natural word */
15336 /* boundaries in order to work properly on all architectures */
15338 # define htobe16(x) htons(x)
15341 # define htobe32(x) htonl(x)
15344 # define be16toh(x) ntohs(x)
15347 # define be32toh(x) ntohl(x)
15350 #define HTOBE16(x) (x) = htobe16(x)
15351 #define HTOBE32(x) (x) = htobe32(x)
15352 #define BE32TOH(x) (x) = be32toh(x)
15353 #define BE16TOH(x) (x) = be16toh(x)
15357 if test $ac_cv_c_bigendian = yes; then
15358 cat >> "src/gphoto2-endian.h" << EOF
15359 /* Define our own extended byte swapping macros for big-endian machines */
15361 # define htole16(x) swap16(x)
15364 # define htole32(x) swap32(x)
15367 # define le16toh(x) swap16(x)
15370 # define le32toh(x) swap32(x)
15373 # define le64toh(x) swap64(x)
15377 # define htobe64(x) (x)
15380 # define be64toh(x) (x)
15383 #define HTOLE16(x) (x) = htole16(x)
15384 #define HTOLE32(x) (x) = htole32(x)
15385 #define LE16TOH(x) (x) = le16toh(x)
15386 #define LE32TOH(x) (x) = le32toh(x)
15387 #define LE64TOH(x) (x) = le64toh(x)
15389 #define HTOBE64(x) (void) (x)
15390 #define BE64TOH(x) (void) (x)
15394 cat >> "src/gphoto2-endian.h" << EOF
15395 /* On little endian machines, these macros are null */
15397 # define htole16(x) (x)
15400 # define htole32(x) (x)
15403 # define htole64(x) (x)
15406 # define le16toh(x) (x)
15409 # define le32toh(x) (x)
15412 # define le64toh(x) (x)
15415 #define HTOLE16(x) (void) (x)
15416 #define HTOLE32(x) (void) (x)
15417 #define HTOLE64(x) (void) (x)
15418 #define LE16TOH(x) (void) (x)
15419 #define LE32TOH(x) (void) (x)
15420 #define LE64TOH(x) (void) (x)
15422 /* These don't have standard aliases */
15424 # define htobe64(x) swap64(x)
15427 # define be64toh(x) swap64(x)
15430 #define HTOBE64(x) (x) = htobe64(x)
15431 #define BE64TOH(x) (x) = be64toh(x)
15437 cat >> "src/gphoto2-endian.h" << EOF
15438 /* Define the C99 standard length-specific integer types */
15439 #include <_stdint.h>
15443 case "${effective_target}" in
15445 cat >> "src/gphoto2-endian.h" << EOF
15446 /* Here are some macros to create integers from a byte array */
15447 /* These are used to get and put integers from/into a uint8_t array */
15448 /* with a specific endianness. This is the most portable way to generate */
15449 /* and read messages to a network or serial device. Each member of a */
15450 /* packet structure must be handled separately. */
15452 /* The i386 and compatibles can handle unaligned memory access, */
15453 /* so use the optimized macros above to do this job */
15455 # define be16atoh(x) be16toh(*(uint16_t*)(x))
15458 # define be32atoh(x) be32toh(*(uint32_t*)(x))
15461 # define be64atoh(x) be64toh(*(uint64_t*)(x))
15464 # define le16atoh(x) le16toh(*(uint16_t*)(x))
15467 # define le32atoh(x) le32toh(*(uint32_t*)(x))
15470 # define le64atoh(x) le64toh(*(uint64_t*)(x))
15474 # define htobe16a(a,x) *(uint16_t*)(a) = htobe16(x)
15477 # define htobe32a(a,x) *(uint32_t*)(a) = htobe32(x)
15480 # define htobe64a(a,x) *(uint64_t*)(a) = htobe64(x)
15483 # define htole16a(a,x) *(uint16_t*)(a) = htole16(x)
15486 # define htole32a(a,x) *(uint32_t*)(a) = htole32(x)
15489 # define htole64a(a,x) *(uint64_t*)(a) = htole64(x)
15496 cat >> "src/gphoto2-endian.h" << EOF
15497 /* Here are some macros to create integers from a byte array */
15498 /* These are used to get and put integers from/into a uint8_t array */
15499 /* with a specific endianness. This is the most portable way to generate */
15500 /* and read messages to a network or serial device. Each member of a */
15501 /* packet structure must be handled separately. */
15503 /* Non-optimized but portable macros */
15504 #define be16atoh(x) ((uint16_t)(((x)[0]<<8)|(x)[1]))
15505 #define be32atoh(x) ((uint32_t)(((x)[0]<<24)|((x)[1]<<16)|((x)[2]<<8)|(x)[3]))
15506 #define be64atoh_x(x,off,shift) (((uint64_t)((x)[off]))<<shift)
15507 #define be64atoh(x) ((uint64_t)(be64atoh_x(x,0,56)|be64atoh_x(x,1,48)|be64atoh_x(x,2,40)| \\
15508 be64atoh_x(x,3,32)|be64atoh_x(x,4,24)|be64atoh_x(x,5,16)|be64atoh_x(x,6,8)|((x)[7])))
15509 #define le16atoh(x) ((uint16_t)(((x)[1]<<8)|(x)[0]))
15510 #define le32atoh(x) ((uint32_t)(((x)[3]<<24)|((x)[2]<<16)|((x)[1]<<8)|(x)[0]))
15511 #define le64atoh_x(x,off,shift) (((uint64_t)(x)[off])<<shift)
15512 #define le64atoh(x) ((uint64_t)(le64atoh_x(x,7,56)|le64atoh_x(x,6,48)|le64atoh_x(x,5,40)| \\
15513 le64atoh_x(x,4,32)|le64atoh_x(x,3,24)|le64atoh_x(x,2,16)|le64atoh_x(x,1,8)|((x)[0])))
15515 #define htobe16a(a,x) (a)[0]=(uint8_t)((x)>>8), (a)[1]=(uint8_t)(x)
15516 #define htobe32a(a,x) (a)[0]=(uint8_t)((x)>>24), (a)[1]=(uint8_t)((x)>>16), \\
15517 (a)[2]=(uint8_t)((x)>>8), (a)[3]=(uint8_t)(x)
15518 #define htobe64a(a,x) (a)[0]=(uint8_t)((x)>>56), (a)[1]=(uint8_t)((x)>>48), \\
15519 (a)[2]=(uint8_t)((x)>>40), (a)[3]=(uint8_t)((x)>>32), \\
15520 (a)[4]=(uint8_t)((x)>>24), (a)[5]=(uint8_t)((x)>>16), \\
15521 (a)[6]=(uint8_t)((x)>>8), (a)[7]=(uint8_t)(x)
15522 #define htole16a(a,x) (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
15523 #define htole32a(a,x) (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
15524 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
15525 #define htole64a(a,x) (a)[7]=(uint8_t)((x)>>56), (a)[6]=(uint8_t)((x)>>48), \\
15526 (a)[5]=(uint8_t)((x)>>40), (a)[4]=(uint8_t)((x)>>32), \\
15527 (a)[3]=(uint8_t)((x)>>24), (a)[2]=(uint8_t)((x)>>16), \\
15528 (a)[1]=(uint8_t)((x)>>8), (a)[0]=(uint8_t)(x)
15535 cat >> "src/gphoto2-endian.h" << EOF
15536 #endif /*__BYTEORDER_H*/
15539 ac_config_files="$ac_config_files src/libmtp.h doc/Doxyfile Makefile doc/Makefile src/Makefile examples/Makefile util/Makefile libmtp.sh hotplug.sh libmtp.pc"
15541 cat >confcache <<\_ACEOF
15542 # This file is a shell script that caches the results of configure
15543 # tests run on this system so they can be shared between configure
15544 # scripts and configure runs, see configure's option --config-cache.
15545 # It is not useful on other systems. If it contains results you don't
15546 # want to keep, you may remove or edit it.
15548 # config.status only pays attention to the cache file if you give it
15549 # the --recheck option to rerun configure.
15551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15553 # following values.
15557 # The following way of writing the cache mishandles newlines in values,
15558 # but we know of no workaround that is simple, portable, and efficient.
15559 # So, we kill variables containing newlines.
15560 # Ultrix sh set writes to stderr and can't be redirected directly,
15561 # and sets the high bit in the cache file unless we assign to the vars.
15563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15564 eval ac_val=\$$ac_var
15568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15572 _ | IFS | as_nl) ;; #(
15573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15574 *) { eval $ac_var=; unset $ac_var;} ;;
15580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15581 *${as_nl}ac_space=\ *)
15582 # `set' does not quote correctly, so add quotes: double-quote
15583 # substitution turns \\\\ into \\, and sed turns \\ into \.
15586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15589 # `set' quotes correctly as required by POSIX, so do not add quotes.
15590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15604 if test -w "$cache_file"; then
15605 if test "x$cache_file" != "x/dev/null"; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15607 $as_echo "$as_me: updating cache $cache_file" >&6;}
15608 if test ! -f "$cache_file" || test -h "$cache_file"; then
15609 cat confcache >"$cache_file"
15611 case $cache_file in #(
15613 mv -f confcache "$cache_file"$$ &&
15614 mv -f "$cache_file"$$ "$cache_file" ;; #(
15616 mv -f confcache "$cache_file" ;;
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15628 # Let make expand exec_prefix.
15629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15631 DEFS=-DHAVE_CONFIG_H
15635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15636 # 1. Remove the extension, and $U if already installed.
15637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15638 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15640 # will be set to the directory where LIBOBJS objects are built.
15641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15642 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15644 LIBOBJS=$ac_libobjs
15646 LTLIBOBJS=$ac_ltlibobjs
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15650 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15651 if test -n "$am_sleep_pid"; then
15652 # Hide warnings about reused PIDs.
15653 wait $am_sleep_pid 2>/dev/null
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15656 $as_echo "done" >&6; }
15657 if test -n "$EXEEXT"; then
15659 am__EXEEXT_FALSE='#'
15661 am__EXEEXT_TRUE='#'
15665 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15666 as_fn_error $? "conditional \"AMDEP\" was never defined.
15667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15669 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15670 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15673 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
15674 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
15675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677 if test -z "${USE_LINUX_TRUE}" && test -z "${USE_LINUX_FALSE}"; then
15678 as_fn_error $? "conditional \"USE_LINUX\" was never defined.
15679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15681 if test -z "${USE_LINUX_TRUE}" && test -z "${USE_LINUX_FALSE}"; then
15682 as_fn_error $? "conditional \"USE_LINUX\" was never defined.
15683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15685 if test -z "${COMPILE_MINGW32_TRUE}" && test -z "${COMPILE_MINGW32_FALSE}"; then
15686 as_fn_error $? "conditional \"COMPILE_MINGW32\" was never defined.
15687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15689 if test -z "${MS_LIB_EXE_TRUE}" && test -z "${MS_LIB_EXE_FALSE}"; then
15690 as_fn_error $? "conditional \"MS_LIB_EXE\" was never defined.
15691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15693 if test -z "${MTPZ_COMPILE_TRUE}" && test -z "${MTPZ_COMPILE_FALSE}"; then
15694 as_fn_error $? "conditional \"MTPZ_COMPILE\" was never defined.
15695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15697 if test -z "${LIBUSB1_COMPILE_TRUE}" && test -z "${LIBUSB1_COMPILE_FALSE}"; then
15698 as_fn_error $? "conditional \"LIBUSB1_COMPILE\" was never defined.
15699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15701 if test -z "${LIBUSB0_COMPILE_TRUE}" && test -z "${LIBUSB0_COMPILE_FALSE}"; then
15702 as_fn_error $? "conditional \"LIBUSB0_COMPILE\" was never defined.
15703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15705 if test -z "${LIBOPENUSB_COMPILE_TRUE}" && test -z "${LIBOPENUSB_COMPILE_FALSE}"; then
15706 as_fn_error $? "conditional \"LIBOPENUSB_COMPILE\" was never defined.
15707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15711 : "${CONFIG_STATUS=./config.status}"
15713 ac_clean_files_save=$ac_clean_files
15714 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15716 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15718 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15720 # Generated by $as_me.
15721 # Run this file to recreate the current configuration.
15722 # Compiler output produced by configure, useful for debugging
15723 # configure, is in config.log if it exists.
15726 ac_cs_recheck=false
15729 SHELL=\${CONFIG_SHELL-$SHELL}
15732 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15733 ## -------------------- ##
15734 ## M4sh Initialization. ##
15735 ## -------------------- ##
15737 # Be more Bourne compatible
15738 DUALCASE=1; export DUALCASE # for MKS sh
15739 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15742 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15743 # is contrary to our usage. Disable this feature.
15744 alias -g '${1+"$@"}'='"$@"'
15745 setopt NO_GLOB_SUBST
15747 case `(set -o) 2>/dev/null` in #(
15759 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15760 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15761 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15763 # Prefer a ksh shell builtin over an external printf program on Solaris,
15764 # but without wasting forks for bash or zsh.
15765 if test -z "$BASH_VERSION$ZSH_VERSION" \
15766 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15767 as_echo='print -r --'
15768 as_echo_n='print -rn --'
15769 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15770 as_echo='printf %s\n'
15771 as_echo_n='printf %s'
15773 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15774 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15775 as_echo_n='/usr/ucb/echo -n'
15777 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15778 as_echo_n_body='eval
15782 expr "X$arg" : "X\\(.*\\)$as_nl";
15783 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15785 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15787 export as_echo_n_body
15788 as_echo_n='sh -c $as_echo_n_body as_echo'
15790 export as_echo_body
15791 as_echo='sh -c $as_echo_body as_echo'
15794 # The user is always right.
15795 if test "${PATH_SEPARATOR+set}" != set; then
15797 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15798 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15805 # We need space, tab and new line, in precisely that order. Quoting is
15806 # there to prevent editors from complaining about space-tab.
15807 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15808 # splitting by setting IFS to empty value.)
15811 # Find who we are. Look in the path if we contain no directory separator.
15814 *[\\/]* ) as_myself=$0 ;;
15815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15816 for as_dir in $PATH
15819 test -z "$as_dir" && as_dir=.
15820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15826 # We did not find ourselves, most probably we were run as `sh COMMAND'
15827 # in which case we are not to be found in the path.
15828 if test "x$as_myself" = x; then
15831 if test ! -f "$as_myself"; then
15832 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15836 # Unset variables that we do not need and which cause bugs (e.g. in
15837 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15838 # suppresses any "Segmentation fault" message there. '((' could
15839 # trigger a bug in pdksh 5.2.14.
15840 for as_var in BASH_ENV ENV MAIL MAILPATH
15841 do eval test x\${$as_var+set} = xset \
15842 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15858 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15859 # ----------------------------------------
15860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15862 # script with STATUS, using 1 if that was 0.
15865 as_status=$1; test $as_status -eq 0 && as_status=1
15867 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15868 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15870 $as_echo "$as_me: error: $2" >&2
15871 as_fn_exit $as_status
15875 # as_fn_set_status STATUS
15876 # -----------------------
15877 # Set $? to STATUS, without forking.
15878 as_fn_set_status ()
15881 } # as_fn_set_status
15883 # as_fn_exit STATUS
15884 # -----------------
15885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15889 as_fn_set_status $1
15895 # Portably unset VAR.
15898 { eval $1=; unset $1;}
15900 as_unset=as_fn_unset
15901 # as_fn_append VAR VALUE
15902 # ----------------------
15903 # Append the text in VALUE to the end of the definition contained in VAR. Take
15904 # advantage of any shell optimizations that allow amortized linear growth over
15905 # repeated appends, instead of the typical quadratic growth present in naive
15907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15908 eval 'as_fn_append ()
15919 # as_fn_arith ARG...
15920 # ------------------
15921 # Perform arithmetic evaluation on the ARGs, and store the result in the
15922 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15923 # must be portable across $(()) and expr.
15924 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15925 eval 'as_fn_arith ()
15932 as_val=`expr "$@" || test $? -eq 1`
15937 if expr a : '\(a\)' >/dev/null 2>&1 &&
15938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15945 as_basename=basename
15950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15956 as_me=`$as_basename -- "$0" ||
15957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15958 X"$0" : 'X\(//\)$' \| \
15959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15961 sed '/^.*\/\([^/][^/]*\)\/*$/{
15975 # Avoid depending upon Character Ranges.
15976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15979 as_cr_digits='0123456789'
15980 as_cr_alnum=$as_cr_Letters$as_cr_digits
15982 ECHO_C= ECHO_N= ECHO_T=
15983 case `echo -n x` in #(((((
15985 case `echo 'xy\c'` in
15986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15988 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15995 rm -f conf$$ conf$$.exe conf$$.file
15996 if test -d conf$$.dir; then
15997 rm -f conf$$.dir/conf$$.file
16000 mkdir conf$$.dir 2>/dev/null
16002 if (echo >conf$$.file) 2>/dev/null; then
16003 if ln -s conf$$.file conf$$ 2>/dev/null; then
16005 # ... but there are two gotchas:
16006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16008 # In both cases, we have to default to `cp -pR'.
16009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16011 elif ln conf$$.file conf$$ 2>/dev/null; then
16019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16020 rmdir conf$$.dir 2>/dev/null
16025 # Create "$as_dir" as a directory, including parents if necessary.
16030 -*) as_dir=./$as_dir;;
16032 test -d "$as_dir" || eval $as_mkdir_p || {
16036 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16037 *) as_qdir=$as_dir;;
16039 as_dirs="'$as_qdir' $as_dirs"
16040 as_dir=`$as_dirname -- "$as_dir" ||
16041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16042 X"$as_dir" : 'X\(//\)[^/]' \| \
16043 X"$as_dir" : 'X\(//\)$' \| \
16044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16045 $as_echo X"$as_dir" |
16046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16050 /^X\(\/\/\)[^/].*/{
16063 test -d "$as_dir" && break
16065 test -z "$as_dirs" || eval "mkdir $as_dirs"
16066 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16070 if mkdir -p . 2>/dev/null; then
16071 as_mkdir_p='mkdir -p "$as_dir"'
16073 test -d ./-p && rmdir ./-p
16078 # as_fn_executable_p FILE
16079 # -----------------------
16080 # Test if FILE is an executable regular file.
16081 as_fn_executable_p ()
16083 test -f "$1" && test -x "$1"
16084 } # as_fn_executable_p
16085 as_test_x='test -x'
16086 as_executable_p=as_fn_executable_p
16088 # Sed expression to map a string onto a valid CPP name.
16089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16091 # Sed expression to map a string onto a valid variable name.
16092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16096 ## ----------------------------------- ##
16097 ## Main body of $CONFIG_STATUS script. ##
16098 ## ----------------------------------- ##
16100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103 # Save the log message, to keep $0 and so on meaningful, and to
16104 # report actual input values of CONFIG_FILES etc. instead of their
16105 # values after options handling.
16107 This file was extended by libmtp $as_me 1.1.9, which was
16108 generated by GNU Autoconf 2.69. Invocation command line was
16110 CONFIG_FILES = $CONFIG_FILES
16111 CONFIG_HEADERS = $CONFIG_HEADERS
16112 CONFIG_LINKS = $CONFIG_LINKS
16113 CONFIG_COMMANDS = $CONFIG_COMMANDS
16116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16121 case $ac_config_files in *"
16122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16125 case $ac_config_headers in *"
16126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131 # Files that config.status was made for.
16132 config_files="$ac_config_files"
16133 config_headers="$ac_config_headers"
16134 config_commands="$ac_config_commands"
16138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16140 \`$as_me' instantiates files and other configuration actions
16141 from templates according to the current configuration. Unless the files
16142 and actions are specified as TAGs, all are instantiated by default.
16144 Usage: $0 [OPTION]... [TAG]...
16146 -h, --help print this help, then exit
16147 -V, --version print version number and configuration settings, then exit
16148 --config print configuration, then exit
16149 -q, --quiet, --silent
16150 do not print progress messages
16151 -d, --debug don't remove temporary files
16152 --recheck update $as_me by reconfiguring in the same conditions
16153 --file=FILE[:TEMPLATE]
16154 instantiate the configuration file FILE
16155 --header=FILE[:TEMPLATE]
16156 instantiate the configuration header FILE
16158 Configuration files:
16161 Configuration headers:
16164 Configuration commands:
16167 Report bugs to <libmtp-discuss@lists.sourceforge.net>."
16170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16171 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16173 libmtp config.status 1.1.9
16174 configured by $0, generated by GNU Autoconf 2.69,
16175 with options \\"\$ac_cs_config\\"
16177 Copyright (C) 2012 Free Software Foundation, Inc.
16178 This config.status script is free software; the Free Software Foundation
16179 gives unlimited permission to copy, distribute and modify it."
16186 test -n "\$AWK" || AWK=awk
16189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16190 # The default lists apply if the user does not specify any file.
16196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16197 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16201 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16213 # Handling of the options.
16214 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16216 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16217 $as_echo "$ac_cs_version"; exit ;;
16218 --config | --confi | --conf | --con | --co | --c )
16219 $as_echo "$ac_cs_config"; exit ;;
16220 --debug | --debu | --deb | --de | --d | -d )
16222 --file | --fil | --fi | --f )
16225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16226 '') as_fn_error $? "missing file argument" ;;
16228 as_fn_append CONFIG_FILES " '$ac_optarg'"
16229 ac_need_defaults=false;;
16230 --header | --heade | --head | --hea )
16233 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16235 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16236 ac_need_defaults=false;;
16238 # Conflict between --help and --header
16239 as_fn_error $? "ambiguous option: \`$1'
16240 Try \`$0 --help' for more information.";;
16241 --help | --hel | -h )
16242 $as_echo "$ac_cs_usage"; exit ;;
16243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16244 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16247 # This is an error.
16248 -*) as_fn_error $? "unrecognized option: \`$1'
16249 Try \`$0 --help' for more information." ;;
16251 *) as_fn_append ac_config_targets " $1"
16252 ac_need_defaults=false ;;
16258 ac_configure_extra_args=
16260 if $ac_cs_silent; then
16262 ac_configure_extra_args="$ac_configure_extra_args --silent"
16266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16267 if \$ac_cs_recheck; then
16268 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16270 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16271 CONFIG_SHELL='$SHELL'
16272 export CONFIG_SHELL
16277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16282 ## Running $as_me. ##
16288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16292 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16295 # The HP-UX ksh and POSIX shell print the target directory to stdout
16296 # if CDPATH is set.
16297 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16299 sed_quote_subst='$sed_quote_subst'
16300 double_quote_subst='$double_quote_subst'
16301 delay_variable_subst='$delay_variable_subst'
16302 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16303 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16304 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16305 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16306 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16307 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16308 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16309 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16310 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16311 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16312 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16313 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16314 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16315 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16316 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16317 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16318 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16319 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16320 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16321 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16322 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16323 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16324 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16325 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16326 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16327 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16328 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16329 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16330 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16331 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16332 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16333 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16334 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16335 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16336 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16337 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16338 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16339 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16340 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16341 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16342 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16343 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16344 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16345 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16346 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16347 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16348 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16349 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16350 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16351 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16352 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16353 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16354 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16355 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16356 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16357 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16358 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16359 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"`'
16360 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16361 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16362 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16363 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16364 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16365 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16366 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16367 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16368 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16369 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16370 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16371 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16372 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16373 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16374 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16375 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16376 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16377 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16378 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16379 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16380 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16381 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16382 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16383 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16384 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16385 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16386 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16387 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16388 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16389 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16390 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16391 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16392 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16393 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16394 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16395 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16396 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16397 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16398 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16399 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16400 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16401 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16402 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16403 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16404 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16405 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16406 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16407 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16408 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16409 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16410 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16411 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16412 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16413 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16414 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16415 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16416 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16417 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16418 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16419 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16420 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16421 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16422 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16423 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16424 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16425 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16426 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16427 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16428 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16429 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16430 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16431 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16432 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16435 LTCFLAGS='$LTCFLAGS'
16436 compiler='$compiler_DEFAULT'
16438 # A function that is used when there is no print builtin or printf.
16439 func_fallback_echo ()
16441 eval 'cat <<_LTECHO_EOF
16446 # Quote evaled strings.
16463 deplibs_check_method \
16467 sharedlib_from_linklib_cmd \
16470 archiver_list_spec \
16476 lt_cv_sys_global_symbol_pipe \
16477 lt_cv_sys_global_symbol_to_cdecl \
16478 lt_cv_sys_global_symbol_to_c_name_address \
16479 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16480 nm_file_list_spec \
16481 lt_prog_compiler_no_builtin_flag \
16482 lt_prog_compiler_pic \
16483 lt_prog_compiler_wl \
16484 lt_prog_compiler_static \
16485 lt_cv_prog_compiler_c_o \
16494 export_dynamic_flag_spec \
16495 whole_archive_flag_spec \
16496 compiler_needs_object \
16498 allow_undefined_flag \
16499 no_undefined_flag \
16500 hardcode_libdir_flag_spec \
16501 hardcode_libdir_separator \
16505 variables_saved_for_relink \
16507 library_names_spec \
16509 install_override_mode \
16513 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16514 *[\\\\\\\`\\"\\\$]*)
16515 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16518 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16523 # Double-quote double-evaled strings.
16524 for var in reload_cmds \
16525 old_postinstall_cmds \
16526 old_postuninstall_cmds \
16528 extract_expsyms_cmds \
16529 old_archive_from_new_cmds \
16530 old_archive_from_expsyms_cmds \
16532 archive_expsym_cmds \
16534 module_expsym_cmds \
16535 export_symbols_cmds \
16539 postuninstall_cmds \
16541 sys_lib_search_path_spec \
16542 sys_lib_dlsearch_path_spec; do
16543 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16544 *[\\\\\\\`\\"\\\$]*)
16545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16553 ac_aux_dir='$ac_aux_dir'
16554 xsi_shell='$xsi_shell'
16555 lt_shell_append='$lt_shell_append'
16557 # See if we are running on zsh, and set the options which allow our
16558 # commands through without removal of \ escapes INIT.
16559 if test -n "\${ZSH_VERSION+set}" ; then
16560 setopt NO_GLOB_SUBST
16566 TIMESTAMP='$TIMESTAMP'
16575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16577 # Handling of arguments.
16578 for ac_config_target in $ac_config_targets
16580 case $ac_config_target in
16581 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16583 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16584 "src/libmtp.h") CONFIG_FILES="$CONFIG_FILES src/libmtp.h" ;;
16585 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
16586 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16587 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16588 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16589 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16590 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
16591 "libmtp.sh") CONFIG_FILES="$CONFIG_FILES libmtp.sh" ;;
16592 "hotplug.sh") CONFIG_FILES="$CONFIG_FILES hotplug.sh" ;;
16593 "libmtp.pc") CONFIG_FILES="$CONFIG_FILES libmtp.pc" ;;
16595 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16600 # If the user did not use the arguments to specify the items to instantiate,
16601 # then the envvar interface is used. Set only those that are not.
16602 # We use the long form for the default assignment because of an extremely
16603 # bizarre bug on SunOS 4.1.3.
16604 if $ac_need_defaults; then
16605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16610 # Have a temporary directory for convenience. Make it in the build tree
16611 # simply because there is no reason against having it here, and in addition,
16612 # creating and moving files from /tmp can sometimes cause problems.
16613 # Hook for its removal unless debugging.
16614 # Note that there is a small window in which the directory will not be cleaned:
16615 # after its creation but before its name has been assigned to `$tmp'.
16619 trap 'exit_status=$?
16620 : "${ac_tmp:=$tmp}"
16621 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16623 trap 'as_fn_exit 1' 1 2 13 15
16625 # Create a (secure) tmp directory for tmp files.
16628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16632 tmp=./conf$$-$RANDOM
16633 (umask 077 && mkdir "$tmp")
16634 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16637 # Set up the scripts for CONFIG_FILES section.
16638 # No need to generate them if there are no CONFIG_FILES.
16639 # This happens for instance with `./config.status config.h'.
16640 if test -n "$CONFIG_FILES"; then
16643 ac_cr=`echo X | tr X '\015'`
16644 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16645 # But we know of no other shell where ac_cr would be empty at this
16646 # point, so we can use a bashism as a fallback.
16647 if test "x$ac_cr" = x; then
16648 eval ac_cr=\$\'\\r\'
16650 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16651 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16654 ac_cs_awk_cr=$ac_cr
16657 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16662 echo "cat >conf$$subs.awk <<_ACEOF" &&
16663 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16665 } >conf$$subs.sh ||
16666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16667 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16669 for ac_last_try in false false false false false :; do
16670 . ./conf$$subs.sh ||
16671 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16674 if test $ac_delim_n = $ac_delim_num; then
16676 elif $ac_last_try; then
16677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16682 rm -f conf$$subs.sh
16684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16689 s/^/S["/; s/!.*/"]=/
16699 s/\(.\{148\}\)..*/\1/
16701 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16713 s/\(.\{148\}\)..*/\1/
16715 s/["\\]/\\&/g; s/^/"/; s/$/"/
16719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16724 ' <conf$$subs.awk | sed '
16729 ' >>$CONFIG_STATUS || ac_write_fail=1
16730 rm -f conf$$subs.awk
16731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16734 for (key in S) S_is_set[key] = 1
16740 nfields = split(line, field, "@")
16742 len = length(field[1])
16743 for (i = 2; i < nfields; i++) {
16745 keylen = length(key)
16746 if (S_is_set[key]) {
16748 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16749 len += length(value) + length(field[++i])
16760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16761 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16762 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16765 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16766 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16769 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16770 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16771 # trailing colons and then remove the whole line if VPATH becomes empty
16772 # (actually we leave an empty line to preserve line numbers).
16773 if test "x$srcdir" = x.; then
16774 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16793 fi # test -n "$CONFIG_FILES"
16795 # Set up the scripts for CONFIG_HEADERS section.
16796 # No need to generate them if there are no CONFIG_HEADERS.
16797 # This happens for instance with `./config.status Makefile'.
16798 if test -n "$CONFIG_HEADERS"; then
16799 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16803 # Transform confdefs.h into an awk script `defines.awk', embedded as
16804 # here-document in config.status, that substitutes the proper values into
16805 # config.h.in to produce config.h.
16807 # Create a delimiter string that does not exist in confdefs.h, to ease
16808 # handling of long lines.
16810 for ac_last_try in false false :; do
16811 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16812 if test -z "$ac_tt"; then
16814 elif $ac_last_try; then
16815 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16821 # For the awk script, D is an array of macro values keyed by name,
16822 # likewise P contains macro parameters if any. Preserve backslash
16823 # newline sequences.
16825 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16827 s/.\{148\}/&'"$ac_delim"'/g
16830 s/^[ ]*#[ ]*define[ ][ ]*/ /
16837 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16839 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16843 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16844 D["\1"]=" \3\\\\\\n"\\/p
16846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16851 s/.\{148\}/&'"$ac_delim"'/g
16856 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16859 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16861 ' <confdefs.h | sed '
16862 s/'"$ac_delim"'/"\\\
16863 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16866 for (key in D) D_is_set[key] = 1
16869 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16871 split(line, arg, " ")
16872 if (arg[1] == "#") {
16876 defundef = substr(arg[1], 2)
16879 split(mac1, mac2, "(") #)
16881 prefix = substr(line, 1, index(line, defundef) - 1)
16882 if (D_is_set[macro]) {
16883 # Preserve the white space surrounding the "#".
16884 print prefix "define", macro P[macro] D[macro]
16887 # Replace #undef with comments. This is necessary, for example,
16888 # in the case of _POSIX_SOURCE, which is predefined and required
16889 # on some systems where configure will not decide to define it.
16890 if (defundef == "undef") {
16891 print "/*", prefix defundef, macro, "*/"
16899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16900 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16901 fi # test -n "$CONFIG_HEADERS"
16904 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16909 :[FHLC]) ac_mode=$ac_tag; continue;;
16911 case $ac_mode$ac_tag in
16913 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16914 :[FH]-) ac_tag=-:-;;
16915 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16932 -) ac_f="$ac_tmp/stdin";;
16933 *) # Look for the file first in the build tree, then in the source tree
16934 # (if the path is not absolute). The absolute path cannot be DOS-style,
16935 # because $ac_f cannot contain `:'.
16939 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16941 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16943 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16944 as_fn_append ac_file_inputs " '$ac_f'"
16947 # Let's still pretend it is `configure' which instantiates (i.e., don't
16948 # use $as_me), people would be surprised to read:
16949 # /* config.h. Generated by config.status. */
16950 configure_input='Generated from '`
16951 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16953 if test x"$ac_file" != x-; then
16954 configure_input="$ac_file. $configure_input"
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16956 $as_echo "$as_me: creating $ac_file" >&6;}
16958 # Neutralize special characters interpreted by sed in replacement strings.
16959 case $configure_input in #(
16960 *\&* | *\|* | *\\* )
16961 ac_sed_conf_input=`$as_echo "$configure_input" |
16962 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16963 *) ac_sed_conf_input=$configure_input;;
16967 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16973 ac_dir=`$as_dirname -- "$ac_file" ||
16974 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16975 X"$ac_file" : 'X\(//\)[^/]' \| \
16976 X"$ac_file" : 'X\(//\)$' \| \
16977 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16978 $as_echo X"$ac_file" |
16979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16983 /^X\(\/\/\)[^/].*/{
16996 as_dir="$ac_dir"; as_fn_mkdir_p
17000 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17002 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17003 # A ".." for each directory in $ac_dir_suffix.
17004 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17005 case $ac_top_builddir_sub in
17006 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17007 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17010 ac_abs_top_builddir=$ac_pwd
17011 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17012 # for backward compatibility:
17013 ac_top_builddir=$ac_top_build_prefix
17016 .) # We are building in place.
17018 ac_top_srcdir=$ac_top_builddir_sub
17019 ac_abs_top_srcdir=$ac_pwd ;;
17020 [\\/]* | ?:[\\/]* ) # Absolute name.
17021 ac_srcdir=$srcdir$ac_dir_suffix;
17022 ac_top_srcdir=$srcdir
17023 ac_abs_top_srcdir=$srcdir ;;
17024 *) # Relative name.
17025 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17026 ac_top_srcdir=$ac_top_build_prefix$srcdir
17027 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17029 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17039 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17040 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17042 ac_MKDIR_P=$MKDIR_P
17044 [\\/$]* | ?:[\\/]* ) ;;
17045 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17050 # If the template does not know about datarootdir, expand it.
17051 # FIXME: This hack should be removed a few years after 2.60.
17052 ac_datarootdir_hack=; ac_datarootdir_seen=
17063 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17064 *datarootdir*) ac_datarootdir_seen=yes;;
17065 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17067 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17070 ac_datarootdir_hack='
17071 s&@datadir@&$datadir&g
17072 s&@docdir@&$docdir&g
17073 s&@infodir@&$infodir&g
17074 s&@localedir@&$localedir&g
17075 s&@mandir@&$mandir&g
17076 s&\\\${datarootdir}&$datarootdir&g' ;;
17080 # Neutralize VPATH when `$srcdir' = `.'.
17081 # Shell code in configure.ac might set extrasub.
17082 # FIXME: do we really want to maintain this feature?
17083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17084 ac_sed_extra="$ac_vpsub
17087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17090 s|@configure_input@|$ac_sed_conf_input|;t t
17091 s&@top_builddir@&$ac_top_builddir_sub&;t t
17092 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17093 s&@srcdir@&$ac_srcdir&;t t
17094 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17095 s&@top_srcdir@&$ac_top_srcdir&;t t
17096 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17097 s&@builddir@&$ac_builddir&;t t
17098 s&@abs_builddir@&$ac_abs_builddir&;t t
17099 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17100 s&@INSTALL@&$ac_INSTALL&;t t
17101 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17102 $ac_datarootdir_hack
17104 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17105 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17107 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17108 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17109 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17110 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17112 which seems to be undefined. Please make sure it is defined" >&5
17113 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17114 which seems to be undefined. Please make sure it is defined" >&2;}
17116 rm -f "$ac_tmp/stdin"
17118 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17119 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17127 if test x"$ac_file" != x-; then
17129 $as_echo "/* $configure_input */" \
17130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17131 } >"$ac_tmp/config.h" \
17132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17133 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17135 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17138 mv "$ac_tmp/config.h" "$ac_file" \
17139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17142 $as_echo "/* $configure_input */" \
17143 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17144 || as_fn_error $? "could not create -" "$LINENO" 5
17146 # Compute "$ac_file"'s index in $config_headers.
17149 for _am_header in $config_headers :; do
17150 case $_am_header in
17151 $_am_arg | $_am_arg:* )
17154 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17157 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17158 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17159 X"$_am_arg" : 'X\(//\)[^/]' \| \
17160 X"$_am_arg" : 'X\(//\)$' \| \
17161 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17162 $as_echo X"$_am_arg" |
17163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17167 /^X\(\/\/\)[^/].*/{
17179 s/.*/./; q'`/stamp-h$_am_stamp_count
17182 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17183 $as_echo "$as_me: executing $ac_file commands" >&6;}
17188 case $ac_file$ac_mode in
17189 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17190 # Older Autoconf quotes --file arguments for eval, but not when files
17191 # are listed without --file. Let's play safe and only enable the eval
17192 # if we detect the quoting.
17193 case $CONFIG_FILES in
17194 *\'*) eval set x "$CONFIG_FILES" ;;
17195 *) set x $CONFIG_FILES ;;
17200 # Strip MF so we end up with the name of the file.
17201 mf=`echo "$mf" | sed -e 's/:.*$//'`
17202 # Check whether this is an Automake generated Makefile or not.
17203 # We used to match only the files named 'Makefile.in', but
17204 # some people rename them; so instead we look at the file content.
17205 # Grep'ing the first line is not enough: some people post-process
17206 # each Makefile.in and add a new line on top of each file to say so.
17207 # Grep'ing the whole file is not good either: AIX grep has a line
17208 # limit of 2048, but all sed's we know have understand at least 4000.
17209 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17210 dirpart=`$as_dirname -- "$mf" ||
17211 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17212 X"$mf" : 'X\(//\)[^/]' \| \
17213 X"$mf" : 'X\(//\)$' \| \
17214 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17220 /^X\(\/\/\)[^/].*/{
17236 # Extract the definition of DEPDIR, am__include, and am__quote
17237 # from the Makefile without running 'make'.
17238 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17239 test -z "$DEPDIR" && continue
17240 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17241 test -z "$am__include" && continue
17242 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17243 # Find all dependency output files, they are included files with
17244 # $(DEPDIR) in their names. We invoke sed twice because it is the
17245 # simplest approach to changing $(DEPDIR) to its actual value in the
17247 for file in `sed -n "
17248 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17249 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17250 # Make sure the directory exists.
17251 test -f "$dirpart/$file" && continue
17252 fdir=`$as_dirname -- "$file" ||
17253 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17254 X"$file" : 'X\(//\)[^/]' \| \
17255 X"$file" : 'X\(//\)$' \| \
17256 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17257 $as_echo X"$file" |
17258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17262 /^X\(\/\/\)[^/].*/{
17275 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17276 # echo "creating $dirpart/$file"
17277 echo '# dummy' > "$dirpart/$file"
17284 # See if we are running on zsh, and set the options which allow our
17285 # commands through without removal of \ escapes.
17286 if test -n "${ZSH_VERSION+set}" ; then
17287 setopt NO_GLOB_SUBST
17290 cfgfile="${ofile}T"
17291 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17294 cat <<_LT_EOF >> "$cfgfile"
17297 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17298 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17300 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17302 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17303 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17305 # Written by Gordon Matzigkeit, 1996
17307 # This file is part of GNU Libtool.
17309 # GNU Libtool is free software; you can redistribute it and/or
17310 # modify it under the terms of the GNU General Public License as
17311 # published by the Free Software Foundation; either version 2 of
17312 # the License, or (at your option) any later version.
17314 # As a special exception to the GNU General Public License,
17315 # if you distribute this file as part of a program or library that
17316 # is built using GNU Libtool, you may include this file under the
17317 # same distribution terms that you use for the rest of that program.
17319 # GNU Libtool is distributed in the hope that it will be useful,
17320 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17321 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17322 # GNU General Public License for more details.
17324 # You should have received a copy of the GNU General Public License
17325 # along with GNU Libtool; see the file COPYING. If not, a copy
17326 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17327 # obtained by writing to the Free Software Foundation, Inc.,
17328 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17331 # The names of the tagged configurations supported by this script.
17334 # ### BEGIN LIBTOOL CONFIG
17336 # Assembler program.
17339 # DLL creation program.
17340 DLLTOOL=$lt_DLLTOOL
17342 # Object dumper program.
17343 OBJDUMP=$lt_OBJDUMP
17345 # Which release of libtool.m4 was used?
17346 macro_version=$macro_version
17347 macro_revision=$macro_revision
17349 # Whether or not to build shared libraries.
17350 build_libtool_libs=$enable_shared
17352 # Whether or not to build static libraries.
17353 build_old_libs=$enable_static
17355 # What type of objects to build.
17358 # Whether or not to optimize for fast installation.
17359 fast_install=$enable_fast_install
17361 # Shell to use when invoking shell scripts.
17364 # An echo program that protects backslashes.
17367 # The PATH separator for the build system.
17368 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17371 host_alias=$host_alias
17375 # The build system.
17376 build_alias=$build_alias
17380 # A sed program that does not truncate output.
17383 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17384 Xsed="\$SED -e 1s/^X//"
17386 # A grep program that handles long lines.
17392 # A literal string matcher.
17395 # A BSD- or MS-compatible name lister.
17398 # Whether we need soft or hard links.
17401 # What is the maximum length of a command?
17402 max_cmd_len=$max_cmd_len
17404 # Object file suffix (normally "o").
17407 # Executable file suffix (normally "").
17410 # whether the shell understands "unset".
17413 # turn spaces into newlines.
17416 # turn newlines into spaces.
17419 # convert \$build file names to \$host format.
17420 to_host_file_cmd=$lt_cv_to_host_file_cmd
17422 # convert \$build files to toolchain format.
17423 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17425 # Method to check whether dependent libraries are shared objects.
17426 deplibs_check_method=$lt_deplibs_check_method
17428 # Command to use when deplibs_check_method = "file_magic".
17429 file_magic_cmd=$lt_file_magic_cmd
17431 # How to find potential files when deplibs_check_method = "file_magic".
17432 file_magic_glob=$lt_file_magic_glob
17434 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17435 want_nocaseglob=$lt_want_nocaseglob
17437 # Command to associate shared and link libraries.
17438 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17443 # Flags to create an archive.
17444 AR_FLAGS=$lt_AR_FLAGS
17446 # How to feed a file listing to the archiver.
17447 archiver_list_spec=$lt_archiver_list_spec
17449 # A symbol stripping program.
17452 # Commands used to install an old-style archive.
17454 old_postinstall_cmds=$lt_old_postinstall_cmds
17455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17457 # Whether to use a lock for old archive extraction.
17458 lock_old_archive_extraction=$lock_old_archive_extraction
17463 # LTCC compiler flags.
17464 LTCFLAGS=$lt_CFLAGS
17466 # Take the output of nm and produce a listing of raw symbols and C names.
17467 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17469 # Transform the output of nm in a proper C declaration.
17470 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17472 # Transform the output of nm in a C name address pair.
17473 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17475 # Transform the output of nm in a C name address pair when lib prefix is needed.
17476 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17478 # Specify filename containing input files for \$NM.
17479 nm_file_list_spec=$lt_nm_file_list_spec
17481 # The root where to search for dependent libraries,and in which our libraries should be installed.
17482 lt_sysroot=$lt_sysroot
17484 # The name of the directory that contains temporary libtool files.
17487 # Used to examine libraries when file_magic_cmd begins with "file".
17488 MAGIC_CMD=$MAGIC_CMD
17490 # Must we lock files when doing compilation?
17491 need_locks=$lt_need_locks
17494 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17496 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17497 DSYMUTIL=$lt_DSYMUTIL
17499 # Tool to change global to local symbols on Mac OS X.
17502 # Tool to manipulate fat objects and archives on Mac OS X.
17505 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17508 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17509 OTOOL64=$lt_OTOOL64
17511 # Old archive suffix (normally "a").
17514 # Shared library suffix (normally ".so").
17515 shrext_cmds=$lt_shrext_cmds
17517 # The commands to extract the exported symbol list from a shared archive.
17518 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17520 # Variables whose values should be saved in libtool wrapper scripts and
17521 # restored at link time.
17522 variables_saved_for_relink=$lt_variables_saved_for_relink
17524 # Do we need the "lib" prefix for modules?
17525 need_lib_prefix=$need_lib_prefix
17527 # Do we need a version for libraries?
17528 need_version=$need_version
17530 # Library versioning type.
17531 version_type=$version_type
17533 # Shared library runtime path variable.
17534 runpath_var=$runpath_var
17536 # Shared library path variable.
17537 shlibpath_var=$shlibpath_var
17539 # Is shlibpath searched before the hard-coded library search path?
17540 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17542 # Format of library name prefix.
17543 libname_spec=$lt_libname_spec
17545 # List of archive names. First name is the real one, the rest are links.
17546 # The last name is the one that the linker finds with -lNAME
17547 library_names_spec=$lt_library_names_spec
17549 # The coded name of the library, if different from the real name.
17550 soname_spec=$lt_soname_spec
17552 # Permission mode override for installation of shared libraries.
17553 install_override_mode=$lt_install_override_mode
17555 # Command to use after installation of a shared archive.
17556 postinstall_cmds=$lt_postinstall_cmds
17558 # Command to use after uninstallation of a shared archive.
17559 postuninstall_cmds=$lt_postuninstall_cmds
17561 # Commands used to finish a libtool library installation in a directory.
17562 finish_cmds=$lt_finish_cmds
17564 # As "finish_cmds", except a single script fragment to be evaled but
17566 finish_eval=$lt_finish_eval
17568 # Whether we should hardcode library paths into libraries.
17569 hardcode_into_libs=$hardcode_into_libs
17571 # Compile-time system search path for libraries.
17572 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17574 # Run-time system search path for libraries.
17575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17577 # Whether dlopen is supported.
17578 dlopen_support=$enable_dlopen
17580 # Whether dlopen of programs is supported.
17581 dlopen_self=$enable_dlopen_self
17583 # Whether dlopen of statically linked programs is supported.
17584 dlopen_self_static=$enable_dlopen_self_static
17586 # Commands to strip libraries.
17587 old_striplib=$lt_old_striplib
17588 striplib=$lt_striplib
17591 # The linker used to build libraries.
17594 # How to create reloadable object files.
17595 reload_flag=$lt_reload_flag
17596 reload_cmds=$lt_reload_cmds
17598 # Commands used to build an old-style archive.
17599 old_archive_cmds=$lt_old_archive_cmds
17601 # A language specific compiler.
17604 # Is the compiler the GNU compiler?
17607 # Compiler flag to turn off builtin functions.
17608 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17610 # Additional compiler flags for building library objects.
17611 pic_flag=$lt_lt_prog_compiler_pic
17613 # How to pass a linker flag through the compiler.
17614 wl=$lt_lt_prog_compiler_wl
17616 # Compiler flag to prevent dynamic linking.
17617 link_static_flag=$lt_lt_prog_compiler_static
17619 # Does compiler simultaneously support -c and -o options?
17620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17622 # Whether or not to add -lc for building shared libraries.
17623 build_libtool_need_lc=$archive_cmds_need_lc
17625 # Whether or not to disallow shared libs when runtime libs are static.
17626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17628 # Compiler flag to allow reflexive dlopens.
17629 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17631 # Compiler flag to generate shared objects directly from archives.
17632 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17634 # Whether the compiler copes with passing no objects directly.
17635 compiler_needs_object=$lt_compiler_needs_object
17637 # Create an old-style archive from a shared archive.
17638 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17640 # Create a temporary old-style archive to link instead of a shared archive.
17641 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17643 # Commands used to build a shared archive.
17644 archive_cmds=$lt_archive_cmds
17645 archive_expsym_cmds=$lt_archive_expsym_cmds
17647 # Commands used to build a loadable module if different from building
17648 # a shared archive.
17649 module_cmds=$lt_module_cmds
17650 module_expsym_cmds=$lt_module_expsym_cmds
17652 # Whether we are building with GNU ld or not.
17653 with_gnu_ld=$lt_with_gnu_ld
17655 # Flag that allows shared libraries with undefined symbols to be built.
17656 allow_undefined_flag=$lt_allow_undefined_flag
17658 # Flag that enforces no undefined symbols.
17659 no_undefined_flag=$lt_no_undefined_flag
17661 # Flag to hardcode \$libdir into a binary during linking.
17662 # This must work even if \$libdir does not exist
17663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17665 # Whether we need a single "-rpath" flag with a separated argument.
17666 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17668 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17669 # DIR into the resulting binary.
17670 hardcode_direct=$hardcode_direct
17672 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17673 # DIR into the resulting binary and the resulting library dependency is
17674 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17675 # library is relocated.
17676 hardcode_direct_absolute=$hardcode_direct_absolute
17678 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17679 # into the resulting binary.
17680 hardcode_minus_L=$hardcode_minus_L
17682 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17683 # into the resulting binary.
17684 hardcode_shlibpath_var=$hardcode_shlibpath_var
17686 # Set to "yes" if building a shared library automatically hardcodes DIR
17687 # into the library and all subsequent libraries and executables linked
17689 hardcode_automatic=$hardcode_automatic
17691 # Set to yes if linker adds runtime paths of dependent libraries
17692 # to runtime path list.
17693 inherit_rpath=$inherit_rpath
17695 # Whether libtool must link a program against all its dependency libraries.
17696 link_all_deplibs=$link_all_deplibs
17698 # Set to "yes" if exported symbols are required.
17699 always_export_symbols=$always_export_symbols
17701 # The commands to list exported symbols.
17702 export_symbols_cmds=$lt_export_symbols_cmds
17704 # Symbols that should not be listed in the preloaded symbols.
17705 exclude_expsyms=$lt_exclude_expsyms
17707 # Symbols that must always be exported.
17708 include_expsyms=$lt_include_expsyms
17710 # Commands necessary for linking programs (against libraries) with templates.
17711 prelink_cmds=$lt_prelink_cmds
17713 # Commands necessary for finishing linking programs.
17714 postlink_cmds=$lt_postlink_cmds
17716 # Specify filename containing input files.
17717 file_list_spec=$lt_file_list_spec
17719 # How to hardcode a shared library path into an executable.
17720 hardcode_action=$hardcode_action
17722 # ### END LIBTOOL CONFIG
17728 cat <<\_LT_EOF >> "$cfgfile"
17729 # AIX sometimes has problems with the GCC collect2 program. For some
17730 # reason, if we set the COLLECT_NAMES environment variable, the problems
17731 # vanish in a puff of smoke.
17732 if test "X${COLLECT_NAMES+set}" != Xset; then
17734 export COLLECT_NAMES
17741 ltmain="$ac_aux_dir/ltmain.sh"
17744 # We use sed instead of cat because bash on DJGPP gets confused if
17745 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17746 # text mode, it properly converts lines to CR/LF. This bash problem
17747 # is reportedly fixed, but why not run on old versions too?
17748 sed '$q' "$ltmain" >> "$cfgfile" \
17749 || (rm -f "$cfgfile"; exit 1)
17751 if test x"$xsi_shell" = xyes; then
17752 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17756 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17757 \ * ) func_dirname_result="${3}" ;;\
17759 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17760 && mv -f "$cfgfile.tmp" "$cfgfile" \
17761 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17762 test 0 -eq $? || _lt_function_replace_fail=:
17765 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17768 \ func_basename_result="${1##*/}"\
17769 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17770 && mv -f "$cfgfile.tmp" "$cfgfile" \
17771 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17772 test 0 -eq $? || _lt_function_replace_fail=:
17775 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17776 func_dirname_and_basename ()\
17779 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17780 \ * ) func_dirname_result="${3}" ;;\
17782 \ func_basename_result="${1##*/}"\
17783 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17784 && mv -f "$cfgfile.tmp" "$cfgfile" \
17785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17786 test 0 -eq $? || _lt_function_replace_fail=:
17789 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17792 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17793 \ # positional parameters, so assign one to ordinary parameter first.\
17794 \ func_stripname_result=${3}\
17795 \ func_stripname_result=${func_stripname_result#"${1}"}\
17796 \ func_stripname_result=${func_stripname_result%"${2}"}\
17797 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17798 && mv -f "$cfgfile.tmp" "$cfgfile" \
17799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17800 test 0 -eq $? || _lt_function_replace_fail=:
17803 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17804 func_split_long_opt ()\
17806 \ func_split_long_opt_name=${1%%=*}\
17807 \ func_split_long_opt_arg=${1#*=}\
17808 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17809 && mv -f "$cfgfile.tmp" "$cfgfile" \
17810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17811 test 0 -eq $? || _lt_function_replace_fail=:
17814 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17815 func_split_short_opt ()\
17817 \ func_split_short_opt_arg=${1#??}\
17818 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17819 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17820 && mv -f "$cfgfile.tmp" "$cfgfile" \
17821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17822 test 0 -eq $? || _lt_function_replace_fail=:
17825 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17829 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17830 \ *) func_lo2o_result=${1} ;;\
17832 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17833 && mv -f "$cfgfile.tmp" "$cfgfile" \
17834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17835 test 0 -eq $? || _lt_function_replace_fail=:
17838 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17841 func_xform_result=${1%.*}.lo\
17842 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17843 && mv -f "$cfgfile.tmp" "$cfgfile" \
17844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17845 test 0 -eq $? || _lt_function_replace_fail=:
17848 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17851 func_arith_result=$(( $* ))\
17852 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17853 && mv -f "$cfgfile.tmp" "$cfgfile" \
17854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17855 test 0 -eq $? || _lt_function_replace_fail=:
17858 sed -e '/^func_len ()$/,/^} # func_len /c\
17861 func_len_result=${#1}\
17862 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17863 && mv -f "$cfgfile.tmp" "$cfgfile" \
17864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17865 test 0 -eq $? || _lt_function_replace_fail=:
17869 if test x"$lt_shell_append" = xyes; then
17870 sed -e '/^func_append ()$/,/^} # func_append /c\
17873 eval "${1}+=\\${2}"\
17874 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17875 && mv -f "$cfgfile.tmp" "$cfgfile" \
17876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17877 test 0 -eq $? || _lt_function_replace_fail=:
17880 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17881 func_append_quoted ()\
17883 \ func_quote_for_eval "${2}"\
17884 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17885 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17886 && mv -f "$cfgfile.tmp" "$cfgfile" \
17887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17888 test 0 -eq $? || _lt_function_replace_fail=:
17891 # Save a `func_append' function call where possible by direct use of '+='
17892 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17893 && mv -f "$cfgfile.tmp" "$cfgfile" \
17894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17895 test 0 -eq $? || _lt_function_replace_fail=:
17897 # Save a `func_append' function call even when '+=' is not available
17898 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17899 && mv -f "$cfgfile.tmp" "$cfgfile" \
17900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17901 test 0 -eq $? || _lt_function_replace_fail=:
17904 if test x"$_lt_function_replace_fail" = x":"; then
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17906 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17910 mv -f "$cfgfile" "$ofile" ||
17911 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17922 ac_clean_files=$ac_clean_files_save
17924 test $ac_write_fail = 0 ||
17925 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17928 # configure is writing to config.log, and then calls config.status.
17929 # config.status does its own redirection, appending to config.log.
17930 # Unfortunately, on DOS this fails, as config.log is still kept open
17931 # by configure, so config.status won't be able to write to it; its
17932 # output is simply discarded. So we exec the FD to /dev/null,
17933 # effectively closing config.log, so it can be properly (re)opened and
17934 # appended to by config.status. When coming back to configure, we
17935 # need to make the FD available again.
17936 if test "$no_create" != yes; then
17938 ac_config_status_args=
17939 test "$silent" = yes &&
17940 ac_config_status_args="$ac_config_status_args --quiet"
17942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17945 # would make configure fail if this is the last instruction.
17946 $ac_cs_success || as_fn_exit 1
17948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17953 chmod +x hotplug.sh