dnl vi:set ts=4 sts=0 sw=4 tw=0: dnl --------------------------------------------------------------------------- dnl Process this file with autoconf to produce a configure script. dnl $Id: configure.in,v 1.1 2000/02/18 05:31:19 kahn Exp kahn $ dnl --------------------------------------------------------------------------- AC_INIT(docs/Makefile.am) GNP_HELP_MAJOR_VERSION=1 GNP_HELP_MINOR_VERSION=2 GNP_MICRO_VERSION=0 GNP_HELP_VERSION=$GNP_HELP_MAJOR_VERSION.$GNP_HELP_MINOR_VERSION.${GNP_MICRO_VERSION} dnl --------------------------------------------------------------------------- dnl for automake: dnl --------------------------------------------------------------------------- AUTOMAKE_OPTIONS=no-dependencies VERSION=$GNP_HELP_VERSION PACKAGE=gnotepad+-help dnl --------------------------------------------------------------------------- dnl Initialize automake now dnl --------------------------------------------------------------------------- AM_INIT_AUTOMAKE($PACKAGE, $VERSION) AC_SUBST(GNP_HELP_VERSION) AC_PREFIX_DEFAULT(/usr/local) dnl --------------------------------------------------------------------------- dnl now some other stuff dnl AC_CANONICAL_HOST ... needs config.guess dnl --------------------------------------------------------------------------- AM_CONFIG_HEADER(config.h) dnl --------------------------------------------------------------------------- dnl gnome dnl --------------------------------------------------------------------------- AC_DEFUN([GNOME_INIT_HOOK], [ AC_PATH_PROG(GNOME_CONFIG,gnome-config,no) if test "$GNOME_CONFIG" = "no"; then no_gnome_config="yes" else AC_MSG_CHECKING(if $GNOME_CONFIG works) if $GNOME_CONFIG --prefix >/dev/null 2>&1; then gnome_prefix=`$GNOME_CONFIG --prefix` AC_MSG_RESULT(yes) $1 else AC_MSG_RESULT(no) no_gnome_config="yes" fi fi if test "$no_gnome_config" = "yes"; then AC_MSG_CHECKING(for gnomeConf.sh file in $gnome_prefix) if test -f $gnome_prefix/gnomeConf.sh; then AC_MSG_RESULT(found) echo "loading gnome configuration from" \ "$gnome_prefix/gnomeConf.sh" . $gnome_prefix/gnomeConf.sh $1 else AC_MSG_RESULT(not found) if test x$2 = xfail; then AC_MSG_ERROR(Could not find the gnomeConf.sh file that is generated by gnome-libs install) fi fi fi ]) AC_DEFUN([GNOME_INIT],[ GNOME_INIT_HOOK([],fail) ]) dnl --------------------------------------------------------------------------- dnl check for gnome crap dnl --------------------------------------------------------------------------- AC_MSG_CHECKING(whether to use over-hyped gnome) AC_ARG_ENABLE(gnome, [ --enable-gnome [default=yes] if present, use GNOME's install prefix], enable_gnome="no",enable_gnome="yes") if test x$enable_gnome != xno ; then AC_MSG_RESULT(yes) GNOME_INIT_HOOK([have_gnome=yes]) else AC_MSG_RESULT(no) fi AM_CONDITIONAL(HAVE_GNOME, test x$have_gnome = xyes) if test x$have_gnome = xyes ; then prefix=$gnome_prefix fi dnl --------------------------------------------------------------------------- dnl Makefiles to create: dnl --------------------------------------------------------------------------- AC_OUTPUT(Makefile docs/Makefile docs/C/Makefile)