package Gimp::Config;

=cut

=head1 NAME

  Gimp::Config - config options found during configure time.

=head1 DESCRIPTION

The Gimp::Config module creates a tied hash %Gimp::Config which contains
all the definitions the configure script and perl deduced from the system
configuration at configure time. You can access these values just like you
access any other values, i.e.  C<$Gimp::Config{KEY}>. Some important keys are:

  IN_GIMP	=> true when gimp-perl was part of the Gimp distribution.
  GIMP		=> the path of the gimp executable
  prefix	=> the installation prefix
  libdir	=> the gimp systemwide libdir
  bindir	=> paths where gimp binaries are installed
  gimpplugindir	=> the gimp plug-in directory (without the /plug-ins-suffix)

=head1 SEE ALSO

L<Gimp>.

=cut

sub TIEHASH {
   my $pkg = shift;
   my $self;

   bless \$self, $pkg;
}

sub FETCH {
   $cfg{$_[1]};
}

tie %Gimp::Config, 'Gimp::Config';

%cfg = (
   INC1                 => q[-I/usr/src/build/225167-i386/BUILD/gimp-1.2.3/plug-ins/perl],
   LIBS                 => q[],
   IN_GIMP              => q[0],
   _GIMP_LIBS_NOUI      => q[-L/usr/lib -lgimp -L/usr/lib -lglib],
   GIMP                 => q[/usr/bin/gimp],
   _CPPFLAGS            => q[],
   _EXTENSIVE_TESTS     => q[1],
   _CFLAGS              => q[-I/usr/src/build/225167-i386/BUILD/gimp-1.2.3],
   GLIB_CFLAGS          => q[-I/usr/include/glib-1.2 -I/usr/lib/glib/include],
   pdl_typemaps         => q[/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/PDL/Core/typemap.pdl],
   _GIMP_LIBS           => q[-L/usr/lib -lgimpui -lgimp -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm],
   bindir               => q[/usr/src/build/225167-i386/install/usr/bin],
   MSGFMT               => q[],
   INSTALL_PROGRAM      => q[@INSTALL_PROGRAM@],
   pdl_inc              => q[-I/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/PDL/Core],
   gimpplugindir        => q[/usr/src/build/225167-i386/install/usr/lib/gimp/1.2],
   GIMPTOOL             => q[/usr/src/build/225167-i386/BUILD/gimp-1.2.3/tmptool],
   MSGMERGE             => q[@MSGMERGE@],
   INTLLIBS             => q[],
   GLIB_LIBS            => q[-L/usr/lib -lglib],
   _GIMP_INC            => q[-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include],
   exec_prefix          => q[/usr/src/build/225167-i386/install/usr],
   datadir              => q[/usr/src/build/225167-i386/install/usr/share],
   _GIMP_INC_NOUI       => q[-I/usr/include/glib-1.2 -I/usr/lib/glib/include],
   DEFINE1              => q[ -Ddatadir="\\"/usr/src/build/225167-i386/install/usr/share\\"" -DHAVE_PDL=1],
   _LDFLAGS             => q[-L/usr/src/build/225167-i386/BUILD/gimp-1.2.3/libgimp/.libs],
   libdir               => q[/usr/src/build/225167-i386/install/usr/lib],
   _PERL                => q[/usr/bin/perl],
   GIMP_PREFIX          => q[/usr/src/build/225167-i386/install/usr],
   INSTALL              => q[@INSTALL@],
   prefix               => q[/usr/src/build/225167-i386/install/usr],
);

1;
