mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-06 13:11:20 +00:00
773eda1929
to work under GIMP 1.2.x -- at taniwha's urging, I am checking this into CVS. You need libgtk+ v1.2, libgtkglarea v5, libgimp v1.2 (or thereabouts) to get this to work.
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
AC_INIT(texturepaint.c)
|
|
PACKAGE=texturepaint
|
|
VERSION=1.1
|
|
|
|
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AC_SUBST(VERSION)
|
|
|
|
dnl Check for programs
|
|
AC_PROG_CC
|
|
AC_PATH_XTRA
|
|
|
|
dnl Check for libs.
|
|
|
|
dnl AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS"; LIBS="$LIBS $GTK_LIBS",
|
|
dnl AC_MSG_ERROR(*** Can't find gtk))
|
|
|
|
AC_CHECK_LIB(GL, glXChooseVisual, LIBS="$LIBS -lGL",
|
|
[AC_CHECK_LIB(MesaGL, glXChooseVisual, LIBS="$LIBS -lMesaGL",
|
|
AC_MSG_ERROR(*** Can't find OpenGL),
|
|
$X_PRE_LIBS $X_LIBS -lX11 -lXext -lm $X_EXTRA_LIBS)],
|
|
$X_PRE_LIBS $X_LIBS -lX11 -lXext -lm $X_EXTRA_LIBS)
|
|
|
|
AC_CHECK_LIB(GLU, gluPerspective, LIBS="$LIBS -lGLU",
|
|
[AC_CHECK_LIB(MesaGLU, gluPerspective, LIBS="$LIBS -lMesaGLU",
|
|
AC_MSG_ERROR(*** Can't find libGLU),
|
|
$X_PRE_LIBS $X_LIBS -lX11 -lXext -lm $X_EXTRA_LIBS)],
|
|
$X_PRE_LIBS $X_LIBS -lX11 -lXext -lm $X_EXTRA_LIBS)
|
|
|
|
AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS"; LIBS="$LIBS $GTK_LIBS",
|
|
AC_MSG_ERROR(*** Can't find GTK))
|
|
|
|
AC_CHECK_LIB(gtkgl, gtk_gl_area_begingl, LIBS="$LIBS -lgtkgl",
|
|
AC_MSG_ERROR(*** Can't find gtkglarea))
|
|
|
|
AM_PATH_GIMP(1.0.0, CFLAGS="$CFLAGS $GIMP_CFLAGS"; LIBS="$LIBS $GIMP_LIBS",
|
|
AC_MSG_ERROR(*** Can't find GIMP))
|
|
|
|
dnl Output stuff.
|
|
AC_OUTPUT(Makefile)
|