blob: 1326e7748862380f2477e2f0a6190e00b70aabb2 [file] [log] [blame]
## configure.ac -- Process this file with autoconf to produce configure
#
# Copyright (C) 2006 Sony Computer Entertainment Inc.
# Copyright 2006 Sony Corp.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
AC_INIT(libps3-utils, @version@, Geoff Levand <geoffrey.levand@am.sony.com>)
# Setup the prefix options.
AC_PREFIX_DEFAULT(/usr/local)
if test "x${prefix}" = "xNONE"; then
prefix=$ac_default_prefix
ac_configure_args="$ac_configure_args --prefix $prefix"
fi
# Setup the debug options.
AC_ARG_ENABLE(debug, [[ --enable-debug enable debugging support]])
DEBUG_FLAGS=
if test "x${enable_debug}" = "xyes"; then
DEBUG_CFLAGS="-O1 -DDEBUG"
fi
AC_SUBST(DEBUG_CFLAGS)
# Setup tools.
AC_PROG_CC
AC_PROG_LIBTOOL
AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE
AC_SUBST(DESTDIR)
AC_CHECK_HEADERS([asm/ps3av.h])
AC_CHECK_DECLS([PS3AV_MODE_MASK, PS3AV_MODE_RGB, PS3AV_MODE_FULL, \
PS3AV_MODE_WHITE, PS3AV_MODE_COLOR, PS3AV_MODE_DITHER, PS3AV_MODE_HDCP_OFF],
[], [], [#include <asm/ps3av.h>])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([ Makefile ])
AC_OUTPUT