summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2007-04-11 11:58:32 +0000
committerCarsten Haitzler <raster@rasterman.com>2007-04-11 11:58:32 +0000
commit502d62417d729d80f14d5d6cb5fd44b293e73fad (patch)
treea069a16762c79cbbb488e017560c3b3c0c48c6e8 /configure.in
add expedite to cvs! finally! :) it's in decent shape.
SVN revision: 29466
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in80
1 files changed, 80 insertions, 0 deletions
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..8004e69
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,80 @@
1dnl Process this file with autoconf to produce a configure script.
2
3# get rid of that stupid cache mechanism
4rm -f config.cache
5
6AC_INIT(configure.in)
7AM_INIT_AUTOMAKE(expedite, 0.6.0)
8AM_CONFIG_HEADER(config.h)
9
10AC_ISC_POSIX
11AC_PROG_CC
12AM_PROG_CC_STDC
13AC_HEADER_STDC
14AC_C_CONST
15AM_ENABLE_SHARED
16AM_PROG_LIBTOOL
17
18if test "x${bindir}" = 'xNONE'; then
19 if test "x${prefix}" = "xNONE"; then
20 PACKAGE_BIN_DIR="${ac_default_prefix}/bin"
21 else
22 PACKAGE_BIN_DIR="${prefix}/bin"
23 fi
24else
25 PACKAGE_BIN_DIR="${bindir}"
26fi
27AC_SUBST(PACKAGE_BIN_DIR)
28
29if test "x${libdir}" = 'xNONE'; then
30 if test "x${prefix}" = "xNONE"; then
31 PACKAGE_LIB_DIR="${ac_default_prefix}/lib"
32 else
33 PACKAGE_LIB_DIR="${prefix}/lib"
34 fi
35else
36 PACKAGE_LIB_DIR="${libdir}"
37fi
38AC_SUBST(PACKAGE_LIB_DIR)
39
40if test "x${prefix}" = "xNONE"; then
41 PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}"
42else
43 PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}"
44fi
45AC_SUBST(PACKAGE_DATA_DIR)
46
47PKG_CHECK_MODULES([EVAS], evas)
48
49PCFLAGS=$CFLAGS
50CFLAGS="$EVAS_CFLAGS $CFLAGS"
51AC_CHECK_HEADER(Evas_Engine_GL_X11.h,
52 [ AC_DEFINE(HAVE_EVAS_GL, 1, [Evas GL Engine Support]) ],
53 [ dummy=no ],
54 [ #include <Evas.h> ]
55)
56AC_CHECK_HEADER(Evas_Engine_Software_X11.h,
57 [ AC_DEFINE(HAVE_SOFTWARE_X11, 1, [Evas Software X11 Engine Support]) ],
58 [ dummy=no ],
59 [ #include <Evas.h> ]
60)
61AC_CHECK_HEADER(Evas_Engine_XRender_X11.h,
62 [ AC_DEFINE(HAVE_XRENDER_X11, 1, [Evas XRender X11 Engine Support]) ],
63 [ dummy=no ],
64 [ #include <Evas.h> ]
65)
66CFLAGS=$PCFLAGS
67
68AC_PATH_XTRA
69x_dir=${x_dir:-/usr/X11R6}
70x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}}
71x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext"
72AC_SUBST(x_cflags)
73AC_SUBST(x_libs)
74
75AC_OUTPUT([
76Makefile
77src/Makefile
78src/bin/Makefile
79data/Makefile
80])