1 | AC_PREREQ(2.52) |
---|
2 | AC_INIT(src/ping.c) |
---|
3 | |
---|
4 | dnl Useful to call aclocal after 'make' |
---|
5 | AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS") |
---|
6 | |
---|
7 | AM_CONFIG_HEADER(config.h) |
---|
8 | AM_INIT_AUTOMAKE(gnome-nettool, 0.99.3) |
---|
9 | AM_MAINTAINER_MODE |
---|
10 | |
---|
11 | AC_PROG_INTLTOOL([0.11]) |
---|
12 | |
---|
13 | AC_ISC_POSIX |
---|
14 | AC_PROG_CC |
---|
15 | AC_STDC_HEADERS |
---|
16 | AC_CHECK_HEADERS(sys/sockio.h sys/socket.h) |
---|
17 | dnl AC_ARG_PROGRAM |
---|
18 | AM_PROG_LIBTOOL |
---|
19 | |
---|
20 | GNOME_COMPILE_WARNINGS(yes) |
---|
21 | CFLAGS="$CFLAGS $WARN_CFLAGS" |
---|
22 | |
---|
23 | dnl ****************************************** |
---|
24 | dnl ** pkg-config dependacy checks ** |
---|
25 | dnl ****************************************** |
---|
26 | |
---|
27 | LIBGNOMEUI_REQUIRED=2.0.0 |
---|
28 | LIBGNOME_REQUIRED=2.0.0 |
---|
29 | GTK_REQUIRED=2.4.0 |
---|
30 | LIBGLADE_REQUIRED=2.0.0 |
---|
31 | GCONF_REQUIRED=1.1.11 |
---|
32 | |
---|
33 | PKG_CHECK_MODULES(NETTOOL, |
---|
34 | libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED |
---|
35 | libgnome-2.0 >= $LIBGNOME_REQUIRED |
---|
36 | gtk+-2.0 >= $GTK_REQUIRED |
---|
37 | libglade-2.0 >= $LIBGLADE_REQUIRED |
---|
38 | gconf-2.0 >= $GCONF_REQUIRED) |
---|
39 | AC_SUBST(NETTOOL_CFLAGS) |
---|
40 | AC_SUBST(NETTOOL_LIBS) |
---|
41 | |
---|
42 | dnl Find ifconfig |
---|
43 | dnl |
---|
44 | AC_ARG_WITH(ifconfig, [ --with-ifconfig=PATH Where ifconfig is.]) |
---|
45 | if test "x$with_ifconfig" = "x" ; then |
---|
46 | AC_PATH_PROG(IFCONFIG_PROGRAM, |
---|
47 | ifconfig,, |
---|
48 | $PATH:/sbin:/usr/etc:/usr/sbin) |
---|
49 | if test "x$IFCONFIG_PROGRAM" != "x" ; then |
---|
50 | AC_DEFINE_UNQUOTED(IFCONFIG_PROGRAM, "$IFCONFIG_PROGRAM", [The ifconfig program]) |
---|
51 | fi |
---|
52 | else |
---|
53 | AC_DEFINE_UNQUOTED(IFCONFIG_PROGRAM, "$with_ifconfig", [The ifconfig program]) |
---|
54 | fi |
---|
55 | AM_CONDITIONAL(HAVE_IFCONFIG, test "x$IFCONFIG_PROGRAM" != "x") |
---|
56 | |
---|
57 | dnl |
---|
58 | dnl Translations |
---|
59 | dnl |
---|
60 | GETTEXT_PACKAGE=gnome-nettool |
---|
61 | AC_SUBST(GETTEXT_PACKAGE) |
---|
62 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The gettext package]) |
---|
63 | ALL_LINGUAS="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 ru sq sr sr@Latn sv ta tr uk vi wa zh_CN zh_TW" |
---|
64 | AM_GLIB_GNU_GETTEXT |
---|
65 | |
---|
66 | AC_SUBST(CFLAGS) |
---|
67 | AC_SUBST(CPPFLAGS) |
---|
68 | AC_SUBST(LDFLAGS) |
---|
69 | |
---|
70 | dnl |
---|
71 | dnl Debugging flags |
---|
72 | dnl |
---|
73 | set_debug=no |
---|
74 | AC_ARG_ENABLE(debug, |
---|
75 | [ --enable-debug Lots of noisy debug messages], |
---|
76 | set_debug="$enableval") |
---|
77 | |
---|
78 | AC_MSG_CHECKING(if debug messages are enabled) |
---|
79 | if test "$set_debug" != "no"; then |
---|
80 | AC_MSG_RESULT(yes) |
---|
81 | CFLAGS="-DGRD_DEBUG $CFLAGS" |
---|
82 | else |
---|
83 | AC_MSG_RESULT(no) |
---|
84 | fi |
---|
85 | |
---|
86 | AC_OUTPUT([ |
---|
87 | Makefile |
---|
88 | po/Makefile.in |
---|
89 | pixmaps/Makefile |
---|
90 | src/Makefile]) |
---|