AC_INIT(README) AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(gtk-sharp, 0.18.99) 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 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) 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 ) PKG_CHECK_MODULES(MONO_DEPENDENCY, mono, has_mono=true, has_mono=false) if test "x$has_mono" = "xtrue"; then if test `uname -s` = "Darwin"; then AC_PATH_PROG(RUNTIME, mint, no) AC_PATH_PROG(CSC, mcs, no) else AC_PATH_PROG(RUNTIME, mono, no) AC_PATH_PROG(CSC, mcs, no) fi else AC_PATH_PROG(CSC, csc.exe, no) if test x$CSC = "xno"; then AC_MSG_ERROR([You need to install either mono or .Net]) else RUNTIME= fi fi CS="C#" if test "x$CSC" = "xno" ; then AC_MSG_ERROR([No $CS compiler found]) fi AC_SUBST(RUNTIME) AC_SUBST(CSC) MONODOC_REQUIRED_VERSION=0.12 PKG_CHECK_MODULES(MONODOC_DEPENDENCY, monodoc >= $MONODOC_REQUIRED_VERSION, enable_monodoc=yes, enable_monodoc=no) if test "x$enable_monodoc" = "xyes"; then AC_PATH_PROG(MONODOC, monodoc, no) if x$MONODOC = xno; then enable_monodoc=no fi else MONODOC= fi AC_SUBST(MONODOC) 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) ## Versions of dependencies GNOME_REQUIRED_VERSION=2.2.0 GTK_REQUIRED_VERSION=2.2.0 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) 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 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 LIBGDA_REQUIRED_VERSION=1.0.0 PKG_CHECK_MODULES(LIBGDA_DEPENDENCIES, libgda >= $LIBGDA_REQUIRED_VERSION, enable_gda=yes, enable_gda=no) enable_gnomedb=no 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" 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 fi 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 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 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 AC_SUBST(BASE_DEPENDENCIES_CFLAGS) AC_SUBST(BASE_DEPENDENCIES_LIBS) AM_CONDITIONAL(ENABLE_LIBART, test "x$enable_libart" = "xyes") AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_gnome" = "xyes") AM_CONDITIONAL(ENABLE_GLADE, test "x$enable_glade" = "xyes") AM_CONDITIONAL(ENABLE_GDA, test "x$enable_gda" = "xyes") AM_CONDITIONAL(ENABLE_GNOMEDB, test "x$enable_gnomedb" = "xyes") AM_CONDITIONAL(ENABLE_RSVG, test "x$enable_rsvg" = "xyes") AM_CONDITIONAL(ENABLE_GTKHTML, test "x$enable_gtkhtml" = "xyes") AM_CONDITIONAL(ENABLE_VTE, test "x$enable_vte" = "xyes") AM_CONDITIONAL(ENABLE_MONODOC, test "x$enable_monodoc" = "xyes") AC_SUBST(CFLAGS) AC_OUTPUT([ sources/Makefile parser/Makefile parser/GAPI/Makefile generator/Makefile generator/gapi-codegen glib/Makefile glib/glue/Makefile pango/Makefile atk/Makefile art/Makefile art/art-sharp.pc gdk/Makefile gdk/glue/Makefile gtk/Makefile gtk/glue/Makefile glade/Makefile glade/glade-sharp.pc glade/glue/Makefile gnome/Makefile gnome/gnome-sharp.pc gnome/glue/Makefile gda/Makefile gda/gda-sharp.pc gnomedb/Makefile gnomedb/gnomedb-sharp.pc gconf/Makefile gconf/doc/Makefile gconf/GConf/Makefile gconf/GConf/gconf-sharp.pc gconf/GConf.PropertyEditors/Makefile gconf/tools/Makefile gconf/tools/gconfsharp-schemagen gtkhtml/Makefile gtkhtml/gtkhtml-sharp.pc rsvg/Makefile rsvg/rsvg-sharp.pc vte/Makefile vte/vte-sharp.pc doc/Makefile sample/GtkDemo/Makefile sample/Makefile sample/gconf/Makefile sample/pixmaps/Makefile sample/rsvg/Makefile sample/test/Makefile gtk-sharp.pc parser/gapi.pc parser/gapi-fixup Makefile ]) echo "---" echo "Configuration summary" echo "" echo " * Installation prefix = $prefix" echo " * $CS compiler: $CSC" echo " * Documentation: $enable_monodoc ($MONODOC)" echo "" echo " Optional assemblies included in the build:" echo "" echo " * art-sharp.dll: $enable_libart" echo " * gnome-sharp.dll: $enable_gnome" echo " * glade-sharp.dll: $enable_glade" echo " * gda-sharp.dll: $enable_gda" echo " * gnomedb-sharp.dll: $enable_gnomedb" echo " * rsvg-sharp.dll: $enable_rsvg " echo " * gtkhtml-sharp.dll: $enable_gtkhtml " echo " * vte-sharp.dll: $enable_vte " 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 "---"