Commit 2a4eeffc authored by Manish Singh's avatar Manish Singh

Better autoconfing for Xmu.

Added HACKING and autogen.sh files

-Yosh
parent fa08c8fd
If you want to hack on the GIMP project, it will make you life easier
to have the following packages installed:
- GNU autoconf 2.12
- GNU automake 1.2d
Available in ftp://ftp.cygnus.com/pub/tromey
- GNU libtool 1.0f
These should be available by ftp from prep.ai.mit.edu or any of the
fine GNU mirrors. Beta software can be found at alpha.gnu.org.
If you are accessing gnome via CVS, then you will need to take several
steps to get it to compile. These are:
cvsroot/gimp# aclocal; automake; autoconf
N.b., the "configure" script will not exist until you take these
steps.
Before running configure, make sure you have libtool in your path.
...@@ -48,6 +48,7 @@ static char *scroll_text[] = ...@@ -48,6 +48,7 @@ static char *scroll_text[] =
"Francisco Bustamente", "Francisco Bustamente",
"Ed Connel", "Ed Connel",
"Andreas Dilger", "Andreas Dilger",
"Misha Dynin",
"Larry Ewing", "Larry Ewing",
"David Forsyth", "David Forsyth",
"Jim Geuther", "Jim Geuther",
......
...@@ -48,6 +48,7 @@ static char *scroll_text[] = ...@@ -48,6 +48,7 @@ static char *scroll_text[] =
"Francisco Bustamente", "Francisco Bustamente",
"Ed Connel", "Ed Connel",
"Andreas Dilger", "Andreas Dilger",
"Misha Dynin",
"Larry Ewing", "Larry Ewing",
"David Forsyth", "David Forsyth",
"Jim Geuther", "Jim Geuther",
......
...@@ -48,6 +48,7 @@ static char *scroll_text[] = ...@@ -48,6 +48,7 @@ static char *scroll_text[] =
"Francisco Bustamente", "Francisco Bustamente",
"Ed Connel", "Ed Connel",
"Andreas Dilger", "Andreas Dilger",
"Misha Dynin",
"Larry Ewing", "Larry Ewing",
"David Forsyth", "David Forsyth",
"Jim Geuther", "Jim Geuther",
......
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
DIE=0
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile GIMP."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
(libtool --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have libtool installed to compile GIMP."
echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile GIMP."
echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2f.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
if test "$DIE" -eq 1; then
exit 1
fi
(test -d app && test -d plug-ins) || {
echo "You must run this script in the top-level GIMP directory"
exit 1
}
if test -z "$*"; then
echo "I am going to run ./configure with no arguments - if you wish "
echo "to pass any to it, please specify them on the $0 command line."
fi
echo processing...
(aclocal; automake; autoconf)
./configure "$@"
echo
echo "Now type 'make' to compile GIMP."
...@@ -63,11 +63,6 @@ AC_DEFUN(AC_GIMP_CHECK, ...@@ -63,11 +63,6 @@ AC_DEFUN(AC_GIMP_CHECK,
x_libs="-lXext $x_libs", , x_libs="-lXext $x_libs", ,
$x_libs) $x_libs)
dnl FIXME: I have to think of a better way
AC_CHECK_LIB(Xmu, XmuClientWindow,
x_libs="-lXmu $x_libs", ,
$x_libs)
X_LIBS="$X_LIBS -lgtk -lgdk -lglib $x_libs -lm" X_LIBS="$X_LIBS -lgtk -lgdk -lglib $x_libs -lm"
LDFLAGS="$saved_ldflags $X_LDFLAGS $X_LIBS" LDFLAGS="$saved_ldflags $X_LDFLAGS $X_LIBS"
...@@ -123,6 +118,13 @@ if eval "test x$GCC = xyes"; then ...@@ -123,6 +118,13 @@ if eval "test x$GCC = xyes"; then
fi fi
fi fi
dnl Test for Xmu
if test -z "$LIBXMU_LIB"; then
AC_CHECK_LIB(Xmu, XmuClientWindow,
WEBBROWSER="webbrowser"; LIBXMU_LIB='-lXmu',
AC_MSG_WARN(*** webbrowser plug-in will not be built ***))
fi
dnl Test for libtiff dnl Test for libtiff
if test -z "$LIBTIFF_LIB"; then if test -z "$LIBTIFF_LIB"; then
AC_CHECK_LIB(tiff, TIFFReadScanline, AC_CHECK_LIB(tiff, TIFFReadScanline,
...@@ -241,6 +243,8 @@ AC_PATH_PROG(EMACS, emacs, :) ...@@ -241,6 +243,8 @@ AC_PATH_PROG(EMACS, emacs, :)
AC_SUBST(gimpdir) AC_SUBST(gimpdir)
AC_SUBST(gimpdatadir) AC_SUBST(gimpdatadir)
AC_SUBST(gimpplugindir) AC_SUBST(gimpplugindir)
AC_SUBST(WEBBROWSER)
AC_SUBST(LIBXMU_LIB)
AC_SUBST(TIFF) AC_SUBST(TIFF)
AC_SUBST(LIBTIFF_LIB) AC_SUBST(LIBTIFF_LIB)
AC_SUBST(JPEG) AC_SUBST(JPEG)
......
...@@ -6,6 +6,7 @@ SUBDIRS = \ ...@@ -6,6 +6,7 @@ SUBDIRS = \
dbbrowser \ dbbrowser \
script-fu \ script-fu \
struc \ struc \
@WEBBROWSER@ \
@TIFF@ \ @TIFF@ \
@JPEG@ \ @JPEG@ \
@PNG@ \ @PNG@ \
...@@ -112,7 +113,6 @@ SUBDIRS = \ ...@@ -112,7 +113,6 @@ SUBDIRS = \
vinvert \ vinvert \
vpropagate \ vpropagate \
waves \ waves \
webbrowser \
whirlpinch \ whirlpinch \
xwd \ xwd \
zealouscrop zealouscrop
......
...@@ -16,7 +16,7 @@ LDADD = \ ...@@ -16,7 +16,7 @@ LDADD = \
$(top_builddir)/libgimp/libgimpui.la \ $(top_builddir)/libgimp/libgimpui.la \
$(top_builddir)/libgimp/libgimp.la \ $(top_builddir)/libgimp/libgimp.la \
$(X_LIBS) \ $(X_LIBS) \
\ @LIBXMU_LIB@ \
-lc -lc
DEPS = \ DEPS = \
......
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