"Fossies" - the Fresh Open Source Software Archive

Member "gtkdatabox-1.0.0/configure.ac" (31 Mar 2021, 3639 Bytes) of package /linux/privat/gtkdatabox-1.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure.ac": 0.9.3.1_vs_1.0.0.

    1 # $Id: configure.ac 4 2008-06-22 09:19:11Z rbock $
    2 #
    3 # This configure.in file has been started by looking at the tutorial of
    4 # Ralph Levien
    5 # at http://www.levien.com/gnome/cvs-lib-howto.html
    6 #
    7 # Additional features where taken from gtk+-1.1.1/configure.in and allied 
    8 # files.
    9 # 
   10 # Thank's to all the gimp-glib-gtk-gnome-etc.-people
   11 #
   12 
   13 # Initialize autoconf by any header file of the source
   14 #
   15 m4_define([databox_current],  [1]) # Increment in case of any change in existing API.
   16 m4_define([databox_revision], [0]) # Increment for bug fixes, code cleanup, etc. When 'databox_current' increments, reset 'databox_revision' to 0.
   17 m4_define([databox_age],      [0]) # Increment in case of only new functions being added. If some function were removed or changed, reset 'databox-age' to 0.
   18 m4_define([databox_lt_version],  [databox_current:databox_revision:databox_age])
   19 m4_define([databox_version],  [databox_current.databox_revision.databox_age])
   20 AC_INIT(gtkdatabox, databox_version)
   21 
   22 # This configures autoheader to generate a config.h file
   23 #
   24 AM_CONFIG_HEADER(config.h)
   25 
   26 AC_SUBST(DATABOX_LT_VERSION, [databox_lt_version])
   27 AC_SUBST(DATABOX_VERSION, [databox_version])
   28 
   29 #AM_INIT_AUTOMAKE(gtkdatabox, databox_version)
   30 AM_INIT_AUTOMAKE([tar-ustar])
   31 
   32 AC_LIBTOOL_WIN32_DLL
   33 AM_PROG_LIBTOOL
   34 
   35 AC_PROG_CC_C99
   36 AC_PROG_CPP
   37 AC_PROG_INSTALL
   38 
   39 m4_define([gtk_required_version], [3.4.0])
   40 m4_define([pango_required_version], [1.29.0])
   41 m4_define([cairo_required_version], [1.10.0])
   42 
   43 PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= [gtk_required_version]])
   44 PKG_CHECK_MODULES(GTK, [gdk-3.0 >= [gtk_required_version]])
   45 PKG_CHECK_MODULES(PANGO, pango >= [pango_required_version])
   46 PKG_CHECK_MODULES(CAIRO, cairo >= [cairo_required_version]) 
   47 AC_SUBST(GTK_REQUIRED, [gtk_required_version])
   48 AC_SUBST(PANGO_REQUIRED, [pango_required_version])
   49 AC_SUBST(CAIRO_REQUIRED, [cairo_required_version])
   50 
   51 # Remove some deprecated code for GTK >= 3.18.0
   52 if test x`pkg-config --atleast-version=3.18.0 gtk+-3.0; echo $?` = x0; then
   53 	AC_DEFINE(GTK3_18, 1, Remove deprecated code for GTK version >= 3.18.0)
   54 fi
   55 
   56 # ------------------ Glade3 configuration ------------------------
   57 
   58 AC_ARG_ENABLE(glade,
   59 	[  --enable-glade	  enable glade-3 support],
   60 	[ac_cv_enable_glade=$enableval], [ac_cv_enable_glade=no])
   61 AC_MSG_CHECKING([whether to build glade-3 support module])
   62 if test x"$ac_cv_enable_glade" = xyes; then
   63 	AC_MSG_RESULT(yes)
   64 	PKG_CHECK_MODULES(GLADE3, gladeui-2.0 >= 3.4.0,
   65 			ac_cv_enable_glade=yes, ac_cv_enable_glade=no)
   66 	if test x"$ac_cv_enable_glade" = xyes; then
   67 		AC_DEFINE(USE_GLADE, 1, Define if you want glade interface builder support)
   68 		glade_moduledir=`pkg-config gladeui-2.0 --variable=moduledir`
   69 		AC_DEFINE_UNQUOTED(GLADE_MODULEDIR, [$glade_moduledir], [Glade-3 module directory])
   70 		glade_catalogdir=`pkg-config gladeui-2.0 --variable=catalogdir`
   71 		AC_DEFINE_UNQUOTED(GLADE_CATALOGDIR, [$glade_catalogdir], [Glade-3 catalog directory])
   72 	else
   73 		AC_MSG_RESULT(not found)
   74 	fi
   75 else
   76 	AC_MSG_RESULT(no)
   77 fi
   78 
   79 AC_SUBST(GLADE3_CFLAGS)
   80 AC_SUBST(GLADE3_LIBS)
   81 AC_SUBST(glade_moduledir)
   82 AC_SUBST(glade_catalogdir)
   83 
   84 AM_CONDITIONAL(BUILD_GLADE, test x"$ac_cv_enable_glade" = xyes)
   85 
   86 # ------------------ End of Glade 3 configuration ------------------------
   87 
   88 
   89 # Check for gtk-doc
   90 AC_CONFIG_MACRO_DIR(m4)
   91 m4_ifdef([GTK_DOC_CHECK], [
   92 GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
   93 ],[
   94 AM_CONDITIONAL([ENABLE_GTK_DOC], false)
   95 ])
   96 
   97 AC_OUTPUT(Makefile              \
   98 	gtk/Makefile            \
   99 	glade/Makefile		\
  100 	examples/Makefile       \
  101 	doc/Makefile		\
  102         gtkdatabox.pc           \
  103         gtkdatabox.spec         \
  104 	)
  105 
  106 AC_MSG_RESULT([
  107 	Install glade-3 module:         ${ac_cv_enable_glade}
  108 ])
  109