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 ---------------------------------------------------------------------------
13 dnl - AGE (Micro): Increment if any interfaces have been added; set to 0
14 dnl if any interfaces have been removed. Removal has
15 dnl precedence over adding, so set to 0 if both happened.
16 dnl - REVISION (Minor): Increment any time the source changes; set to
17 dnl 0 if you incremented CURRENT.
18 dnl - CURRENT (Major): Increment if the interface has additions, changes,
20 dnl ---------------------------------------------------------------------------
24 AC_SUBST([LIBEXIF_AGE])
25 AC_SUBST([LIBEXIF_REVISION])
26 AC_SUBST([LIBEXIF_CURRENT])
27 LIBEXIF_VERSION_INFO=`expr $LIBEXIF_CURRENT + $LIBEXIF_REVISION`:$LIBEXIF_AGE:$LIBEXIF_REVISION
28 AC_SUBST([LIBEXIF_VERSION_INFO])
34 GP_CONFIG_MSG([Compiler],[${CC}])
37 dnl Create a stdint.h-like file containing size-specific integer definitions
38 dnl that will always be available
39 AX_NEED_STDINT_H([libexif/_stdint.h])
42 dnl ---------------------------------------------------------------------------
43 dnl Whether -lm is required for our math functions
44 dnl ---------------------------------------------------------------------------
46 # we need sqrt and pow, but checking for sqrt should be sufficient
47 AC_CHECK_FUNC([sqrt],,[
48 AC_CHECK_LIB([m],[sqrt],[MATHLIBS="-lm"],AC_MSG_ERROR([
49 *** Could not find sqrt() function
54 # ---------------------------------------------------------------------------
56 # ---------------------------------------------------------------------------
57 GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT}],
58 [Lutz Müller and others])
59 ALL_LINGUAS="de es fr"
60 AM_GNU_GETTEXT_VERSION([0.14.1])
61 AM_GNU_GETTEXT([external])
66 dnl We cannot use AC_DEFINE_UNQUOTED() for these definitions, as
67 dnl we require make to do insert the proper $(datadir) value
68 localedir="\$(datadir)/locale"
70 AM_CFLAGS="$AM_CFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
73 dnl ---------------------------------------------------------------------------
74 dnl Compiler/Linker Options and Warnings
75 dnl ---------------------------------------------------------------------------
76 AM_CFLAGS="$AM_CFLAGS -I\$(top_srcdir)"
77 AM_CFLAGS="$AM_CFLAGS -I\$(top_srcdir)/libexif"
79 if test "x$GCC" = "xyes"; then
80 AM_CFLAGS="$AM_CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
81 AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
87 dnl ---------------------------------------------------------------------------
89 dnl ---------------------------------------------------------------------------
95 libexif/canon/Makefile
96 libexif/olympus/Makefile
97 libexif/pentax/Makefile