New file. Autogen gnome-autogen.sh from it; added GNOME_COMMON_DATA_DIR
[platform/upstream/gnome-common.git] / configure.in
1 AC_INIT(support/easy-vsnprintf.c)
2
3 AM_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(gnome-common, 1.2.1)
5
6 AM_MAINTAINER_MODE
7
8 AM_CONDITIONAL(INSIDE_GNOME_COMMON, true)
9
10 AC_ARG_ENABLE(platform-gnome-2, [  --enable-platform-gnome-2 enable GNOME 2.x platform [default=no]],[platform_gnome_2="$enableval"],[platform_gnome_2=no])
11 if test "x$platform_gnome_2" != "xyes" ; then
12   platform_gnome_2=no
13 fi
14
15 AM_CONDITIONAL(PLATFORM_GNOME_2, test $platform_gnome_2 = yes)
16
17 AC_DEFUN([AC_FYI], [echo "FYI: " $1])
18
19 AC_ISC_POSIX
20 AC_PROG_CC
21 AC_PROG_CPP
22 AC_STDC_HEADERS
23 AC_ARG_PROGRAM
24 AM_PROG_LIBTOOL
25
26 AC_PROG_AWK
27
28 if test $platform_gnome_2 = yes; then
29   GNOME_INTERFACE_VERSION=2
30   AC_FYI(Enabling GNOME 2 Platform)
31   AC_PATH_PROG(PKG_CONFIG, pkg-config)
32   if ! test -x "$PKG_CONFIG" ; then
33      AC_MSG_ERROR([
34 *** You need the latest pkg-config.
35 *** Get the latest version of pkg-config from
36 *** http://pkgconfig.sourceforce.net.])
37   fi
38   AC_SUBST(PKG_CONFIG)
39   GNOME_SUPPORT_CHECKS
40 else
41   GNOME_INTERFACE_VERSION=1
42 fi
43 AC_SUBST(GNOME_INTERFACE_VERSION)
44
45 AC_OUTPUT([
46 gnome-common.pc
47 gnome-common-2.0.pc
48 Makefile
49 macros/Makefile
50 macros2/Makefile
51 bin/Makefile
52 doc/Makefile
53 support/Makefile
54 support/gnome-support-2.0.pc])
55