move eet to HEAD
[profile/ivi/eet.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 # get rid of that stupid cache mechanism
4 rm -f config.cache
5
6 AC_INIT(configure.in)
7 AM_INIT_AUTOMAKE(eet, 0.0.1)
8 AM_CONFIG_HEADER(config.h)
9
10 AC_ISC_POSIX
11 AC_PROG_CC
12 AM_PROG_CC_STDC
13 AC_HEADER_STDC
14 AC_C_CONST
15 AM_ENABLE_SHARED
16 AM_PROG_LIBTOOL
17
18 if test "x${exec_prefix}" = "xNONE"; then
19   if test "x${prefix}" = "xNONE"; then
20     bindir="${ac_default_prefix}/bin";
21   else
22     bindir="${prefix}/bin";
23   fi
24 else
25   if test "x${prefix}" = "xNONE"; then
26     bindir="${ac_default_prefix}/bin";
27   else
28     bindir="${prefix}/bin";
29   fi
30 fi
31
32 if test "x${exec_prefix}" = "xNONE"; then
33   if test "x${prefix}" = "xNONE"; then
34     libdir="${ac_default_prefix}/lib";
35   else
36     libdir="${prefix}/lib";
37   fi
38 else
39   if test "x${prefix}" = "xNONE"; then
40     libdir="${ac_default_prefix}/lib";
41   else
42     libdir="${prefix}/lib";
43   fi
44 fi
45
46 dnl Set PACKAGE_BIN_DIR in config.h.
47 if test "x${bindir}" = 'xNONE'; then
48   if test "x${prefix}" = "xNONE"; then
49     AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin")
50   else
51     AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin")
52   fi
53 else
54   AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}")
55 fi
56
57 dnl Set PACKAGE_LIB_DIR in config.h.
58 if test "x${libdir}" = 'xNONE'; then
59   if test "x${prefix}" = "xNONE"; then
60     AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib")
61   else
62     AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib")
63   fi
64 else
65   AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}")
66 fi
67
68 dnl Set PACKAGE_SOURCE_DIR in config.h.
69 packagesrcdir=`cd $srcdir && pwd`
70 AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")
71
72 AC_OUTPUT([
73 Makefile src/Makefile src/lib/Makefile src/bin/Makefile
74 ])
75