2002-04-25 09:17:54 +00:00
|
|
|
|
|
|
|
AC_INIT(README)
|
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
2004-02-26 21:05:53 +00:00
|
|
|
AM_INIT_AUTOMAKE(gtk-sharp, 0.18)
|
2002-04-25 09:17:54 +00:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
AC_CHECK_TOOL(CC, gcc, gcc)
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
dnl may require a specific autoconf version
|
|
|
|
dnl AC_PROG_CC_FOR_BUILD
|
|
|
|
dnl CC_FOR_BUILD not automatically detected
|
|
|
|
CC_FOR_BUILD=$CC
|
|
|
|
BUILD_EXEEXT=
|
|
|
|
if test "x$cross_compiling" = "xyes"; then
|
|
|
|
CC_FOR_BUILD=cc
|
|
|
|
BUILD_EXEEXT=""
|
|
|
|
fi
|
|
|
|
AC_SUBST(CC_FOR_BUILD)
|
|
|
|
AC_SUBST(HOST_CC)
|
|
|
|
AC_SUBST(BUILD_EXEEXT)
|
|
|
|
|
|
|
|
# Set STDC_HEADERS
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
# not 64 bit clean in cross-compile
|
|
|
|
AC_CHECK_SIZEOF(void *, 4)
|
|
|
|
|
|
|
|
CFLAGS='-g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
|
|
|
|
|
|
|
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
|
|
|
if test "x$PKG_CONFIG" = "xno"; then
|
|
|
|
AC_MSG_ERROR([You need to install pkg-config])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl for use on the build system
|
2002-06-10 12:34:09 +00:00
|
|
|
BUILD_GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
|
|
|
|
BUILD_GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
|
|
|
|
AC_SUBST(BUILD_GTK_CFLAGS)
|
|
|
|
AC_SUBST(BUILD_GTK_LIBS)
|
2002-04-25 09:17:54 +00:00
|
|
|
|
|
|
|
PKG_PATH=
|
|
|
|
AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir],
|
|
|
|
if test x$with_crosspkgdir = "x"; then
|
|
|
|
if test -s $PKG_CONFIG_PATH; then
|
|
|
|
PKG_PATH=$PKG_CONFIG_PATH
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
PKG_PATH=$with_crosspkgdir
|
|
|
|
PKG_CONFIG_PATH=$PKG_PATH
|
|
|
|
export PKG_CONFIG_PATH
|
|
|
|
fi
|
|
|
|
)
|
|
|
|
|
2004-03-12 21:18:11 +00:00
|
|
|
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono, has_mono=true, has_mono=false)
|
2003-11-07 18:14:35 +00:00
|
|
|
|
2004-03-12 21:18:11 +00:00
|
|
|
if test "x$has_mono" = "xtrue"; then
|
2004-03-10 15:57:33 +00:00
|
|
|
if test `uname -s` = "Darwin"; then
|
2004-03-22 06:23:07 +00:00
|
|
|
AC_PATH_PROG(RUNTIME, mint, no)
|
|
|
|
AC_PATH_PROG(CSC, mcs, no)
|
2004-03-10 15:57:33 +00:00
|
|
|
else
|
2004-03-22 06:23:07 +00:00
|
|
|
AC_PATH_PROG(RUNTIME, mono, no)
|
|
|
|
AC_PATH_PROG(CSC, mcs, no)
|
2004-03-10 15:57:33 +00:00
|
|
|
fi
|
2004-03-12 21:18:11 +00:00
|
|
|
else
|
2004-03-22 06:23:07 +00:00
|
|
|
AC_PATH_PROG(CSC, csc.exe, no)
|
|
|
|
if test x$CSC = "xno"; then
|
2004-03-12 21:18:11 +00:00
|
|
|
AC_MSG_ERROR([You need to install either mono or .Net])
|
|
|
|
else
|
|
|
|
RUNTIME=
|
|
|
|
fi
|
|
|
|
fi
|
2004-03-22 06:23:07 +00:00
|
|
|
|
|
|
|
CS="C#"
|
|
|
|
if test "x$CSC" = "xno" ; then
|
|
|
|
AC_MSG_ERROR([No $CS compiler found])
|
|
|
|
fi
|
|
|
|
|
2004-03-12 21:18:11 +00:00
|
|
|
AC_SUBST(RUNTIME)
|
|
|
|
AC_SUBST(CSC)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(GLIB, glib-2.0)
|
|
|
|
AC_SUBST(GLIB_CFLAGS)
|
|
|
|
AC_SUBST(GLIB_LIBS)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(XML, libxml-2.0)
|
|
|
|
AC_SUBST(XML_CFLAGS)
|
|
|
|
AC_SUBST(XML_LIBS)
|
2002-07-05 20:22:21 +00:00
|
|
|
|
2002-04-25 09:17:54 +00:00
|
|
|
## Versions of dependencies
|
2004-03-12 21:18:11 +00:00
|
|
|
GNOME_REQUIRED_VERSION=2.2.0
|
2003-07-15 05:52:09 +00:00
|
|
|
GTK_REQUIRED_VERSION=2.2.0
|
2004-03-12 21:18:11 +00:00
|
|
|
|
|
|
|
PKG_CHECK_MODULES(LIBART, libart-2.0 >= $GNOME_REQUIRED_VERSION, enable_libart=yes, enable_libart=no)
|
|
|
|
AC_SUBST(LIBART_CFLAGS)
|
|
|
|
AC_SUBST(LIBART_LIBS)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(BASE_DEPENDENCIES, libgnomecanvas-2.0 >= $GNOME_REQUIRED_VERSION libgnomeui-2.0 >= $GNOME_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION libgnomeprintui-2.2 >= $GNOME_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION, enable_gnome=yes, enable_gnome=no)
|
2002-07-05 20:22:21 +00:00
|
|
|
|
|
|
|
if test "x$enable_gnome" = "xno"; then
|
|
|
|
PKG_CHECK_MODULES(BASE_DEPENDENCIES, gtk+-2.0 >= $GTK_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION)
|
|
|
|
fi
|
2002-04-25 09:17:54 +00:00
|
|
|
|
2002-08-12 19:14:44 +00:00
|
|
|
GLADE_REQUIRED_VERSION=2.0.0
|
|
|
|
PKG_CHECK_MODULES(GLADE_DEPENDENCIES, libglade-2.0 >= $GLADE_REQUIRED_VERSION, enable_glade=yes, enable_glade=no)
|
|
|
|
if test "x$enable_glade" = "xyes"; then
|
|
|
|
BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $GLADE_DEPENDENCIES_CFLAGS"
|
|
|
|
BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $GLADE_DEPENDENCIES_LIBS"
|
|
|
|
fi
|
2002-04-25 09:17:54 +00:00
|
|
|
|
2003-11-18 19:57:05 +00:00
|
|
|
LIBGDA_REQUIRED_VERSION=1.0.0
|
2002-09-01 10:28:11 +00:00
|
|
|
PKG_CHECK_MODULES(LIBGDA_DEPENDENCIES, libgda >= $LIBGDA_REQUIRED_VERSION, enable_gda=yes, enable_gda=no)
|
2002-11-06 03:53:24 +00:00
|
|
|
enable_gnomedb=no
|
2002-09-01 10:28:11 +00:00
|
|
|
if test "x$enable_gda" = "xyes"; then
|
|
|
|
BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $LIBGDA_DEPENDENCIES_CFLAGS"
|
|
|
|
BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $LIBGDA_DEPENDENCIES_LIBS"
|
2002-09-11 09:43:17 +00:00
|
|
|
|
|
|
|
PKG_CHECK_MODULES(LIBGNOMEDB_DEPENDENCIES, libgnomedb >= $LIBGDA_REQUIRED_VERSION, enable_gnomedb=yes, enable_gnomedb=no)
|
|
|
|
if test "x$enable_gnomedb" = "xyes"; then
|
|
|
|
BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $LIBGNOMEDB_DEPENDENCIES_CFLAGS"
|
|
|
|
BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $LIBGNOMEDB_DEPENDENCIES_LIBS"
|
|
|
|
fi
|
2002-09-01 10:28:11 +00:00
|
|
|
fi
|
|
|
|
|
2003-02-27 05:16:47 +00:00
|
|
|
RSVG_REQUIRED_VERSION=2.0.1
|
|
|
|
PKG_CHECK_MODULES(RSVG_DEPENDENCIES, librsvg-2.0 >= $RSVG_REQUIRED_VERSION, enable_rsvg=yes, enable_rsvg=no)
|
|
|
|
if test "x$enable_rsvg" = "xyes"; then
|
|
|
|
BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $RSVG_DEPENDENCIES_CFLAGS"
|
|
|
|
BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $RSVG_DEPENDENCIES_LIBS"
|
|
|
|
fi
|
|
|
|
|
2003-11-18 19:57:05 +00:00
|
|
|
GTKHTML_REQUIRED_VERSION=3.0
|
|
|
|
PKG_CHECK_MODULES(GTKHTML_DEPENDENCIES, libgtkhtml-3.0 >= $GTKHTML_REQUIRED_VERSION, enable_gtkhtml=yes, enable_gtkhtml=no)
|
|
|
|
if test "x$enable_gtkhtml" = "xyes"; then
|
|
|
|
BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $GTKHTML_DEPENDENCIES_CFLAGS"
|
|
|
|
BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $GTKHTML_DEPENDENCIES_LIBS"
|
|
|
|
fi
|
2003-02-27 05:16:47 +00:00
|
|
|
|
2004-01-17 22:47:35 +00:00
|
|
|
VTE_REQUIRED_VERSION=0.11.10
|
|
|
|
PKG_CHECK_MODULES(VTE_DEPENDENCIES, vte >= $VTE_REQUIRED_VERSION, enable_vte=yes, enable_vte=no)
|
|
|
|
if test "x$enable_vte" = "xyes"; then
|
|
|
|
BASE_DEPENDENCIES_CFLAGS="$BASE_DEPENDENCIES_CFLAGS $VTE_DEPENDENCIES_CFLAGS"
|
|
|
|
BASE_DEPENDENCIES_LIBS="$BASE_DEPENDENCIES_LIBS $VTE_DEPENDENCIES_LIBS"
|
|
|
|
fi
|
|
|
|
|
2002-07-05 20:22:21 +00:00
|
|
|
AC_SUBST(BASE_DEPENDENCIES_CFLAGS)
|
|
|
|
AC_SUBST(BASE_DEPENDENCIES_LIBS)
|
2002-04-25 09:17:54 +00:00
|
|
|
|
2004-03-12 21:18:11 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_LIBART, test "x$enable_libart" = "xyes")
|
2002-07-05 20:22:21 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_gnome" = "xyes")
|
2002-08-12 19:14:44 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_GLADE, test "x$enable_glade" = "xyes")
|
2002-09-01 10:28:11 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_GDA, test "x$enable_gda" = "xyes")
|
2002-09-11 09:43:17 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_GNOMEDB, test "x$enable_gnomedb" = "xyes")
|
2003-02-27 05:16:47 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_RSVG, test "x$enable_rsvg" = "xyes")
|
2003-11-18 19:57:05 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_GTKHTML, test "x$enable_gtkhtml" = "xyes")
|
2004-01-17 22:47:35 +00:00
|
|
|
AM_CONDITIONAL(ENABLE_VTE, test "x$enable_vte" = "xyes")
|
2003-11-18 19:57:05 +00:00
|
|
|
|
2002-04-25 09:17:54 +00:00
|
|
|
|
|
|
|
AC_SUBST(CFLAGS)
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
2004-03-12 21:18:11 +00:00
|
|
|
sources/Makefile
|
2002-08-20 20:46:14 +00:00
|
|
|
parser/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
parser/GAPI/Makefile
|
2002-08-20 20:54:28 +00:00
|
|
|
generator/Makefile
|
2003-11-07 18:14:35 +00:00
|
|
|
generator/gapi-codegen
|
2002-05-02 21:57:41 +00:00
|
|
|
glib/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
glib/glue/Makefile
|
2002-05-02 21:57:41 +00:00
|
|
|
pango/Makefile
|
|
|
|
atk/Makefile
|
2004-03-18 20:56:32 +00:00
|
|
|
atk/glue/Makefile
|
2002-08-15 16:44:41 +00:00
|
|
|
art/Makefile
|
2002-05-02 21:57:41 +00:00
|
|
|
gdk/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
gdk/glue/Makefile
|
2002-05-02 21:57:41 +00:00
|
|
|
gtk/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
gtk/glue/Makefile
|
2002-08-12 19:14:44 +00:00
|
|
|
glade/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
glade/glue/Makefile
|
2002-06-26 Rachel Hestilow <hestilow@ximian.com>
* configure.in, makefile, makefile.win32: add gnome.
* doc/index.html, netdoc.xsl: Add gnome.
* gdk/Event.cs: New manual wrap for GdkEvent.
* generator/ClassBase.cs: Add methods GetProperty,
GetPropertyRecursively, GetMethodRecursively.
Move Parent property here from ObjectGen.cs. Pass this pointer
into Property.
* generator/Ctor.cs: Generate docs.
* generator/Method.cs, Property.cs: Tag method as "new" if a
Method/Property with the same name is found in the class hierarchy.
* generator/SignalHandler.cs: Correctly wrap complex signal argument
types. Add gnome directory.
* generator/SymbolTable.cs: Add manually wrapped types hash
(contains GLib.GSList and Gdk.Event). Add method IsManuallyWrapped.
* glib/SList.cs: Add constructor from IntPtr.
* glue/slist.c, glue/event.c: Added (field accessor glue).
* glue/Makefile.am: Update.
* parser/Gtk.metadata: Add new signal renames for new signals
exposed by GdkEvent changes.
* parser/README, parser/build.pl: Add libgnome, libgnomecanvas,
libgnomeui.
* parser/gapi2xml.pl: Handle literal-length array parameters,
and NULL property doc strings.
* sample/: Add new test GnomeHelloWorld.cs.
* gnome/: Added.
* parser/Gnome.metadata: Added.
svn path=/trunk/gtk-sharp/; revision=5461
2002-06-26 08:36:05 +00:00
|
|
|
gnome/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
gnome/glue/Makefile
|
2002-09-01 10:28:11 +00:00
|
|
|
gda/Makefile
|
2002-09-11 09:43:17 +00:00
|
|
|
gnomedb/Makefile
|
2002-10-19 09:31:20 +00:00
|
|
|
gconf/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
gconf/doc/Makefile
|
2002-10-19 09:31:20 +00:00
|
|
|
gconf/GConf/Makefile
|
|
|
|
gconf/GConf.PropertyEditors/Makefile
|
|
|
|
gconf/tools/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
gconf/tools/gconfsharp-schemagen
|
2003-10-07 05:52:23 +00:00
|
|
|
gtkhtml/Makefile
|
2003-02-27 05:16:47 +00:00
|
|
|
rsvg/Makefile
|
2004-01-17 22:47:35 +00:00
|
|
|
vte/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
sample/GtkDemo/Makefile
|
2002-05-02 21:57:41 +00:00
|
|
|
sample/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
sample/gconf/Makefile
|
|
|
|
sample/pixmaps/Makefile
|
2003-03-14 07:31:51 +00:00
|
|
|
sample/rsvg/Makefile
|
2004-03-12 21:18:11 +00:00
|
|
|
sample/test/Makefile
|
2003-04-21 15:25:26 +00:00
|
|
|
gtk-sharp.pc
|
|
|
|
parser/gapi.pc
|
2003-11-07 18:14:35 +00:00
|
|
|
parser/gapi-fixup
|
2003-04-21 15:25:26 +00:00
|
|
|
Makefile
|
2002-04-25 09:17:54 +00:00
|
|
|
])
|
|
|
|
|
2002-11-06 03:53:24 +00:00
|
|
|
echo "---"
|
|
|
|
echo "Configuration summary"
|
|
|
|
echo ""
|
|
|
|
echo " * Installation prefix = $prefix"
|
2004-03-22 06:23:07 +00:00
|
|
|
echo " * $CS compiler: $CSC"
|
2002-11-06 03:53:24 +00:00
|
|
|
echo ""
|
|
|
|
echo " Optional assemblies included in the build:"
|
|
|
|
echo ""
|
2004-03-12 21:18:11 +00:00
|
|
|
echo " * art-sharp.dll: $enable_libart"
|
2002-11-06 03:53:24 +00:00
|
|
|
echo " * gnome-sharp.dll: $enable_gnome"
|
|
|
|
echo " * glade-sharp.dll: $enable_glade"
|
|
|
|
echo " * gda-sharp.dll: $enable_gda"
|
|
|
|
echo " * gnomedb-sharp.dll: $enable_gnomedb"
|
2003-02-27 05:16:47 +00:00
|
|
|
echo " * rsvg-sharp.dll: $enable_rsvg "
|
2003-11-18 19:57:05 +00:00
|
|
|
echo " * gtkhtml-sharp.dll: $enable_gtkhtml "
|
2004-01-17 22:47:35 +00:00
|
|
|
echo " * vte-sharp.dll: $enable_vte "
|
2002-11-06 03:53:24 +00:00
|
|
|
echo ""
|
|
|
|
echo " NOTE: if any of the above say 'no' you may install the"
|
|
|
|
echo " corresponding development packages for them, rerun"
|
|
|
|
echo " autogen.sh to include them in the build."
|
|
|
|
echo ""
|
|
|
|
echo "---"
|
2002-04-25 09:17:54 +00:00
|
|
|
|