2007-12-30 17:41:49 +01:00
|
|
|
dnl ****************************************************************************
|
|
|
|
dnl global configure.ac
|
2009-01-04 02:37:20 +01:00
|
|
|
dnl (c) Benoît Minisini 2000-2009
|
2007-12-30 17:41:49 +01:00
|
|
|
dnl ****************************************************************************
|
|
|
|
|
|
|
|
dnl ---- Initialization
|
|
|
|
|
|
|
|
AC_INIT(configure.ac)
|
|
|
|
|
|
|
|
AC_CONFIG_SUBDIRS(main)
|
|
|
|
|
|
|
|
GB_CONFIG_SUBDIRS(bzlib2, gb.compress.bzlib2)
|
|
|
|
GB_CONFIG_SUBDIRS(zlib, gb.compress.zlib)
|
|
|
|
GB_CONFIG_SUBDIRS(mysql, gb.db.mysql)
|
|
|
|
GB_CONFIG_SUBDIRS(odbc, gb.db.odbc)
|
|
|
|
GB_CONFIG_SUBDIRS(postgresql, gb.db.postgresql)
|
|
|
|
GB_CONFIG_SUBDIRS(sqlite2, gb.db.sqlite2)
|
|
|
|
GB_CONFIG_SUBDIRS(sqlite3, gb.db.sqlite3)
|
|
|
|
GB_CONFIG_SUBDIRS(net, gb.net)
|
|
|
|
GB_CONFIG_SUBDIRS(curl, gb.net.curl)
|
|
|
|
GB_CONFIG_SUBDIRS(smtp, gb.net.smtp)
|
2012-09-01 18:27:24 +02:00
|
|
|
GB_CONFIG_SUBDIRS(mime, gb.mime)
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_CONFIG_SUBDIRS(pcre, gb.pcre)
|
|
|
|
GB_CONFIG_SUBDIRS(sdl, gb.sdl)
|
|
|
|
GB_CONFIG_SUBDIRS(sdlsound, gb.sdl.sound)
|
2012-04-20 03:01:48 +02:00
|
|
|
GB_CONFIG_SUBDIRS(libxml, gb.libxml)
|
2012-04-21 02:45:18 +02:00
|
|
|
GB_CONFIG_SUBDIRS(xml, gb.xml)
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_CONFIG_SUBDIRS(v4l, gb.v4l)
|
|
|
|
GB_CONFIG_SUBDIRS(crypt, gb.crypt)
|
2009-01-04 02:37:20 +01:00
|
|
|
GB_CONFIG_SUBDIRS(qt4, gb.qt4)
|
2010-01-24 15:23:51 +01:00
|
|
|
GB_CONFIG_SUBDIRS(gtk, gb.gtk)
|
|
|
|
GB_CONFIG_SUBDIRS(opengl, gb.opengl)
|
|
|
|
GB_CONFIG_SUBDIRS(desktop, gb.desktop)
|
|
|
|
GB_CONFIG_SUBDIRS(pdf, gb.pdf)
|
2009-01-26 13:25:35 +01:00
|
|
|
GB_CONFIG_SUBDIRS(cairo, gb.cairo)
|
2009-01-27 02:24:19 +01:00
|
|
|
GB_CONFIG_SUBDIRS(imageio, gb.image.io)
|
2009-08-28 23:42:11 +02:00
|
|
|
GB_CONFIG_SUBDIRS(imageimlib, gb.image.imlib)
|
2010-05-19 14:43:57 +02:00
|
|
|
GB_CONFIG_SUBDIRS(dbus, gb.dbus)
|
2012-01-30 02:28:49 +01:00
|
|
|
GB_CONFIG_SUBDIRS(gsl, gb.gsl)
|
2012-04-14 21:42:04 +02:00
|
|
|
GB_CONFIG_SUBDIRS(ncurses, gb.ncurses)
|
2012-04-30 02:04:51 +02:00
|
|
|
GB_CONFIG_SUBDIRS(media, gb.media)
|
2012-05-23 21:26:15 +02:00
|
|
|
GB_CONFIG_SUBDIRS(jit, gb.jit)
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
AC_CONFIG_SUBDIRS(comp)
|
|
|
|
AC_CONFIG_SUBDIRS(app)
|
|
|
|
AC_CONFIG_SUBDIRS(examples)
|
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2008-01-05 15:07:21 +01:00
|
|
|
GB_INIT_AUTOMAKE(gambas3)
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
AC_PREFIX_DEFAULT(/usr/local)
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
2008-01-05 15:07:21 +01:00
|
|
|
GAMBAS_VERSION=3
|
2007-12-30 17:41:49 +01:00
|
|
|
AC_SUBST(GAMBAS_VERSION)
|
|
|
|
|
|
|
|
gbbindir=$bindir/gambas$GAMBAS_VERSION/
|
|
|
|
AC_SUBST(gbbindir)
|
|
|
|
gblibdir=$libdir/gambas$GAMBAS_VERSION/
|
|
|
|
AC_SUBST(gblibdir)
|
|
|
|
gbdatadir=$datadir/gambas$GAMBAS_VERSION/
|
|
|
|
AC_SUBST(gbdatadir)
|
|
|
|
|
|
|
|
AC_OUTPUT(Makefile)
|
|
|
|
|
2010-07-14 03:50:18 +02:00
|
|
|
GB_CLEAR_MESSAGES
|
|
|
|
|
2012-05-18 03:19:15 +02:00
|
|
|
for gb_dir in gb.*; do
|
|
|
|
if test -e $gb_dir/DISABLED; then
|
|
|
|
for gb_comp in $gb_dir/DISABLED.*; do
|
|
|
|
if ! test -s $srcdir/warnings.log; then
|
|
|
|
GB_MESSAGE([THESE COMPONENTS ARE DISABLED:])
|
|
|
|
fi
|
|
|
|
gb_comp=`basename "$gb_comp"`
|
|
|
|
GB_MESSAGE([- ${gb_comp#DISABLED.}])
|
|
|
|
done
|
2007-12-30 17:41:49 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2010-07-14 03:50:18 +02:00
|
|
|
if ! test -s $srcdir/warnings.log; then
|
|
|
|
GB_MESSAGE([ALL COMPONENTS WILL BE COMPILED])
|
2007-12-30 17:41:49 +01:00
|
|
|
fi
|
|
|
|
|
2010-07-14 03:50:18 +02:00
|
|
|
GB_PRINT_MESSAGES
|
|
|
|
echo
|
2010-09-24 14:48:08 +02:00
|
|
|
GB_CLEAR_MESSAGES
|