source: trunk/third/rep-gtk/configure.in @ 18404

Revision 18404, 3.9 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18403, which included commits to RCS files with non-trunk default branches.
RevLine 
[15285]1dnl  Process this file with autoconf to produce a configure script.
2dnl  Copyright (C) 1998 John Harper <john@dcs.warwick.ac.uk>
[18403]3dnl  $Id: configure.in,v 1.1.1.3 2003-01-05 00:30:19 ghudson Exp $
[15285]4dnl
5dnl  This file is part of Jade.
6dnl
7dnl  Jade is free software; you can redistribute it and/or modify it
8dnl  under the terms of the GNU General Public License as published by
9dnl  the Free Software Foundation; either version 2, or (at your option)
10dnl  any later version.
11dnl
12dnl  Jade is distributed in the hope that it will be useful, but
13dnl  WITHOUT ANY WARRANTY; without even the implied warranty of
14dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15dnl  GNU General Public License for more details.
16dnl
17dnl  You should have received a copy of the GNU General Public License
18dnl  along with Jade; see the file COPYING.  If not, write to
19dnl  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20
[18403]21AC_REVISION($Revision: 1.1.1.3 $)
[15285]22
23AC_INIT(rep-gtk.h)
24AC_CONFIG_HEADER(config.h)
25
26dnl Release versioning info
[18403]27version="0.17"
[15285]28
[18403]29OUT="gtk-2/types.la gtk-2/gtk.la"
[15285]30AC_SUBST(OUT)
31
32dnl Find the system type; this isn't crucial
33AC_CANONICAL_HOST
34
35dnl Checks for programs.
36AC_PROG_CC
37AC_PROG_CPP
38AC_PROG_INSTALL
39AC_PROG_LN_S
40AC_PROG_MAKE_SET
41AC_PROG_GCC_TRADITIONAL
42
43dnl If using GCC and it doesn't look as though the cflags have been
44dnl set explicitly, add some warning options. Turn off implicit-int
45dnl warnings since the X11 includes on Solaris generate a lot of these
46if test "x${GCC}" = "xyes" -a "x$CFLAGS" = "x-g -O2"; then
47  CFLAGS="${CFLAGS} -Wall -Wmissing-prototypes -Wno-implicit-int"
48fi
49
50dnl Check for librep
51AM_PATH_REP(0.13)
52
53dnl Check for glib
[18403]54PKG_CHECK_MODULES(GLIB, glib-2.0 >= 1.3)
[15285]55
56dnl Check for GTK
[18403]57PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 1.3,,AC_ERROR(need at least Gtk+ version 1.3))
[15285]58
[18403]59PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0 >= 1.3.11)
60
[15285]61dnl Check for libgnome
62AC_MSG_CHECKING([for GNOME libs])
63AC_ARG_WITH(gnome,
64 [  --with-gnome            Build GNOME wrappers
[18403]65  --without-gnome         Don't wrap GNOME], [], [with_gnome=no])
[15285]66if test "$with_gnome" != "no"; then
[18403]67  GNOME_VERSION="`pkg-config --modversion libgnome-2.0`"
[15285]68  if test $? -eq 0; then
[18403]69    dnl XXX FIXME properly
70    GNOME_LIBS="`pkg-config --libs libgnome-2.0`"
71    GNOME_CFLAGS="`pkg-config --cflags libgnome-2.0`"
72    GNOMEUI_LIBS="`pkg-config --libs libgnomeui-2.0`"
73    GNOMEUI_CFLAGS="`pkg-config --cflags libgnomeui-2.0`"
74    GNOME_CANVAS_LIBS="`pkg-config --libs libgnomecanvas-2.0`"
75    GNOME_CANVAS_CFLAGS="`pkg-config --cflags libgnomecanvas-2.0`"
[15285]76    AC_MSG_RESULT([$GNOME_VERSION])
[18403]77    OUT="$OUT gtk-2/gnome-lib.la gtk-2/gnome-ui.la gtk-2/gnome-canvas.la"
[15285]78    with_gnome=yes
79  elif test "$with_gnome" = "yes"; then
[18403]80    AC_MSG_ERROR([can't run pkg-config]);
[15285]81  else
82    with_gnome=no
83  fi
84fi
85AC_SUBST(GNOME_VERSION)
86AC_SUBST(GNOME_LIBS)
87AC_SUBST(GNOME_CFLAGS)
[18403]88AC_SUBST(GNOMEUI_LIBS)
89AC_SUBST(GNOMEUI_CFLAGS)
90AC_SUBST(GNOME_CANVAS_LIBS)
91AC_SUBST(GNOME_CANVAS_CFLAGS)
[15285]92
93dnl Check for libglade
94AC_ARG_WITH(libglade,
95 [  --with-libglade         Build libglade wrappers (dynamic GUI builder)
96  --without-libglade      Don't wrap libglade], [], [with_libglade=yes])
97if test "$with_libglade" = "yes"; then
[18403]98  PKG_CHECK_MODULES(LIBGLADE, libglade-2.0 >= 1.99,
99                    [OUT="$OUT gtk-2/libglade.la"])
[15285]100fi
101
102dnl Checks for typedefs, structures, and compiler characteristics.
103AC_C_CONST
104AC_C_INLINE
105AC_TYPE_SIZE_T
106
107dnl Check for cutting edge Gtk functions
108saved_LIBS="$LIBS"
109LIBS="$GTK_LIBS $saved_LIBS"
110AC_CHECK_FUNCS(gdk_color_copy gtk_widget_peek_colormap gtk_type_get_info gtk_signal_set_class_function_full)
111LIBS="$saved_LIBS"
112
113dnl locale checks
114AC_CHECK_FUNCS(setlocale)
115AC_CHECK_HEADERS(locale.h)
116
117dnl Nonstandard exported symbols
118AC_SUBST(version)
119AC_SUBST(repexecdir)
120AC_SUBST(CPPFLAGS)
121AC_SUBST(CFLAGS)
122AC_SUBST(LIBS)
123
124AC_DEFINE_UNQUOTED(REP_GTK_VERSION, "${version}")
125
126AC_OUTPUT(Makefile rep-gtk.spec)
127
128dnl Local variables:
129dnl major-mode: sh-mode
130dnl End:
Note: See TracBrowser for help on using the repository browser.