Chris@0: dnl -*- m4 -*- Chris@0: dnl Chris@0: dnl libid3tag - ID3 tag manipulation library Chris@0: dnl Copyright (C) 2000-2004 Underbit Technologies, Inc. Chris@0: dnl Chris@0: dnl This program is free software; you can redistribute it and/or modify Chris@0: dnl it under the terms of the GNU General Public License as published by Chris@0: dnl the Free Software Foundation; either version 2 of the License, or Chris@0: dnl (at your option) any later version. Chris@0: dnl Chris@0: dnl This program is distributed in the hope that it will be useful, Chris@0: dnl but WITHOUT ANY WARRANTY; without even the implied warranty of Chris@0: dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Chris@0: dnl GNU General Public License for more details. Chris@0: dnl Chris@0: dnl You should have received a copy of the GNU General Public License Chris@0: dnl along with this program; if not, write to the Free Software Chris@0: dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Chris@0: dnl Chris@0: AC_REVISION([$Id: configure.ac,v 1.12 2004/01/23 23:22:46 rob Exp $])dnl Chris@0: Chris@0: dnl Process this file with autoconf to produce a configure script. Chris@0: Chris@0: AC_INIT([ID3 Tag], [0.15.1b], [support@underbit.com], [libid3tag]) Chris@0: AC_PREREQ(2.53) Chris@0: Chris@0: AC_CONFIG_SRCDIR([id3tag.h]) Chris@0: Chris@0: AM_INIT_AUTOMAKE Chris@0: Chris@0: AM_CONFIG_HEADER([config.h]) Chris@0: Chris@0: dnl System type. Chris@0: Chris@0: AC_CANONICAL_HOST Chris@0: Chris@0: dnl Checks for programs. Chris@0: Chris@0: AC_PROG_CC Chris@0: Chris@0: if test "$GCC" = yes Chris@0: then Chris@0: case "$host" in Chris@0: *-*-mingw*) Chris@0: case "$build" in Chris@0: *-*-cygwin*) Chris@0: CPPFLAGS="$CPPFLAGS -mno-cygwin" Chris@0: LDFLAGS="$LDFLAGS -mno-cygwin" Chris@0: ;; Chris@0: esac Chris@0: esac Chris@0: Chris@0: dnl case "$host" in Chris@0: dnl *-*-cygwin* | *-*-mingw*) Chris@0: dnl LDFLAGS="$LDFLAGS -no-undefined -mdll" Chris@0: dnl ;; Chris@0: dnl esac Chris@0: fi Chris@0: Chris@0: dnl Support for libtool. Chris@0: Chris@0: dnl AC_DISABLE_SHARED Chris@0: dnl AC_LIBTOOL_WIN32_DLL Chris@0: AC_PROG_LIBTOOL Chris@0: Chris@0: AC_SUBST(LIBTOOL_DEPS) Chris@0: Chris@0: dnl Compiler options. Chris@0: Chris@0: arch="" Chris@0: debug="" Chris@0: optimize="" Chris@0: profile="" Chris@0: Chris@0: set -- $CFLAGS Chris@0: CFLAGS="" Chris@0: Chris@0: if test "$GCC" = yes Chris@0: then Chris@0: CFLAGS="-Wall" Chris@0: fi Chris@0: Chris@0: while test $# -gt 0 Chris@0: do Chris@0: case "$1" in Chris@0: -Wall) Chris@0: if test "$GCC" = yes Chris@0: then Chris@0: : Chris@0: else Chris@0: CFLAGS="$CFLAGS $1" Chris@0: fi Chris@0: shift Chris@0: ;; Chris@0: -g) Chris@0: debug="-g" Chris@0: shift Chris@0: ;; Chris@0: -mno-cygwin) Chris@0: shift Chris@0: ;; Chris@0: -m*) Chris@0: arch="$arch $1" Chris@0: shift Chris@0: ;; Chris@0: -fomit-frame-pointer) Chris@0: shift Chris@0: ;; Chris@0: -O*|-f*) Chris@0: optimize="$1" Chris@0: shift Chris@0: ;; Chris@0: *) Chris@0: CFLAGS="$CFLAGS $1" Chris@0: shift Chris@0: ;; Chris@0: esac Chris@0: done Chris@0: Chris@0: dnl Checks for header files. Chris@0: Chris@0: AC_HEADER_STDC Chris@0: AC_CHECK_HEADERS(assert.h unistd.h) Chris@0: Chris@0: AC_CHECK_HEADER(zlib.h, [], [ Chris@0: AC_MSG_ERROR([zlib.h was not found Chris@0: *** You must first install zlib (libz) before you can build this package. Chris@0: *** If zlib is already installed, you may need to use the CPPFLAGS Chris@0: *** environment variable to specify its installed location, e.g. -I