1
dnl =======================================================
2
dnl FILE: configure.in.in
3
dnl =======================================================
5
dnl This file is part of the KDE libraries/packages
6
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
7
dnl modified by Walter Tasin (tasin@kdevelop.org)
8
dnl for c++ console applications
10
dnl This file is free software; you can redistribute it and/or
11
dnl modify it under the terms of the GNU Library General Public
12
dnl License as published by the Free Software Foundation; either
13
dnl version 2 of the License, or (at your option) any later version.
15
dnl This library is distributed in the hope that it will be useful,
16
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
17
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
dnl Library General Public License for more details.
20
dnl You should have received a copy of the GNU Library General Public License
21
dnl along with this library; see the file COPYING.LIB. If not, write to
22
dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23
dnl Boston, MA 02111-1307, USA.
25
# Original Author was Kalle@kde.org
26
# I lifted it in some mater. (Stephan Kulow)
27
# I used much code from Janos Farkas
29
dnl Process this file with autoconf to produce a configure script.
31
AC_INIT(acinclude.m4) dnl a source file from your sub dir
33
dnl This is so we can use kde-common
34
AC_CONFIG_AUX_DIR(admin)
36
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
39
dnl Checking host/target/build systems, for make, install etc.
41
dnl Perform program name transformation
44
dnl Automake doc recommends to do this only here. (Janos)
45
AM_INIT_AUTOMAKE(taglib,1.4)
47
dnl almost the same like KDE_SET_PEFIX but the path is /usr/local
50
dnl make /usr/local the default for the installation
51
AC_PREFIX_DEFAULT(/usr/local)
53
if test "x$prefix" = "xNONE"; then
54
prefix=$ac_default_prefix
55
ac_configure_args="$ac_configure_args --prefix $prefix"
60
dnl without this order in this file, automake will be confused!
62
AM_CONFIG_HEADER(config.h)
64
dnl checks for programs.
65
dnl first check for c/c++ compilers
68
dnl CXXFLAGS="$NOOPT_CXXFLAGS" dnl __kdevelop[noopt]__
69
dnl CFLAGS="$NOOPT_CFLAGS" dnl __kdevelop[noopt]__
70
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS" dnl __kdevelop[exc]__
72
dnl create only shared libtool-libraries
75
dnl set the following to yes, if you want to create static
76
dnl libtool-libraries, too.
79
dnl create a working libtool-script
82
dnl activate the next macro call for DLOPEN tests and setting LIBDL
83
dnl (n.b. KDE_MISC_TESTS does the same to you, so use either this or the next one)
86
dnl activate the next macro call for some additional tests
87
dnl (compat, crypt, socket, nsl, dlopen, ...)
88
dnl KDE_MISC_TESTS dnl __kdevelop__
90
dnl KDE_NEED_FLEX dnl __kdevelop__
91
dnl AC_PROG_YACC dnl __kdevelop__
93
dnl KDE_CHECK_EXTRA_LIBS
94
all_libraries="$all_libraries $USER_LDFLAGS"
95
all_includes="$all_includes $USER_INCLUDES"
96
AC_SUBST(all_includes)
97
AC_SUBST(all_libraries)
101
#AM_INIT_AUTOMAKE(taglib,1.0)
102
dnl don't remove the below
103
dnl AC_OUTPUT(taglib-config)
104
dnl AC_OUTPUT(taglib.pc)
106
AC_DEFUN([AC_HAVE_ZLIB],
108
AC_DEFINE(HAVE_ZLIB, 1, [have zlib])
112
AC_DEFUN([AC_NO_ZLIB],
114
AC_DEFINE(HAVE_ZLIB, 0, [have zlib])
118
AC_CHECK_HEADER(zlib.h, AC_HAVE_ZLIB, AC_NO_ZLIB)
119
AM_CONDITIONAL(link_zlib, test x$have_zlib = xtrue)
121
AC_DEFUN([AC_HAVE_CPPUNIT],
123
AC_DEFINE(HAVE_CPPUNIT, 1, [have cppunit])
127
AC_DEFUN([AC_NO_CPPUNIT],
129
AC_DEFINE(HAVE_CPPUNIT, 0, [have cppunit])
135
AC_CHECK_HEADER(cppunit/extensions/HelperMacros.h, AC_HAVE_CPPUNIT, AC_NO_CPPUNIT)
137
AM_CONDITIONAL(build_tests, test x$have_cppunit = xtrue)
138
dnl =======================================================
139
dnl FILE: ./bindings/c/configure.in.in
140
dnl =======================================================
142
dnl AC_OUTPUT(bindings/c/taglib_c.pc)
143
KDE_CREATE_SUBDIRSLIST
144
AC_CONFIG_FILES([ Makefile ])
145
AC_CONFIG_FILES([ bindings/Makefile ])
146
AC_CONFIG_FILES([ bindings/c/Makefile ])
147
AC_CONFIG_FILES([ examples/Makefile ])
148
AC_CONFIG_FILES([ taglib/Makefile ])
149
AC_CONFIG_FILES([ taglib/ape/Makefile ])
150
AC_CONFIG_FILES([ taglib/flac/Makefile ])
151
AC_CONFIG_FILES([ taglib/mpc/Makefile ])
152
AC_CONFIG_FILES([ taglib/mpeg/Makefile ])
153
AC_CONFIG_FILES([ taglib/mpeg/id3v1/Makefile ])
154
AC_CONFIG_FILES([ taglib/mpeg/id3v2/Makefile ])
155
AC_CONFIG_FILES([ taglib/mpeg/id3v2/frames/Makefile ])
156
AC_CONFIG_FILES([ taglib/ogg/Makefile ])
157
AC_CONFIG_FILES([ taglib/ogg/flac/Makefile ])
158
AC_CONFIG_FILES([ taglib/ogg/speex/Makefile ])
159
AC_CONFIG_FILES([ taglib/ogg/vorbis/Makefile ])
160
AC_CONFIG_FILES([ taglib/toolkit/Makefile ])
161
AC_CONFIG_FILES([ taglib/trueaudio/Makefile ])
162
AC_CONFIG_FILES([ taglib/wavpack/Makefile ])
163
AC_CONFIG_FILES([ tests/Makefile ])
164
AC_CONFIG_FILES([ taglib-config ])
165
AC_CONFIG_FILES([ taglib.pc ])
166
AC_CONFIG_FILES([ bindings/c/taglib_c.pc ])
168
if test "x$have_zlib" = "xfalse"; then
169
echo "**************************************************"
171
echo "* You don't seem to have libz / zlib.h installed."
172
echo "* Compressed frames have been disabled."
174
echo "**************************************************"
176
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
177
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
178
# And if so, warn when they don't match
179
if test "$kde_libs_prefix" != "$given_prefix"; then
180
# And if kde doesn't know about the prefix yet
181
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
182
if test $? -ne 0; then
184
echo "Warning: you chose to install this package in $given_prefix,"
185
echo "but KDE was found in $kde_libs_prefix."
186
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
187
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
188
echo "Then restart KDE."
194
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
196
echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
197
echo "was not included. Therefore, GCC symbol visibility support remains disabled."
199
echo "For better performance, consider including the Qt visibility supporting patch"
202
echo "http://bugs.kde.org/show_bug.cgi?id=109386"
204
echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
205
echo "everything will continue to work just fine without it."
209
if test "$all_tests" = "bad"; then
210
if test ! "$cache_file" = "/dev/null"; then
212
echo "Please remove the file $cache_file after changing your setup"
213
echo "so that configure will find the changes next time."
218
echo "Good - your configure finished. Start make now"