Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Side by Side Diff: configure.ac

Issue 2364793002: Revert "Uprev libmtp to 1.1.12" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libmtp@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « configure ('k') | depcomp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Process this file with autoconf to produce a configure script. 1 # Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.52) 2 AC_PREREQ(2.52)
3 AC_INIT([libmtp], [1.1.12], [libmtp-discuss@lists.sourceforge.net]) 3 AC_INIT([libmtp], [1.1.5], [libmtp-discuss@lists.sourceforge.net])
4 AC_CONFIG_MACRO_DIR([m4]) 4 AC_CONFIG_MACRO_DIR([m4])
5 AM_INIT_AUTOMAKE([foreign]) 5 AM_INIT_AUTOMAKE([foreign])
6 AC_CONFIG_SRCDIR([src/libmtp.c]) 6 AC_CONFIG_SRCDIR([src/libmtp.c])
7 AM_CONFIG_HEADER(config.h) 7 AM_CONFIG_HEADER(config.h)
8 8
9 # Checks for programs. 9 # Checks for programs.
10 AC_PROG_CC 10 AC_PROG_CC
11 AC_PROG_INSTALL 11 AC_PROG_INSTALL
12 AC_PROG_LN_S 12 AC_PROG_LN_S
13 AC_LIBTOOL_WIN32_DLL 13 AC_LIBTOOL_WIN32_DLL
14 AC_PROG_LIBTOOL 14 AC_PROG_LIBTOOL
15 AM_ICONV 15 AM_ICONV
16 16
17 # Optionally set install location of udev 17 # Optionally set install location of udev
18 UDEV=/usr/lib/udev 18 UDEV=/lib/udev
19 AC_ARG_WITH(udev, 19 AC_ARG_WITH(udev,
20 AC_HELP_STRING([--with-udev=DIR], 20 AC_HELP_STRING([--with-udev=DIR],
21 [directory where udev is installed [default=/usr/lib/udev]]), 21 [directory where udev is installed [default=/lib/udev]]),
22 [UDEV="${withval}"], []) 22 [UDEV="${withval}"], [])
23 AC_SUBST(UDEV) 23 AC_SUBST(UDEV)
24 24
25 # Optionally set name of udev rules file, default 25 # Optionally set name of udev rules file, default
26 # priority is 69, to appear before 70-acl.rules which handles 26 # priority is 69, to appear before 70-acl.rules which handles
27 # access control to the devices. We try to let all other userspace 27 # access control to the devices. We try to let all other userspace
28 # libusb-based device handlers take precedence since libmtp may 28 # libusb-based device handlers take precedence since libmtp may
29 # attempt to autoprobe the devices. 29 # attempt to autoprobe the devices.
30 # 30 #
31 # Later rules can then use the identifiers for its processing. 31 # Later rules can then use the identifiers for its processing.
(...skipping 15 matching lines...) Expand all
47 # Optionally set mode for device nodes 47 # Optionally set mode for device nodes
48 UDEV_MODE= 48 UDEV_MODE=
49 AC_ARG_WITH(udev-mode, 49 AC_ARG_WITH(udev-mode,
50 AC_HELP_STRING([--with-udev-mode=GROUP], 50 AC_HELP_STRING([--with-udev-mode=GROUP],
51 [file mode for device nodes [default: none specified]]), 51 [file mode for device nodes [default: none specified]]),
52 [UDEV_MODE="-m\"${withval}\""], []) 52 [UDEV_MODE="-m\"${withval}\""], [])
53 AC_SUBST(UDEV_MODE) 53 AC_SUBST(UDEV_MODE)
54 54
55 # Optionally enable and check for doxygen 55 # Optionally enable and check for doxygen
56 AC_ARG_ENABLE([doxygen], 56 AC_ARG_ENABLE([doxygen],
57 AS_HELP_STRING([--enable-doxygen], [Build API documentation using Doxygen [d efault=auto]]), 57 AS_HELP_STRING([--enable-doxygen], [Build API documentation using Doxygen [d efault=no]]),
58 [ac_enable_doxygen=$enableval], [ac_enable_doxygen=auto]) 58 [ac_enable_doxygen=$enableval], [ac_enable_doxygen=auto])
59 if test "x$ac_enable_doxygen" != "xno"; then 59 if test "x$ac_enable_doxygen" == "xyes"; then
60 AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false) 60 AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false)
61 if test "x$HAVE_DOXYGEN" = "xfalse" -a "x$ac_enable_doxygen" = "xyes"; then 61 if test "x$HAVE_DOXYGEN" = "xfalse" -a "x$ac_enable_doxygen" = "xyes"; then
62 AC_MSG_ERROR([*** API documentation explicitly requested but Doxygen not found]) 62 AC_MSG_ERROR([*** API documentation explicitly requested but Doxygen not found])
63 fi 63 fi
64 if test "x$HAVE_DOXYGEN" = "xtrue"; then 64 AC_MSG_NOTICE([API documentation will be generated using Doxygen])
65 AC_MSG_NOTICE([API documentation will be generated using Doxygen])
66 fi
67 else 65 else
68 HAVE_DOXYGEN=false 66 HAVE_DOXYGEN=false
69 AC_MSG_NOTICE([API documentation will not be generated]) 67 AC_MSG_NOTICE([API documentation will not be generated])
70 fi 68 fi
71 AM_CONDITIONAL(HAVE_DOXYGEN,$HAVE_DOXYGEN) 69 AM_CONDITIONAL(HAVE_DOXYGEN,$HAVE_DOXYGEN)
72 70
73 # Check for Darwin 71 # Check for Darwin
74 AC_MSG_CHECKING([if the host operating system is Darwin]) 72 AC_MSG_CHECKING([if the host operating system is Darwin])
75 case "$host" in 73 case "$host" in
76 *-darwin*) 74 *-darwin*)
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 langinfo.h locale.h arpa/inet.h byteswap.h sys/uio.h]) 179 langinfo.h locale.h arpa/inet.h byteswap.h sys/uio.h])
182 180
183 # Checks for typedefs, structures, and compiler characteristics. 181 # Checks for typedefs, structures, and compiler characteristics.
184 AC_C_CONST 182 AC_C_CONST
185 AC_TYPE_OFF_T 183 AC_TYPE_OFF_T
186 AC_TYPE_SIGNAL 184 AC_TYPE_SIGNAL
187 AC_TYPE_SIZE_T 185 AC_TYPE_SIZE_T
188 AC_STRUCT_ST_BLKSIZE 186 AC_STRUCT_ST_BLKSIZE
189 187
190 # Checks for library functions. 188 # Checks for library functions.
189 AC_FUNC_MALLOC
191 AC_FUNC_MEMCMP 190 AC_FUNC_MEMCMP
192 AC_FUNC_STAT 191 AC_FUNC_STAT
193 AC_CHECK_FUNCS(basename memset select strdup strerror strndup strrchr strtoul us leep mkstemp) 192 AC_CHECK_FUNCS(basename memset select strdup strerror strndup strrchr strtoul us leep mkstemp)
194 193
195 # Switches. 194 # Switches.
196 # Enable LFS (Large File Support) 195 # Enable LFS (Large File Support)
197 AC_SYS_LARGEFILE 196 AC_SYS_LARGEFILE
198 # Stick in "-Werror" if you want to be more aggressive. 197 # Stick in "-Werror" if you want to be more aggressive.
199 # (No need to use AC_SUBST on this default substituted environment variable.) 198 # (No need to use AC_SUBST on this default substituted environment variable.)
200 # Only add these additional CFLAGS if we are using GCC. Other C compilers may 199 # Only add these additional CFLAGS if we are using GCC. Other C compilers may
(...skipping 12 matching lines...) Expand all
213 212
214 # Create a header file containing NetBSD-style byte swapping macros. 213 # Create a header file containing NetBSD-style byte swapping macros.
215 # This m4 macros has caused severe pain, I am considering creating a 214 # This m4 macros has caused severe pain, I am considering creating a
216 # hard-coded byte swapper that will be eternally portable. 215 # hard-coded byte swapper that will be eternally portable.
217 AC_NEED_BYTEORDER_H(src/gphoto2-endian.h) 216 AC_NEED_BYTEORDER_H(src/gphoto2-endian.h)
218 217
219 AC_CONFIG_FILES([src/libmtp.h doc/Doxyfile Makefile doc/Makefile src/Makefile 218 AC_CONFIG_FILES([src/libmtp.h doc/Doxyfile Makefile doc/Makefile src/Makefile
220 examples/Makefile util/Makefile libmtp.sh hotplug.sh libmtp.pc]) 219 examples/Makefile util/Makefile libmtp.sh hotplug.sh libmtp.pc])
221 AC_OUTPUT 220 AC_OUTPUT
222 chmod +x hotplug.sh 221 chmod +x hotplug.sh
OLDNEW
« no previous file with comments | « configure ('k') | depcomp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698