2000-06-02 09:00:31 +00:00
|
|
|
## -*-m4-*-
|
|
|
|
|
|
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
1999-01-19 08:29:46 +00:00
|
|
|
# FILE:
|
|
|
|
|
# configure.in
|
|
|
|
|
#
|
|
|
|
|
# FUNCTION:
|
|
|
|
|
# implements checks vfor a variety of system-specific functions
|
|
|
|
|
#
|
|
|
|
|
# Contents:
|
|
|
|
|
# Headers - Autoconf header stuff
|
|
|
|
|
# Variables - Hardcoded variables
|
|
|
|
|
# Programs - Check for programs binaries
|
|
|
|
|
# Functions - Check for functions
|
|
|
|
|
# With - Check for --with/without options
|
|
|
|
|
# Enable - Check for --enable/disable options
|
|
|
|
|
# Libraries - Check for libraries
|
|
|
|
|
# Footer - Autoconf footer stuff
|
|
|
|
|
|
1999-01-21 07:55:18 +00:00
|
|
|
### --------------------------------------------------------------------------
|
1999-01-19 08:29:46 +00:00
|
|
|
### Headers
|
1998-10-21 03:42:25 +00:00
|
|
|
### check for various programs, and stuff (do this first because later
|
|
|
|
|
### commands depend on them):
|
|
|
|
|
|
2000-05-08 23:59:45 +00:00
|
|
|
AC_INIT(src/guile/gnucash.h)
|
2000-09-26 05:07:09 +00:00
|
|
|
AM_INIT_AUTOMAKE(gnucash,1.5.2)
|
2000-06-02 09:00:31 +00:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2000-01-10 03:33:23 +00:00
|
|
|
|
2000-06-12 22:33:37 +00:00
|
|
|
AC_CANONICAL_HOST
|
2000-09-13 22:33:15 +00:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
AM_ACLOCAL_INCLUDE(macros)
|
2000-06-02 09:00:31 +00:00
|
|
|
|
1998-10-21 03:42:25 +00:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
AC_PROG_CC
|
2000-09-13 22:33:15 +00:00
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
|
|
AC_ARG_PROGRAM
|
1999-04-20 05:03:25 +00:00
|
|
|
|
1998-10-21 03:42:25 +00:00
|
|
|
AC_ISC_POSIX
|
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
AC_PROG_MAKE_SET
|
2000-04-14 10:42:18 +00:00
|
|
|
AC_HEADER_STDC
|
|
|
|
|
|
2000-11-07 08:27:08 +00:00
|
|
|
AC_CHECK_HEADERS(limits.h)
|
2000-04-14 10:42:18 +00:00
|
|
|
AC_CHECK_FUNCS(stpcpy memcpy)
|
1998-10-21 03:42:25 +00:00
|
|
|
|
2000-09-13 22:33:15 +00:00
|
|
|
AM_PATH_GLIB
|
|
|
|
|
|
2000-09-19 07:33:09 +00:00
|
|
|
if test ${no_glib}x = yesx
|
|
|
|
|
then
|
|
|
|
|
AC_MSG_ERROR([Cannot find glib.])
|
|
|
|
|
fi
|
|
|
|
|
|
2000-09-13 22:33:15 +00:00
|
|
|
GNOME_INIT
|
|
|
|
|
|
|
|
|
|
GNOME_COMPILE_WARNINGS
|
2000-09-17 23:13:15 +00:00
|
|
|
GNOME_CHECK_GDK_PIXBUF
|
2000-09-13 22:33:15 +00:00
|
|
|
GNOME_CHECK_GUILE
|
|
|
|
|
GNOME_PRINT_CHECK
|
|
|
|
|
GNOME_XML_CHECK
|
|
|
|
|
|
|
|
|
|
dnl Set of available languages.
|
|
|
|
|
ALL_LINGUAS="de en_GB es fr it ja ru sv"
|
|
|
|
|
AM_GNU_GETTEXT
|
|
|
|
|
|
|
|
|
|
|
1999-01-21 07:55:18 +00:00
|
|
|
### --------------------------------------------------------------------------
|
1999-01-19 08:29:46 +00:00
|
|
|
### Variables
|
|
|
|
|
### Set up all the initial variable values...
|
|
|
|
|
|
2000-06-02 09:00:31 +00:00
|
|
|
AC_ARG_ENABLE(opt-style-install,
|
|
|
|
|
[ --enable-opt-style-install install everything in subdirs of --prefix],
|
|
|
|
|
[case "${enableval}" in
|
|
|
|
|
yes) gnc_opt_style_install=true ;;
|
|
|
|
|
no) gnc_opt_style_install=false ;;
|
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-opt-style-install) ;;
|
|
|
|
|
esac],
|
|
|
|
|
[gnc_opt_style_install=false])
|
|
|
|
|
|
|
|
|
|
if test x${gnc_opt_style_install} = xtrue
|
|
|
|
|
then
|
|
|
|
|
GNC_CONFIGDIR='${sysconfdir}'
|
|
|
|
|
GNC_LIBDIR='${libdir}'
|
|
|
|
|
GNC_SHAREDIR='${datadir}'
|
|
|
|
|
GNC_SCM_INSTALL_DIR='${datadir}/scm'
|
|
|
|
|
GNC_DOC_INSTALL_DIR='${datadir}/doc'
|
|
|
|
|
else
|
|
|
|
|
GNC_CONFIGDIR='${sysconfdir}/gnucash'
|
|
|
|
|
GNC_LIBDIR='${pkglibdir}'
|
|
|
|
|
GNC_SHAREDIR='${pkgdatadir}'
|
|
|
|
|
GNC_SCM_INSTALL_DIR='${pkgdatadir}/scm'
|
|
|
|
|
GNC_DOC_INSTALL_DIR='${pkgdatadir}/doc'
|
|
|
|
|
fi
|
|
|
|
|
|
2000-12-07 10:44:33 +00:00
|
|
|
GNC_ACCOUNTS_DIR=${GNC_SHAREDIR}/accounts
|
|
|
|
|
|
2000-06-02 09:00:31 +00:00
|
|
|
AC_SUBST(GNC_CONFIGDIR)
|
|
|
|
|
AC_SUBST(GNC_LIBDIR)
|
|
|
|
|
AC_SUBST(GNC_SHAREDIR)
|
|
|
|
|
AC_SUBST(GNC_SCM_INSTALL_DIR)
|
|
|
|
|
AC_SUBST(GNC_DOC_INSTALL_DIR)
|
2000-12-07 10:44:33 +00:00
|
|
|
AC_SUBST(GNC_ACCOUNTS_DIR)
|
2000-06-02 09:00:31 +00:00
|
|
|
|
|
|
|
|
# We should always see these errors...
|
2000-06-18 08:17:33 +00:00
|
|
|
CFLAGS="${CFLAGS} -Wall"
|
1999-01-19 08:29:46 +00:00
|
|
|
|
2000-08-07 18:30:25 +00:00
|
|
|
# This has to come after AC_PROG_CC
|
|
|
|
|
if test ${GCC}x = yesx
|
|
|
|
|
then
|
|
|
|
|
CFLAGS="${CFLAGS} -Werror-implicit-function-declaration"
|
|
|
|
|
fi
|
|
|
|
|
|
1999-01-19 08:29:46 +00:00
|
|
|
AC_ARG_ENABLE( debug,
|
2001-01-09 20:25:29 +00:00
|
|
|
[ --enable-debug compile with debugging flags set],
|
2000-06-02 09:00:31 +00:00
|
|
|
CFLAGS="${CFLAGS} -g"
|
|
|
|
|
LDFLAGS="${LDFLAGS} -g"
|
2000-07-10 07:45:00 +00:00
|
|
|
AC_DEFINE(DEBUG_MEMORY,1),
|
|
|
|
|
AC_DEFINE(DEBUG_MEMORY,0) )
|
1999-01-19 08:29:46 +00:00
|
|
|
|
2000-05-12 09:47:17 +00:00
|
|
|
AC_ARG_ENABLE( profile,
|
2001-01-09 20:25:29 +00:00
|
|
|
[ --enable-profile compile with profiling set],
|
2000-05-12 09:47:17 +00:00
|
|
|
CFLAGS="${CFLAGS} -pg"
|
|
|
|
|
LDFLAGS="${LDFLAGS} -pg")
|
|
|
|
|
|
2000-09-13 22:33:15 +00:00
|
|
|
|
2000-03-23 04:26:59 +00:00
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
### i18n
|
|
|
|
|
AC_ARG_WITH( locale-dir,
|
|
|
|
|
[ --with-locale-dir=PATH specify where to look for locale-specific information],
|
|
|
|
|
LOCALE_DIR="$with_locale_dir",
|
2000-06-26 05:05:13 +00:00
|
|
|
LOCALE_DIR="\${prefix}/share/locale")
|
2000-03-31 09:41:07 +00:00
|
|
|
|
2000-03-23 04:26:59 +00:00
|
|
|
AC_SUBST(LOCALE_DIR)
|
|
|
|
|
|
2000-09-13 22:33:15 +00:00
|
|
|
|
2000-09-09 10:25:53 +00:00
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
### help files
|
|
|
|
|
AC_ARG_WITH( help-prefix,
|
2001-01-09 20:25:29 +00:00
|
|
|
[ --with-help-prefix=PATH specify where to store the help files],
|
2000-09-09 10:25:53 +00:00
|
|
|
GNC_HELPDIR="$with_help_prefix/gnome/help/gnucash",
|
|
|
|
|
GNC_HELPDIR="\${datadir}/gnome/help/gnucash")
|
|
|
|
|
|
|
|
|
|
AC_SUBST(GNC_HELPDIR)
|
|
|
|
|
|
2000-06-26 04:38:31 +00:00
|
|
|
|
2000-09-14 00:56:55 +00:00
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
### Check for glade
|
|
|
|
|
|
|
|
|
|
# Check for glade
|
|
|
|
|
AC_ARG_WITH(glade,
|
2001-01-09 20:25:29 +00:00
|
|
|
[ --with-glade=FILE which glade executable to use ],
|
2000-09-14 00:56:55 +00:00
|
|
|
GLADE="${with_glade}")
|
|
|
|
|
|
|
|
|
|
# If the user didn't specify a glade, then go fetch.
|
|
|
|
|
if test x"$GLADE" = x;
|
|
|
|
|
then
|
|
|
|
|
AC_PATH_PROG(GLADE, glade)
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Make sure glade was found
|
|
|
|
|
#if test x"$GLADE" = x; then
|
|
|
|
|
# AC_MSG_ERROR([Cannot find Glade.])
|
|
|
|
|
#fi
|
|
|
|
|
|
|
|
|
|
AC_SUBST(GLADE)
|
|
|
|
|
|
|
|
|
|
|
1999-01-21 07:55:18 +00:00
|
|
|
### --------------------------------------------------------------------------
|
2000-04-05 21:59:56 +00:00
|
|
|
### Check for perl
|
1999-01-19 08:29:46 +00:00
|
|
|
|
|
|
|
|
# Check for perl, force version 5
|
|
|
|
|
AC_ARG_WITH(perl,
|
2001-01-09 20:25:29 +00:00
|
|
|
[ --with-perl=FILE which perl executable to use ],
|
1999-01-19 08:29:46 +00:00
|
|
|
PERL="${with_perl}")
|
1999-01-13 09:11:02 +00:00
|
|
|
|
2000-06-16 18:12:54 +00:00
|
|
|
# If the user didn't specify a perl, then go fetch.
|
|
|
|
|
if test x"$PERL" = x;
|
|
|
|
|
then
|
|
|
|
|
AC_PATH_PROG(PERL, perl)
|
|
|
|
|
fi
|
|
|
|
|
|
1999-01-13 09:11:02 +00:00
|
|
|
# Make sure Perl was found
|
|
|
|
|
if test x"$PERL" = x; then
|
1999-01-19 08:29:46 +00:00
|
|
|
AC_MSG_ERROR([Cannot find Perl. Try using the --with-perl flag.])
|
1999-01-13 09:11:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Make sure it's version 5 or later
|
|
|
|
|
if "$PERL" -e 'exit 1 if $] < 5.0'; then
|
|
|
|
|
:
|
|
|
|
|
else
|
1999-01-19 08:29:46 +00:00
|
|
|
AC_MSG_ERROR([Found ${PERL} reports version ]
|
|
|
|
|
[`${PERL} -e 'print $]'`, need version 5.*])
|
1999-01-13 09:11:02 +00:00
|
|
|
fi
|
1999-01-19 08:29:46 +00:00
|
|
|
AC_SUBST(PERL)
|
1999-01-13 09:11:02 +00:00
|
|
|
|
1999-01-19 08:29:46 +00:00
|
|
|
# Now check for perl headers
|
|
|
|
|
# This appears to be what Perl's ExtUtils::MakeMaker module does, so
|
|
|
|
|
# I'm reasonably sure it's correct.
|
|
|
|
|
# PERLINCL="/usr/lib/perl5/i386-linux/5.00404"
|
|
|
|
|
#
|
2000-01-10 03:33:23 +00:00
|
|
|
PERLINCL=`$PERL -MConfig -e 'print $Config{"archlibexp"}'`
|
1999-01-19 08:29:46 +00:00
|
|
|
AC_ARG_WITH( perl-includes,
|
2001-01-09 20:25:29 +00:00
|
|
|
[ --with-perl-includes=DIR specify where to look for perl includes],
|
1999-01-19 08:29:46 +00:00
|
|
|
PERLINCL="$with_perl_includes" )
|
1998-10-21 03:42:25 +00:00
|
|
|
|
1999-01-19 08:29:46 +00:00
|
|
|
if test ! -d ${PERLINCL}/CORE; then
|
|
|
|
|
AC_MSG_ERROR([Missing directory ${PERLINCL}/CORE in the perl include directory])
|
|
|
|
|
fi
|
|
|
|
|
AC_SUBST(PERLINCL)
|
1998-10-21 03:42:25 +00:00
|
|
|
|
1999-12-31 00:05:41 +00:00
|
|
|
|
1999-01-21 07:55:18 +00:00
|
|
|
### --------------------------------------------------------------------------
|
1999-01-19 08:29:46 +00:00
|
|
|
### Libraries
|
|
|
|
|
LIBS="$LIBS -lm"
|
1998-03-18 06:08:12 +00:00
|
|
|
|
2000-04-21 10:49:15 +00:00
|
|
|
|
2000-12-21 00:35:47 +00:00
|
|
|
### --------------------------------------------------------------------------
|
2000-12-21 23:36:41 +00:00
|
|
|
### Berkeley db
|
2001-01-09 20:25:29 +00:00
|
|
|
AC_ARG_ENABLE(prefer-db1,
|
|
|
|
|
[ --enable-prefer-db1 Prefer Berkeley DB 1.x],[prefer_db1="$enableval"],[prefer_db1=yes])
|
2000-12-21 23:36:41 +00:00
|
|
|
|
|
|
|
|
DB_LIBS=
|
|
|
|
|
AC_CHECK_FUNC(dbopen, [],
|
|
|
|
|
if test "$prefer_db1" = "yes"; then
|
|
|
|
|
AC_CHECK_LIB(db1, dbopen, DB_LIBS="-ldb1",
|
|
|
|
|
AC_CHECK_LIB(db, dbopen, DB_LIBS="-ldb",
|
|
|
|
|
AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode])
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
else
|
|
|
|
|
AC_CHECK_LIB(db, dbopen, DB_LIBS="-ldb",
|
|
|
|
|
AC_CHECK_LIB(db1, dbopen, DB_LIBS="-ldb1",
|
|
|
|
|
AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode])
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
fi
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
dnl look for db headers
|
|
|
|
|
if test "$prefer_db1" = "yes"; then
|
|
|
|
|
AC_CHECK_HEADERS(db_185.h db1/db.h)
|
|
|
|
|
if test "$ac_cv_header_db_185_h$ac_cv_header_db1_db_h" = nono; then
|
|
|
|
|
AC_MSG_ERROR([Berkeley db library required for GnuCash])
|
|
|
|
|
fi
|
|
|
|
|
AC_DEFINE(PREFER_DB1)
|
|
|
|
|
else
|
|
|
|
|
AC_CHECK_HEADERS(db.h db_185.h db1/db.h)
|
2000-12-21 00:35:47 +00:00
|
|
|
|
2000-12-21 23:36:41 +00:00
|
|
|
if test "$ac_cv_header_db_h$ac_cv_header_db_185_h$ac_cv_header_db1_db_h" = nonono; then
|
|
|
|
|
AC_MSG_ERROR([Berkeley db library required for GnuCash])
|
|
|
|
|
fi
|
|
|
|
|
fi
|
2000-12-21 00:35:47 +00:00
|
|
|
|
2000-12-21 23:36:41 +00:00
|
|
|
AC_SUBST(DB_LIBS)
|
2000-12-21 00:35:47 +00:00
|
|
|
|
|
|
|
|
|
2000-10-23 09:41:51 +00:00
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
### Gnome XML -- GNOME_XML_LIB is define by GNOME_XML_CHECK
|
|
|
|
|
GNOME_XML_CFLAGS=`$GNOME_CONFIG --cflags xml`
|
|
|
|
|
|
|
|
|
|
AC_SUBST(GNOME_XML_CFLAGS)
|
|
|
|
|
|
|
|
|
|
|
2000-04-21 10:49:15 +00:00
|
|
|
### --------------------------------------------------------------------------
|
2000-09-13 22:33:15 +00:00
|
|
|
GTKHTML_LIBS=`$GNOME_CONFIG --libs gtkhtml`
|
|
|
|
|
GTKHTML_CFLAGS=`$GNOME_CONFIG --cflags gtkhtml`
|
2000-07-08 12:35:12 +00:00
|
|
|
|
2000-12-21 00:35:47 +00:00
|
|
|
|
2000-07-08 12:35:12 +00:00
|
|
|
# check for gtkhtml and enable it via HAVE_LIBGTKHTML
|
|
|
|
|
# if found
|
|
|
|
|
AC_CHECK_LIB(gtkhtml, gtk_html_new,
|
|
|
|
|
GNOMEBUILDLIBS="${GNOMEBUILDLIBS} gtkhtml"
|
|
|
|
|
AC_DEFINE(HAVE_LIBGTKHTML),
|
2000-07-25 01:29:52 +00:00
|
|
|
AC_MSG_ERROR([Cannot find gtkhtml. See the README for more info.]),
|
2000-09-13 22:33:15 +00:00
|
|
|
$GTKHTML_LIBS)
|
|
|
|
|
|
2000-12-21 00:35:47 +00:00
|
|
|
GHTTP_LIBS=`$GNOME_CONFIG --libs ghttp`
|
|
|
|
|
GHTTP_CFLAGS=`$GNOME_CONFIG --cflags ghttp`
|
|
|
|
|
|
|
|
|
|
AC_CHECK_LIB(ghttp, ghttp_request_new,
|
|
|
|
|
GNOMEBUILDLIBS="${GNOMEBUILDLIBS} ghttp"
|
|
|
|
|
AC_DEFINE(HAVE_LIBGHTTP),
|
|
|
|
|
AC_MSG_ERROR([Cannot find ghttp. See the README for more info.]),
|
|
|
|
|
$GHTTP_LIBS)
|
|
|
|
|
|
|
|
|
|
|
2000-09-13 22:33:15 +00:00
|
|
|
AC_SUBST(GTKHTML_LIBS)
|
|
|
|
|
AC_SUBST(GTKHTML_CFLAGS)
|
2000-12-21 00:35:47 +00:00
|
|
|
AC_SUBST(GHTTP_LIBS)
|
|
|
|
|
AC_SUBST(GHTTP_CFLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
### guppi
|
|
|
|
|
|
2001-01-09 20:25:29 +00:00
|
|
|
## Things guppi needs (actually are these guppi dependencies or gtkhtml's?)
|
|
|
|
|
|
|
|
|
|
# LAME: if you ask gnome-config for the zvt libs, it doesn't include
|
|
|
|
|
# imlib, though it needs it so we'll just steal gtkhtml's which does.
|
|
|
|
|
AC_CHECK_LIB(zvt, main, true,
|
|
|
|
|
[AC_MSG_ERROR([libzvt development files not found. Guppi requires them.])],
|
|
|
|
|
`$GNOME_CONFIG --libs zvt gtkhtml`)
|
|
|
|
|
|
|
|
|
|
AC_CHECK_LIB(bonobo, main, true,
|
|
|
|
|
[AC_MSG_ERROR([libbonobo development files not found. Guppi requires them.])
|
|
|
|
|
],
|
|
|
|
|
`$GNOME_CONFIG --libs bonobo`)
|
|
|
|
|
|
|
|
|
|
AC_CHECK_LIB(oaf, main, true,
|
|
|
|
|
[AC_MSG_ERROR([liboaf development files not found. Guppi requires them.])],
|
|
|
|
|
`$GNOME_CONFIG --libs oaf`)
|
|
|
|
|
|
|
|
|
|
AC_CHECK_LIB(glade, main, true,
|
|
|
|
|
[AC_MSG_ERROR([libglade development files not found. Guppi requires them.])]
|
|
|
|
|
,
|
|
|
|
|
`$GNOME_CONFIG --libs libglade`)
|
|
|
|
|
|
|
|
|
|
## guppi itself.
|
|
|
|
|
|
2000-12-21 00:35:47 +00:00
|
|
|
GUPPI_LIBS=`$GNOME_CONFIG --libs libguppi`
|
|
|
|
|
GUPPI_CFLAGS=`$GNOME_CONFIG --cflags libguppi`
|
|
|
|
|
LIBGUPPI_CHECK
|
|
|
|
|
AC_SUBST(GUPPI_LIBS)
|
|
|
|
|
AC_SUBST(GUPPI_CFLAGS)
|
2000-03-23 04:26:59 +00:00
|
|
|
|
1999-12-31 00:05:41 +00:00
|
|
|
|
2001-01-09 20:25:29 +00:00
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
### XIM
|
|
|
|
|
AC_ARG_ENABLE(xim,
|
|
|
|
|
[ --enable-xim support XIM [default=yes]],
|
|
|
|
|
, enable_xim="yes")
|
|
|
|
|
|
|
|
|
|
if test "x$enable_xim" = "xyes"; then
|
|
|
|
|
GTK_XIM_FLAGS="-DUSE_XIM"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
AC_SUBST(GTK_XIM_FLAGS)
|
|
|
|
|
|
|
|
|
|
|
2000-12-27 23:37:52 +00:00
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
### popt
|
|
|
|
|
|
|
|
|
|
AC_CHECK_LIB(popt, poptStrippedArgv,, AC_MSG_ERROR([
|
|
|
|
|
|
|
|
|
|
popt 1.5 or newer is required to build gnucash. You can download
|
|
|
|
|
the latest version from ftp://people.redhat.com/sopwith/popt/
|
|
|
|
|
]))
|
|
|
|
|
|
2000-06-02 09:00:31 +00:00
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
## For now, we just presume you're using the GNOME version. The other
|
|
|
|
|
## UI's haven't been carried over during the automake transition. At
|
|
|
|
|
## some point, if it's deemed worthwhile, they can be resurrected...
|
|
|
|
|
|
|
|
|
|
GNOME=1
|
|
|
|
|
AC_DEFINE(GNOME)
|
|
|
|
|
|
1999-01-19 08:29:46 +00:00
|
|
|
|
1999-05-29 23:46:49 +00:00
|
|
|
### --------------------------------------------------------------------------
|
2000-05-08 23:59:45 +00:00
|
|
|
### G-wrap (libraries and executable)
|
1999-05-29 23:46:49 +00:00
|
|
|
|
2000-05-08 23:59:45 +00:00
|
|
|
G_WRAP_COMPILE_ARGS=""
|
|
|
|
|
G_WRAP_LINK_ARGS=""
|
1999-05-29 23:46:49 +00:00
|
|
|
|
2000-12-14 02:20:02 +00:00
|
|
|
AM_PATH_GWRAP(1.1.3, , [AC_MSG_ERROR([
|
1999-03-01 07:20:35 +00:00
|
|
|
|
2000-12-14 01:49:10 +00:00
|
|
|
g-wrap does not appear to be installed correctly, or is not new
|
2000-12-15 08:42:50 +00:00
|
|
|
enough. Right now gnucash requires at least version 1.1.3 to build.
|
2000-12-14 01:49:10 +00:00
|
|
|
If you need to install g-wrap, you can find it at
|
|
|
|
|
ftp://ftp.gnucash.org/pub/g-wrap.
|
2000-11-02 23:26:36 +00:00
|
|
|
])])
|
1999-05-29 23:46:49 +00:00
|
|
|
|
2000-11-02 23:26:36 +00:00
|
|
|
# Find out what the g-wrap compile and link flags are.
|
|
|
|
|
AC_MSG_CHECKING(for g-wrap compile args)
|
|
|
|
|
G_WRAP_COMPILE_ARGS=`${G_WRAP_CONFIG} --c-compile-args guile`
|
|
|
|
|
AC_MSG_RESULT($G_WRAP_COMPILE_ARGS)
|
1998-11-20 16:03:17 +00:00
|
|
|
|
2000-11-02 23:26:36 +00:00
|
|
|
AC_MSG_CHECKING(for g-wrap link args)
|
2000-12-14 01:49:10 +00:00
|
|
|
G_WRAP_LINK_ARGS=`${G_WRAP_CONFIG} --c-link-args guile`
|
2000-11-02 23:26:36 +00:00
|
|
|
AC_MSG_RESULT($G_WRAP_LINK_ARGS)
|
1999-05-29 23:46:49 +00:00
|
|
|
|
2000-12-14 01:49:10 +00:00
|
|
|
AC_MSG_CHECKING(for g-wrap module directory)
|
|
|
|
|
G_WRAP_MODULE_DIR=`${G_WRAP_CONFIG} --guile-module-directory`
|
|
|
|
|
AC_MSG_RESULT($G_WRAP_MODULE_DIR)
|
|
|
|
|
|
2000-11-02 23:26:36 +00:00
|
|
|
AC_GWRAP_CHECK_GUILE
|
1999-05-29 23:46:49 +00:00
|
|
|
|
2000-05-08 23:59:45 +00:00
|
|
|
AC_SUBST(G_WRAP_CONFIG)
|
|
|
|
|
AC_SUBST(G_WRAP_COMPILE_ARGS)
|
|
|
|
|
AC_SUBST(G_WRAP_LINK_ARGS)
|
2000-12-14 01:49:10 +00:00
|
|
|
AC_SUBST(G_WRAP_MODULE_DIR)
|
2000-05-08 23:59:45 +00:00
|
|
|
|
2000-12-14 01:49:10 +00:00
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
### Check size of long_long - some guile's are broken.
|
|
|
|
|
AC_MSG_CHECKING(if guile long_long is at least as big as gint64)
|
|
|
|
|
GNC_OLDCFLAGS="$CFLAGS"
|
|
|
|
|
CFLAGS="${GNOME_INCLUDEDIR} ${GUILE_INCS} ${CFLAGS}"
|
|
|
|
|
AC_TRY_RUN([
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
#include <libguile/__scm.h>
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
|
return(!(sizeof(long_long) >= sizeof(gint64)));
|
|
|
|
|
}
|
|
|
|
|
],[
|
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
|
AC_DEFINE(GUILE_LONG_LONG_OK,1,is sizeof(long_long) >= sizeof(gint64))
|
|
|
|
|
],[
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
])
|
|
|
|
|
CFLAGS="$GNC_OLDCFLAGS"
|
|
|
|
|
|
|
|
|
|
# One of the places this is critical is in gnc_scm_to_gint64 and inverse.
|
|
|
|
|
# However, I'm sure we require this elsewhere, so don't remove this test
|
|
|
|
|
# unless you've done sufficient code review/testing.
|
|
|
|
|
AC_MSG_CHECKING(if unsigned long is at least as big as guint32)
|
|
|
|
|
GNC_OLDCFLAGS="$CFLAGS"
|
|
|
|
|
CFLAGS="${GNOME_INCLUDEDIR} ${GUILE_INCS} ${CFLAGS}"
|
|
|
|
|
AC_TRY_RUN([
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
|
return(!(sizeof(unsigned long) >= sizeof(guint32)));
|
|
|
|
|
}
|
|
|
|
|
],[
|
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
|
],[
|
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
|
AC_MSG_ERROR(cannot continue, size of unsigned long too small.)
|
|
|
|
|
])
|
|
|
|
|
CFLAGS="$GNC_OLDCFLAGS"
|
1998-09-14 06:05:10 +00:00
|
|
|
|
2000-09-13 22:33:15 +00:00
|
|
|
### --------------------------------------------------------------------------
|
|
|
|
|
### Makefile creation
|
1997-12-01 02:33:00 +00:00
|
|
|
|
2000-05-08 23:59:45 +00:00
|
|
|
AC_OUTPUT(
|
|
|
|
|
dnl # Makefiles
|
|
|
|
|
Makefile
|
2000-12-07 10:44:33 +00:00
|
|
|
accounts/Makefile
|
|
|
|
|
accounts/C/Makefile
|
2000-06-05 05:51:39 +00:00
|
|
|
debian/Makefile
|
2000-06-02 09:00:31 +00:00
|
|
|
doc/Makefile
|
|
|
|
|
doc/examples/Makefile
|
|
|
|
|
doc/html/Makefile
|
|
|
|
|
doc/html/fr/Makefile
|
|
|
|
|
doc/html/fr/image/Makefile
|
2000-08-10 05:19:59 +00:00
|
|
|
doc/sgml/Makefile
|
|
|
|
|
doc/sgml/C/Makefile
|
2000-09-09 10:25:53 +00:00
|
|
|
doc/sgml/C/image/Makefile
|
2000-12-22 03:47:40 +00:00
|
|
|
doc-tools/Makefile
|
2000-06-02 09:00:31 +00:00
|
|
|
intl/Makefile
|
2000-06-05 05:51:39 +00:00
|
|
|
lib/Makefile
|
2000-09-13 22:33:15 +00:00
|
|
|
macros/Makefile
|
2000-06-02 09:00:31 +00:00
|
|
|
po/Makefile.in
|
2000-05-08 23:59:45 +00:00
|
|
|
rpm/Makefile
|
1998-10-28 05:55:38 +00:00
|
|
|
src/Makefile
|
2000-07-13 08:51:21 +00:00
|
|
|
src/calculation/Makefile
|
2000-06-05 05:51:39 +00:00
|
|
|
src/doc/Makefile
|
2000-07-17 08:26:56 +00:00
|
|
|
src/doc/design/Makefile
|
1998-10-28 05:55:38 +00:00
|
|
|
src/engine/Makefile
|
2000-06-05 05:51:39 +00:00
|
|
|
src/engine/sql/Makefile
|
|
|
|
|
src/experimental/Makefile
|
|
|
|
|
src/experimental/cbb/Makefile
|
|
|
|
|
src/experimental/cbb/cbb-engine/Makefile
|
2001-01-06 01:00:40 +00:00
|
|
|
src/experimental/cgi-bin/Makefile
|
2000-06-05 05:51:39 +00:00
|
|
|
src/experimental/gg/Makefile
|
2000-06-08 06:08:58 +00:00
|
|
|
src/experimental/ofx/Makefile
|
|
|
|
|
src/experimental/ofx/dtd/Makefile
|
|
|
|
|
src/experimental/ofx/explore/Makefile
|
|
|
|
|
src/experimental/ofx/parser/Makefile
|
1998-10-28 05:55:38 +00:00
|
|
|
src/gnome/Makefile
|
2000-05-08 23:59:45 +00:00
|
|
|
src/guile/Makefile
|
2000-06-02 09:00:31 +00:00
|
|
|
src/optional/Makefile
|
|
|
|
|
src/pixmaps/Makefile
|
2000-05-08 23:59:45 +00:00
|
|
|
src/quotes/Makefile
|
1998-10-28 05:55:38 +00:00
|
|
|
src/register/Makefile
|
2000-06-02 09:00:31 +00:00
|
|
|
src/register/gnome/Makefile
|
2000-05-08 23:59:45 +00:00
|
|
|
src/scm/Makefile
|
2000-06-02 09:00:31 +00:00
|
|
|
src/scm/gnumeric/Makefile
|
|
|
|
|
src/scm/printing/Makefile
|
|
|
|
|
src/scm/qif-import/Makefile
|
|
|
|
|
src/scm/report/Makefile
|
|
|
|
|
src/scm/srfi/Makefile
|
2000-05-08 23:59:45 +00:00
|
|
|
dnl # non-makefiles
|
|
|
|
|
dnl # Please read doc/build-system before adding *anything* here
|
|
|
|
|
,
|
2000-06-02 09:00:31 +00:00
|
|
|
dnl # commands go here, but we don't have any right now
|
|
|
|
|
)
|