libusb 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +2 -2
- data/Gemfile +0 -8
- data/History.md +5 -0
- data/README.md +6 -6
- data/Rakefile +9 -9
- data/ext/extconf.rb +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/AUTHORS +10 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/COPYING +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/ChangeLog +17 -9
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/INSTALL +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Makefile.am +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Makefile.in +153 -178
- data/ext/libusb-1.0.18/NEWS +2 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/PORTING +13 -13
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/README +9 -11
- data/ext/libusb-1.0.18/TODO +2 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/common.xcconfig +3 -3
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/config.h +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/debug.xcconfig +2 -2
- data/ext/{libusbx-1.0.17/Xcode/libusbx.xcconfig → libusb-1.0.18/Xcode/libusb.xcconfig} +2 -2
- data/ext/libusb-1.0.18/Xcode/libusb.xcodeproj/project.pbxproj +1 -0
- data/ext/{libusbx-1.0.17/Xcode/libusbx_debug.xcconfig → libusb-1.0.18/Xcode/libusb_debug.xcconfig} +3 -3
- data/ext/{libusbx-1.0.17/Xcode/libusbx_release.xcconfig → libusb-1.0.18/Xcode/libusb_release.xcconfig} +3 -3
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/release.xcconfig +2 -2
- data/ext/{libusbx-1.0.17/m4/libtool.m4 → libusb-1.0.18/aclocal.m4} +1731 -27
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/README +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/config.h +1 -10
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/Android.mk +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/Application.mk +6 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/examples.mk +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/libusb.mk +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/tests.mk +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/compile +3 -7
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/config.guess +19 -24
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/config.h.in +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/config.sub +30 -47
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/configure +118 -172
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/configure.ac +24 -2
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/depcomp +186 -268
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/doc/Makefile.am +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/doc/Makefile.in +36 -73
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/doc/doxygen.cfg.in +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/Makefile.am +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/Makefile.in +68 -132
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/dpfp.c +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/dpfp_threaded.c +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/ezusb.c +57 -26
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/ezusb.h +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/fxload.c +3 -3
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/getopt/getopt.c +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/getopt/getopt.h +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/getopt/getopt1.c +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/hotplugtest.c +9 -2
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/listdevs.c +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/sam3u_benchmark.c +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/xusb.c +20 -4
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/install-sh +7 -7
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb-1.0.pc.in +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/Makefile.am +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/Makefile.in +94 -134
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/core.c +95 -74
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/descriptor.c +2 -2
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/hotplug.c +3 -3
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/hotplug.h +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/io.c +127 -116
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusb-1.0.def +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusb-1.0.rc +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusb.h +42 -39
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusbi.h +20 -11
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/darwin_usb.c +20 -16
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/darwin_usb.h +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_netlink.c +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_udev.c +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_usbfs.c +15 -12
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_usbfs.h +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/netbsd_usb.c +2 -4
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/openbsd_usb.c +5 -2
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_posix.c +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_posix.h +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_windows.c +2 -2
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_windows.h +0 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_posix.c +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_posix.h +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_windows.c +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_windows.h +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/wince_usb.c +1 -2
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/wince_usb.h +2 -2
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/windows_common.h +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/windows_usb.c +53 -33
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/windows_usb.h +6 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/strerror.c +2 -2
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/sync.c +6 -6
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/version.h +1 -1
- data/ext/libusb-1.0.18/libusb/version_nano.h +1 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/ltmain.sh +3 -3
- data/ext/libusb-1.0.18/missing +331 -0
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/Makefile.am +1 -1
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/Makefile.in +69 -127
- data/ext/{libusbx-1.0.17/tests/libusbx_testlib.h → libusb-1.0.18/tests/libusb_testlib.h} +15 -15
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/stress.c +16 -16
- data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/testlib.c +21 -20
- data/lib/libusb/version_gem.rb +1 -1
- data/libusb.gemspec +1 -6
- metadata +117 -135
- checksums.yaml +0 -7
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ext/libusbx-1.0.17/NEWS +0 -2
- data/ext/libusbx-1.0.17/TODO +0 -2
- data/ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj +0 -864
- data/ext/libusbx-1.0.17/aclocal.m4 +0 -1112
- data/ext/libusbx-1.0.17/libusb/version_nano.h +0 -1
- data/ext/libusbx-1.0.17/m4/ltoptions.m4 +0 -384
- data/ext/libusbx-1.0.17/m4/ltsugar.m4 +0 -123
- data/ext/libusbx-1.0.17/m4/ltversion.m4 +0 -23
- data/ext/libusbx-1.0.17/m4/lt~obsolete.m4 +0 -98
- data/ext/libusbx-1.0.17/missing +0 -215
- metadata.gz.sig +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
PORTING
|
|
1
|
+
PORTING LIBUSB TO OTHER PLATFORMS
|
|
2
2
|
|
|
3
3
|
Introduction
|
|
4
4
|
============
|
|
5
5
|
|
|
6
|
-
This document is aimed at developers wishing to port
|
|
7
|
-
platforms. I believe the
|
|
6
|
+
This document is aimed at developers wishing to port libusb to unsupported
|
|
7
|
+
platforms. I believe the libusb API is OS-independent, so by supporting
|
|
8
8
|
multiple operating systems we pave the way for cross-platform USB device
|
|
9
9
|
drivers.
|
|
10
10
|
|
|
11
11
|
Implementation-wise, the basic idea is that you provide an interface to
|
|
12
|
-
|
|
12
|
+
libusb's internal "backend" API, which performs the appropriate operations on
|
|
13
13
|
your target platform.
|
|
14
14
|
|
|
15
15
|
In terms of USB I/O, your backend provides functionality to submit
|
|
@@ -27,16 +27,16 @@ e.g. setting configuration, obtaining descriptors, etc.
|
|
|
27
27
|
File descriptors for I/O polling
|
|
28
28
|
================================
|
|
29
29
|
|
|
30
|
-
For
|
|
30
|
+
For libusb to work, your event handling function obviously needs to be called
|
|
31
31
|
at various points in time. Your backend must provide a set of file descriptors
|
|
32
|
-
which
|
|
32
|
+
which libusb and its users can pass to poll() or select() to determine when
|
|
33
33
|
it is time to call the event handling function.
|
|
34
34
|
|
|
35
35
|
On Linux, this is easy: the usbfs kernel interface exposes a file descriptor
|
|
36
36
|
which can be passed to poll(). If something similar is not true for your
|
|
37
37
|
platform, you can emulate this using an internal library thread to reap I/O as
|
|
38
38
|
necessary, and a pipe() with the main library to raise events. The file
|
|
39
|
-
descriptor of the pipe can then be provided to
|
|
39
|
+
descriptor of the pipe can then be provided to libusb as an event source.
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
Interface semantics and documentation
|
|
@@ -46,7 +46,7 @@ Documentation of the backend interface can be found in libusbi.h inside the
|
|
|
46
46
|
usbi_os_backend structure definition.
|
|
47
47
|
|
|
48
48
|
Your implementations of these functions will need to call various internal
|
|
49
|
-
|
|
49
|
+
libusb functions, prefixed with "usbi_". Documentation for these functions
|
|
50
50
|
can be found in the .c files where they are implemented.
|
|
51
51
|
|
|
52
52
|
You probably want to skim over *all* the documentation before starting your
|
|
@@ -72,18 +72,18 @@ right usbi_backend for your platform.
|
|
|
72
72
|
|
|
73
73
|
4. Produce and test your implementation.
|
|
74
74
|
|
|
75
|
-
5. Send your implementation to
|
|
75
|
+
5. Send your implementation to libusb-devel mailing list.
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
Implementation difficulties? Questions?
|
|
79
79
|
=======================================
|
|
80
80
|
|
|
81
|
-
If you encounter difficulties porting
|
|
82
|
-
these issues on the
|
|
83
|
-
am interested in solving problems preventing
|
|
81
|
+
If you encounter difficulties porting libusb to your platform, please raise
|
|
82
|
+
these issues on the libusb-devel mailing list. Where possible and sensible, I
|
|
83
|
+
am interested in solving problems preventing libusb from operating on other
|
|
84
84
|
platforms.
|
|
85
85
|
|
|
86
|
-
The
|
|
86
|
+
The libusb-devel mailing list is also a good place to ask questions and
|
|
87
87
|
make suggestions about the internal API. Hopefully we can produce some
|
|
88
88
|
better documentation based on your questions and other input.
|
|
89
89
|
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
libusb
|
|
2
|
+
======
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
Windows and OpenBSD/NetBSD userspace
|
|
6
|
-
lesser extent some of the newest features of Windows (such as libusbK
|
|
7
|
-
and libusb-win32 driver support) being EXPERIMENTAL.
|
|
4
|
+
libusb is a library for USB device access from Linux, Mac OS X,
|
|
5
|
+
Windows and OpenBSD/NetBSD userspace.
|
|
8
6
|
It is written in C and licensed under the GNU Lesser General Public
|
|
9
7
|
License version 2.1 or, at your option, any later version (see COPYING).
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
libusb is abstracted internally in such a way that it can hopefully
|
|
12
10
|
be ported to other operating systems. Please see the PORTING file
|
|
13
11
|
for more information.
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
http://
|
|
13
|
+
libusb homepage:
|
|
14
|
+
http://libusb.info/
|
|
17
15
|
|
|
18
16
|
Developers will wish to consult the API documentation:
|
|
19
|
-
http://api.
|
|
17
|
+
http://api.libusb.info
|
|
20
18
|
|
|
21
19
|
Use the mailing list for questions, comments, etc:
|
|
22
|
-
http://mailing-list.
|
|
20
|
+
http://mailing-list.libusb.info
|
|
23
21
|
|
|
24
22
|
- Pete Batard <pete@akeo.ie>
|
|
25
23
|
- Hans de Goede <hdegoede@redhat.com>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// libusb Xcode configuration file
|
|
3
3
|
// Copyright © 2012 Pete Batard <pete@akeo.ie>
|
|
4
|
-
// For more information, please visit: <http://
|
|
4
|
+
// For more information, please visit: <http://libusb.info>
|
|
5
5
|
//
|
|
6
6
|
// This library is free software; you can redistribute it and/or
|
|
7
7
|
// modify it under the terms of the GNU Lesser General Public
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
// License along with this library; if not, write to the Free Software
|
|
18
18
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
19
19
|
|
|
20
|
-
//
|
|
20
|
+
// libusb does not follow C99 strict aliasing rules, so disable it.
|
|
21
21
|
GCC_STRICT_ALIASING = NO
|
|
22
22
|
|
|
23
23
|
// Use C99 dialect.
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// libusb Xcode configuration file
|
|
3
3
|
// Copyright © 2012 Pete Batard <pete@akeo.ie>
|
|
4
|
-
// For more information, please visit: <http://
|
|
4
|
+
// For more information, please visit: <http://libusb.info>
|
|
5
5
|
//
|
|
6
6
|
// This library is free software; you can redistribute it and/or
|
|
7
7
|
// modify it under the terms of the GNU Lesser General Public
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// libusb Xcode configuration file
|
|
3
3
|
// Copyright © 2012 Pete Batard <pete@akeo.ie>
|
|
4
|
-
// For more information, please visit: <http://
|
|
4
|
+
// For more information, please visit: <http://libusb.info>
|
|
5
5
|
//
|
|
6
6
|
// This library is free software; you can redistribute it and/or
|
|
7
7
|
// modify it under the terms of the GNU Lesser General Public
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
data/ext/{libusbx-1.0.17/Xcode/libusbx_debug.xcconfig → libusb-1.0.18/Xcode/libusb_debug.xcconfig}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// libusb Xcode configuration file
|
|
3
3
|
// Copyright © 2012 Pete Batard <pete@akeo.ie>
|
|
4
|
-
// For more information, please visit: <http://
|
|
4
|
+
// For more information, please visit: <http://libusb.info>
|
|
5
5
|
//
|
|
6
6
|
// This library is free software; you can redistribute it and/or
|
|
7
7
|
// modify it under the terms of the GNU Lesser General Public
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
19
19
|
|
|
20
20
|
#include "debug.xcconfig"
|
|
21
|
-
#include "
|
|
21
|
+
#include "libusb.xcconfig"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// libusb Xcode configuration file
|
|
3
3
|
// Copyright © 2012 Pete Batard <pete@akeo.ie>
|
|
4
|
-
// For more information, please visit: <http://
|
|
4
|
+
// For more information, please visit: <http://libusb.info>
|
|
5
5
|
//
|
|
6
6
|
// This library is free software; you can redistribute it and/or
|
|
7
7
|
// modify it under the terms of the GNU Lesser General Public
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
19
19
|
|
|
20
20
|
#include "release.xcconfig"
|
|
21
|
-
#include "
|
|
21
|
+
#include "libusb.xcconfig"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//
|
|
2
|
-
//
|
|
2
|
+
// libusb Xcode configuration file
|
|
3
3
|
// Copyright © 2012 Pete Batard <pete@akeo.ie>
|
|
4
|
-
// For more information, please visit: <http://
|
|
4
|
+
// For more information, please visit: <http://libusb.info>
|
|
5
5
|
//
|
|
6
6
|
// This library is free software; you can redistribute it and/or
|
|
7
7
|
// modify it under the terms of the GNU Lesser General Public
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# generated automatically by aclocal 1.11.5 -*- Autoconf -*-
|
|
2
|
+
|
|
3
|
+
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
|
4
|
+
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
|
|
5
|
+
# Inc.
|
|
6
|
+
# This file is free software; the Free Software Foundation
|
|
7
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
8
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9
|
+
|
|
10
|
+
# This program is distributed in the hope that it will be useful,
|
|
11
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
12
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
13
|
+
# PARTICULAR PURPOSE.
|
|
14
|
+
|
|
15
|
+
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
16
|
+
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
17
|
+
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
|
18
|
+
[m4_warning([this file was generated for autoconf 2.69.
|
|
19
|
+
You have another version of autoconf. It may work, but is not guaranteed to.
|
|
20
|
+
If you have problems, you may need to regenerate the build system entirely.
|
|
21
|
+
To do so, use the procedure documented by the package, typically `autoreconf'.])])
|
|
22
|
+
|
|
1
23
|
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
|
|
2
24
|
#
|
|
3
25
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
|
|
@@ -280,9 +302,6 @@ ltmain="$ac_aux_dir/ltmain.sh"
|
|
|
280
302
|
])# _LT_PROG_LTMAIN
|
|
281
303
|
|
|
282
304
|
|
|
283
|
-
## ------------------------------------- ##
|
|
284
|
-
## Accumulate code for creating libtool. ##
|
|
285
|
-
## ------------------------------------- ##
|
|
286
305
|
|
|
287
306
|
# So that we can recreate a full libtool script including additional
|
|
288
307
|
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
|
|
@@ -336,9 +355,6 @@ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
|
|
|
336
355
|
|
|
337
356
|
|
|
338
357
|
|
|
339
|
-
## ------------------------ ##
|
|
340
|
-
## FIXME: Eliminate VARNAME ##
|
|
341
|
-
## ------------------------ ##
|
|
342
358
|
|
|
343
359
|
|
|
344
360
|
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
|
|
@@ -826,12 +842,10 @@ m4_defun([_LT_LANG],
|
|
|
826
842
|
|
|
827
843
|
|
|
828
844
|
m4_ifndef([AC_PROG_GO], [
|
|
829
|
-
############################################################
|
|
830
845
|
# NOTE: This macro has been submitted for inclusion into #
|
|
831
846
|
# GNU Autoconf as AC_PROG_GO. When it is available in #
|
|
832
847
|
# a released version of Autoconf we should remove this #
|
|
833
848
|
# macro and use it instead. #
|
|
834
|
-
############################################################
|
|
835
849
|
m4_defun([AC_PROG_GO],
|
|
836
850
|
[AC_LANG_PUSH(Go)dnl
|
|
837
851
|
AC_ARG_VAR([GOC], [Go compiler command])dnl
|
|
@@ -2669,14 +2683,10 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
|
2669
2683
|
# before this can be enabled.
|
|
2670
2684
|
hardcode_into_libs=yes
|
|
2671
2685
|
|
|
2672
|
-
# Add ABI-specific directories to the system library path.
|
|
2673
|
-
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
|
|
2674
|
-
|
|
2675
2686
|
# Append ld.so.conf contents to the search path
|
|
2676
2687
|
if test -f /etc/ld.so.conf; then
|
|
2677
2688
|
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' ' '`
|
|
2678
|
-
sys_lib_dlsearch_path_spec="
|
|
2679
|
-
|
|
2689
|
+
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
|
2680
2690
|
fi
|
|
2681
2691
|
|
|
2682
2692
|
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
|
@@ -5761,10 +5771,6 @@ compiler_DEFAULT=$CC
|
|
|
5761
5771
|
_LT_COMPILER_BOILERPLATE
|
|
5762
5772
|
_LT_LINKER_BOILERPLATE
|
|
5763
5773
|
|
|
5764
|
-
## CAVEAT EMPTOR:
|
|
5765
|
-
## There is no encapsulation within the following macros, do not change
|
|
5766
|
-
## the running order or otherwise move them around unless you know exactly
|
|
5767
|
-
## what you are doing...
|
|
5768
5774
|
if test -n "$compiler"; then
|
|
5769
5775
|
_LT_COMPILER_NO_RTTI($1)
|
|
5770
5776
|
_LT_COMPILER_PIC($1)
|
|
@@ -7474,10 +7480,6 @@ _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
|
7474
7480
|
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
|
7475
7481
|
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
|
7476
7482
|
|
|
7477
|
-
## CAVEAT EMPTOR:
|
|
7478
|
-
## There is no encapsulation within the following macros, do not change
|
|
7479
|
-
## the running order or otherwise move them around unless you know exactly
|
|
7480
|
-
## what you are doing...
|
|
7481
7483
|
if test -n "$compiler"; then
|
|
7482
7484
|
_LT_COMPILER_NO_RTTI($1)
|
|
7483
7485
|
_LT_COMPILER_PIC($1)
|
|
@@ -7545,10 +7547,6 @@ _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
|
|
|
7545
7547
|
_LT_TAGVAR(reload_flag, $1)=$reload_flag
|
|
7546
7548
|
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
|
|
7547
7549
|
|
|
7548
|
-
## CAVEAT EMPTOR:
|
|
7549
|
-
## There is no encapsulation within the following macros, do not change
|
|
7550
|
-
## the running order or otherwise move them around unless you know exactly
|
|
7551
|
-
## what you are doing...
|
|
7552
7550
|
if test -n "$compiler"; then
|
|
7553
7551
|
_LT_COMPILER_NO_RTTI($1)
|
|
7554
7552
|
_LT_COMPILER_PIC($1)
|
|
@@ -7707,12 +7705,10 @@ _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
|
|
|
7707
7705
|
])# _LT_DECL_SED
|
|
7708
7706
|
|
|
7709
7707
|
m4_ifndef([AC_PROG_SED], [
|
|
7710
|
-
############################################################
|
|
7711
7708
|
# NOTE: This macro has been submitted for inclusion into #
|
|
7712
7709
|
# GNU Autoconf as AC_PROG_SED. When it is available in #
|
|
7713
7710
|
# a released version of Autoconf we should remove this #
|
|
7714
7711
|
# macro and use it instead. #
|
|
7715
|
-
############################################################
|
|
7716
7712
|
|
|
7717
7713
|
m4_defun([AC_PROG_SED],
|
|
7718
7714
|
[AC_MSG_CHECKING([for a sed that does not truncate output])
|
|
@@ -7984,3 +7980,1711 @@ AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
|
|
|
7984
7980
|
_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
|
|
7985
7981
|
[0], [convert $build files to toolchain format])dnl
|
|
7986
7982
|
])# _LT_PATH_CONVERSION_FUNCTIONS
|
|
7983
|
+
|
|
7984
|
+
# Helper functions for option handling. -*- Autoconf -*-
|
|
7985
|
+
#
|
|
7986
|
+
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
|
|
7987
|
+
# Inc.
|
|
7988
|
+
# Written by Gary V. Vaughan, 2004
|
|
7989
|
+
#
|
|
7990
|
+
# This file is free software; the Free Software Foundation gives
|
|
7991
|
+
# unlimited permission to copy and/or distribute it, with or without
|
|
7992
|
+
# modifications, as long as this notice is preserved.
|
|
7993
|
+
|
|
7994
|
+
# serial 7 ltoptions.m4
|
|
7995
|
+
|
|
7996
|
+
# This is to help aclocal find these macros, as it can't see m4_define.
|
|
7997
|
+
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
|
7998
|
+
|
|
7999
|
+
|
|
8000
|
+
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
|
|
8001
|
+
# ------------------------------------------
|
|
8002
|
+
m4_define([_LT_MANGLE_OPTION],
|
|
8003
|
+
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
|
|
8004
|
+
|
|
8005
|
+
|
|
8006
|
+
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
|
|
8007
|
+
# ---------------------------------------
|
|
8008
|
+
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
|
|
8009
|
+
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
|
|
8010
|
+
# saved as a flag.
|
|
8011
|
+
m4_define([_LT_SET_OPTION],
|
|
8012
|
+
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
|
|
8013
|
+
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
|
|
8014
|
+
_LT_MANGLE_DEFUN([$1], [$2]),
|
|
8015
|
+
[m4_warning([Unknown $1 option `$2'])])[]dnl
|
|
8016
|
+
])
|
|
8017
|
+
|
|
8018
|
+
|
|
8019
|
+
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
|
|
8020
|
+
# ------------------------------------------------------------
|
|
8021
|
+
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
8022
|
+
m4_define([_LT_IF_OPTION],
|
|
8023
|
+
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
|
|
8024
|
+
|
|
8025
|
+
|
|
8026
|
+
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
|
|
8027
|
+
# -------------------------------------------------------
|
|
8028
|
+
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
|
|
8029
|
+
# are set.
|
|
8030
|
+
m4_define([_LT_UNLESS_OPTIONS],
|
|
8031
|
+
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
|
8032
|
+
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
|
|
8033
|
+
[m4_define([$0_found])])])[]dnl
|
|
8034
|
+
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
|
|
8035
|
+
])[]dnl
|
|
8036
|
+
])
|
|
8037
|
+
|
|
8038
|
+
|
|
8039
|
+
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
|
|
8040
|
+
# ----------------------------------------
|
|
8041
|
+
# OPTION-LIST is a space-separated list of Libtool options associated
|
|
8042
|
+
# with MACRO-NAME. If any OPTION has a matching handler declared with
|
|
8043
|
+
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
|
|
8044
|
+
# the unknown option and exit.
|
|
8045
|
+
m4_defun([_LT_SET_OPTIONS],
|
|
8046
|
+
[# Set options
|
|
8047
|
+
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
|
8048
|
+
[_LT_SET_OPTION([$1], _LT_Option)])
|
|
8049
|
+
|
|
8050
|
+
m4_if([$1],[LT_INIT],[
|
|
8051
|
+
dnl
|
|
8052
|
+
dnl Simply set some default values (i.e off) if boolean options were not
|
|
8053
|
+
dnl specified:
|
|
8054
|
+
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
|
|
8055
|
+
])
|
|
8056
|
+
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
|
|
8057
|
+
])
|
|
8058
|
+
dnl
|
|
8059
|
+
dnl If no reference was made to various pairs of opposing options, then
|
|
8060
|
+
dnl we run the default mode handler for the pair. For example, if neither
|
|
8061
|
+
dnl `shared' nor `disable-shared' was passed, we enable building of shared
|
|
8062
|
+
dnl archives by default:
|
|
8063
|
+
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
|
|
8064
|
+
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
|
|
8065
|
+
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
|
|
8066
|
+
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
|
|
8067
|
+
[_LT_ENABLE_FAST_INSTALL])
|
|
8068
|
+
])
|
|
8069
|
+
])# _LT_SET_OPTIONS
|
|
8070
|
+
|
|
8071
|
+
|
|
8072
|
+
|
|
8073
|
+
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
|
|
8074
|
+
# -----------------------------------------
|
|
8075
|
+
m4_define([_LT_MANGLE_DEFUN],
|
|
8076
|
+
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
|
|
8077
|
+
|
|
8078
|
+
|
|
8079
|
+
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
|
|
8080
|
+
# -----------------------------------------------
|
|
8081
|
+
m4_define([LT_OPTION_DEFINE],
|
|
8082
|
+
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
|
|
8083
|
+
])# LT_OPTION_DEFINE
|
|
8084
|
+
|
|
8085
|
+
|
|
8086
|
+
# dlopen
|
|
8087
|
+
# ------
|
|
8088
|
+
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
|
|
8089
|
+
])
|
|
8090
|
+
|
|
8091
|
+
AU_DEFUN([AC_LIBTOOL_DLOPEN],
|
|
8092
|
+
[_LT_SET_OPTION([LT_INIT], [dlopen])
|
|
8093
|
+
AC_DIAGNOSE([obsolete],
|
|
8094
|
+
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
|
8095
|
+
put the `dlopen' option into LT_INIT's first parameter.])
|
|
8096
|
+
])
|
|
8097
|
+
|
|
8098
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
8099
|
+
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
|
|
8100
|
+
|
|
8101
|
+
|
|
8102
|
+
# win32-dll
|
|
8103
|
+
# ---------
|
|
8104
|
+
# Declare package support for building win32 dll's.
|
|
8105
|
+
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
|
8106
|
+
[enable_win32_dll=yes
|
|
8107
|
+
|
|
8108
|
+
case $host in
|
|
8109
|
+
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
|
8110
|
+
AC_CHECK_TOOL(AS, as, false)
|
|
8111
|
+
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
|
8112
|
+
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
|
8113
|
+
;;
|
|
8114
|
+
esac
|
|
8115
|
+
|
|
8116
|
+
test -z "$AS" && AS=as
|
|
8117
|
+
_LT_DECL([], [AS], [1], [Assembler program])dnl
|
|
8118
|
+
|
|
8119
|
+
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
|
8120
|
+
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
|
|
8121
|
+
|
|
8122
|
+
test -z "$OBJDUMP" && OBJDUMP=objdump
|
|
8123
|
+
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
|
|
8124
|
+
])# win32-dll
|
|
8125
|
+
|
|
8126
|
+
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
|
8127
|
+
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
8128
|
+
_LT_SET_OPTION([LT_INIT], [win32-dll])
|
|
8129
|
+
AC_DIAGNOSE([obsolete],
|
|
8130
|
+
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
|
8131
|
+
put the `win32-dll' option into LT_INIT's first parameter.])
|
|
8132
|
+
])
|
|
8133
|
+
|
|
8134
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
8135
|
+
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
|
|
8136
|
+
|
|
8137
|
+
|
|
8138
|
+
# _LT_ENABLE_SHARED([DEFAULT])
|
|
8139
|
+
# ----------------------------
|
|
8140
|
+
# implement the --enable-shared flag, and supports the `shared' and
|
|
8141
|
+
# `disable-shared' LT_INIT options.
|
|
8142
|
+
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|
8143
|
+
m4_define([_LT_ENABLE_SHARED],
|
|
8144
|
+
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
|
8145
|
+
AC_ARG_ENABLE([shared],
|
|
8146
|
+
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
|
8147
|
+
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
|
|
8148
|
+
[p=${PACKAGE-default}
|
|
8149
|
+
case $enableval in
|
|
8150
|
+
yes) enable_shared=yes ;;
|
|
8151
|
+
no) enable_shared=no ;;
|
|
8152
|
+
*)
|
|
8153
|
+
enable_shared=no
|
|
8154
|
+
# Look at the argument we got. We use all the common list separators.
|
|
8155
|
+
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
8156
|
+
for pkg in $enableval; do
|
|
8157
|
+
IFS="$lt_save_ifs"
|
|
8158
|
+
if test "X$pkg" = "X$p"; then
|
|
8159
|
+
enable_shared=yes
|
|
8160
|
+
fi
|
|
8161
|
+
done
|
|
8162
|
+
IFS="$lt_save_ifs"
|
|
8163
|
+
;;
|
|
8164
|
+
esac],
|
|
8165
|
+
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
|
|
8166
|
+
|
|
8167
|
+
_LT_DECL([build_libtool_libs], [enable_shared], [0],
|
|
8168
|
+
[Whether or not to build shared libraries])
|
|
8169
|
+
])# _LT_ENABLE_SHARED
|
|
8170
|
+
|
|
8171
|
+
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
|
|
8172
|
+
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
|
|
8173
|
+
|
|
8174
|
+
# Old names:
|
|
8175
|
+
AC_DEFUN([AC_ENABLE_SHARED],
|
|
8176
|
+
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
|
|
8177
|
+
])
|
|
8178
|
+
|
|
8179
|
+
AC_DEFUN([AC_DISABLE_SHARED],
|
|
8180
|
+
[_LT_SET_OPTION([LT_INIT], [disable-shared])
|
|
8181
|
+
])
|
|
8182
|
+
|
|
8183
|
+
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
|
8184
|
+
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
|
8185
|
+
|
|
8186
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
8187
|
+
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
|
|
8188
|
+
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
|
|
8189
|
+
|
|
8190
|
+
|
|
8191
|
+
|
|
8192
|
+
# _LT_ENABLE_STATIC([DEFAULT])
|
|
8193
|
+
# ----------------------------
|
|
8194
|
+
# implement the --enable-static flag, and support the `static' and
|
|
8195
|
+
# `disable-static' LT_INIT options.
|
|
8196
|
+
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|
8197
|
+
m4_define([_LT_ENABLE_STATIC],
|
|
8198
|
+
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
|
8199
|
+
AC_ARG_ENABLE([static],
|
|
8200
|
+
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
|
8201
|
+
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
|
|
8202
|
+
[p=${PACKAGE-default}
|
|
8203
|
+
case $enableval in
|
|
8204
|
+
yes) enable_static=yes ;;
|
|
8205
|
+
no) enable_static=no ;;
|
|
8206
|
+
*)
|
|
8207
|
+
enable_static=no
|
|
8208
|
+
# Look at the argument we got. We use all the common list separators.
|
|
8209
|
+
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
8210
|
+
for pkg in $enableval; do
|
|
8211
|
+
IFS="$lt_save_ifs"
|
|
8212
|
+
if test "X$pkg" = "X$p"; then
|
|
8213
|
+
enable_static=yes
|
|
8214
|
+
fi
|
|
8215
|
+
done
|
|
8216
|
+
IFS="$lt_save_ifs"
|
|
8217
|
+
;;
|
|
8218
|
+
esac],
|
|
8219
|
+
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
|
|
8220
|
+
|
|
8221
|
+
_LT_DECL([build_old_libs], [enable_static], [0],
|
|
8222
|
+
[Whether or not to build static libraries])
|
|
8223
|
+
])# _LT_ENABLE_STATIC
|
|
8224
|
+
|
|
8225
|
+
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
|
|
8226
|
+
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
|
|
8227
|
+
|
|
8228
|
+
# Old names:
|
|
8229
|
+
AC_DEFUN([AC_ENABLE_STATIC],
|
|
8230
|
+
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
|
|
8231
|
+
])
|
|
8232
|
+
|
|
8233
|
+
AC_DEFUN([AC_DISABLE_STATIC],
|
|
8234
|
+
[_LT_SET_OPTION([LT_INIT], [disable-static])
|
|
8235
|
+
])
|
|
8236
|
+
|
|
8237
|
+
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
|
8238
|
+
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
|
8239
|
+
|
|
8240
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
8241
|
+
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
|
|
8242
|
+
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
|
|
8243
|
+
|
|
8244
|
+
|
|
8245
|
+
|
|
8246
|
+
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
|
|
8247
|
+
# ----------------------------------
|
|
8248
|
+
# implement the --enable-fast-install flag, and support the `fast-install'
|
|
8249
|
+
# and `disable-fast-install' LT_INIT options.
|
|
8250
|
+
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
|
8251
|
+
m4_define([_LT_ENABLE_FAST_INSTALL],
|
|
8252
|
+
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
|
8253
|
+
AC_ARG_ENABLE([fast-install],
|
|
8254
|
+
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
|
8255
|
+
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
|
8256
|
+
[p=${PACKAGE-default}
|
|
8257
|
+
case $enableval in
|
|
8258
|
+
yes) enable_fast_install=yes ;;
|
|
8259
|
+
no) enable_fast_install=no ;;
|
|
8260
|
+
*)
|
|
8261
|
+
enable_fast_install=no
|
|
8262
|
+
# Look at the argument we got. We use all the common list separators.
|
|
8263
|
+
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
8264
|
+
for pkg in $enableval; do
|
|
8265
|
+
IFS="$lt_save_ifs"
|
|
8266
|
+
if test "X$pkg" = "X$p"; then
|
|
8267
|
+
enable_fast_install=yes
|
|
8268
|
+
fi
|
|
8269
|
+
done
|
|
8270
|
+
IFS="$lt_save_ifs"
|
|
8271
|
+
;;
|
|
8272
|
+
esac],
|
|
8273
|
+
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
|
|
8274
|
+
|
|
8275
|
+
_LT_DECL([fast_install], [enable_fast_install], [0],
|
|
8276
|
+
[Whether or not to optimize for fast installation])dnl
|
|
8277
|
+
])# _LT_ENABLE_FAST_INSTALL
|
|
8278
|
+
|
|
8279
|
+
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
|
8280
|
+
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
|
8281
|
+
|
|
8282
|
+
# Old names:
|
|
8283
|
+
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
|
|
8284
|
+
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
|
|
8285
|
+
AC_DIAGNOSE([obsolete],
|
|
8286
|
+
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
|
8287
|
+
the `fast-install' option into LT_INIT's first parameter.])
|
|
8288
|
+
])
|
|
8289
|
+
|
|
8290
|
+
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
|
|
8291
|
+
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
|
|
8292
|
+
AC_DIAGNOSE([obsolete],
|
|
8293
|
+
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
|
8294
|
+
the `disable-fast-install' option into LT_INIT's first parameter.])
|
|
8295
|
+
])
|
|
8296
|
+
|
|
8297
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
8298
|
+
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
|
|
8299
|
+
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
|
8300
|
+
|
|
8301
|
+
|
|
8302
|
+
# _LT_WITH_PIC([MODE])
|
|
8303
|
+
# --------------------
|
|
8304
|
+
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
|
|
8305
|
+
# LT_INIT options.
|
|
8306
|
+
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
|
8307
|
+
m4_define([_LT_WITH_PIC],
|
|
8308
|
+
[AC_ARG_WITH([pic],
|
|
8309
|
+
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
|
|
8310
|
+
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
|
8311
|
+
[lt_p=${PACKAGE-default}
|
|
8312
|
+
case $withval in
|
|
8313
|
+
yes|no) pic_mode=$withval ;;
|
|
8314
|
+
*)
|
|
8315
|
+
pic_mode=default
|
|
8316
|
+
# Look at the argument we got. We use all the common list separators.
|
|
8317
|
+
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
8318
|
+
for lt_pkg in $withval; do
|
|
8319
|
+
IFS="$lt_save_ifs"
|
|
8320
|
+
if test "X$lt_pkg" = "X$lt_p"; then
|
|
8321
|
+
pic_mode=yes
|
|
8322
|
+
fi
|
|
8323
|
+
done
|
|
8324
|
+
IFS="$lt_save_ifs"
|
|
8325
|
+
;;
|
|
8326
|
+
esac],
|
|
8327
|
+
[pic_mode=default])
|
|
8328
|
+
|
|
8329
|
+
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
|
8330
|
+
|
|
8331
|
+
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
|
|
8332
|
+
])# _LT_WITH_PIC
|
|
8333
|
+
|
|
8334
|
+
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
|
|
8335
|
+
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
|
|
8336
|
+
|
|
8337
|
+
# Old name:
|
|
8338
|
+
AU_DEFUN([AC_LIBTOOL_PICMODE],
|
|
8339
|
+
[_LT_SET_OPTION([LT_INIT], [pic-only])
|
|
8340
|
+
AC_DIAGNOSE([obsolete],
|
|
8341
|
+
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
|
8342
|
+
put the `pic-only' option into LT_INIT's first parameter.])
|
|
8343
|
+
])
|
|
8344
|
+
|
|
8345
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
8346
|
+
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
|
|
8347
|
+
|
|
8348
|
+
|
|
8349
|
+
m4_define([_LTDL_MODE], [])
|
|
8350
|
+
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
|
|
8351
|
+
[m4_define([_LTDL_MODE], [nonrecursive])])
|
|
8352
|
+
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
|
|
8353
|
+
[m4_define([_LTDL_MODE], [recursive])])
|
|
8354
|
+
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
|
|
8355
|
+
[m4_define([_LTDL_MODE], [subproject])])
|
|
8356
|
+
|
|
8357
|
+
m4_define([_LTDL_TYPE], [])
|
|
8358
|
+
LT_OPTION_DEFINE([LTDL_INIT], [installable],
|
|
8359
|
+
[m4_define([_LTDL_TYPE], [installable])])
|
|
8360
|
+
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
|
|
8361
|
+
[m4_define([_LTDL_TYPE], [convenience])])
|
|
8362
|
+
|
|
8363
|
+
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
|
8364
|
+
#
|
|
8365
|
+
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
|
8366
|
+
# Written by Gary V. Vaughan, 2004
|
|
8367
|
+
#
|
|
8368
|
+
# This file is free software; the Free Software Foundation gives
|
|
8369
|
+
# unlimited permission to copy and/or distribute it, with or without
|
|
8370
|
+
# modifications, as long as this notice is preserved.
|
|
8371
|
+
|
|
8372
|
+
# serial 6 ltsugar.m4
|
|
8373
|
+
|
|
8374
|
+
# This is to help aclocal find these macros, as it can't see m4_define.
|
|
8375
|
+
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
|
8376
|
+
|
|
8377
|
+
|
|
8378
|
+
# lt_join(SEP, ARG1, [ARG2...])
|
|
8379
|
+
# -----------------------------
|
|
8380
|
+
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
|
|
8381
|
+
# associated separator.
|
|
8382
|
+
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
|
|
8383
|
+
# versions in m4sugar had bugs.
|
|
8384
|
+
m4_define([lt_join],
|
|
8385
|
+
[m4_if([$#], [1], [],
|
|
8386
|
+
[$#], [2], [[$2]],
|
|
8387
|
+
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
|
|
8388
|
+
m4_define([_lt_join],
|
|
8389
|
+
[m4_if([$#$2], [2], [],
|
|
8390
|
+
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
|
|
8391
|
+
|
|
8392
|
+
|
|
8393
|
+
# lt_car(LIST)
|
|
8394
|
+
# lt_cdr(LIST)
|
|
8395
|
+
# ------------
|
|
8396
|
+
# Manipulate m4 lists.
|
|
8397
|
+
# These macros are necessary as long as will still need to support
|
|
8398
|
+
# Autoconf-2.59 which quotes differently.
|
|
8399
|
+
m4_define([lt_car], [[$1]])
|
|
8400
|
+
m4_define([lt_cdr],
|
|
8401
|
+
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
|
|
8402
|
+
[$#], 1, [],
|
|
8403
|
+
[m4_dquote(m4_shift($@))])])
|
|
8404
|
+
m4_define([lt_unquote], $1)
|
|
8405
|
+
|
|
8406
|
+
|
|
8407
|
+
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
|
|
8408
|
+
# ------------------------------------------
|
|
8409
|
+
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
|
|
8410
|
+
# Note that neither SEPARATOR nor STRING are expanded; they are appended
|
|
8411
|
+
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
|
|
8412
|
+
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
|
|
8413
|
+
# than defined and empty).
|
|
8414
|
+
#
|
|
8415
|
+
# This macro is needed until we can rely on Autoconf 2.62, since earlier
|
|
8416
|
+
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
|
|
8417
|
+
m4_define([lt_append],
|
|
8418
|
+
[m4_define([$1],
|
|
8419
|
+
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
|
8420
|
+
|
|
8421
|
+
|
|
8422
|
+
|
|
8423
|
+
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
|
|
8424
|
+
# ----------------------------------------------------------
|
|
8425
|
+
# Produce a SEP delimited list of all paired combinations of elements of
|
|
8426
|
+
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
|
8427
|
+
# has the form PREFIXmINFIXSUFFIXn.
|
|
8428
|
+
# Needed until we can rely on m4_combine added in Autoconf 2.62.
|
|
8429
|
+
m4_define([lt_combine],
|
|
8430
|
+
[m4_if(m4_eval([$# > 3]), [1],
|
|
8431
|
+
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
|
|
8432
|
+
[[m4_foreach([_Lt_prefix], [$2],
|
|
8433
|
+
[m4_foreach([_Lt_suffix],
|
|
8434
|
+
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
|
|
8435
|
+
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
|
|
8436
|
+
|
|
8437
|
+
|
|
8438
|
+
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
|
|
8439
|
+
# -----------------------------------------------------------------------
|
|
8440
|
+
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
|
|
8441
|
+
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
|
|
8442
|
+
m4_define([lt_if_append_uniq],
|
|
8443
|
+
[m4_ifdef([$1],
|
|
8444
|
+
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
|
|
8445
|
+
[lt_append([$1], [$2], [$3])$4],
|
|
8446
|
+
[$5])],
|
|
8447
|
+
[lt_append([$1], [$2], [$3])$4])])
|
|
8448
|
+
|
|
8449
|
+
|
|
8450
|
+
# lt_dict_add(DICT, KEY, VALUE)
|
|
8451
|
+
# -----------------------------
|
|
8452
|
+
m4_define([lt_dict_add],
|
|
8453
|
+
[m4_define([$1($2)], [$3])])
|
|
8454
|
+
|
|
8455
|
+
|
|
8456
|
+
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
|
|
8457
|
+
# --------------------------------------------
|
|
8458
|
+
m4_define([lt_dict_add_subkey],
|
|
8459
|
+
[m4_define([$1($2:$3)], [$4])])
|
|
8460
|
+
|
|
8461
|
+
|
|
8462
|
+
# lt_dict_fetch(DICT, KEY, [SUBKEY])
|
|
8463
|
+
# ----------------------------------
|
|
8464
|
+
m4_define([lt_dict_fetch],
|
|
8465
|
+
[m4_ifval([$3],
|
|
8466
|
+
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
|
|
8467
|
+
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
|
|
8468
|
+
|
|
8469
|
+
|
|
8470
|
+
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
|
|
8471
|
+
# -----------------------------------------------------------------
|
|
8472
|
+
m4_define([lt_if_dict_fetch],
|
|
8473
|
+
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
|
|
8474
|
+
[$5],
|
|
8475
|
+
[$6])])
|
|
8476
|
+
|
|
8477
|
+
|
|
8478
|
+
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
|
|
8479
|
+
# --------------------------------------------------------------
|
|
8480
|
+
m4_define([lt_dict_filter],
|
|
8481
|
+
[m4_if([$5], [], [],
|
|
8482
|
+
[lt_join(m4_quote(m4_default([$4], [[, ]])),
|
|
8483
|
+
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
|
|
8484
|
+
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
|
|
8485
|
+
])
|
|
8486
|
+
|
|
8487
|
+
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
|
8488
|
+
#
|
|
8489
|
+
# Copyright (C) 2004 Free Software Foundation, Inc.
|
|
8490
|
+
# Written by Scott James Remnant, 2004
|
|
8491
|
+
#
|
|
8492
|
+
# This file is free software; the Free Software Foundation gives
|
|
8493
|
+
# unlimited permission to copy and/or distribute it, with or without
|
|
8494
|
+
# modifications, as long as this notice is preserved.
|
|
8495
|
+
|
|
8496
|
+
# @configure_input@
|
|
8497
|
+
|
|
8498
|
+
# serial 3337 ltversion.m4
|
|
8499
|
+
# This file is part of GNU Libtool
|
|
8500
|
+
|
|
8501
|
+
m4_define([LT_PACKAGE_VERSION], [2.4.2])
|
|
8502
|
+
m4_define([LT_PACKAGE_REVISION], [1.3337])
|
|
8503
|
+
|
|
8504
|
+
AC_DEFUN([LTVERSION_VERSION],
|
|
8505
|
+
[macro_version='2.4.2'
|
|
8506
|
+
macro_revision='1.3337'
|
|
8507
|
+
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
|
8508
|
+
_LT_DECL(, macro_revision, 0)
|
|
8509
|
+
])
|
|
8510
|
+
|
|
8511
|
+
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
|
8512
|
+
#
|
|
8513
|
+
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
|
|
8514
|
+
# Written by Scott James Remnant, 2004.
|
|
8515
|
+
#
|
|
8516
|
+
# This file is free software; the Free Software Foundation gives
|
|
8517
|
+
# unlimited permission to copy and/or distribute it, with or without
|
|
8518
|
+
# modifications, as long as this notice is preserved.
|
|
8519
|
+
|
|
8520
|
+
# serial 5 lt~obsolete.m4
|
|
8521
|
+
|
|
8522
|
+
# These exist entirely to fool aclocal when bootstrapping libtool.
|
|
8523
|
+
#
|
|
8524
|
+
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
|
|
8525
|
+
# which have later been changed to m4_define as they aren't part of the
|
|
8526
|
+
# exported API, or moved to Autoconf or Automake where they belong.
|
|
8527
|
+
#
|
|
8528
|
+
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
|
8529
|
+
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
|
8530
|
+
# using a macro with the same name in our local m4/libtool.m4 it'll
|
|
8531
|
+
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
|
8532
|
+
# and doesn't know about Autoconf macros at all.)
|
|
8533
|
+
#
|
|
8534
|
+
# So we provide this file, which has a silly filename so it's always
|
|
8535
|
+
# included after everything else. This provides aclocal with the
|
|
8536
|
+
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
|
8537
|
+
# because those macros already exist, or will be overwritten later.
|
|
8538
|
+
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
|
8539
|
+
#
|
|
8540
|
+
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
|
8541
|
+
# Yes, that means every name once taken will need to remain here until
|
|
8542
|
+
# we give up compatibility with versions before 1.7, at which point
|
|
8543
|
+
# we need to keep only those names which we still refer to.
|
|
8544
|
+
|
|
8545
|
+
# This is to help aclocal find these macros, as it can't see m4_define.
|
|
8546
|
+
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
|
8547
|
+
|
|
8548
|
+
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
|
8549
|
+
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
|
8550
|
+
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
|
8551
|
+
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
|
8552
|
+
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
|
8553
|
+
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
|
8554
|
+
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
|
8555
|
+
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
|
8556
|
+
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
|
8557
|
+
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
|
8558
|
+
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
|
8559
|
+
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
|
8560
|
+
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
|
8561
|
+
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
|
8562
|
+
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
|
8563
|
+
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
|
8564
|
+
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
|
8565
|
+
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
|
8566
|
+
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
|
8567
|
+
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
|
8568
|
+
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
|
8569
|
+
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
|
8570
|
+
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
|
8571
|
+
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
|
8572
|
+
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
|
8573
|
+
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
|
8574
|
+
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
|
8575
|
+
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
|
8576
|
+
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
|
8577
|
+
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
|
8578
|
+
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
|
8579
|
+
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
|
8580
|
+
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
|
8581
|
+
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
|
8582
|
+
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
|
8583
|
+
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
|
8584
|
+
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
|
8585
|
+
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
|
8586
|
+
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
|
8587
|
+
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
|
8588
|
+
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
|
8589
|
+
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
|
8590
|
+
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
|
8591
|
+
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
|
8592
|
+
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
|
8593
|
+
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
|
8594
|
+
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
|
8595
|
+
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
|
8596
|
+
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
|
8597
|
+
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
|
8598
|
+
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
|
8599
|
+
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
|
8600
|
+
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
|
8601
|
+
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
|
8602
|
+
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
|
|
8603
|
+
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
|
|
8604
|
+
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
|
|
8605
|
+
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
|
|
8606
|
+
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
|
8607
|
+
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
|
8608
|
+
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
|
8609
|
+
|
|
8610
|
+
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
|
|
8611
|
+
# Foundation, Inc.
|
|
8612
|
+
#
|
|
8613
|
+
# This file is free software; the Free Software Foundation
|
|
8614
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
8615
|
+
# with or without modifications, as long as this notice is preserved.
|
|
8616
|
+
|
|
8617
|
+
# serial 1
|
|
8618
|
+
|
|
8619
|
+
# AM_AUTOMAKE_VERSION(VERSION)
|
|
8620
|
+
# ----------------------------
|
|
8621
|
+
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|
8622
|
+
# generated from the m4 files accompanying Automake X.Y.
|
|
8623
|
+
# (This private macro should not be called outside this file.)
|
|
8624
|
+
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
8625
|
+
[am__api_version='1.11'
|
|
8626
|
+
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
8627
|
+
dnl require some minimum version. Point them to the right macro.
|
|
8628
|
+
m4_if([$1], [1.11.5], [],
|
|
8629
|
+
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
8630
|
+
])
|
|
8631
|
+
|
|
8632
|
+
# _AM_AUTOCONF_VERSION(VERSION)
|
|
8633
|
+
# -----------------------------
|
|
8634
|
+
# aclocal traces this macro to find the Autoconf version.
|
|
8635
|
+
# This is a private macro too. Using m4_define simplifies
|
|
8636
|
+
# the logic in aclocal, which can simply ignore this definition.
|
|
8637
|
+
m4_define([_AM_AUTOCONF_VERSION], [])
|
|
8638
|
+
|
|
8639
|
+
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
|
8640
|
+
# -------------------------------
|
|
8641
|
+
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
8642
|
+
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
8643
|
+
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
8644
|
+
[AM_AUTOMAKE_VERSION([1.11.5])dnl
|
|
8645
|
+
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
8646
|
+
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
8647
|
+
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
8648
|
+
|
|
8649
|
+
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
8650
|
+
|
|
8651
|
+
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
|
|
8652
|
+
#
|
|
8653
|
+
# This file is free software; the Free Software Foundation
|
|
8654
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
8655
|
+
# with or without modifications, as long as this notice is preserved.
|
|
8656
|
+
|
|
8657
|
+
# serial 1
|
|
8658
|
+
|
|
8659
|
+
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
8660
|
+
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
|
8661
|
+
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
|
8662
|
+
#
|
|
8663
|
+
# Of course, Automake must honor this variable whenever it calls a
|
|
8664
|
+
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
8665
|
+
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
8666
|
+
# depending on how configure is run. This is pretty annoying, since
|
|
8667
|
+
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
8668
|
+
# source directory, any form will work fine, but in subdirectories a
|
|
8669
|
+
# relative path needs to be adjusted first.
|
|
8670
|
+
#
|
|
8671
|
+
# $ac_aux_dir/missing
|
|
8672
|
+
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
8673
|
+
# $top_srcdir/$ac_aux_dir/missing
|
|
8674
|
+
# fails if $ac_aux_dir is absolute,
|
|
8675
|
+
# fails when called from a subdirectory in a VPATH build with
|
|
8676
|
+
# a relative $ac_aux_dir
|
|
8677
|
+
#
|
|
8678
|
+
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
8679
|
+
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
8680
|
+
# harmless because $srcdir is `.', but things will broke when you
|
|
8681
|
+
# start a VPATH build or use an absolute $srcdir.
|
|
8682
|
+
#
|
|
8683
|
+
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
8684
|
+
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
8685
|
+
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
8686
|
+
# and then we would define $MISSING as
|
|
8687
|
+
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
8688
|
+
# This will work as long as MISSING is not called from configure, because
|
|
8689
|
+
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
8690
|
+
# However there are other variables, like CC, which are often used in
|
|
8691
|
+
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
8692
|
+
#
|
|
8693
|
+
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
8694
|
+
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
8695
|
+
# configured tree to be moved without reconfiguration.
|
|
8696
|
+
|
|
8697
|
+
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
8698
|
+
[dnl Rely on autoconf to set up CDPATH properly.
|
|
8699
|
+
AC_PREREQ([2.50])dnl
|
|
8700
|
+
# expand $ac_aux_dir to an absolute path
|
|
8701
|
+
am_aux_dir=`cd $ac_aux_dir && pwd`
|
|
8702
|
+
])
|
|
8703
|
+
|
|
8704
|
+
# AM_CONDITIONAL -*- Autoconf -*-
|
|
8705
|
+
|
|
8706
|
+
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
|
|
8707
|
+
# Free Software Foundation, Inc.
|
|
8708
|
+
#
|
|
8709
|
+
# This file is free software; the Free Software Foundation
|
|
8710
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
8711
|
+
# with or without modifications, as long as this notice is preserved.
|
|
8712
|
+
|
|
8713
|
+
# serial 9
|
|
8714
|
+
|
|
8715
|
+
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
8716
|
+
# -------------------------------------
|
|
8717
|
+
# Define a conditional.
|
|
8718
|
+
AC_DEFUN([AM_CONDITIONAL],
|
|
8719
|
+
[AC_PREREQ(2.52)dnl
|
|
8720
|
+
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
8721
|
+
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
8722
|
+
AC_SUBST([$1_TRUE])dnl
|
|
8723
|
+
AC_SUBST([$1_FALSE])dnl
|
|
8724
|
+
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
8725
|
+
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
8726
|
+
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
|
8727
|
+
if $2; then
|
|
8728
|
+
$1_TRUE=
|
|
8729
|
+
$1_FALSE='#'
|
|
8730
|
+
else
|
|
8731
|
+
$1_TRUE='#'
|
|
8732
|
+
$1_FALSE=
|
|
8733
|
+
fi
|
|
8734
|
+
AC_CONFIG_COMMANDS_PRE(
|
|
8735
|
+
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|
8736
|
+
AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
8737
|
+
Usually this means the macro was only invoked conditionally.]])
|
|
8738
|
+
fi])])
|
|
8739
|
+
|
|
8740
|
+
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
|
|
8741
|
+
# 2010, 2011 Free Software Foundation, Inc.
|
|
8742
|
+
#
|
|
8743
|
+
# This file is free software; the Free Software Foundation
|
|
8744
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
8745
|
+
# with or without modifications, as long as this notice is preserved.
|
|
8746
|
+
|
|
8747
|
+
# serial 12
|
|
8748
|
+
|
|
8749
|
+
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
|
8750
|
+
# written in clear, in which case automake, when reading aclocal.m4,
|
|
8751
|
+
# will think it sees a *use*, and therefore will trigger all it's
|
|
8752
|
+
# C support machinery. Also note that it means that autoscan, seeing
|
|
8753
|
+
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|
8754
|
+
|
|
8755
|
+
|
|
8756
|
+
# _AM_DEPENDENCIES(NAME)
|
|
8757
|
+
# ----------------------
|
|
8758
|
+
# See how the compiler implements dependency checking.
|
|
8759
|
+
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
|
8760
|
+
# We try a few techniques and use that to set a single cache variable.
|
|
8761
|
+
#
|
|
8762
|
+
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
|
8763
|
+
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
|
8764
|
+
# dependency, and given that the user is not expected to run this macro,
|
|
8765
|
+
# just rely on AC_PROG_CC.
|
|
8766
|
+
AC_DEFUN([_AM_DEPENDENCIES],
|
|
8767
|
+
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|
8768
|
+
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
|
8769
|
+
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
|
8770
|
+
AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
8771
|
+
|
|
8772
|
+
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
|
8773
|
+
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
|
8774
|
+
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
|
8775
|
+
[$1], UPC, [depcc="$UPC" am_compiler_list=],
|
|
8776
|
+
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
|
8777
|
+
[depcc="$$1" am_compiler_list=])
|
|
8778
|
+
|
|
8779
|
+
AC_CACHE_CHECK([dependency style of $depcc],
|
|
8780
|
+
[am_cv_$1_dependencies_compiler_type],
|
|
8781
|
+
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
8782
|
+
# We make a subdir and do the tests there. Otherwise we can end up
|
|
8783
|
+
# making bogus files that we don't know about and never remove. For
|
|
8784
|
+
# instance it was reported that on HP-UX the gcc test will end up
|
|
8785
|
+
# making a dummy file named `D' -- because `-MD' means `put the output
|
|
8786
|
+
# in D'.
|
|
8787
|
+
rm -rf conftest.dir
|
|
8788
|
+
mkdir conftest.dir
|
|
8789
|
+
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
8790
|
+
# using a relative directory.
|
|
8791
|
+
cp "$am_depcomp" conftest.dir
|
|
8792
|
+
cd conftest.dir
|
|
8793
|
+
# We will build objects and dependencies in a subdirectory because
|
|
8794
|
+
# it helps to detect inapplicable dependency modes. For instance
|
|
8795
|
+
# both Tru64's cc and ICC support -MD to output dependencies as a
|
|
8796
|
+
# side effect of compilation, but ICC will put the dependencies in
|
|
8797
|
+
# the current directory while Tru64 will put them in the object
|
|
8798
|
+
# directory.
|
|
8799
|
+
mkdir sub
|
|
8800
|
+
|
|
8801
|
+
am_cv_$1_dependencies_compiler_type=none
|
|
8802
|
+
if test "$am_compiler_list" = ""; then
|
|
8803
|
+
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
|
8804
|
+
fi
|
|
8805
|
+
am__universal=false
|
|
8806
|
+
m4_case([$1], [CC],
|
|
8807
|
+
[case " $depcc " in #(
|
|
8808
|
+
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
8809
|
+
esac],
|
|
8810
|
+
[CXX],
|
|
8811
|
+
[case " $depcc " in #(
|
|
8812
|
+
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
8813
|
+
esac])
|
|
8814
|
+
|
|
8815
|
+
for depmode in $am_compiler_list; do
|
|
8816
|
+
# Setup a source with many dependencies, because some compilers
|
|
8817
|
+
# like to wrap large dependency lists on column 80 (with \), and
|
|
8818
|
+
# we should not choose a depcomp mode which is confused by this.
|
|
8819
|
+
#
|
|
8820
|
+
# We need to recreate these files for each test, as the compiler may
|
|
8821
|
+
# overwrite some of them when testing with obscure command lines.
|
|
8822
|
+
# This happens at least with the AIX C compiler.
|
|
8823
|
+
: > sub/conftest.c
|
|
8824
|
+
for i in 1 2 3 4 5 6; do
|
|
8825
|
+
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|
8826
|
+
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
|
8827
|
+
# Solaris 8's {/usr,}/bin/sh.
|
|
8828
|
+
touch sub/conftst$i.h
|
|
8829
|
+
done
|
|
8830
|
+
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
8831
|
+
|
|
8832
|
+
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
|
8833
|
+
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
8834
|
+
# handle `-M -o', and we need to detect this. Also, some Intel
|
|
8835
|
+
# versions had trouble with output in subdirs
|
|
8836
|
+
am__obj=sub/conftest.${OBJEXT-o}
|
|
8837
|
+
am__minus_obj="-o $am__obj"
|
|
8838
|
+
case $depmode in
|
|
8839
|
+
gcc)
|
|
8840
|
+
# This depmode causes a compiler race in universal mode.
|
|
8841
|
+
test "$am__universal" = false || continue
|
|
8842
|
+
;;
|
|
8843
|
+
nosideeffect)
|
|
8844
|
+
# after this tag, mechanisms are not by side-effect, so they'll
|
|
8845
|
+
# only be used when explicitly requested
|
|
8846
|
+
if test "x$enable_dependency_tracking" = xyes; then
|
|
8847
|
+
continue
|
|
8848
|
+
else
|
|
8849
|
+
break
|
|
8850
|
+
fi
|
|
8851
|
+
;;
|
|
8852
|
+
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
|
8853
|
+
# This compiler won't grok `-c -o', but also, the minuso test has
|
|
8854
|
+
# not run yet. These depmodes are late enough in the game, and
|
|
8855
|
+
# so weak that their functioning should not be impacted.
|
|
8856
|
+
am__obj=conftest.${OBJEXT-o}
|
|
8857
|
+
am__minus_obj=
|
|
8858
|
+
;;
|
|
8859
|
+
none) break ;;
|
|
8860
|
+
esac
|
|
8861
|
+
if depmode=$depmode \
|
|
8862
|
+
source=sub/conftest.c object=$am__obj \
|
|
8863
|
+
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
8864
|
+
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
|
8865
|
+
>/dev/null 2>conftest.err &&
|
|
8866
|
+
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
8867
|
+
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
8868
|
+
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
|
8869
|
+
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
8870
|
+
# icc doesn't choke on unknown options, it will just issue warnings
|
|
8871
|
+
# or remarks (even with -Werror). So we grep stderr for any message
|
|
8872
|
+
# that says an option was ignored or not supported.
|
|
8873
|
+
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
|
8874
|
+
# icc: Command line warning: ignoring option '-M'; no argument required
|
|
8875
|
+
# The diagnosis changed in icc 8.0:
|
|
8876
|
+
# icc: Command line remark: option '-MP' not supported
|
|
8877
|
+
if (grep 'ignoring option' conftest.err ||
|
|
8878
|
+
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|
8879
|
+
am_cv_$1_dependencies_compiler_type=$depmode
|
|
8880
|
+
break
|
|
8881
|
+
fi
|
|
8882
|
+
fi
|
|
8883
|
+
done
|
|
8884
|
+
|
|
8885
|
+
cd ..
|
|
8886
|
+
rm -rf conftest.dir
|
|
8887
|
+
else
|
|
8888
|
+
am_cv_$1_dependencies_compiler_type=none
|
|
8889
|
+
fi
|
|
8890
|
+
])
|
|
8891
|
+
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
|
8892
|
+
AM_CONDITIONAL([am__fastdep$1], [
|
|
8893
|
+
test "x$enable_dependency_tracking" != xno \
|
|
8894
|
+
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
|
8895
|
+
])
|
|
8896
|
+
|
|
8897
|
+
|
|
8898
|
+
# AM_SET_DEPDIR
|
|
8899
|
+
# -------------
|
|
8900
|
+
# Choose a directory name for dependency files.
|
|
8901
|
+
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
|
8902
|
+
AC_DEFUN([AM_SET_DEPDIR],
|
|
8903
|
+
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
8904
|
+
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
|
8905
|
+
])
|
|
8906
|
+
|
|
8907
|
+
|
|
8908
|
+
# AM_DEP_TRACK
|
|
8909
|
+
# ------------
|
|
8910
|
+
AC_DEFUN([AM_DEP_TRACK],
|
|
8911
|
+
[AC_ARG_ENABLE(dependency-tracking,
|
|
8912
|
+
[ --disable-dependency-tracking speeds up one-time build
|
|
8913
|
+
--enable-dependency-tracking do not reject slow dependency extractors])
|
|
8914
|
+
if test "x$enable_dependency_tracking" != xno; then
|
|
8915
|
+
am_depcomp="$ac_aux_dir/depcomp"
|
|
8916
|
+
AMDEPBACKSLASH='\'
|
|
8917
|
+
am__nodep='_no'
|
|
8918
|
+
fi
|
|
8919
|
+
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
|
8920
|
+
AC_SUBST([AMDEPBACKSLASH])dnl
|
|
8921
|
+
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
|
8922
|
+
AC_SUBST([am__nodep])dnl
|
|
8923
|
+
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
|
8924
|
+
])
|
|
8925
|
+
|
|
8926
|
+
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
|
8927
|
+
|
|
8928
|
+
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
|
|
8929
|
+
# Free Software Foundation, Inc.
|
|
8930
|
+
#
|
|
8931
|
+
# This file is free software; the Free Software Foundation
|
|
8932
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
8933
|
+
# with or without modifications, as long as this notice is preserved.
|
|
8934
|
+
|
|
8935
|
+
#serial 5
|
|
8936
|
+
|
|
8937
|
+
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
8938
|
+
# ------------------------------
|
|
8939
|
+
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
8940
|
+
[{
|
|
8941
|
+
# Autoconf 2.62 quotes --file arguments for eval, but not when files
|
|
8942
|
+
# are listed without --file. Let's play safe and only enable the eval
|
|
8943
|
+
# if we detect the quoting.
|
|
8944
|
+
case $CONFIG_FILES in
|
|
8945
|
+
*\'*) eval set x "$CONFIG_FILES" ;;
|
|
8946
|
+
*) set x $CONFIG_FILES ;;
|
|
8947
|
+
esac
|
|
8948
|
+
shift
|
|
8949
|
+
for mf
|
|
8950
|
+
do
|
|
8951
|
+
# Strip MF so we end up with the name of the file.
|
|
8952
|
+
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
8953
|
+
# Check whether this is an Automake generated Makefile or not.
|
|
8954
|
+
# We used to match only the files named `Makefile.in', but
|
|
8955
|
+
# some people rename them; so instead we look at the file content.
|
|
8956
|
+
# Grep'ing the first line is not enough: some people post-process
|
|
8957
|
+
# each Makefile.in and add a new line on top of each file to say so.
|
|
8958
|
+
# Grep'ing the whole file is not good either: AIX grep has a line
|
|
8959
|
+
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
8960
|
+
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
8961
|
+
dirpart=`AS_DIRNAME("$mf")`
|
|
8962
|
+
else
|
|
8963
|
+
continue
|
|
8964
|
+
fi
|
|
8965
|
+
# Extract the definition of DEPDIR, am__include, and am__quote
|
|
8966
|
+
# from the Makefile without running `make'.
|
|
8967
|
+
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
8968
|
+
test -z "$DEPDIR" && continue
|
|
8969
|
+
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
8970
|
+
test -z "am__include" && continue
|
|
8971
|
+
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
8972
|
+
# When using ansi2knr, U may be empty or an underscore; expand it
|
|
8973
|
+
U=`sed -n 's/^U = //p' < "$mf"`
|
|
8974
|
+
# Find all dependency output files, they are included files with
|
|
8975
|
+
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
8976
|
+
# simplest approach to changing $(DEPDIR) to its actual value in the
|
|
8977
|
+
# expansion.
|
|
8978
|
+
for file in `sed -n "
|
|
8979
|
+
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
8980
|
+
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
|
8981
|
+
# Make sure the directory exists.
|
|
8982
|
+
test -f "$dirpart/$file" && continue
|
|
8983
|
+
fdir=`AS_DIRNAME(["$file"])`
|
|
8984
|
+
AS_MKDIR_P([$dirpart/$fdir])
|
|
8985
|
+
# echo "creating $dirpart/$file"
|
|
8986
|
+
echo '# dummy' > "$dirpart/$file"
|
|
8987
|
+
done
|
|
8988
|
+
done
|
|
8989
|
+
}
|
|
8990
|
+
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
8991
|
+
|
|
8992
|
+
|
|
8993
|
+
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
8994
|
+
# -----------------------------
|
|
8995
|
+
# This macro should only be invoked once -- use via AC_REQUIRE.
|
|
8996
|
+
#
|
|
8997
|
+
# This code is only required when automatic dependency tracking
|
|
8998
|
+
# is enabled. FIXME. This creates each `.P' file that we will
|
|
8999
|
+
# need in order to bootstrap the dependency handling code.
|
|
9000
|
+
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
9001
|
+
[AC_CONFIG_COMMANDS([depfiles],
|
|
9002
|
+
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
9003
|
+
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
|
9004
|
+
])
|
|
9005
|
+
|
|
9006
|
+
# Do all the work for Automake. -*- Autoconf -*-
|
|
9007
|
+
|
|
9008
|
+
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
|
9009
|
+
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
|
|
9010
|
+
#
|
|
9011
|
+
# This file is free software; the Free Software Foundation
|
|
9012
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9013
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9014
|
+
|
|
9015
|
+
# serial 16
|
|
9016
|
+
|
|
9017
|
+
# This macro actually does too much. Some checks are only needed if
|
|
9018
|
+
# your package does certain things. But this isn't really a big deal.
|
|
9019
|
+
|
|
9020
|
+
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
|
9021
|
+
# AM_INIT_AUTOMAKE([OPTIONS])
|
|
9022
|
+
# -----------------------------------------------
|
|
9023
|
+
# The call with PACKAGE and VERSION arguments is the old style
|
|
9024
|
+
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
|
9025
|
+
# and VERSION should now be passed to AC_INIT and removed from
|
|
9026
|
+
# the call to AM_INIT_AUTOMAKE.
|
|
9027
|
+
# We support both call styles for the transition. After
|
|
9028
|
+
# the next Automake release, Autoconf can make the AC_INIT
|
|
9029
|
+
# arguments mandatory, and then we can depend on a new Autoconf
|
|
9030
|
+
# release and drop the old call support.
|
|
9031
|
+
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
9032
|
+
[AC_PREREQ([2.62])dnl
|
|
9033
|
+
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
9034
|
+
dnl the ones we care about.
|
|
9035
|
+
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
9036
|
+
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
|
9037
|
+
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
9038
|
+
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
9039
|
+
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
9040
|
+
# is not polluted with repeated "-I."
|
|
9041
|
+
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
|
9042
|
+
# test to see if srcdir already configured
|
|
9043
|
+
if test -f $srcdir/config.status; then
|
|
9044
|
+
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
9045
|
+
fi
|
|
9046
|
+
fi
|
|
9047
|
+
|
|
9048
|
+
# test whether we have cygpath
|
|
9049
|
+
if test -z "$CYGPATH_W"; then
|
|
9050
|
+
if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
9051
|
+
CYGPATH_W='cygpath -w'
|
|
9052
|
+
else
|
|
9053
|
+
CYGPATH_W=echo
|
|
9054
|
+
fi
|
|
9055
|
+
fi
|
|
9056
|
+
AC_SUBST([CYGPATH_W])
|
|
9057
|
+
|
|
9058
|
+
# Define the identity of the package.
|
|
9059
|
+
dnl Distinguish between old-style and new-style calls.
|
|
9060
|
+
m4_ifval([$2],
|
|
9061
|
+
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
9062
|
+
AC_SUBST([PACKAGE], [$1])dnl
|
|
9063
|
+
AC_SUBST([VERSION], [$2])],
|
|
9064
|
+
[_AM_SET_OPTIONS([$1])dnl
|
|
9065
|
+
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
9066
|
+
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
|
|
9067
|
+
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
9068
|
+
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
9069
|
+
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
|
9070
|
+
|
|
9071
|
+
_AM_IF_OPTION([no-define],,
|
|
9072
|
+
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
|
9073
|
+
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
|
9074
|
+
|
|
9075
|
+
# Some tools Automake needs.
|
|
9076
|
+
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
9077
|
+
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
9078
|
+
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
|
9079
|
+
AM_MISSING_PROG(AUTOCONF, autoconf)
|
|
9080
|
+
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
|
9081
|
+
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
|
9082
|
+
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
|
9083
|
+
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
9084
|
+
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
9085
|
+
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
|
9086
|
+
# We need awk for the "check" target. The system "awk" is bad on
|
|
9087
|
+
# some platforms.
|
|
9088
|
+
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
9089
|
+
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
9090
|
+
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
9091
|
+
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
9092
|
+
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
9093
|
+
[_AM_PROG_TAR([v7])])])
|
|
9094
|
+
_AM_IF_OPTION([no-dependencies],,
|
|
9095
|
+
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
9096
|
+
[_AM_DEPENDENCIES(CC)],
|
|
9097
|
+
[define([AC_PROG_CC],
|
|
9098
|
+
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
|
9099
|
+
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
9100
|
+
[_AM_DEPENDENCIES(CXX)],
|
|
9101
|
+
[define([AC_PROG_CXX],
|
|
9102
|
+
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
|
9103
|
+
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
|
9104
|
+
[_AM_DEPENDENCIES(OBJC)],
|
|
9105
|
+
[define([AC_PROG_OBJC],
|
|
9106
|
+
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
|
|
9107
|
+
])
|
|
9108
|
+
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
|
|
9109
|
+
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
|
|
9110
|
+
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
|
|
9111
|
+
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
9112
|
+
AC_CONFIG_COMMANDS_PRE(dnl
|
|
9113
|
+
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
9114
|
+
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
9115
|
+
])
|
|
9116
|
+
|
|
9117
|
+
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
|
9118
|
+
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
|
9119
|
+
dnl mangled by Autoconf and run in a shell conditional statement.
|
|
9120
|
+
m4_define([_AC_COMPILER_EXEEXT],
|
|
9121
|
+
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
|
9122
|
+
|
|
9123
|
+
|
|
9124
|
+
# When config.status generates a header, we must update the stamp-h file.
|
|
9125
|
+
# This file resides in the same directory as the config header
|
|
9126
|
+
# that is generated. The stamp files are numbered to have different names.
|
|
9127
|
+
|
|
9128
|
+
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
|
9129
|
+
# loop where config.status creates the headers, so we can generate
|
|
9130
|
+
# our stamp files there.
|
|
9131
|
+
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
|
9132
|
+
[# Compute $1's index in $config_headers.
|
|
9133
|
+
_am_arg=$1
|
|
9134
|
+
_am_stamp_count=1
|
|
9135
|
+
for _am_header in $config_headers :; do
|
|
9136
|
+
case $_am_header in
|
|
9137
|
+
$_am_arg | $_am_arg:* )
|
|
9138
|
+
break ;;
|
|
9139
|
+
* )
|
|
9140
|
+
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
9141
|
+
esac
|
|
9142
|
+
done
|
|
9143
|
+
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
9144
|
+
|
|
9145
|
+
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
|
|
9146
|
+
# Inc.
|
|
9147
|
+
#
|
|
9148
|
+
# This file is free software; the Free Software Foundation
|
|
9149
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9150
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9151
|
+
|
|
9152
|
+
# serial 1
|
|
9153
|
+
|
|
9154
|
+
# AM_PROG_INSTALL_SH
|
|
9155
|
+
# ------------------
|
|
9156
|
+
# Define $install_sh.
|
|
9157
|
+
AC_DEFUN([AM_PROG_INSTALL_SH],
|
|
9158
|
+
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
9159
|
+
if test x"${install_sh}" != xset; then
|
|
9160
|
+
case $am_aux_dir in
|
|
9161
|
+
*\ * | *\ *)
|
|
9162
|
+
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
|
9163
|
+
*)
|
|
9164
|
+
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
|
9165
|
+
esac
|
|
9166
|
+
fi
|
|
9167
|
+
AC_SUBST(install_sh)])
|
|
9168
|
+
|
|
9169
|
+
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
|
9170
|
+
#
|
|
9171
|
+
# This file is free software; the Free Software Foundation
|
|
9172
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9173
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9174
|
+
|
|
9175
|
+
# serial 2
|
|
9176
|
+
|
|
9177
|
+
# Check whether the underlying file-system supports filenames
|
|
9178
|
+
# with a leading dot. For instance MS-DOS doesn't.
|
|
9179
|
+
AC_DEFUN([AM_SET_LEADING_DOT],
|
|
9180
|
+
[rm -rf .tst 2>/dev/null
|
|
9181
|
+
mkdir .tst 2>/dev/null
|
|
9182
|
+
if test -d .tst; then
|
|
9183
|
+
am__leading_dot=.
|
|
9184
|
+
else
|
|
9185
|
+
am__leading_dot=_
|
|
9186
|
+
fi
|
|
9187
|
+
rmdir .tst 2>/dev/null
|
|
9188
|
+
AC_SUBST([am__leading_dot])])
|
|
9189
|
+
|
|
9190
|
+
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
|
9191
|
+
# From Jim Meyering
|
|
9192
|
+
|
|
9193
|
+
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
|
|
9194
|
+
# 2011 Free Software Foundation, Inc.
|
|
9195
|
+
#
|
|
9196
|
+
# This file is free software; the Free Software Foundation
|
|
9197
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9198
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9199
|
+
|
|
9200
|
+
# serial 5
|
|
9201
|
+
|
|
9202
|
+
# AM_MAINTAINER_MODE([DEFAULT-MODE])
|
|
9203
|
+
# ----------------------------------
|
|
9204
|
+
# Control maintainer-specific portions of Makefiles.
|
|
9205
|
+
# Default is to disable them, unless `enable' is passed literally.
|
|
9206
|
+
# For symmetry, `disable' may be passed as well. Anyway, the user
|
|
9207
|
+
# can override the default with the --enable/--disable switch.
|
|
9208
|
+
AC_DEFUN([AM_MAINTAINER_MODE],
|
|
9209
|
+
[m4_case(m4_default([$1], [disable]),
|
|
9210
|
+
[enable], [m4_define([am_maintainer_other], [disable])],
|
|
9211
|
+
[disable], [m4_define([am_maintainer_other], [enable])],
|
|
9212
|
+
[m4_define([am_maintainer_other], [enable])
|
|
9213
|
+
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
|
|
9214
|
+
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
9215
|
+
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
|
|
9216
|
+
AC_ARG_ENABLE([maintainer-mode],
|
|
9217
|
+
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
|
|
9218
|
+
(and sometimes confusing) to the casual installer],
|
|
9219
|
+
[USE_MAINTAINER_MODE=$enableval],
|
|
9220
|
+
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
|
|
9221
|
+
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
|
9222
|
+
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
|
|
9223
|
+
MAINT=$MAINTAINER_MODE_TRUE
|
|
9224
|
+
AC_SUBST([MAINT])dnl
|
|
9225
|
+
]
|
|
9226
|
+
)
|
|
9227
|
+
|
|
9228
|
+
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
|
9229
|
+
|
|
9230
|
+
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
|
9231
|
+
|
|
9232
|
+
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
|
|
9233
|
+
#
|
|
9234
|
+
# This file is free software; the Free Software Foundation
|
|
9235
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9236
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9237
|
+
|
|
9238
|
+
# serial 4
|
|
9239
|
+
|
|
9240
|
+
# AM_MAKE_INCLUDE()
|
|
9241
|
+
# -----------------
|
|
9242
|
+
# Check to see how make treats includes.
|
|
9243
|
+
AC_DEFUN([AM_MAKE_INCLUDE],
|
|
9244
|
+
[am_make=${MAKE-make}
|
|
9245
|
+
cat > confinc << 'END'
|
|
9246
|
+
am__doit:
|
|
9247
|
+
@echo this is the am__doit target
|
|
9248
|
+
.PHONY: am__doit
|
|
9249
|
+
END
|
|
9250
|
+
# If we don't find an include directive, just comment out the code.
|
|
9251
|
+
AC_MSG_CHECKING([for style of include used by $am_make])
|
|
9252
|
+
am__include="#"
|
|
9253
|
+
am__quote=
|
|
9254
|
+
_am_result=none
|
|
9255
|
+
# First try GNU make style include.
|
|
9256
|
+
echo "include confinc" > confmf
|
|
9257
|
+
# Ignore all kinds of additional output from `make'.
|
|
9258
|
+
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
9259
|
+
*the\ am__doit\ target*)
|
|
9260
|
+
am__include=include
|
|
9261
|
+
am__quote=
|
|
9262
|
+
_am_result=GNU
|
|
9263
|
+
;;
|
|
9264
|
+
esac
|
|
9265
|
+
# Now try BSD make style include.
|
|
9266
|
+
if test "$am__include" = "#"; then
|
|
9267
|
+
echo '.include "confinc"' > confmf
|
|
9268
|
+
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
9269
|
+
*the\ am__doit\ target*)
|
|
9270
|
+
am__include=.include
|
|
9271
|
+
am__quote="\""
|
|
9272
|
+
_am_result=BSD
|
|
9273
|
+
;;
|
|
9274
|
+
esac
|
|
9275
|
+
fi
|
|
9276
|
+
AC_SUBST([am__include])
|
|
9277
|
+
AC_SUBST([am__quote])
|
|
9278
|
+
AC_MSG_RESULT([$_am_result])
|
|
9279
|
+
rm -f confinc confmf
|
|
9280
|
+
])
|
|
9281
|
+
|
|
9282
|
+
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
|
|
9283
|
+
# Free Software Foundation, Inc.
|
|
9284
|
+
#
|
|
9285
|
+
# This file is free software; the Free Software Foundation
|
|
9286
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9287
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9288
|
+
|
|
9289
|
+
# serial 6
|
|
9290
|
+
|
|
9291
|
+
# AM_PROG_CC_C_O
|
|
9292
|
+
# --------------
|
|
9293
|
+
# Like AC_PROG_CC_C_O, but changed for automake.
|
|
9294
|
+
AC_DEFUN([AM_PROG_CC_C_O],
|
|
9295
|
+
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
|
|
9296
|
+
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
9297
|
+
AC_REQUIRE_AUX_FILE([compile])dnl
|
|
9298
|
+
# FIXME: we rely on the cache variable name because
|
|
9299
|
+
# there is no other way.
|
|
9300
|
+
set dummy $CC
|
|
9301
|
+
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
|
|
9302
|
+
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
|
|
9303
|
+
if test "$am_t" != yes; then
|
|
9304
|
+
# Losing compiler, so override with the script.
|
|
9305
|
+
# FIXME: It is wrong to rewrite CC.
|
|
9306
|
+
# But if we don't then we get into trouble of one sort or another.
|
|
9307
|
+
# A longer-term fix would be to have automake use am__CC in this case,
|
|
9308
|
+
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
|
9309
|
+
CC="$am_aux_dir/compile $CC"
|
|
9310
|
+
fi
|
|
9311
|
+
dnl Make sure AC_PROG_CC is never called again, or it will override our
|
|
9312
|
+
dnl setting of CC.
|
|
9313
|
+
m4_define([AC_PROG_CC],
|
|
9314
|
+
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
|
|
9315
|
+
])
|
|
9316
|
+
|
|
9317
|
+
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
9318
|
+
|
|
9319
|
+
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
|
|
9320
|
+
# Free Software Foundation, Inc.
|
|
9321
|
+
#
|
|
9322
|
+
# This file is free software; the Free Software Foundation
|
|
9323
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9324
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9325
|
+
|
|
9326
|
+
# serial 6
|
|
9327
|
+
|
|
9328
|
+
# AM_MISSING_PROG(NAME, PROGRAM)
|
|
9329
|
+
# ------------------------------
|
|
9330
|
+
AC_DEFUN([AM_MISSING_PROG],
|
|
9331
|
+
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
|
9332
|
+
$1=${$1-"${am_missing_run}$2"}
|
|
9333
|
+
AC_SUBST($1)])
|
|
9334
|
+
|
|
9335
|
+
|
|
9336
|
+
# AM_MISSING_HAS_RUN
|
|
9337
|
+
# ------------------
|
|
9338
|
+
# Define MISSING if not defined so far and test if it supports --run.
|
|
9339
|
+
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
|
9340
|
+
AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
9341
|
+
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
9342
|
+
AC_REQUIRE_AUX_FILE([missing])dnl
|
|
9343
|
+
if test x"${MISSING+set}" != xset; then
|
|
9344
|
+
case $am_aux_dir in
|
|
9345
|
+
*\ * | *\ *)
|
|
9346
|
+
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
9347
|
+
*)
|
|
9348
|
+
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
9349
|
+
esac
|
|
9350
|
+
fi
|
|
9351
|
+
# Use eval to expand $SHELL
|
|
9352
|
+
if eval "$MISSING --run true"; then
|
|
9353
|
+
am_missing_run="$MISSING --run "
|
|
9354
|
+
else
|
|
9355
|
+
am_missing_run=
|
|
9356
|
+
AC_MSG_WARN([`missing' script is too old or missing])
|
|
9357
|
+
fi
|
|
9358
|
+
])
|
|
9359
|
+
|
|
9360
|
+
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
|
|
9361
|
+
# Inc.
|
|
9362
|
+
#
|
|
9363
|
+
# This file is free software; the Free Software Foundation
|
|
9364
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9365
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9366
|
+
|
|
9367
|
+
# serial 1
|
|
9368
|
+
|
|
9369
|
+
# AM_PROG_MKDIR_P
|
|
9370
|
+
# ---------------
|
|
9371
|
+
# Check for `mkdir -p'.
|
|
9372
|
+
AC_DEFUN([AM_PROG_MKDIR_P],
|
|
9373
|
+
[AC_PREREQ([2.60])dnl
|
|
9374
|
+
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
9375
|
+
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
|
|
9376
|
+
dnl while keeping a definition of mkdir_p for backward compatibility.
|
|
9377
|
+
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
|
|
9378
|
+
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
|
|
9379
|
+
dnl Makefile.ins that do not define MKDIR_P, so we do our own
|
|
9380
|
+
dnl adjustment using top_builddir (which is defined more often than
|
|
9381
|
+
dnl MKDIR_P).
|
|
9382
|
+
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
|
|
9383
|
+
case $mkdir_p in
|
|
9384
|
+
[[\\/$]]* | ?:[[\\/]]*) ;;
|
|
9385
|
+
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
|
9386
|
+
esac
|
|
9387
|
+
])
|
|
9388
|
+
|
|
9389
|
+
# Helper functions for option handling. -*- Autoconf -*-
|
|
9390
|
+
|
|
9391
|
+
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
|
|
9392
|
+
# Foundation, Inc.
|
|
9393
|
+
#
|
|
9394
|
+
# This file is free software; the Free Software Foundation
|
|
9395
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9396
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9397
|
+
|
|
9398
|
+
# serial 5
|
|
9399
|
+
|
|
9400
|
+
# _AM_MANGLE_OPTION(NAME)
|
|
9401
|
+
# -----------------------
|
|
9402
|
+
AC_DEFUN([_AM_MANGLE_OPTION],
|
|
9403
|
+
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
9404
|
+
|
|
9405
|
+
# _AM_SET_OPTION(NAME)
|
|
9406
|
+
# --------------------
|
|
9407
|
+
# Set option NAME. Presently that only means defining a flag for this option.
|
|
9408
|
+
AC_DEFUN([_AM_SET_OPTION],
|
|
9409
|
+
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
|
9410
|
+
|
|
9411
|
+
# _AM_SET_OPTIONS(OPTIONS)
|
|
9412
|
+
# ------------------------
|
|
9413
|
+
# OPTIONS is a space-separated list of Automake options.
|
|
9414
|
+
AC_DEFUN([_AM_SET_OPTIONS],
|
|
9415
|
+
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|
9416
|
+
|
|
9417
|
+
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
9418
|
+
# -------------------------------------------
|
|
9419
|
+
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
9420
|
+
AC_DEFUN([_AM_IF_OPTION],
|
|
9421
|
+
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
9422
|
+
|
|
9423
|
+
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
9424
|
+
|
|
9425
|
+
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
|
|
9426
|
+
# Free Software Foundation, Inc.
|
|
9427
|
+
#
|
|
9428
|
+
# This file is free software; the Free Software Foundation
|
|
9429
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9430
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9431
|
+
|
|
9432
|
+
# serial 5
|
|
9433
|
+
|
|
9434
|
+
# AM_SANITY_CHECK
|
|
9435
|
+
# ---------------
|
|
9436
|
+
AC_DEFUN([AM_SANITY_CHECK],
|
|
9437
|
+
[AC_MSG_CHECKING([whether build environment is sane])
|
|
9438
|
+
# Just in case
|
|
9439
|
+
sleep 1
|
|
9440
|
+
echo timestamp > conftest.file
|
|
9441
|
+
# Reject unsafe characters in $srcdir or the absolute working directory
|
|
9442
|
+
# name. Accept space and tab only in the latter.
|
|
9443
|
+
am_lf='
|
|
9444
|
+
'
|
|
9445
|
+
case `pwd` in
|
|
9446
|
+
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
|
9447
|
+
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
|
9448
|
+
esac
|
|
9449
|
+
case $srcdir in
|
|
9450
|
+
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
|
9451
|
+
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
|
|
9452
|
+
esac
|
|
9453
|
+
|
|
9454
|
+
# Do `set' in a subshell so we don't clobber the current shell's
|
|
9455
|
+
# arguments. Must try -L first in case configure is actually a
|
|
9456
|
+
# symlink; some systems play weird games with the mod time of symlinks
|
|
9457
|
+
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
9458
|
+
# directory).
|
|
9459
|
+
if (
|
|
9460
|
+
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
9461
|
+
if test "$[*]" = "X"; then
|
|
9462
|
+
# -L didn't work.
|
|
9463
|
+
set X `ls -t "$srcdir/configure" conftest.file`
|
|
9464
|
+
fi
|
|
9465
|
+
rm -f conftest.file
|
|
9466
|
+
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
9467
|
+
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
9468
|
+
|
|
9469
|
+
# If neither matched, then we have a broken ls. This can happen
|
|
9470
|
+
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
9471
|
+
# broken ls alias from the environment. This has actually
|
|
9472
|
+
# happened. Such a system could not be considered "sane".
|
|
9473
|
+
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
9474
|
+
alias in your environment])
|
|
9475
|
+
fi
|
|
9476
|
+
|
|
9477
|
+
test "$[2]" = conftest.file
|
|
9478
|
+
)
|
|
9479
|
+
then
|
|
9480
|
+
# Ok.
|
|
9481
|
+
:
|
|
9482
|
+
else
|
|
9483
|
+
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
9484
|
+
Check your system clock])
|
|
9485
|
+
fi
|
|
9486
|
+
AC_MSG_RESULT(yes)])
|
|
9487
|
+
|
|
9488
|
+
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
|
|
9489
|
+
#
|
|
9490
|
+
# This file is free software; the Free Software Foundation
|
|
9491
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9492
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9493
|
+
|
|
9494
|
+
# serial 2
|
|
9495
|
+
|
|
9496
|
+
# AM_SILENT_RULES([DEFAULT])
|
|
9497
|
+
# --------------------------
|
|
9498
|
+
# Enable less verbose build rules; with the default set to DEFAULT
|
|
9499
|
+
# (`yes' being less verbose, `no' or empty being verbose).
|
|
9500
|
+
AC_DEFUN([AM_SILENT_RULES],
|
|
9501
|
+
[AC_ARG_ENABLE([silent-rules],
|
|
9502
|
+
[ --enable-silent-rules less verbose build output (undo: `make V=1')
|
|
9503
|
+
--disable-silent-rules verbose build output (undo: `make V=0')])
|
|
9504
|
+
case $enable_silent_rules in
|
|
9505
|
+
yes) AM_DEFAULT_VERBOSITY=0;;
|
|
9506
|
+
no) AM_DEFAULT_VERBOSITY=1;;
|
|
9507
|
+
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
|
9508
|
+
esac
|
|
9509
|
+
dnl
|
|
9510
|
+
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
|
|
9511
|
+
dnl do not support nested variable expansions.
|
|
9512
|
+
dnl See automake bug#9928 and bug#10237.
|
|
9513
|
+
am_make=${MAKE-make}
|
|
9514
|
+
AC_CACHE_CHECK([whether $am_make supports nested variables],
|
|
9515
|
+
[am_cv_make_support_nested_variables],
|
|
9516
|
+
[if AS_ECHO([['TRUE=$(BAR$(V))
|
|
9517
|
+
BAR0=false
|
|
9518
|
+
BAR1=true
|
|
9519
|
+
V=1
|
|
9520
|
+
am__doit:
|
|
9521
|
+
@$(TRUE)
|
|
9522
|
+
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
|
|
9523
|
+
am_cv_make_support_nested_variables=yes
|
|
9524
|
+
else
|
|
9525
|
+
am_cv_make_support_nested_variables=no
|
|
9526
|
+
fi])
|
|
9527
|
+
if test $am_cv_make_support_nested_variables = yes; then
|
|
9528
|
+
dnl Using `$V' instead of `$(V)' breaks IRIX make.
|
|
9529
|
+
AM_V='$(V)'
|
|
9530
|
+
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
|
9531
|
+
else
|
|
9532
|
+
AM_V=$AM_DEFAULT_VERBOSITY
|
|
9533
|
+
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
|
9534
|
+
fi
|
|
9535
|
+
AC_SUBST([AM_V])dnl
|
|
9536
|
+
AM_SUBST_NOTMAKE([AM_V])dnl
|
|
9537
|
+
AC_SUBST([AM_DEFAULT_V])dnl
|
|
9538
|
+
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
|
|
9539
|
+
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
|
9540
|
+
AM_BACKSLASH='\'
|
|
9541
|
+
AC_SUBST([AM_BACKSLASH])dnl
|
|
9542
|
+
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
9543
|
+
])
|
|
9544
|
+
|
|
9545
|
+
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
|
|
9546
|
+
#
|
|
9547
|
+
# This file is free software; the Free Software Foundation
|
|
9548
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9549
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9550
|
+
|
|
9551
|
+
# serial 1
|
|
9552
|
+
|
|
9553
|
+
# AM_PROG_INSTALL_STRIP
|
|
9554
|
+
# ---------------------
|
|
9555
|
+
# One issue with vendor `install' (even GNU) is that you can't
|
|
9556
|
+
# specify the program used to strip binaries. This is especially
|
|
9557
|
+
# annoying in cross-compiling environments, where the build's strip
|
|
9558
|
+
# is unlikely to handle the host's binaries.
|
|
9559
|
+
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
|
9560
|
+
# always use install-sh in `make install-strip', and initialize
|
|
9561
|
+
# STRIPPROG with the value of the STRIP variable (set by the user).
|
|
9562
|
+
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|
9563
|
+
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
9564
|
+
# Installed binaries are usually stripped using `strip' when the user
|
|
9565
|
+
# run `make install-strip'. However `strip' might not be the right
|
|
9566
|
+
# tool to use in cross-compilation environments, therefore Automake
|
|
9567
|
+
# will honor the `STRIP' environment variable to overrule this program.
|
|
9568
|
+
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
|
9569
|
+
if test "$cross_compiling" != no; then
|
|
9570
|
+
AC_CHECK_TOOL([STRIP], [strip], :)
|
|
9571
|
+
fi
|
|
9572
|
+
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
9573
|
+
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
9574
|
+
|
|
9575
|
+
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
|
|
9576
|
+
#
|
|
9577
|
+
# This file is free software; the Free Software Foundation
|
|
9578
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9579
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9580
|
+
|
|
9581
|
+
# serial 3
|
|
9582
|
+
|
|
9583
|
+
# _AM_SUBST_NOTMAKE(VARIABLE)
|
|
9584
|
+
# ---------------------------
|
|
9585
|
+
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
|
9586
|
+
# This macro is traced by Automake.
|
|
9587
|
+
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
9588
|
+
|
|
9589
|
+
# AM_SUBST_NOTMAKE(VARIABLE)
|
|
9590
|
+
# --------------------------
|
|
9591
|
+
# Public sister of _AM_SUBST_NOTMAKE.
|
|
9592
|
+
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
9593
|
+
|
|
9594
|
+
# Check how to create a tarball. -*- Autoconf -*-
|
|
9595
|
+
|
|
9596
|
+
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
|
|
9597
|
+
#
|
|
9598
|
+
# This file is free software; the Free Software Foundation
|
|
9599
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
9600
|
+
# with or without modifications, as long as this notice is preserved.
|
|
9601
|
+
|
|
9602
|
+
# serial 2
|
|
9603
|
+
|
|
9604
|
+
# _AM_PROG_TAR(FORMAT)
|
|
9605
|
+
# --------------------
|
|
9606
|
+
# Check how to create a tarball in format FORMAT.
|
|
9607
|
+
# FORMAT should be one of `v7', `ustar', or `pax'.
|
|
9608
|
+
#
|
|
9609
|
+
# Substitute a variable $(am__tar) that is a command
|
|
9610
|
+
# writing to stdout a FORMAT-tarball containing the directory
|
|
9611
|
+
# $tardir.
|
|
9612
|
+
# tardir=directory && $(am__tar) > result.tar
|
|
9613
|
+
#
|
|
9614
|
+
# Substitute a variable $(am__untar) that extract such
|
|
9615
|
+
# a tarball read from stdin.
|
|
9616
|
+
# $(am__untar) < result.tar
|
|
9617
|
+
AC_DEFUN([_AM_PROG_TAR],
|
|
9618
|
+
[# Always define AMTAR for backward compatibility. Yes, it's still used
|
|
9619
|
+
# in the wild :-( We should find a proper way to deprecate it ...
|
|
9620
|
+
AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
|
9621
|
+
m4_if([$1], [v7],
|
|
9622
|
+
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
|
9623
|
+
[m4_case([$1], [ustar],, [pax],,
|
|
9624
|
+
[m4_fatal([Unknown tar format])])
|
|
9625
|
+
AC_MSG_CHECKING([how to create a $1 tar archive])
|
|
9626
|
+
# Loop over all known methods to create a tar archive until one works.
|
|
9627
|
+
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
|
9628
|
+
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
|
9629
|
+
# Do not fold the above two line into one, because Tru64 sh and
|
|
9630
|
+
# Solaris sh will not grok spaces in the rhs of `-'.
|
|
9631
|
+
for _am_tool in $_am_tools
|
|
9632
|
+
do
|
|
9633
|
+
case $_am_tool in
|
|
9634
|
+
gnutar)
|
|
9635
|
+
for _am_tar in tar gnutar gtar;
|
|
9636
|
+
do
|
|
9637
|
+
AM_RUN_LOG([$_am_tar --version]) && break
|
|
9638
|
+
done
|
|
9639
|
+
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
|
9640
|
+
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
|
9641
|
+
am__untar="$_am_tar -xf -"
|
|
9642
|
+
;;
|
|
9643
|
+
plaintar)
|
|
9644
|
+
# Must skip GNU tar: if it does not support --format= it doesn't create
|
|
9645
|
+
# ustar tarball either.
|
|
9646
|
+
(tar --version) >/dev/null 2>&1 && continue
|
|
9647
|
+
am__tar='tar chf - "$$tardir"'
|
|
9648
|
+
am__tar_='tar chf - "$tardir"'
|
|
9649
|
+
am__untar='tar xf -'
|
|
9650
|
+
;;
|
|
9651
|
+
pax)
|
|
9652
|
+
am__tar='pax -L -x $1 -w "$$tardir"'
|
|
9653
|
+
am__tar_='pax -L -x $1 -w "$tardir"'
|
|
9654
|
+
am__untar='pax -r'
|
|
9655
|
+
;;
|
|
9656
|
+
cpio)
|
|
9657
|
+
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
|
9658
|
+
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
|
9659
|
+
am__untar='cpio -i -H $1 -d'
|
|
9660
|
+
;;
|
|
9661
|
+
none)
|
|
9662
|
+
am__tar=false
|
|
9663
|
+
am__tar_=false
|
|
9664
|
+
am__untar=false
|
|
9665
|
+
;;
|
|
9666
|
+
esac
|
|
9667
|
+
|
|
9668
|
+
# If the value was cached, stop now. We just wanted to have am__tar
|
|
9669
|
+
# and am__untar set.
|
|
9670
|
+
test -n "${am_cv_prog_tar_$1}" && break
|
|
9671
|
+
|
|
9672
|
+
# tar/untar a dummy directory, and stop if the command works
|
|
9673
|
+
rm -rf conftest.dir
|
|
9674
|
+
mkdir conftest.dir
|
|
9675
|
+
echo GrepMe > conftest.dir/file
|
|
9676
|
+
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
|
9677
|
+
rm -rf conftest.dir
|
|
9678
|
+
if test -s conftest.tar; then
|
|
9679
|
+
AM_RUN_LOG([$am__untar <conftest.tar])
|
|
9680
|
+
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
|
9681
|
+
fi
|
|
9682
|
+
done
|
|
9683
|
+
rm -rf conftest.dir
|
|
9684
|
+
|
|
9685
|
+
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
|
9686
|
+
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
|
9687
|
+
AC_SUBST([am__tar])
|
|
9688
|
+
AC_SUBST([am__untar])
|
|
9689
|
+
]) # _AM_PROG_TAR
|
|
9690
|
+
|