~ubuntu-branches/ubuntu/oneiric/gtk-qt-engine/oneiric

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Christoffer Sawicki
  • Date: 2005-01-02 22:24:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050102222409-2wsno0q9ywn0ac2e
Tags: upstream-0.60
ImportĀ upstreamĀ versionĀ 0.60

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl    This file is part of the KDE libraries/packages
 
2
dnl    Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
 
3
 
 
4
dnl    This file is free software; you can redistribute it and/or
 
5
dnl    modify it under the terms of the GNU Library General Public
 
6
dnl    License as published by the Free Software Foundation; either
 
7
dnl    version 2 of the License, or (at your option) any later version.
 
8
 
 
9
dnl    This library is distributed in the hope that it will be useful,
 
10
dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
dnl    Library General Public License for more details.
 
13
 
 
14
dnl    You should have received a copy of the GNU Library General Public License
 
15
dnl    along with this library; see the file COPYING.LIB.  If not, write to
 
16
dnl    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
dnl    Boston, MA 02111-1307, USA.
 
18
 
 
19
# Original Author was Kalle@kde.org
 
20
# I lifted it in some mater. (Stephan Kulow)
 
21
# I used much code from Janos Farkas
 
22
 
 
23
dnl Process this file with autoconf to produce a configure script.
 
24
 
 
25
AC_INIT(acinclude.m4) dnl a source file from your sub dir
 
26
 
 
27
dnl This is so we can use kde-common
 
28
AC_CONFIG_AUX_DIR(admin)
 
29
 
 
30
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
 
31
unset CDPATH
 
32
 
 
33
dnl Checking host/target/build systems, for make, install etc.
 
34
AC_CANONICAL_SYSTEM 
 
35
dnl Perform program name transformation
 
36
AC_ARG_PROGRAM
 
37
 
 
38
dnl Automake doc recommends to do this only here. (Janos)
 
39
AM_INIT_AUTOMAKE(gtkqtengine, 0.6) dnl searches for some needed programs
 
40
 
 
41
KDE_SET_PREFIX
 
42
 
 
43
dnl generate the config header
 
44
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
 
45
 
 
46
dnl Checks for programs.
 
47
AC_CHECK_COMPILERS
 
48
AC_ENABLE_SHARED(yes)
 
49
AC_ENABLE_STATIC(no)
 
50
KDE_PROG_LIBTOOL
 
51
 
 
52
dnl for NLS support. Call them in this order!
 
53
dnl WITH_NLS is for the po files
 
54
AM_KDE_WITH_NLS
 
55
 
 
56
KDE_USE_QT(3.0.0)
 
57
AC_PATH_KDE
 
58
#MIN_CONFIG(3.0.0)
 
59
 
 
60
#PKG_CHECK_MODULES(GTK1, gtk+ >= 1.2.0, use_gtk1="yes",use_gtk1="no")
 
61
PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0, use_gtk2="yes",use_gtk2="no")
 
62
PKG_CHECK_MODULES(LIBBONOBOUI, libbonoboui-2.0 >= 2.4.0, use_libbonoboui="yes",use_libbonoboui="no")
 
63
 
 
64
GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
 
65
GTK_LIBPREFIX=`$PKG_CONFIG --variable=libdir gtk+-2.0`
 
66
GTK_PREFIX=`$PKG_CONFIG --variable=prefix gtk+-2.0`
 
67
#GTK1_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+`
 
68
#GTK1_LIBPREFIX=`$PKG_CONFIG --variable=libdir gtk+`
 
69
#GTK1_PREFIX=`$PKG_CONFIG --variable=prefix gtk+`
 
70
LIBBONOBOUI_LIBPREFIX=`$PKG_CONFIG --variable=libdir libbonoboui-2.0`
 
71
LIBBONOBOUI_PREFIX=`$PKG_CONFIG --variable=prefix libbonoboui-2.0`
 
72
KDE_PREFIX=`$KDECONFIG --prefix`
 
73
AC_SUBST(QTENGINE_CFLAGS)
 
74
AC_SUBST(QTENGINE_LIBS)
 
75
AC_SUBST(GTK_VERSION)
 
76
AC_SUBST(GTK_LIBPREFIX)
 
77
AC_SUBST(GTK_PREFIX)
 
78
#AC_SUBST(GTK1_VERSION)
 
79
#AC_SUBST(GTK1_LIBPREFIX)
 
80
#AC_SUBST(GTK1_PREFIX)
 
81
AC_SUBST(KDE_PREFIX)
 
82
#AC_SUBST(GTK1_CFLAGS)
 
83
AC_SUBST(GTK2_CFLAGS)
 
84
AC_SUBST(GTK2_LIBS)
 
85
AC_SUBST(LIBBONOBOUI_CFLAGS)
 
86
AC_SUBST(LIBBONOBOUI_LIBS)
 
87
 
 
88
dnl PACKAGE set before
 
89
AC_C_BIGENDIAN
 
90
AC_CHECK_KDEMAXPATHLEN
 
91
 
 
92
KDE_CREATE_SUBDIRSLIST
 
93
AC_CONFIG_FILES([ Makefile ])
 
94
AC_CONFIG_FILES([ autopackage/Makefile ])
 
95
AC_CONFIG_FILES([ autopackage/default.apspec ])
 
96
#AC_CONFIG_FILES([ gtk1/Makefile ])
 
97
AC_CONFIG_FILES([ src/Makefile ])
 
98
AC_CONFIG_FILES([ kcm_gtk/Makefile ])
 
99
AC_OUTPUT
 
100
 
 
101
if test "x$use_libbonoboui" = "xno"; then
 
102
  echo ""
 
103
  echo "********************************************************************"
 
104
  echo " WARNING: You do not have the bonobo development packages installed"
 
105
  echo " These are not required, but strongly recommended, as they improve"
 
106
  echo " some aspects of the theme engine."
 
107
  echo "********************************************************************"
 
108
  echo ""
 
109
else
 
110
  AC_DEFINE([HAVE_BONOBO], [1], [Define to 1 to enable Bonobo code])
 
111
fi
 
112
 
 
113
if test "$all_tests" = "bad"; then
 
114
  if test ! "$cache_file" = "/dev/null"; then
 
115
    echo ""    
 
116
    echo "Please remove the file $cache_file after changing your setup"
 
117
    echo "so that configure will find the changes next time."
 
118
    echo ""
 
119
  fi
 
120
else
 
121
  echo ""
 
122
  echo "Good - your configure finished. Start make now"
 
123
  echo ""
 
124
fi