2 AC_INIT([EXIF library],[0.6.12],[libexif-devel@lists.sourceforge.net],[libexif])
3 AC_CONFIG_SRCDIR([libexif/exif-data.h])
4 AM_CONFIG_HEADER([config.h])
5 AM_INIT_AUTOMAKE([gnu 1.8 dist-bzip2])
7 GP_CONFIG_MSG([Source code location],[${srcdir}])
9 dnl ---------------------------------------------------------------------------
11 dnl - AGE (Micro): Increment if any interfaces have been added; set to 0
12 dnl if any interfaces have been removed. Removal has
13 dnl precedence over adding, so set to 0 if both happened.
14 dnl - REVISION (Minor): Increment any time the source changes; set to
15 dnl 0 if you incremented CURRENT.
16 dnl - CURRENT (Major): Increment if the interface has additions, changes,
18 dnl ---------------------------------------------------------------------------
22 AC_SUBST([LIBEXIF_AGE])
23 AC_SUBST([LIBEXIF_REVISION])
24 AC_SUBST([LIBEXIF_CURRENT])
25 LIBEXIF_VERSION_INFO=`expr $LIBEXIF_CURRENT + $LIBEXIF_REVISION`:$LIBEXIF_AGE:$LIBEXIF_REVISION
26 AC_SUBST([LIBEXIF_VERSION_INFO])
33 GP_CONFIG_MSG([Compiler],[${CC}])
36 dnl Create a stdint.h-like file containing size-specific integer definitions
37 dnl that will always be available
38 AC_NEED_STDINT_H([libexif/_stdint.h])
41 dnl ---------------------------------------------------------------------------
42 dnl Whether -lm is required for our math functions
43 dnl ---------------------------------------------------------------------------
45 # we need sqrt and pow, but checking for sqrt should be sufficient
46 AC_CHECK_FUNC([sqrt],,[
47 AC_CHECK_LIB([m],[sqrt],[MATHLIBS="-lm"],AC_MSG_ERROR([
48 *** Could not find sqrt() function
53 dnl ---------------------------------------------------------------------------
55 dnl ---------------------------------------------------------------------------
56 GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT}],
57 [Lutz Müller and others])
58 ALL_LINGUAS="de es fr"
59 AM_GNU_GETTEXT_VERSION([0.14.1])
63 AM_CFLAGS="$AM_CFLAGS -DLIBEXIF_LOCALEDIR=\\\"\$(datadir)/locale\\\""
64 AM_CFLAGS="$AM_CFLAGS -DLIBMNOTE_LOCALEDIR=\\\"\$(datadir)/locale\\\""
67 dnl ---------------------------------------------------------------------------
68 dnl Compiler/Linker Options and Warnings
69 dnl ---------------------------------------------------------------------------
70 AM_CFLAGS="$AM_CFLAGS -I\$(top_srcdir)"
71 AM_CFLAGS="$AM_CFLAGS -I\$(top_srcdir)/libexif"
72 AM_CFLAGS="$AM_CFLAGS -I\$(top_srcdir)/libjpeg"
74 if test "x$GCC" = "xyes"; then
75 AM_CFLAGS="$AM_CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
76 AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
81 dnl ---------------------------------------------------------------------------
83 dnl ---------------------------------------------------------------------------
90 libexif/canon/Makefile
91 libexif/olympus/Makefile
92 libexif/pentax/Makefile