2 AC_INIT([EXIF library],[0.6.13],[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])
7 GP_CHECK_SHELL_ENVIRONMENT
9 GP_CONFIG_MSG([Source code location],[${srcdir}])
11 dnl ---------------------------------------------------------------------------
12 dnl Advanced information about versioning:
13 dnl * "Writing shared libraries" by Mike Hearn
14 dnl http://navi.cx/~mike/writing-shared-libraries.html
15 dnl * libtool.info chapter "Versioning"
16 dnl ---------------------------------------------------------------------------
18 dnl - AGE (Micro): Increment if any interfaces have been added; set to 0
19 dnl if any interfaces have been removed. Removal has
20 dnl precedence over adding, so set to 0 if both happened.
21 dnl - REVISION (Minor): Increment any time the source changes; set to
22 dnl 0 if you incremented CURRENT.
23 dnl - CURRENT (Major): Increment if the interface has changes or removals.
24 dnl ---------------------------------------------------------------------------
28 AC_SUBST([LIBEXIF_AGE])
29 AC_SUBST([LIBEXIF_REVISION])
30 AC_SUBST([LIBEXIF_CURRENT])
31 LIBEXIF_VERSION_INFO=`expr $LIBEXIF_CURRENT + $LIBEXIF_REVISION`:$LIBEXIF_AGE:$LIBEXIF_REVISION
32 AC_SUBST([LIBEXIF_VERSION_INFO])
36 dnl FIXME: AC_LIBTOOL_WIN32_DLL
38 AM_CPPFLAGS="$CPPFLAGS"
39 GP_CONFIG_MSG([Compiler],[${CC}])
42 dnl Create a stdint.h-like file containing size-specific integer definitions
43 dnl that will always be available
44 AX_NEED_STDINT_H([libexif/_stdint.h])
47 dnl ---------------------------------------------------------------------------
48 dnl Whether -lm is required for our math functions
49 dnl ---------------------------------------------------------------------------
51 # we need sqrt and pow, but checking for sqrt should be sufficient
52 AC_ARG_VAR([MATHLIBS],[The libraries required for mathematical functions, e.g. -lm])
53 if test "x$MATHLIBS" = "x"; then
54 # We must not compile with -Wall -Werror here:
55 # char *sqrt() conflicts with double sin(const double xx) in any case.
56 CFLAGS_save="$CPPFLAGS"
57 CPPFLAGS_save="$CPPFLAGS"
60 AC_CHECK_FUNC([sqrt],[
63 AC_CHECK_LIB([m],[sqrt],[
67 *** Could not find sqrt() function
72 CPPFLAGS="$CPPFLAGS_save"
82 # ---------------------------------------------------------------------------
84 # ---------------------------------------------------------------------------
85 GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT}],
86 [Lutz Müller and others])
87 ALL_LINGUAS="de es fr"
88 AM_GNU_GETTEXT_VERSION([0.14.1])
89 AM_GNU_GETTEXT([external])
94 dnl We cannot use AC_DEFINE_UNQUOTED() for these definitions, as
95 dnl we require make to do insert the proper $(datadir) value
96 localedir="\$(datadir)/locale"
98 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
101 dnl ---------------------------------------------------------------------------
102 dnl Compiler/Linker Options and Warnings
103 dnl ---------------------------------------------------------------------------
104 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
105 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/libexif"
106 AM_LDFLAGS="$LDFLAGS"
107 if test "x$GCC" = "xyes"; then
108 AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
109 AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
114 AC_SUBST(AM_CPPFLAGS)
118 dnl ---------------------------------------------------------------------------
120 dnl ---------------------------------------------------------------------------
126 libexif/canon/Makefile
127 libexif/olympus/Makefile
128 libexif/pentax/Makefile