Commit 50eb7408 authored by Marc Lehmann's avatar Marc Lehmann
Browse files

*** empty log message ***

parent 7c2abc3c
Tue Oct 17 03:55:44 CEST 2000 Marc Lehmann <pcg@goof.com>
Applied patch by Robert L Krawitz <rlk@alum.mit.edu>.
* gimp.m4: Don't barf if an old version of gimptool is used
that doesn't support GIMP_DATA_DIR and GIMP_PLUGIN_DIR and
Work correctly with versions of the Gimp that don't have the
GIMP_CHECK_VERSION macro (if any).
Mon Oct 16 11:57:17 PDT 2000 Manish Singh <yosh@gimp.org>
 
* Made 1.1.28 release (1.2pre)
......
......@@ -50,6 +50,11 @@ AC_ARG_ENABLE(gimptest, [ --disable-gimptest Do not try to compile and run
GIMP_DATA_DIR=`$GIMPTOOL $gimptool_args --gimpdatadir`
GIMP_PLUGIN_DIR=`$GIMPTOOL $gimptool_args --gimpplugindir`
nodatadir_test=`echo $GIMP_DATA_DIR | sed 's/^\(Usage\).*/\1/'`
if test "$nodatadir_test" = "Usage" ; then
GIMP_DATA_DIR=""
GIMP_PLUGIN_DIR=""
fi
gimptool_major_version=`$GIMPTOOL $gimptool_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
......@@ -73,6 +78,14 @@ dnl
#include <libgimp/gimp.h>
#ifndef GIMP_CHECK_VERSION
#define GIMP_CHECK_VERSION(major, minor, micro) \
(GIMP_MAJOR_VERSION > (major) || \
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
GIMP_MICRO_VERSION >= (micro)))
#endif
#if GIMP_CHECK_VERSION(1,1,20)
GimpPlugInInfo
#else
......@@ -144,6 +157,14 @@ int main ()
#include <stdio.h>
#include <libgimp/gimp.h>
#ifndef GIMP_CHECK_VERSION
#define GIMP_CHECK_VERSION(major, minor, micro) \
(GIMP_MAJOR_VERSION > (major) || \
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
GIMP_MICRO_VERSION >= (micro)))
#endif
#if GIMP_CHECK_VERSION(1,1,20)
GimpPlugInInfo
#else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment