fix mnemonics
[dana/obconf.git] / configure.ac
1 AC_PREREQ([2.54])
2 AC_INIT([obconf], [2.0.0], [http://bugzilla.icculus.org])
3 AM_INIT_AUTOMAKE
4 AC_CONFIG_SRCDIR([src/main.c])
5
6 AC_PREFIX_DEFAULT([/usr/local])
7 test "$prefix" = "NONE" && prefix=$ac_default_prefix
8
9 # Pick compiler specific/build target flags, and set $CVS
10 AM_PROG_CC_C_O
11 AC_C_CONST
12 AC_C_INLINE
13
14 AC_PROG_INSTALL
15
16 LDFLAGS="$LDFLAGS -export-dynamic"
17
18 ALL_LINGUAS=""
19 AM_GNU_GETTEXT_VERSION(0.15)
20 AM_GNU_GETTEXT([external])
21
22 PKG_CHECK_MODULES(OPENBOX, [obrender-3.0 >= 3.3.996 obparser-3.0 >= 3.3.996])
23 AC_SUBST(OPENBOX_CFLAGS)
24 AC_SUBST(OPENBOX_LIBS)
25
26 PKG_CHECK_MODULES(LIBSTARTUPNOTIFICATION, [libstartup-notification-1.0])
27 AC_SUBST(LIBSTARTUPNOTIFICATION_CFLAGS)
28 AC_SUBST(LIBSTARTUPNOTIFICATION_LIBS)
29
30 PKG_CHECK_MODULES(GTK, [gtk+-2.0])
31 AC_SUBST(GTK_CFLAGS)
32 AC_SUBST(GTK_LIBS)
33
34 PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0])
35 AC_SUBST(GDK_PIXBUF_CFLAGS)
36 AC_SUBST(GDK_PIXBUF_LIBS)
37
38 PKG_CHECK_MODULES(GLADE, [libglade-2.0])
39 AC_SUBST(GLADE_CFLAGS)
40 AC_SUBST(GLADE_LIBS)
41
42 AC_CHECK_PROG(TAR, [tar], [yes], [no])
43 if test "$TAR" = "no"; then
44   AC_MSG_ERROR([Unable to find the tar command.])
45 fi
46
47 AC_CHECK_PROG(GZIP, [gzip], [yes], [no])
48 if test "$GZIP" = "no"; then
49   AC_MSG_ERROR([Unable to find the gzip command.])
50 fi
51
52 AC_CHECK_PROG(GUNZIP, [gunzip], [yes], [no])
53 if test "$GUNZIP" = "no"; then
54   AC_MSG_ERROR([Unable to find the gunzip command.])
55 fi
56
57 AC_CONFIG_FILES([
58   Makefile
59   po/Makefile.in
60 ])
61 AC_OUTPUT
62
63 AC_MSG_RESULT
64 AC_MSG_RESULT([configure complete, now type \"make\"])
65
66