1## 2## This file is part of the 'OpenPrinting Japan' project 3## $Id: configure.in,v 1.2 2005/03/23 00:58:01 gishi Exp $ 4## 5## Copyright (C) 2004 by Turbolinux,Inc. 6## This file is free software, distributed under the terms of the GNU 7## General Public License. As a special exception to the GNU General 8## Public License, this file may be distributed as part of a program 9## that contains a configuration script generated by Autoconf, under 10## the same distribution terms as the rest of that program. 11 12AC_PREREQ(2.2) 13AC_INIT(configure.in) 14AC_CONFIG_HEADERS([config.h]) 15AC_PREFIX_DEFAULT(/usr) 16 17opvp_hppagecolor_version=`cat VERSION | grep '^opvp_hppagecolor' | cut -f2 -d'='` 18 19PACKAGE=opfc-ModuleHP 20VERSION=`echo ${opvp_hppagecolor_version} | sed -e 's|:|.|g'` 21 22AM_INIT_AUTOMAKE($PACKAGE,$VERSION) 23 24# set the library version 25HPPAGECOLOR_MAJOR_VERSION=`echo ${opvp_hppagecolor_version} | cut -f1 -d':'` 26HPPAGECOLOR_MINOR_VERSION=`echo ${opvp_hppagecolor_version} | cut -f2 -d':'` 27HPPAGECOLOR_MICRO_VERSION=`echo ${opvp_hppagecolor_version} | cut -f3 -d':'` 28 29HPPAGECOLOR_VERSION=$HPPAGECOLOR_MAJOR_VERSION.$HPPAGECOLOR_MINOR_VERSION.$HPPAGECOLOR_MICRO_VERSION 30HPPAGECOLOR_VERSION_INFO=`expr $HPPAGECOLOR_MAJOR_VERSION + $HPPAGECOLOR_MINOR_VERSION`:$HPPAGECOLOR_MICRO_VERSION:$HPPAGECOLOR_MINOR_VERSION 31HPPAGECOLOR_VERSION_NUMBER=`expr $HPPAGECOLOR_MAJOR_VERSION \* 10000 + $HPPAGECOLOR_MINOR_VERSION \* 100 + $HPPAGECOLOR_MICRO_VERSION` 32 33AC_SUBST(HPPAGECOLOR_MAJOR_VERSION) 34AC_SUBST(HPPAGECOLOR_MINOR_VERSION) 35AC_SUBST(HPPAGECOLOR_MICRO_VERSION) 36AC_SUBST(HPPAGECOLOR_VERSION) 37AC_SUBST(HPPAGECOLOR_VERSION_INFO) 38AC_SUBST(HPPAGECOLOR_VERSION_NUMBER) 39 40# Checks for dynamic loading library 41AC_LIBTOOL_DLOPEN 42AC_PROG_LIBTOOL 43 44# Checks for typical programs and library 45AC_PROG_CC 46AC_PROG_INSTALL 47AC_HEADER_STDC 48AC_FUNC_MALLOC 49 50# see where math library 51AC_CHECK_FUNCS(floor, [MATH_LIBS=""], [ 52 AC_CHECK_LIB(m, floor, [MATH_LIBS="-lm"], [ 53 AC_MSG_WARN([could not find floor() needed by pdapi.h 54 your system may not be supported.]) 55 ]) 56]) 57AC_SUBST(MATH_LIBS) 58 59AC_CHECK_PROG([CUPS_CONFIG], [cups-config], [cups-config]) 60if test x$CUPS_CONFIG != xcups-config; then 61 AC_MSG_ERROR([the cups-config utility is required]) 62fi 63 64dnl debug option 65AC_ARG_ENABLE(debug, 66 [ --enable-deubug turn on debugging], 67 if test "x$enable_debug" = "xyes" ; then 68 CFLAGS="-DDEBUG $CFLAGS" 69 fi 70) 71 72dnl fonts options 73AC_ARG_ENABLE(IPAFonts, 74 [ --enable-IPAFonts distributed with IPA TrueType fonts (default: no)], 75 [case "${enableval}" in 76 yes) IPAFonts=true;; 77 no) IPAFonts=false;; 78 *) AC_MSG_ERROR([bad value ${enableval}]);; 79 esac],[IPAFonts=false] 80) 81AM_CONDITIONAL(WITH_IPAFONTS, test x$IPAFonts = xtrue) 82 83if test x$IPAFonts = xtrue ; then 84 RELEASE_TAG=_withIPAFonts 85else 86 RELEASE_TAG= 87fi 88AC_SUBST(RELEASE_TAG) 89 90AC_OUTPUT([ 91Makefile 92doc/Makefile 93libopvp/Makefile 94libopvp/doc/Makefile 95opvp/Makefile 96ppd/Makefile 97fonts/Makefile 98]) 99