configure.in 1.71 KB
Newer Older
Rodrigo Moya's avatar
Rodrigo Moya committed
1 2 3 4 5 6 7
AC_PREREQ(2.52)
AC_INIT(src/ping.c)

dnl Useful to call aclocal after 'make'
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS")

AM_CONFIG_HEADER(config.h)
Rodrigo Moya's avatar
Rodrigo Moya committed
8
AM_INIT_AUTOMAKE(gnome-nettool, 0.99.4)
Rodrigo Moya's avatar
Rodrigo Moya committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22
AM_MAINTAINER_MODE

AC_PROG_INTLTOOL([0.11])

AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_CHECK_HEADERS(sys/sockio.h sys/socket.h)
dnl AC_ARG_PROGRAM
AM_PROG_LIBTOOL

GNOME_COMPILE_WARNINGS(yes)
CFLAGS="$CFLAGS $WARN_CFLAGS"

23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
dnl ******************************************
dnl ** pkg-config dependacy checks          **
dnl ******************************************

LIBGNOMEUI_REQUIRED=2.0.0
LIBGNOME_REQUIRED=2.0.0
GTK_REQUIRED=2.4.0
LIBGLADE_REQUIRED=2.0.0
GCONF_REQUIRED=1.1.11

PKG_CHECK_MODULES(NETTOOL, 
		  libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED 
		  libgnome-2.0   >= $LIBGNOME_REQUIRED 
		  gtk+-2.0       >= $GTK_REQUIRED 
		  libglade-2.0   >= $LIBGLADE_REQUIRED 
		  gconf-2.0      >= $GCONF_REQUIRED)
Rodrigo Moya's avatar
Rodrigo Moya committed
39 40
AC_SUBST(NETTOOL_CFLAGS)
AC_SUBST(NETTOOL_LIBS)
Rodrigo Moya's avatar
Rodrigo Moya committed
41 42 43 44

dnl
dnl Translations
dnl
Rodrigo Moya's avatar
Rodrigo Moya committed
45
GETTEXT_PACKAGE=gnome-nettool
Rodrigo Moya's avatar
Rodrigo Moya committed
46 47
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The gettext package])
48
ALL_LINGUAS="ar az bn bs ca cs da de el en_CA en_GB es eu fi fr ga gl gu he hu it ja ko ms nb nl no pa pl pt pt_BR ro ru sk sq sr sr@Latn sv ta tr uk vi wa zh_CN zh_TW"
Rodrigo Moya's avatar
Rodrigo Moya committed
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
AM_GLIB_GNU_GETTEXT

AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

dnl
dnl Debugging flags
dnl
set_debug=no
AC_ARG_ENABLE(debug,
[  --enable-debug       Lots of noisy debug messages],
set_debug="$enableval")

AC_MSG_CHECKING(if debug messages are enabled)
if test "$set_debug" != "no"; then
        AC_MSG_RESULT(yes)
        CFLAGS="-DGRD_DEBUG $CFLAGS"
else
        AC_MSG_RESULT(no)
fi

AC_OUTPUT([
Makefile
po/Makefile.in
74
pixmaps/Makefile
Rodrigo Moya's avatar
Rodrigo Moya committed
75
src/Makefile])