1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
AC_INIT(src/gtm.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gtm, 0.4.4)
AM_MAINTAINER_MODE
AM_ACLOCAL_INCLUDE(macros)
GNOME_INIT
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_ARG_PROGRAM
AC_PROG_LN_S
## this should come after `AC_PROG_CC'
GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS
dnl **************************************************
dnl * internationalization support
dnl **************************************************
ALL_LINGUAS="da es fr it ko pt pt_BR"
AM_GNU_GETTEXT
dnl **************************************************
dnl * ORBit support
dnl **************************************************
GNOMEGNORBA_LIBS="$GNOMEGNORBA_LIBS"
AC_SUBST(GNOMEGNORBA_LIBS)
dnl **************************************************
dnl * Check for wget
dnl **************************************************
AC_PATH_PROG(WGET_PROG, wget)
if test -z "$WGET_PROG"; then
echo "ERROR: This program needs wget to work"
echo " You can obtain it from:"
echo " ftp://prep.ai.mit.edu/pub/gnu/wget"
echo " Or find package wget for your distribution"
AC_MSG_ERROR([Fatal Error: no wget detected.])
fi
dnl **************************************************
dnl * Option to disable applet build
dnl **************************************************
AC_ARG_ENABLE(applet,
[ --enable-applet enable applet [default=yes]], ,enable_applet=yes)
AM_CONDITIONAL(BUILD_APPLET,test "x$enable_applet" = "xyes")
if test "x$enable_applet" != "xyes"; then
AC_MSG_WARN([*** applet will not be built ***])
fi
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
AC_OUTPUT([
Makefile
gtm.spec
po/Makefile.in
macros/Makefile
src/Makefile
intl/Makefile
help/Makefile
help/C/Makefile
help/it/Makefile
help/pt/Makefile
sounds/Makefile
applet/Makefile
idl/Makefile
])
|