1
dnl =======================================================
2
dnl FILE: ./admin/configure.in.min
3
dnl =======================================================
5
dnl This file is part of the KDE libraries/packages
6
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
8
dnl This file is free software; you can redistribute it and/or
9
dnl modify it under the terms of the GNU Library General Public
10
dnl License as published by the Free Software Foundation; either
11
dnl version 2 of the License, or (at your option) any later version.
13
dnl This library is distributed in the hope that it will be useful,
14
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
15
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
dnl Library General Public License for more details.
18
dnl You should have received a copy of the GNU Library General Public License
19
dnl along with this library; see the file COPYING.LIB. If not, write to
20
dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
dnl Boston, MA 02110-1301, USA.
23
# Original Author was Kalle@kde.org
24
# I lifted it in some mater. (Stephan Kulow)
25
# I used much code from Janos Farkas
27
dnl Process this file with autoconf to produce a configure script.
29
AC_INIT(acinclude.m4) dnl a source file from your sub dir
31
dnl This is so we can use kde-common
32
AC_CONFIG_AUX_DIR(admin)
34
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
37
dnl Checking host/target/build systems, for make, install etc.
39
dnl Perform program name transformation
42
dnl Automake doc recommends to do this only here. (Janos)
43
AM_INIT_AUTOMAKE(kbibtex, 0.2.3.90) dnl searches for some needed programs
47
dnl generate the config header
48
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
50
dnl Checks for programs.
56
dnl for NLS support. Call them in this order!
57
dnl WITH_NLS is for the po files
62
dnl =======================================================
63
dnl FILE: configure.in.in
64
dnl =======================================================
68
dnl PACKAGE set before
70
AC_CHECK_KDEMAXPATHLEN
72
PKG_CHECK_MODULES([LIBYAZ], [yaz], [AC_DEFINE([HAVE_YAZ],1,[Define to 1 if you have the YAZ library installed.])],[AC_MSG_RESULT(no)])
73
AC_SUBST(LIBYAZ_CFLAGS)
75
AC_SUBST(LIBYAZ_RPATH)
77
PKG_CHECK_MODULES([LIBXML], [libxml-2.0], [AC_DEFINE([HAVE_XML],1,[Define to 1 if you have libxml installed.])],[AC_MSG_RESULT(no)])
79
AC_SUBST(LIBXML_CFLAGS)
81
PKG_CHECK_MODULES([LIBXSLT], [libxslt], [AC_DEFINE([HAVE_XSLT],1,[Define to 1 if you have libxslt installed.])],[AC_MSG_RESULT(no)])
82
AC_SUBST(LIBXSLT_LIBS)
83
AC_SUBST(LIBXSLT_CFLAGS)
86
KDE_CREATE_SUBDIRSLIST
87
AC_CONFIG_FILES([ Makefile ])
88
AC_CONFIG_FILES([ doc/Makefile ])
89
AC_CONFIG_FILES([ doc/en/Makefile ])
90
AC_CONFIG_FILES([ man/Makefile ])
91
AC_CONFIG_FILES([ po/Makefile ])
92
AC_CONFIG_FILES([ src/Makefile ])
93
AC_CONFIG_FILES([ xslt/Makefile ])
95
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
96
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
97
# And if so, warn when they don't match
98
if test "$kde_libs_prefix" != "$given_prefix"; then
99
# And if kde doesn't know about the prefix yet
100
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
101
if test $? -ne 0; then
103
echo "Warning: you chose to install this package in $given_prefix,"
104
echo "but KDE was found in $kde_libs_prefix."
105
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
106
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
107
echo "Then restart KDE."
113
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
115
echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
116
echo "was not included. Therefore, GCC symbol visibility support remains disabled."
118
echo "For better performance, consider including the Qt visibility supporting patch"
121
echo "http://bugs.kde.org/show_bug.cgi?id=109386"
123
echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
124
echo "everything will continue to work just fine without it."
128
if test "$all_tests" = "bad"; then
129
if test ! "$cache_file" = "/dev/null"; then
131
echo "Please remove the file $cache_file after changing your setup"
132
echo "so that configure will find the changes next time."
137
echo "Good - your configure finished. Start make now"