2 AC_INIT([EXIF library],[0.6.14],[libexif-devel@lists.sourceforge.net],[libexif])
3 AC_CONFIG_SRCDIR([libexif/exif-data.h])
4 AC_CONFIG_HEADERS([config.h])
5 AM_INIT_AUTOMAKE([gnu 1.8 dist-bzip2 dist-zip])
7 if test ! -d "$srcdir/m4m"; then
9 You are missing the m4m/ directory in your top
10 $PACKAGE_TARNAME source directory.
12 You are probably using an ill-maintained CVS tree.
18 and re-running autogen.sh might help.
22 GP_CHECK_SHELL_ENVIRONMENT
23 GP_CONFIG_MSG([Build])
24 GP_CONFIG_MSG([Source code location],[${srcdir}])
26 dnl ---------------------------------------------------------------------------
27 dnl Advanced information about versioning:
28 dnl * "Writing shared libraries" by Mike Hearn
29 dnl http://navi.cx/~mike/writing-shared-libraries.html
30 dnl * libtool.info chapter "Versioning"
31 dnl * libtool.info chapter "Updating library version information"
32 dnl ---------------------------------------------------------------------------
34 dnl - CURRENT (Major): Increment if the interface has changes. AGE is always
35 dnl *changed* at the same time.
36 dnl - AGE (Micro): Increment if any interfaces have been added; set to 0
37 dnl if any interfaces have been removed. Removal has
38 dnl precedence over adding, so set to 0 if both happened.
39 dnl It denotes upward compatibility.
40 dnl - REVISION (Minor): Increment any time the source changes; set to
41 dnl 0 if you incremented CURRENT.
43 dnl To summarize. Any interface *change* increment CURRENT. If that interface
44 dnl change does not break upward compatibility (ie it is an addition),
45 dnl increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed,
46 dnl REVISION is set to 0, otherwise REVISION is incremented.
47 dnl ---------------------------------------------------------------------------
51 AC_SUBST([LIBEXIF_AGE])
52 AC_SUBST([LIBEXIF_REVISION])
53 AC_SUBST([LIBEXIF_CURRENT])
54 AC_SUBST([LIBEXIF_CURRENT_MIN],[`expr $LIBEXIF_CURRENT - $LIBEXIF_AGE`])
55 LIBEXIF_VERSION_INFO="$LIBEXIF_CURRENT:$LIBEXIF_REVISION:$LIBEXIF_AGE"
56 AC_SUBST([LIBEXIF_VERSION_INFO])
60 dnl FIXME: AC_LIBTOOL_WIN32_DLL
62 AM_CPPFLAGS="$CPPFLAGS"
63 GP_CONFIG_MSG([Compiler],[${CC}])
66 dnl Create a stdint.h-like file containing size-specific integer definitions
67 dnl that will always be available
68 AX_NEED_STDINT_H([libexif/_stdint.h])
71 dnl ------------------------------------------------------------------------
72 dnl Whether we're supposed to ship binaries in the tarball
73 dnl ------------------------------------------------------------------------
76 AC_ARG_ENABLE([ship-binaries],
77 [AS_HELP_STRING([--enable-ship-binaries],
78 [Whether to ship binaries in the tarball [default=no]])],[
79 if test x$enableval = xyes; then
83 AM_CONDITIONAL([SHIP_BINARIES],[$ship_binaries])
84 GP_CONFIG_MSG([Ship binaries in tarball],[$ship_binaries])
87 dnl ---------------------------------------------------------------------------
88 dnl Whether -lm is required for our math functions
89 dnl ---------------------------------------------------------------------------
91 # we need sqrt and pow, but checking for sqrt should be sufficient
92 AC_ARG_VAR([MATHLIBS],[The libraries required for mathematical functions, e.g. -lm])
93 if test "x$MATHLIBS" = "x"; then
94 # We must not compile with -Wall -Werror here:
95 # char *sqrt() conflicts with double sin(const double xx) in any case.
97 CPPFLAGS_save="$CPPFLAGS"
100 AC_CHECK_FUNC([sqrt],[
103 AC_CHECK_LIB([m],[sqrt],[
107 *** Could not find sqrt() function
111 CFLAGS="$CFLAGS_save"
112 CPPFLAGS="$CPPFLAGS_save"
122 # ---------------------------------------------------------------------------
124 # ---------------------------------------------------------------------------
125 GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT_MIN}],
126 [Lutz Mueller and others])
127 ALL_LINGUAS="de es fr pl ru vi"
128 AM_GNU_GETTEXT_VERSION([0.14.1])
129 AM_GNU_GETTEXT([external])
134 dnl We cannot use AC_DEFINE_UNQUOTED() for these definitions, as
135 dnl we require make to do insert the proper $(datadir) value
136 localedir="\$(datadir)/locale"
138 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
141 dnl ---------------------------------------------------------------------------
142 dnl Compiler/Linker Options and Warnings
143 dnl ---------------------------------------------------------------------------
144 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
145 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/libexif"
146 AM_LDFLAGS="$LDFLAGS"
147 if test "x$GCC" = "xyes"; then
148 AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
149 AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
154 AC_SUBST(AM_CPPFLAGS)
158 dnl ---------------------------------------------------------------------------
160 dnl ---------------------------------------------------------------------------
166 libexif/canon/Makefile
167 libexif/olympus/Makefile
168 libexif/pentax/Makefile
174 doc/Doxyfile-internals