diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..c18a7a9 --- /dev/null +++ b/configure.in @@ -0,0 +1,93 @@ +AC_INIT(AUTHORS) +AM_INIT_AUTOMAKE(oregano, 0.70) + +AM_CONFIG_HEADER(config.h) +AM_MAINTAINER_MODE + +GETTEXT_PACKAGE=oregano +AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", + [GetText version number]) + +AC_ISC_POSIX +AC_PROG_CC +AC_HEADER_STDC + +dnl AC_PROG_INTLTOOL([0.35.0]) +AC_PROG_INTLTOOL([0.35.0], [no-xml]) + +AM_PROG_LIBTOOL + +# Just run true if these don't exist +AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, true) +AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, true) + +AC_ARG_ENABLE(update-mimedb, + AC_HELP_STRING([--disable-update-mimedb], + [disable the update-mime-database after install [default=no]]),, + enable_update_mimedb=yes) +AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes) + +ALL_LINGUAS="ca de es fr it ja pt_BR ro ru sv" +AM_GLIB_GNU_GETTEXT + +dnl ########################################################################### +dnl Check for documentation requirements +dnl ########################################################################### +AC_SUBST(SCROLLKEEPER_REQUIRED) +AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no) +if test x$SCROLLKEEPER_CONFIG = xno; then + AC_MSG_ERROR(Couldn't find scrollkeeper-config, please install the scrollkeeper package) +fi + + +# Change to support gnomeprint2.0 and 2.2 +PKG_CHECK_MODULES(OREGANO, + gtk+-2.0 >= 2.10.0 \ + libglade-2.0 >= 2.5.0 \ + libgnomeui-2.0 >= 2.12.0 \ + libxml-2.0 >= 2.6.0 \ + libgnomecanvas-2.0 >= 2.12.0 \ + gtksourceview-2.0 >= 2.0 \ + cairo >= 1.2.0) + +AC_SUBST(CFLAGS) +AC_SUBST(CPPFLAGS) +AC_SUBST(LDFLAGS) +AC_SUBST(OREGANO_LIBS) +AC_SUBST(OREGANO_CFLAGS) + +AC_OUTPUT([ +Makefile +data/oregano.desktop.in +src/Makefile +src/gplot/Makefile +src/sheet/Makefile +src/model/Makefile +src/engines/Makefile +src/stock/Makefile +src/pixmaps/Makefile +po/Makefile.in +help/Makefile +help/C/Makefile +help/es/Makefile +help/fr/Makefile +data/Makefile +data/glade/Makefile +data/models/Makefile +data/libraries/Makefile +data/examples/Makefile +data/mime/Makefile +docs/Makefile +stamp.h +]) + +echo " + +Configuration: + Source code location: ${srcdir} + Compiler: ${CC} + + Install location: ${prefix} + +Type make to build Oregano." |