geany_project_save implementation
[geanyprj.git] / configure.in
blobc3eca1b395f84acd1cf3ec6e8943f0728acf78dc
1 dnl Process this file with autoconf to produce a configure script.
3 AC_PREREQ(2.59)
5 AC_INIT([geanyprj], [0.2], [yurand2@gmail.com])
7 AM_INIT_AUTOMAKE([1.9 foreign])
9 AC_PROG_CC
10 AC_PROG_LIBTOOL
12 PKG_CHECK_MODULES(GTK, [gtk+-2.0])
13 AC_SUBST(GTK_CFLAGS)
14 AC_SUBST(GTK_LIBS)
16 dnl check for geany source location
18 AC_ARG_WITH(geany-src, [  --with-geany-src=ARG  Geany source code location (default ../geany)],[
19 GEANY_SRC=${withval}
20 ],[
21 GEANY_SRC=../geany
23 AC_CHECK_FILE(${GEANY_SRC}/src/geany.h,[],[
24 echo "FATAL ERROR: Geany source code not found"
25 echo "make sure you install Geany source code"
26 echo "Use --with-geany-src=ARG option to"
27 echo "specify it's location"
28 exit 1
30 AC_SUBST(GEANY_SRC)
32 dnl unittests
33 PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], [
34 AC_SUBST(CHECK_CFLAGS)
35 AC_SUBST(CHECK_LIBS)
36 AM_CONDITIONAL(UNITTESTS, true)
37 ], [
38 AM_CONDITIONAL(UNITTESTS, false)
42 AC_CONFIG_FILES([Makefile])
43 AC_OUTPUT