2006-11-25 09:46:37 -08:00
|
|
|
AC_DEFUN([_MOO_AC_CONFIGURE_ARGS],[
|
|
|
|
moo_ac_configure_args=`echo "$ac_configure_args" | sed 's/^ //; s/\\""\`\$/\\\\&/g'`
|
|
|
|
cat >configargs.h.tmp <<EOF
|
|
|
|
static const char configure_args@<:@@:>@ = "$moo_ac_configure_args";
|
|
|
|
EOF
|
|
|
|
cmp -s configargs.h configargs.h.tmp || mv configargs.h.tmp configargs.h
|
|
|
|
AC_DEFINE(HAVE_CONFIGARGS_H, 1, [configargs.h is created])
|
|
|
|
])
|
|
|
|
|
2006-03-13 00:13:47 -08:00
|
|
|
##############################################################################
|
2006-09-23 08:54:48 -07:00
|
|
|
# MOO_AC_FLAGS(moo_top_dir)
|
2006-03-13 00:13:47 -08:00
|
|
|
#
|
|
|
|
AC_DEFUN([MOO_AC_FLAGS],[
|
2006-12-10 21:35:07 -08:00
|
|
|
AC_REQUIRE([MOO_AC_CHECK_OS])
|
|
|
|
AC_REQUIRE([MOO_AC_FUNCS])
|
|
|
|
AC_REQUIRE([MOO_PKG_CHECK_GTK_VERSIONS])
|
|
|
|
AC_REQUIRE([MOO_AC_SET_DIRS])
|
|
|
|
AC_REQUIRE([MOO_AC_DEBUG])
|
|
|
|
AC_REQUIRE([MOO_AC_FAM])
|
|
|
|
AC_REQUIRE([MOO_AC_XML])
|
|
|
|
AC_REQUIRE([MOO_AC_XDGMIME])
|
|
|
|
AC_REQUIRE([MOO_AC_PYGTK])
|
|
|
|
AC_REQUIRE([MOO_AC_PCRE])
|
|
|
|
|
|
|
|
if test x$MOO_OS_UNIX != xyes; then
|
|
|
|
AM_CONDITIONAL(MOO_INSTALL_LIB, true)
|
|
|
|
AM_CONDITIONAL(MOO_BUILD_PYTHON_MODULE, true)
|
|
|
|
AC_DEFINE(MOO_BUILD_PYTHON_MODULE, 1, MOO_BUILD_PYTHON_MODULE)
|
|
|
|
AM_CONDITIONAL(MOO_INSTALL_HEADERS, false)
|
|
|
|
else
|
|
|
|
AM_CONDITIONAL(MOO_INSTALL_LIB, false)
|
|
|
|
AM_CONDITIONAL(MOO_BUILD_PYTHON_MODULE, false)
|
|
|
|
AM_CONDITIONAL(MOO_INSTALL_HEADERS, false)
|
|
|
|
fi
|
2006-03-13 00:13:47 -08:00
|
|
|
|
|
|
|
moo_top_src_dir=`cd $srcdir && pwd`
|
2006-09-23 08:54:48 -07:00
|
|
|
MOO_CFLAGS="$MOO_CFLAGS -I"$moo_top_src_dir/$1" $GTK_CFLAGS $MOO_PCRE_CFLAGS -DXDG_PREFIX=_moo_edit_xdg -DG_LOG_DOMAIN=\\\"Moo\\\""
|
2006-06-16 20:49:07 -07:00
|
|
|
MOO_LIBS="$MOO_LIBS $GTK_LIBS $MOO_PCRE_LIBS"
|
2006-03-13 00:13:47 -08:00
|
|
|
|
2006-12-08 00:23:15 -08:00
|
|
|
if test x$MOO_OS_MINGW = xyes; then
|
|
|
|
MOO_LIBS="$MOO_LIBS $GTHREAD_LIBS"
|
|
|
|
fi;
|
2006-12-08 12:55:46 -08:00
|
|
|
|
2006-03-13 00:13:47 -08:00
|
|
|
if test x$MOO_USE_FAM = xyes; then
|
2006-12-08 12:55:46 -08:00
|
|
|
MOO_CFLAGS="$MOO_CFLAGS $MOO_FAM_CFLAGS"
|
|
|
|
MOO_LIBS="$MOO_LIBS $MOO_FAM_LIBS"
|
2006-03-13 00:13:47 -08:00
|
|
|
fi
|
|
|
|
|
2006-03-20 23:49:42 -08:00
|
|
|
MOO_CFLAGS="$MOO_CFLAGS -DMOO_DATA_DIR=\\\"${MOO_DATA_DIR}\\\" -DMOO_LIB_DIR=\\\"${MOO_LIB_DIR}\\\""
|
2006-03-13 00:13:47 -08:00
|
|
|
|
2006-04-06 10:10:21 -07:00
|
|
|
if test x$MOO_USE_GTKHTML = xyes; then
|
|
|
|
MOO_CFLAGS="$MOO_CFLAGS $GTKHTML_CFLAGS"
|
|
|
|
MOO_LIBS="$MOO_LIBS $GTKHTML_LIBS"
|
|
|
|
fi
|
|
|
|
|
2006-03-13 00:13:47 -08:00
|
|
|
################################################################################
|
|
|
|
# MooEdit stuff
|
|
|
|
#
|
|
|
|
if test "x$build_mooedit" != "xno"; then
|
2006-12-12 20:43:15 -08:00
|
|
|
MOO_CFLAGS="$MOO_CFLAGS $XML_CFLAGS"
|
2006-03-13 00:13:47 -08:00
|
|
|
MOO_LIBS="$MOO_LIBS $XML_LIBS"
|
|
|
|
fi
|
2006-03-20 23:49:42 -08:00
|
|
|
|
|
|
|
AC_SUBST(MOO_CFLAGS)
|
|
|
|
AC_SUBST(MOO_LIBS)
|
2006-11-25 09:46:37 -08:00
|
|
|
|
|
|
|
_MOO_AC_CONFIGURE_ARGS
|
2006-12-11 23:46:30 -08:00
|
|
|
|
|
|
|
MOO_INI_IN_IN_RULE='%.ini.desktop.in: %.ini.desktop.in.in $(top_builddir)/config.status ; cd $(top_builddir) && $(SHELL) ./config.status --file=$(subdir)/[$]@'
|
|
|
|
MOO_INI_IN_RULE='%.ini: %.ini.in $(top_builddir)/config.status ; cd $(top_builddir) && $(SHELL) ./config.status --file=$(subdir)/[$]@'
|
2006-12-12 20:43:15 -08:00
|
|
|
MOO_WIN32_RC_RULE='%.res: %.rc.in $(top_builddir)/config.status ; cd $(top_builddir) && $(SHELL) ./config.status --file=$(subdir)/[$]*.rc && cd $(subdir) && $(WINDRES) -i [$]*.rc --input-format=rc -o [$]@ -O coff && rm [$]*.rc'
|
2006-12-11 23:46:30 -08:00
|
|
|
AC_SUBST(MOO_INI_IN_IN_RULE)
|
|
|
|
AC_SUBST(MOO_INI_IN_RULE)
|
|
|
|
AC_SUBST(MOO_WIN32_RC_RULE)
|
2006-03-13 00:13:47 -08:00
|
|
|
])
|