configure   configure 
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for libmtp 1.1.1. # Generated by GNU Autoconf 2.68 for libmtp 1.1.2.
# #
# Report bugs to <libmtp-discuss@lists.sourceforge.net>. # Report bugs to <libmtp-discuss@lists.sourceforge.net>.
# #
# #
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
# Foundation, Inc. # Foundation, Inc.
# #
# #
# This configure script is free software; the Free Software Foundation # This configure script is free software; the Free Software Foundation
skipping to change at line 566 skipping to change at line 566
ac_config_libobj_dir=. ac_config_libobj_dir=.
LIBOBJS= LIBOBJS=
cross_compiling=no cross_compiling=no
subdirs= subdirs=
MFLAGS= MFLAGS=
MAKEFLAGS= MAKEFLAGS=
# Identity of this package. # Identity of this package.
PACKAGE_NAME='libmtp' PACKAGE_NAME='libmtp'
PACKAGE_TARNAME='libmtp' PACKAGE_TARNAME='libmtp'
PACKAGE_VERSION='1.1.1' PACKAGE_VERSION='1.1.2'
PACKAGE_STRING='libmtp 1.1.1' PACKAGE_STRING='libmtp 1.1.2'
PACKAGE_BUGREPORT='libmtp-discuss@lists.sourceforge.net' PACKAGE_BUGREPORT='libmtp-discuss@lists.sourceforge.net'
PACKAGE_URL='' PACKAGE_URL=''
ac_unique_file="src/libmtp.c" ac_unique_file="src/libmtp.c"
# Factoring default headers for most tests. # Factoring default headers for most tests.
ac_includes_default="\ ac_includes_default="\
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
# include <sys/types.h> # include <sys/types.h>
#endif #endif
skipping to change at line 613 skipping to change at line 613
#endif #endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif" #endif"
ac_subst_vars='am__EXEEXT_FALSE ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE am__EXEEXT_TRUE
LTLIBOBJS LTLIBOBJS
effective_target effective_target
LIBOBJS LIBOBJS
LIBOPENUSB_COMPILE_FALSE
LIBOPENUSB_COMPILE_TRUE
LIBUSB0_COMPILE_FALSE
LIBUSB0_COMPILE_TRUE
LIBUSB1_COMPILE_FALSE
LIBUSB1_COMPILE_TRUE
LIBUSB_LIBS
LIBUSB_CFLAGS
PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH
PKG_CONFIG
MS_LIB_EXE_FALSE MS_LIB_EXE_FALSE
MS_LIB_EXE_TRUE MS_LIB_EXE_TRUE
ms_lib_exe ms_lib_exe
COMPILE_MINGW32_FALSE COMPILE_MINGW32_FALSE
COMPILE_MINGW32_TRUE COMPILE_MINGW32_TRUE
USE_LINUX_FALSE USE_LINUX_FALSE
USE_LINUX_TRUE USE_LINUX_TRUE
OSFLAGS OSFLAGS
HAVE_DOXYGEN_FALSE HAVE_DOXYGEN_FALSE
HAVE_DOXYGEN_TRUE HAVE_DOXYGEN_TRUE
skipping to change at line 766 skipping to change at line 777
enable_largefile enable_largefile
' '
ac_precious_vars='build_alias ac_precious_vars='build_alias
host_alias host_alias
target_alias target_alias
CC CC
CFLAGS CFLAGS
LDFLAGS LDFLAGS
LIBS LIBS
CPPFLAGS CPPFLAGS
CPP' CPP
PKG_CONFIG
PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR
LIBUSB_CFLAGS
LIBUSB_LIBS'
# Initialize some variables set by options. # Initialize some variables set by options.
ac_init_help= ac_init_help=
ac_init_version=false ac_init_version=false
ac_unrecognized_opts= ac_unrecognized_opts=
ac_unrecognized_sep= ac_unrecognized_sep=
# The variables have the same names as the options, with # The variables have the same names as the options, with
# dashes changed to underlines. # dashes changed to underlines.
cache_file=/dev/null cache_file=/dev/null
exec_prefix=NONE exec_prefix=NONE
skipping to change at line 1306 skipping to change at line 1322
eval ac_cv_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_value=\$${ac_var}
done done
# #
# Report the --help message. # Report the --help message.
# #
if test "$ac_init_help" = "long"; then if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures libmtp 1.1.1 to adapt to many kinds of systems. \`configure' configures libmtp 1.1.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables. VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets. Defaults for the options are specified in brackets.
Configuration: Configuration:
-h, --help display this help and exit -h, --help display this help and exit
skipping to change at line 1376 skipping to change at line 1392
--program-transform-name=PROGRAM run sed PROGRAM on installed program n ames --program-transform-name=PROGRAM run sed PROGRAM on installed program n ames
System types: System types:
--build=BUILD configure for building on BUILD [guessed] --build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD] --host=HOST cross-compile to build programs to run on HOST [BUILD]
_ACEOF _ACEOF
fi fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of libmtp 1.1.1:";; short | recursive ) echo "Configuration of libmtp 1.1.2:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
Optional Features: Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options --disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE= no) --disable-FEATURE do not include FEATURE (same as --enable-FEATURE= no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-dependency-tracking speeds up one-time build --disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors --enable-dependency-tracking do not reject slow dependency extractors
--enable-shared[=PKGS] build shared libraries [default=yes] --enable-shared[=PKGS] build shared libraries [default=yes]
skipping to change at line 1410 skipping to change at line 1426
--with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-sysroot=DIR Search for dependent libraries within DIR --with-sysroot=DIR Search for dependent libraries within DIR
(or the compiler's sysroot if not specified). (or the compiler's sysroot if not specified).
--with-gnu-ld assume the C compiler uses GNU ld default=no --with-gnu-ld assume the C compiler uses GNU ld default=no
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/ lib --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/ lib
--without-libiconv-prefix don't search for libiconv in includedir and libdir --without-libiconv-prefix don't search for libiconv in includedir and libdir
--with-udev=DIR directory where udev is installed --with-udev=DIR directory where udev is installed
[default=/lib/udev] [default=/lib/udev]
--with-udev-rules=NAME file name for udev rules [default=69-libmtp.rules ] --with-udev-rules=NAME file name for udev rules [default=69-libmtp.rules ]
--with-udev-group=GROUP file group for device nodes [default: none --with-udev-group=GROUP file group for device nodes [default: none
specified]] specified]
--with-udev-mode=GROUP file mode for device nodes [default: none --with-udev-mode=GROUP file mode for device nodes [default: none specifi
specified]] ed]
Some influential environment variables: Some influential environment variables:
CC C compiler command CC C compiler command
CFLAGS C compiler flags CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir> nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library> LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir> you have headers in a nonstandard directory <include dir>
CPP C preprocessor CPP C preprocessor
PKG_CONFIG path to pkg-config utility
PKG_CONFIG_PATH
directories to add to pkg-config's search path
PKG_CONFIG_LIBDIR
path overriding pkg-config's built-in search path
LIBUSB_CFLAGS
C compiler flags for LIBUSB, overriding pkg-config
LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
Use these variables to override the choices made by `configure' or to help Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations. it to find libraries and programs with nonstandard names/locations.
Report bugs to <libmtp-discuss@lists.sourceforge.net>. Report bugs to <libmtp-discuss@lists.sourceforge.net>.
_ACEOF _ACEOF
ac_status=$? ac_status=$?
fi fi
if test "$ac_init_help" = "recursive"; then if test "$ac_init_help" = "recursive"; then
skipping to change at line 1490 skipping to change at line 1513
else else
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir " >&2 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir " >&2
fi || ac_status=$? fi || ac_status=$?
cd "$ac_pwd" || { ac_status=$?; break; } cd "$ac_pwd" || { ac_status=$?; break; }
done done
fi fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
libmtp configure 1.1.1 libmtp configure 1.1.2
generated by GNU Autoconf 2.68 generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc. Copyright (C) 2010 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it. gives unlimited permission to copy, distribute and modify it.
_ACEOF _ACEOF
exit exit
fi fi
## ------------------------ ## ## ------------------------ ##
skipping to change at line 1970 skipping to change at line 1993
eval ac_res=\$$4 eval ac_res=\$$4
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; } $as_echo "$ac_res" >&6; }
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_c_check_member } # ac_fn_c_check_member
cat >config.log <<_ACEOF cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by libmtp $as_me 1.1.1, which was It was created by libmtp $as_me 1.1.2, which was
generated by GNU Autoconf 2.68. Invocation command line was generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@ $ $0 $@
_ACEOF _ACEOF
exec 5>>config.log exec 5>>config.log
{ {
cat <<_ASUNAME cat <<_ASUNAME
## --------- ## ## --------- ##
## Platform. ## ## Platform. ##
skipping to change at line 2777 skipping to change at line 2800
if test -z "$CYGPATH_W"; then if test -z "$CYGPATH_W"; then
if (cygpath --version) >/dev/null 2>/dev/null; then if (cygpath --version) >/dev/null 2>/dev/null; then
CYGPATH_W='cygpath -w' CYGPATH_W='cygpath -w'
else else
CYGPATH_W=echo CYGPATH_W=echo
fi fi
fi fi
# Define the identity of the package. # Define the identity of the package.
PACKAGE='libmtp' PACKAGE='libmtp'
VERSION='1.1.1' VERSION='1.1.2'
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE" #define PACKAGE "$PACKAGE"
_ACEOF _ACEOF
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION" #define VERSION "$VERSION"
_ACEOF _ACEOF
# Some tools Automake needs. # Some tools Automake needs.
skipping to change at line 11977 skipping to change at line 12000
fi fi
if test x$ms_lib_exe = xyes; then if test x$ms_lib_exe = xyes; then
MS_LIB_EXE_TRUE= MS_LIB_EXE_TRUE=
MS_LIB_EXE_FALSE='#' MS_LIB_EXE_FALSE='#'
else else
MS_LIB_EXE_TRUE='#' MS_LIB_EXE_TRUE='#'
MS_LIB_EXE_FALSE= MS_LIB_EXE_FALSE=
fi fi
# Checks for libraries. # Check for libusb-1.0
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_control_msg in -l
usb" >&5 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
$as_echo_n "checking for usb_control_msg in -lusb... " >&6; } if test -n "$ac_tool_prefix"; then
if ${ac_cv_lib_usb_usb_control_msg+:} false; then : # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a
program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
$as_echo_n "(cached) " >&6
else
case $PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with
a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_wo
rd$ac_exec_ext"; }; then
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_e
xt" >&5
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
ac_pt_PKG_CONFIG=$PKG_CONFIG
# Extract the first word of "pkg-config", so it can be a program name wit
h args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
$as_echo_n "(cached) " >&6
else
case $ac_pt_PKG_CONFIG in
[\\/]* | ?:[\\/]*)
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override t
he test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_wo
rd$ac_exec_ext"; }; then
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_e
xt" >&5
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
if test "x$ac_pt_PKG_CONFIG" = x; then
PKG_CONFIG=""
else
case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not pre
fixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet
" >&2;}
ac_tool_warned=yes ;;
esac
PKG_CONFIG=$ac_pt_PKG_CONFIG
fi
else
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi
fi
if test -n "$PKG_CONFIG"; then
_pkg_min_version=0.9.0
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at l
east version $_pkg_min_version" >&5
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... "
>&6; }
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
PKG_CONFIG=""
fi
fi
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
$as_echo_n "checking for LIBUSB... " >&6; }
if test -n "$LIBUSB_CFLAGS"; then
pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --prin
t-errors \"libusb-1.0 >= 1.0.0\""; } >&5
($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.0" 2>/dev/n
ull`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test -n "$LIBUSB_LIBS"; then
pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --prin
t-errors \"libusb-1.0 >= 1.0.0\""; } >&5
($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.0") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.0" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors
"libusb-1.0 >= 1.0.0" 2>&1`
else
LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0 >=
1.0.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LIBUSB_PKG_ERRORS" >&5
found_libusb1_pkg=no
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
found_libusb1_pkg=no
else
LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
found_libusb1_pkg=yes
fi
if test x"$found_libusb1_pkg" = "xyes" ; then
LIBUSB_VER=`pkg-config --modversion libusb-1.0`
$as_echo "#define HAVE_LIBUSB1 /**/" >>confdefs.h
fi
# Check for libopenusb
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openusb_init in -lope
nusb" >&5
$as_echo_n "checking for openusb_init in -lopenusb... " >&6; }
if ${ac_cv_lib_openusb_openusb_init+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lusb "$OSFLAGS" $LIBS" LIBS="-lopenusb $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error. /* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
char usb_control_msg (); char openusb_init ();
int int
main () main ()
{ {
return usb_control_msg (); return openusb_init ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
if ac_fn_c_try_link "$LINENO"; then : if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_usb_usb_control_msg=yes ac_cv_lib_openusb_openusb_init=yes
else else
ac_cv_lib_usb_usb_control_msg=no ac_cv_lib_openusb_openusb_init=no
fi fi
rm -f core conftest.err conftest.$ac_objext \ rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_control { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openusb_openusb
_msg" >&5 _init" >&5
$as_echo "$ac_cv_lib_usb_usb_control_msg" >&6; } $as_echo "$ac_cv_lib_openusb_openusb_init" >&6; }
if test "x$ac_cv_lib_usb_usb_control_msg" = xyes; then : if test "x$ac_cv_lib_openusb_openusb_init" = xyes; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_LIBUSB 1 #define HAVE_LIBOPENUSB 1
_ACEOF _ACEOF
LIBS="-lusb $LIBS" LIBS="-lopenusb $LIBS"
fi
if test x"$found_libusb1_pkg" = "xno" ; then
if test x"$ac_cv_lib_openusb_openusb_init" = "xyes" ; then
$as_echo "#define HAVE_OPENUSB /**/" >>confdefs.h
LIBUSB_VER=1.0
fi
fi
# Check for libusb 0.x
if test x"$found_libusb1_pkg" = "xno" ; then
if test x"$ac_cv_lib_openusb_openusb_init" = "xno" ; then
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
$as_echo_n "checking for LIBUSB... " >&6; }
if test -n "$LIBUSB_CFLAGS"; then
pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --prin
t-errors \"libusb >= 0.1.8\""; } >&5
($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.8" 2>/dev/null`
else else
as_fn_error $? "I can't find the libusb libraries on your system. You pkg_failed=yes
may need to set the LDFLAGS environment variable to include the fi
search path where you have libusb installed before running else
configure (e.g. setenv LDFLAGS=-L/usr/local/lib)" "$LINENO" 5 pkg_failed=untried
fi
if test -n "$LIBUSB_LIBS"; then
pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --prin
t-errors \"libusb >= 0.1.8\""; } >&5
($PKG_CONFIG --exists --print-errors "libusb >= 0.1.8") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.8" 2>/dev/null`
else
pkg_failed=yes
fi
else
pkg_failed=untried
fi
if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
_pkg_short_errors_supported=yes
else
_pkg_short_errors_supported=no
fi fi
if test $_pkg_short_errors_supported = yes; then
LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors
"libusb >= 0.1.8" 2>&1`
else
LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb >= 0.1
.8" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LIBUSB_PKG_ERRORS" >&5
found_libusb0_pkg=no
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
found_libusb0_pkg=no
else
LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
found_libusb0_pkg=yes
fi
if test x"$found_libusb0_pkg" = "xyes" ; then
LIBUSB_VER=`pkg-config --modversion libusb`
$as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
else
# Some systems don't use pkg-config for libusb, so double check.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_open in
-lusb" >&5
$as_echo_n "checking for usb_open in -lusb... " >&6; }
if ${ac_cv_lib_usb_usb_open+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lusb $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
/* Override any GCC internal prototype to avoid an error.
Use char because int might match the return type of a GCC
builtin and then its argument prototype would still apply. */
#ifdef __cplusplus
extern "C"
#endif
char usb_open ();
int
main ()
{
return usb_open ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_usb_usb_open=yes
else
ac_cv_lib_usb_usb_open=no
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_open" >
&5
$as_echo "$ac_cv_lib_usb_usb_open" >&6; }
if test "x$ac_cv_lib_usb_usb_open" = xyes; then :
found_libusb0_pkg=yes
else
found_libusb0_pkg=no
fi
if test x"$ac_cv_lib_usb_usb_open" = "xyes" ; then
LIBUSB_VER=0.1
$as_echo "#define HAVE_LIBUSB0 /**/" >>confdefs.h
found_libusb0_pkg=xyes
fi
if test x"$found_libusb0_pkg" = "xno" ; then
as_fn_error $? "*** libusb not found! (missing -dev/-devel pack
age?) ***\n*** prefer to install libusb-1 if you can! ***" "$LINENO" 5
fi
fi
fi
fi
if test x"$found_libusb1_pkg" = "xyes"; then
LIBUSB1_COMPILE_TRUE=
LIBUSB1_COMPILE_FALSE='#'
else
LIBUSB1_COMPILE_TRUE='#'
LIBUSB1_COMPILE_FALSE=
fi
if test x"$found_libusb0_pkg" = "xyes"; then
LIBUSB0_COMPILE_TRUE=
LIBUSB0_COMPILE_FALSE='#'
else
LIBUSB0_COMPILE_TRUE='#'
LIBUSB0_COMPILE_FALSE=
fi
if test x"$ac_cv_lib_openusb_openusb_init" = "xyes"; then
LIBOPENUSB_COMPILE_TRUE=
LIBOPENUSB_COMPILE_FALSE='#'
else
LIBOPENUSB_COMPILE_TRUE='#'
LIBOPENUSB_COMPILE_FALSE=
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: *** using libusb $LIBUSB_VER ***"
>&5
$as_echo "$as_me: *** using libusb $LIBUSB_VER ***" >&6;}
# Checks for header files. # Checks for header files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; } $as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then : if ${ac_cv_header_stdc+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <stdlib.h> #include <stdlib.h>
skipping to change at line 12192 skipping to change at line 12567
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_in cludes_default" ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_in cludes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF _ACEOF
fi fi
done done
ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_in
cludes_default"
if test "x$ac_cv_header_usb_h" = xyes; then :
else
as_fn_error $? "I can't find the libusb header file on your system.
You may need to set the CPPFLAGS environment variable to include
the search path where you have libusb installed before running
configure (e.g. setenv CPPFLAGS=-I/usr/local/include)" "$LINENO" 5
fi
# Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
$as_echo_n "checking for an ANSI C-conforming const... " >&6; } $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
if ${ac_cv_c_const+:} false; then : if ${ac_cv_c_const+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
int int
skipping to change at line 12795 skipping to change at line 13160
#define _LARGE_FILES $ac_cv_sys_large_files #define _LARGE_FILES $ac_cv_sys_large_files
_ACEOF _ACEOF
;; ;;
esac esac
rm -rf conftest* rm -rf conftest*
fi fi
fi fi
# Stick in "-Werror" if you want to be more aggressive. # Stick in "-Werror" if you want to be more aggressive.
# (No need to use AC_SUBST on this default substituted environment variable .) # (No need to use AC_SUBST on this default substituted environment variable .)
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes" # Only add these additional CFLAGS if we are using GCC. Other C compilers m
ay
# not support them.
if test x"$GCC" == "xyes" ; then
CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
fi
# Output files # Output files
# Create a stdint.h-like file containing size-specific integer definitions # Create a stdint.h-like file containing size-specific integer definitions
# that will always be available. The <stdint.h> file is required by the # that will always be available. The <stdint.h> file is required by the
# library, but we provide this anyway because the libptp2 stuff wants this # library, but we provide this anyway because the libptp2 stuff wants this
# file. # file.
ac_dir=`$as_dirname -- "src/_stdint.h" || ac_dir=`$as_dirname -- "src/_stdint.h" ||
$as_expr X"src/_stdint.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ $as_expr X"src/_stdint.h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
skipping to change at line 13886 skipping to change at line 14255
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${COMPILE_MINGW32_TRUE}" && test -z "${COMPILE_MINGW32_FALSE}"; then if test -z "${COMPILE_MINGW32_TRUE}" && test -z "${COMPILE_MINGW32_FALSE}"; then
as_fn_error $? "conditional \"COMPILE_MINGW32\" was never defined. as_fn_error $? "conditional \"COMPILE_MINGW32\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${MS_LIB_EXE_TRUE}" && test -z "${MS_LIB_EXE_FALSE}"; then if test -z "${MS_LIB_EXE_TRUE}" && test -z "${MS_LIB_EXE_FALSE}"; then
as_fn_error $? "conditional \"MS_LIB_EXE\" was never defined. as_fn_error $? "conditional \"MS_LIB_EXE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5 Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi fi
if test -z "${LIBUSB1_COMPILE_TRUE}" && test -z "${LIBUSB1_COMPILE_FALSE}";
then
as_fn_error $? "conditional \"LIBUSB1_COMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${LIBUSB0_COMPILE_TRUE}" && test -z "${LIBUSB0_COMPILE_FALSE}";
then
as_fn_error $? "conditional \"LIBUSB0_COMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${LIBOPENUSB_COMPILE_TRUE}" && test -z "${LIBOPENUSB_COMPILE_FA
LSE}"; then
as_fn_error $? "conditional \"LIBOPENUSB_COMPILE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
: "${CONFIG_STATUS=./config.status}" : "${CONFIG_STATUS=./config.status}"
ac_write_fail=0 ac_write_fail=0
ac_clean_files_save=$ac_clean_files ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS" ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0 as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL #! $SHELL
skipping to change at line 14287 skipping to change at line 14668
## Main body of $CONFIG_STATUS script. ## ## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ## ## ----------------------------------- ##
_ASEOF _ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to # Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by libmtp $as_me 1.1.1, which was This file was extended by libmtp $as_me 1.1.2, which was
generated by GNU Autoconf 2.68. Invocation command line was generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@ $ $0 $@
on `(hostname || uname -n) 2>/dev/null | sed 1q` on `(hostname || uname -n) 2>/dev/null | sed 1q`
" "
skipping to change at line 14352 skipping to change at line 14733
Configuration commands: Configuration commands:
$config_commands $config_commands
Report bugs to <libmtp-discuss@lists.sourceforge.net>." Report bugs to <libmtp-discuss@lists.sourceforge.net>."
_ACEOF _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\ \\&/g'`" ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\ \\&/g'`"
ac_cs_version="\\ ac_cs_version="\\
libmtp config.status 1.1.1 libmtp config.status 1.1.2
configured by $0, generated by GNU Autoconf 2.68, configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\" with options \\"\$ac_cs_config\\"
Copyright (C) 2010 Free Software Foundation, Inc. Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it." gives unlimited permission to copy, distribute and modify it."
ac_pwd='$ac_pwd' ac_pwd='$ac_pwd'
srcdir='$srcdir' srcdir='$srcdir'
INSTALL='$INSTALL' INSTALL='$INSTALL'
 End of changes. 28 change blocks. 
46 lines changed or deleted 456 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/