source: trunk/third/gnome-spell/configure.in @ 19737

Revision 19737, 2.4 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r19736, which included commits to RCS files with non-trunk default branches.
Line 
1dnl
2dnl Initialization
3dnl
4
5AC_INIT(gnome-spell)
6AM_CONFIG_HEADER(config.h)
7
8PACKAGE=gnome-spell
9
10dnl
11dnl Versions
12dnl
13
14GETTEXT_PACKAGE=gnome-spell-1.0.5
15GNOME_SPELL_RELEASE=1.0.5
16API_VERSION=0.3
17
18dnl
19dnl
20dnl
21
22AC_SUBST(GNOME_SPELL_RELEASE)
23AC_DEFINE_UNQUOTED(GNOME_SPELL_RELEASE, "${GNOME_SPELL_RELEASE}", "GnomeSpell Release")
24
25AM_INIT_AUTOMAKE(gnome-spell, ${GNOME_SPELL_RELEASE})
26
27AM_MAINTAINER_MODE
28AC_PROG_INTLTOOL
29GNOME_COMPILE_WARNINGS
30
31AC_ISC_POSIX
32AC_PROG_CC
33AC_PROG_CXX
34AC_STDC_HEADERS
35AM_PROG_LIBTOOL
36
37# Internationalization support
38ALL_LINGUAS="am az be bg cs da de el es fi fr he hu it ja kn lt lv nl no pl pt pt_BR ru sk sr sr@Latn sv ta tr uk wa vi zh_CN"
39AM_GLIB_GNU_GETTEXT
40
41AC_SUBST(GETTEXT_PACKAGE)
42AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE","Gettext Package")
43
44
45AC_DEFINE_UNQUOTED(API_VERSION, "${API_VERSION}", "API Version")
46AC_SUBST(API_VERSION)
47
48dnl
49dnl aspell
50dnl
51
52AC_ARG_WITH(aspell-prefix, [  --with-aspell-prefix=DIR
53                          specify under which prefix aspell is installed.], with_aspell_prefix="$withval", )
54
55if test "x$with_aspell_prefix" != "x"; then
56   saved_LDFLAGS=$LDFLAGS
57   LDFLAGS="-L$with_aspell_prefix/lib "$LDFLAGS
58   ASPELL_INC="-I$with_aspell_prefix/include"
59   ASPELL_LIBS="-L$with_aspell_prefix/lib -laspell"
60   ASPELL_DATA="$with_aspell_prefix/lib/aspell"
61else
62   LDFLAGS="-L`aspell config prefix`/lib "$LDFLAGS
63   ASPELL_INC="-I`aspell config prefix`/include"
64   ASPELL_LIBS="-L`aspell config prefix`/lib -laspell"
65   ASPELL_DICT="`aspell config dict-dir`"
66fi
67AC_CHECK_LIB(aspell,new_aspell_config,,AC_MSG_ERROR([gnome-spell cannot be built without aspell library]),)
68if test "x$with_aspell_prefix" != "x"; then
69   LDFLAGS=$saved_LDFLAGS
70fi
71
72AC_SUBST(ASPELL_DICT)
73AC_SUBST(ASPELL_INC)
74AC_SUBST(ASPELL_LIBS)
75
76dnl
77dnl flags
78dnl
79
80
81AC_SUBST(CFLAGS)
82AC_SUBST(CPPFLAGS)
83AC_SUBST(LDFLAGS)
84
85GNOME_SPELL_MODULES="libgnomeui-2.0 >= 1.112.1 libbonoboui-2.0 >= 1.112.1 libglade-2.0 >= 1.99.9"
86PKG_CHECK_MODULES(GNOME_SPELL, $GNOME_SPELL_MODULES)
87AC_SUBST(GNOME_SPELL_CFLAGS)
88AC_SUBST(GNOME_SPELL_LIBS)
89
90ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
91AC_SUBST(ORBIT_IDL)
92
93BONOBO_IDL_INCLUDES="-I`$PKG_CONFIG --variable=idldir libbonobo-2.0` -I`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
94AC_SUBST(BONOBO_IDL_INCLUDES)
95
96GNOME_SPELL_DATADIR="${datadir}"
97AC_SUBST(GNOME_SPELL_DATADIR)
98
99dnl
100dnl Final part
101dnl
102
103AC_OUTPUT([
104Makefile
105gnome-spell.spec
106po/Makefile.in
107gnome-spell/Makefile
108art/Makefile
109])
Note: See TracBrowser for help on using the repository browser.