1dnl $Id: configure.in.in,v 1.103.2.75 2004/06/05 13:57:00 rlk Exp $ 2dnl Copyright (C) 2000 Roger Leigh 3dnl 4dnl This program is free software; you can redistribute it and/or modify 5dnl it under the terms of the GNU General Public License as published by 6dnl the Free Software Foundation; either version 2, or (at your option) 7dnl any later version. 8dnl 9dnl This program is distributed in the hope that it will be useful, 10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12dnl GNU General Public License for more details. 13dnl 14dnl You should have received a copy of the GNU General Public License 15dnl along with this program; if not, write to the Free Software 16dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 18dnl Process this file with autoconf to produce a configure script. 19 20AC_INIT(src/main/print-dither.c) 21AC_CONFIG_AUX_DIR(scripts) 22 23PACKAGE="gimp-print" 24 25dnl In the following, there are a the following variants 26dnl of gimpprint cflags and libs variables 27dnl 28dnl GIMPPRINT_CFLAGS: cflags for compiling libraries and example progs 29dnl GIMPPRINT_LIBS: libraries for linking programs. ONLY to be used 30dnl to generate ${gimpprint_libs} 31dnl GIMPPRINT_DEPLIBS: libraries for linking libraries against 32dnl gimpprint_cflags: cflags to store in gimpprint-config 33dnl gimpprint_libs: libs to store in gimpprint-config 34dnl LIBGIMPPRINT_LIBS libs to link programs IN THIS PACKAGE ONLY against 35 36dnl initial default values 37GIMPPRINT_LIBS="-lgimpprint" 38 39dnl we need to AC_DIVERT_PUSH/AC_DIVERT_POP these variable definitions so they 40dnl are available for $ac_help expansion (don't we all *love* autoconf?) 41AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl 42dnl 43dnl MAKING RELEASES (a step-by-step guide!) 44dnl =============== 45dnl 46dnl Since the last release: 47dnl 1. if only source code (not the interface) has changed, set 48dnl GIMPPRINT_MICRO_VERSION += 1; 49dnl GIMPPRINT_INTERFACE_AGE += 1; 50dnl 2. if any functions have been added, removed, or changed, set 51dnl GIMPPRINT_INTERFACE_AGE = 0; 52dnl GIMPPRINT_CURRENT_INTERFACE += 1; 53dnl 3. if interfaces have been added, set 54dnl GIMPPRINT_BINARY_AGE += 1; 55dnl 4. if interfaces have been removed, set 56dnl GIMPPRINT_BINARY_AGE = 0; 57dnl 58dnl For more detailed information, see the libtool info documentation. 59dnl 60GIMPPRINT_MAJOR_VERSION=4 61GIMPPRINT_MINOR_VERSION=2 62GIMPPRINT_MICRO_VERSION=7 63GIMPPRINT_EXTRA_VERSION= 64GIMPPRINT_CURRENT_INTERFACE=2 65GIMPPRINT_INTERFACE_AGE=3 66GIMPPRINT_BINARY_AGE=1 67GIMPPRINT_VERSION=$GIMPPRINT_MAJOR_VERSION.$GIMPPRINT_MINOR_VERSION.$GIMPPRINT_MICRO_VERSION$GIMPPRINT_EXTRA_VERSION 68dnl 69AC_DIVERT_POP()dnl 70 71ACLOCAL_FLAGS='-I src/main' 72AC_SUBST(GIMPPRINT_MAJOR_VERSION) 73AC_SUBST(GIMPPRINT_MINOR_VERSION) 74AC_SUBST(GIMPPRINT_MICRO_VERSION) 75AC_SUBST(GIMPPRINT_CURRENT_INTERFACE) 76AC_SUBST(GIMPPRINT_INTERFACE_AGE) 77AC_SUBST(GIMPPRINT_BINARY_AGE) 78AC_SUBST(GIMPPRINT_VERSION) 79 80dnl libtool versioning 81LT_RELEASE=$GIMPPRINT_MAJOR_VERSION.$GIMPPRINT_MINOR_VERSION 82LT_CURRENT=$GIMPPRINT_CURRENT_INTERFACE 83LT_REVISION=$GIMPPRINT_INTERFACE_AGE 84LT_AGE=$GIMPPRINT_BINARY_AGE 85AC_SUBST(LT_RELEASE) 86AC_SUBST(LT_CURRENT) 87AC_SUBST(LT_REVISION) 88AC_SUBST(LT_AGE) 89 90dnl Initialize automake stuff. 91AM_INIT_AUTOMAKE(${PACKAGE}, ${GIMPPRINT_VERSION}) 92dnl AM_ACLOCAL_INCLUDE(m4) 93 94dnl Specify a configuration file. 95AM_CONFIG_HEADER(config.h) 96 97dnl Available languages (translations) 98ALL_LINGUAS="en_GB sv no fr da pl sk el nl es pt de ja cs nb uk hu" 99AC_SUBST(ALL_LINGUAS) 100 101dnl Compiler options and definitions 102INCLUDES="${INCLUDES} -I\$(top_srcdir)/include -I\$(top_builddir)/include -I\$(top_srcdir)/intl" 103 104dnl Defaults 105dnl figure defaults, prior to $ac_help setup 106AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl 107BUILD_GIMP='(automatic)' 108USE_READLINE='yes' 109EXTRA_LIBREADLINE_DEPS='' 110BUILD_CUPS='(automatic)' 111BUILD_TRANSLATED_PPDS='yes' 112USE_LEVEL3_PS='no' 113BUILD_GHOST='no' 114BUILD_FOOMATIC='(automatic)' 115BUILD_FOOMATIC_3='(automatic)' 116BUILD_FOOMATIC_OLDIDS='(automatic)' 117BUILD_IJS='(automatic)' 118BUILD_TEST='no' 119BUILD_TESTPATTERN='no' 120BUILD_ESCPUTIL='yes' 121INSTALL_SAMPLES='yes' 122INSTALL_USER_GUIDE='yes' 123PLUG_IN_PATH='admin-bin' 124AC_DIVERT_POP()dnl 125 126AM_MAINTAINER_MODE 127if test x${USE_MAINTAINER_MODE} = xyes ; then 128 MAINTAINER_MODE=true 129 BUILD_TEST=yes 130 AC_DEFINE(HAVE_MAINTAINER_MODE,, [Define if maintainer-mode is to be used.]) 131fi 132 133dnl Check canonical system/host (a kludge: replace me with something better). 134AC_CANONICAL_HOST 135if test x${host_os} = xlinux-gnu ; then 136 OSTYPE="linux" 137elif test "`echo ${host_os} | sed 's/^\(linux\).*$/\1/'`" = "linux" ; then 138 OSTYPE="linux" 139elif test "`echo ${host_os} | sed 's/^\(irix\).*$/\1/'`" = "irix" ; then 140 OSTYPE="irix" 141elif test "`echo ${host_os} | sed 's/^\(darwin\).*$/\1/'`" = "darwin" ; then 142 OSTYPE="darwin" 143else 144 OSTYPE="${host_os}" 145fi 146AC_DEFINE(OSTYPE, ["${OSTYPE}"], [The operating system to build for]) 147 148if test x${host_os} = xdarwin; then 149 LIBM="" 150else 151 LIBM="-lm" 152fi 153 154dnl Command line options. 155AC_PATH_PROG(CUPS_CONFIG, cups-config) 156if test -z "${CUPS_CONFIG}" ; then 157 BUILD_CUPS="no" 158else 159 BUILD_CUPS="yes" 160fi 161AC_MSG_CHECKING([whether to build CUPS driver]) 162AC_ARG_WITH(cups, 163[ --with-cups[=PREFIX] build CUPS driver [default=${BUILD_CUPS}, default PREFIX=/usr]], 164 [case "${withval}" in 165 yes) BUILD_CUPS="yes" ; AC_MSG_RESULT([yes]) ; cups_prefix="/usr" ;; 166 no) BUILD_CUPS="no" ; AC_MSG_RESULT([no]) ; cups_prefix="/usr" ;; 167 *) if test -d ${withval} ; then 168 BUILD_CUPS="yes" 169 AC_MSG_RESULT([yes (using specified prefix)]) 170 cups_prefix="${withval}" 171 else 172 AC_MSG_RESULT([unknown]) 173 AC_MSG_ERROR([${withval}: no such directory for --with-cups]) 174 fi ;; 175 esac],[AC_MSG_RESULT([${BUILD_CUPS}]) ; cups_prefix="${prefix}"]) 176 177 178 179AC_MSG_CHECKING([whether to build translated CUPS PPD files]) 180AC_ARG_WITH(translated-ppds, 181[ --with-translated-ppds build translated CUPS PPD files [default=${BUILD_TRANSLATED_PPDS}]], 182 [case "${withval}" in 183 yes) BUILD_TRANSLATED_PPDS="yes" ; AC_MSG_RESULT([yes]) ;; 184 no) BUILD_TRANSLATED_PPDS="no" ; AC_MSG_RESULT([no]) ;; 185 *) AC_MSG_RESULT([unknown]) 186 AC_MSG_ERROR([bad value ${withval} for --with-translated-ppds]) ;; 187 esac],[AC_MSG_RESULT([${BUILD_TRANSLATED_PPDS}])]) 188 189AC_MSG_CHECKING([whether to use level 3 PostScript]) 190AC_ARG_ENABLE(cups-level3-ppds, 191[ --enable-cups-level3-ps Generate PostScript level 3 PPD files [default=no]], 192 [case "${enableval}" in 193 yes) USE_LEVEL3_PS=yes ; AC_MSG_RESULT([yes]) ;; 194 no) USE_LEVEL3_PS=no ; AC_MSG_RESULT([no]) ;; 195 *) AC_MSG_RESULT([unknown]) 196 AC_MSG_ERROR([bad value ${enableval} for --enable-cups-level3-ps]) ;; 197 esac],[AC_MSG_RESULT([${USE_LEVEL3_PS}])]) 198 199AC_MSG_CHECKING([whether to build ghostscript driver]) 200AC_ARG_WITH(ghost, 201[ --with-ghost build ghostscript driver patch [default=${BUILD_GHOST}]], 202 [case "${withval}" in 203 yes) BUILD_GHOST="yes" ; AC_MSG_RESULT([yes]) ;; 204 no) BUILD_GHOST="no" ; AC_MSG_RESULT([no]) ;; 205 *) AC_MSG_RESULT([unknown]) 206 AC_MSG_ERROR([bad value ${withval} for --with-ghost]) ;; 207 esac],[AC_MSG_RESULT([${BUILD_GHOST}])]) 208 209AC_PATH_PROG(FOOMATIC_CONFIGURE, foomatic-configure) 210if test -z "${FOOMATIC_CONFIGURE}" ; then 211 BUILD_FOOMATIC="no" 212else 213 BUILD_FOOMATIC="yes" 214fi 215AC_MSG_CHECKING([whether to build foomatic data files]) 216AC_ARG_WITH(foomatic, 217[ --with-foomatic build foomatic data files [default=${BUILD_FOOMATIC}]], 218 [case "${withval}" in 219 yes) BUILD_FOOMATIC="yes" ; AC_MSG_RESULT([yes]) ;; 220 no) BUILD_FOOMATIC="no" ; AC_MSG_RESULT([no]) ;; 221 *) AC_MSG_RESULT([unknown]) 222 AC_MSG_ERROR([bad value ${withval} for --with-foomatic]) ;; 223 esac],[AC_MSG_RESULT([${BUILD_FOOMATIC}])]) 224 225AC_PATH_PROG(FOOMATIC_PPDFILE, foomatic-ppdfile) 226if test -z "${FOOMATIC_PPDFILE}" ; then 227 BUILD_FOOMATIC_3="no" 228else 229 BUILD_FOOMATIC_3="yes" 230fi 231AC_MSG_CHECKING([whether to make use of Foomatic 3.x features]) 232AC_ARG_WITH(foomatic3, 233[ --with-foomatic3 make use of Foomatic 3.x features [default=${BUILD_FOOMATIC_3}]], 234 [case "${withval}" in 235 yes) BUILD_FOOMATIC="yes" ; BUILD_FOOMATIC_3="yes" ; AC_MSG_RESULT([yes]) ;; 236 no) BUILD_FOOMATIC_3="no" ; AC_MSG_RESULT([no]) ;; 237 *) AC_MSG_RESULT([unknown]) 238 AC_MSG_ERROR([bad value ${withval} for --with-foomatic3]) ;; 239 esac],[AC_MSG_RESULT([${BUILD_FOOMATIC_3}])]) 240 241if test "${FOOMATIC_CONFIGURE}" ; then 242 AC_MSG_CHECKING([Foomatic printer IDs]) 243 foomatic_libdir=`perl -e 'use Foomatic::Defaults; print "$libdir\n";';` 244 if [[ -d $foomatic_libdir/db/source/printer/ ]]; then 245 for file in `ls -1 $foomatic_libdir/db/source/printer/`; do 246 if ( grep -q ^${file%.xml} ${srcdir}/src/foomatic/oldprinterids ); then 247 oldids=1 248 AC_MSG_RESULT([Found entry with old Foomatic printer ID!]) 249 break 250 fi 251 echo -en . 252 done 253 if test -z "${oldids}" ; then 254 AC_MSG_RESULT([No entry with old Foomatic printer ID found!]) 255 fi 256 else 257 AC_MSG_RESULT([Could't find Foomatic database!]) 258 fi 259fi 260if test -z "${oldids}" ; then 261 BUILD_FOOMATIC_OLDIDS="no" 262else 263 BUILD_FOOMATIC_OLDIDS="yes" 264fi 265AC_MSG_CHECKING([whether to use the old numerical Foomatic printer IDs]) 266AC_ARG_WITH(foomatic-oldids, 267[ --with-foomatic-oldids use old Foomatic printer IDs [default=${BUILD_FOOMATIC_OLDIDS}]], 268 [case "${withval}" in 269 yes) BUILD_FOOMATIC="yes" ; BUILD_FOOMATIC_OLDIDS="yes" ; AC_MSG_RESULT([yes]) ;; 270 no) BUILD_FOOMATIC_OLDIDS="no" ; AC_MSG_RESULT([no]) ;; 271 *) AC_MSG_RESULT([unknown]) 272 AC_MSG_ERROR([bad value ${withval} for --with-foomatic3]) ;; 273 esac],[AC_MSG_RESULT([${BUILD_FOOMATIC_OLDIDS}])]) 274 275AC_PATH_PROG(IJS_CONFIG, ijs-config) 276if test -z "${IJS_CONFIG}" ; then 277 BUILD_IJS="no" 278else 279 BUILD_IJS="yes" 280fi 281AC_MSG_CHECKING([whether to build IJS driver]) 282AC_ARG_WITH(ijs, 283[ --with-ijs build IJS driver [default=${BUILD_IJS}]], 284 [case "${withval}" in 285 yes) BUILD_IJS="yes" ; AC_MSG_RESULT([yes]) ;; 286 no) BUILD_IJS="no" ; AC_MSG_RESULT([no]) ;; 287 *) AC_MSG_RESULT([unknown]) 288 AC_MSG_ERROR([bad value ${withval} for --with-ijs]) ;; 289 esac],[AC_MSG_RESULT([${BUILD_IJS}])]) 290 291AC_MSG_CHECKING([whether to turn on debugging in build]) 292AC_ARG_ENABLE(debug, 293[ --enable-debug turn on debugging [default=no]], 294 [case "${enableval}" in 295 yes) ENABLE_DEBUG="yes" ; AC_MSG_RESULT([yes]) ;; 296 no) ENABLE_DEBUG="no" ; AC_MSG_RESULT([no]) ;; 297 *) AC_MSG_RESULT([unknown]) 298 AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; 299 esac],[ENABLE_DEBUG="no" ; AC_MSG_RESULT([no])]) 300 301AC_MSG_CHECKING([whether to use readline]) 302AC_ARG_WITH(readline, 303[ --with-readline turn on readline [default=${USE_READLINE}, default tries -lncurses, -lcurses, -ltermcap]], 304 [case "${withval}" in 305 yes) USE_READLINE="yes" ; AC_MSG_RESULT([yes]) ;; 306 no) USE_READLINE="no" ; AC_MSG_RESULT([no]) ;; 307 only) USE_READLINE="yes" 308 EXTRA_LIBREADLINE_DEPS=" " 309 AC_MSG_RESULT([yes (using only readline)]) ;; 310 *) USE_READLINE="yes" 311 EXTRA_LIBREADLINE_DEPS="${withval}" 312 AC_MSG_RESULT([yes (using extra libraries ${withval})]) ;; 313 esac],[AC_MSG_RESULT([${USE_READLINE}])]) 314 315AC_PATH_PROGS([GIMPTOOL_CHECK], [gimptool-1.2 gimptool]) 316if test -z "${GIMPTOOL_CHECK}" ; then 317 BUILD_GIMP="no" 318else 319 # Check we have version 1.2 320 gimptool_check_version=`${GIMPTOOL_CHECK} --version` 321dnl Quote to protect sed regexes 322 [gimptool_check_major=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\1/'`] 323 [gimptool_check_minor=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'`] 324 if test "$gimptool_check_major" -eq 1 -a "$gimptool_check_minor" -eq 2; then 325 BUILD_GIMP="yes" 326 else 327 BUILD_GIMP="no" 328 fi 329fi 330AC_MSG_CHECKING([whether to build GIMP plugin]) 331AC_ARG_WITH(gimp, 332[ --with-gimp build GIMP plugin [default=${BUILD_GIMP}]], 333 [case "${withval}" in 334 yes) BUILD_GIMP="yes" ; AC_MSG_RESULT([yes]) ;; 335 no) BUILD_GIMP="no" ; AC_MSG_RESULT([no]) ;; 336 *) AC_MSG_RESULT([unknown]) 337 AC_MSG_ERROR([bad value ${withval} for --with-gimp]) ;; 338 esac],[AC_MSG_RESULT([${BUILD_GIMP}])]) 339 340AC_MSG_CHECKING([whether to install sample images]) 341AC_ARG_WITH(samples, 342[ --with-samples install sample images [default=${INSTALL_SAMPLES}]], 343 [case "${withval}" in 344 yes) INSTALL_SAMPLES="yes" ; AC_MSG_RESULT([yes]) ;; 345 no) INSTALL_SAMPLES="no" ; AC_MSG_RESULT([no]) ;; 346 *) AC_MSG_RESULT([unknown]) 347 AC_MSG_ERROR([bad value ${withval} for --with-samples]) ;; 348 esac],[AC_MSG_RESULT([${INSTALL_SAMPLES}])]) 349 350AC_MSG_CHECKING([whether to install user guide]) 351AC_ARG_WITH(user-guide, 352[ --with-user-guide install user guide [default=${INSTALL_USER_GUIDE}]], 353 [case "${withval}" in 354 yes) INSTALL_USER_GUIDE="yes" ; AC_MSG_RESULT([yes]) ;; 355 no) INSTALL_USER_GUIDE="no" ; AC_MSG_RESULT([no]) ;; 356 *) AC_MSG_RESULT([unknown]) 357 AC_MSG_ERROR([bad value ${withval} for --with-user-guide]) ;; 358 esac],[AC_MSG_RESULT([${INSTALL_USER_GUIDE}])]) 359 360AC_MSG_CHECKING([whether to build escputil]) 361AC_ARG_ENABLE(escputil, 362[ --enable-escputil build escputil [default=${BUILD_ESCPUTIL}]], 363 [case "${enableval}" in 364 yes) BUILD_ESCPUTIL="yes" ; AC_MSG_RESULT([yes]) ;; 365 no) BUILD_ESCPUTIL="no" ; AC_MSG_RESULT([no]) ;; 366 *) AC_MSG_RESULT([unknown]) 367 AC_MSG_ERROR([bad value ${enableval} for --enable-escputil]) ;; 368 esac],[AC_MSG_RESULT([${BUILD_ESCPUTIL}])]) 369 370AC_MSG_CHECKING([whether to build testpattern generator]) 371AC_ARG_WITH(testpattern, 372[ --with-testpattern build testpattern generator [default=${BUILD_TESTPATTERN}]], 373 [case "${withval}" in 374 yes) BUILD_TESTPATTERN="yes" ; AC_MSG_RESULT([yes]) ;; 375 no) BUILD_TESTPATTERN="no" ; AC_MSG_RESULT([no]) ;; 376 *) AC_MSG_RESULT([unknown]) 377 AC_MSG_ERROR([bad value ${enableval} for --enable-testpattern]) ;; 378 esac],[AC_MSG_RESULT([${BUILD_TESTPATTERN}])]) 379 380AC_MSG_CHECKING([whether to build test programs]) 381AC_ARG_ENABLE(test, 382[ --enable-test build test programs [default=${BUILD_TEST}]], 383 [case "${enableval}" in 384 yes) BUILD_TEST="yes" ; AC_MSG_RESULT([yes]) ;; 385 no) BUILD_TEST="no" ; AC_MSG_RESULT([no]) ;; 386 *) AC_MSG_RESULT([unknown]) 387 AC_MSG_ERROR([bad value ${enableval} for --enable-test]) ;; 388 esac],[AC_MSG_RESULT([${BUILD_TEST}])]) 389 390AC_MSG_CHECKING([if user install is enabled]) 391AC_ARG_ENABLE(user-install, 392[ --enable-user-install install GIMP plugin in home directory [default=no]], 393 [case "${enableval}" in 394 yes) PLUG_IN_PATH="bin" ; AC_MSG_RESULT([yes]) ;; 395 no) PLUG_IN_PATH="admin-bin" ; AC_MSG_RESULT([no]) ;; 396 *) AC_MSG_RESULT([unknown]) 397 AC_MSG_ERROR([bad value ${enableval} for --enable-user-install]) ;; 398 esac],[PLUG_IN_PATH="admin-bin" ; AC_MSG_RESULT([no])]) 399 400 401dnl Honour aclocal flags. 402ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" 403 404dnl Checks for programs. 405AC_ISC_POSIX 406AC_PROG_AWK 407AC_PROG_CC 408AC_PROG_INSTALL 409AC_PROG_LN_S 410AC_PROG_YACC 411AM_PROG_LEX 412AC_PATH_PROG(BISON_PROG, bison) 413AC_PATH_PROG(YACC_PROG, yacc) 414AC_PATH_PROG(PERL, perl) 415AC_PATH_PROG(CONVERT, convert) 416if test x${USE_MAINTAINER_MODE} = xyes ; then 417 if test x${CONVERT} = x ; then 418 AC_MSG_WARN([PostScript user's guide cannot be regenerated!]) 419 fi 420fi 421AC_PATH_PROG(TEXI2HTML, texi2html) 422if test x${USE_MAINTAINER_MODE} = xyes ; then 423 if test x${TEXI2HTML} = x ; then 424 AC_MSG_WARN([HTML documentation cannot be regenerated!]) 425 fi 426fi 427AC_PATH_PROG(DVIPS, dvips) 428if test x${USE_MAINTAINER_MODE} = xyes ; then 429 if test x${DVIPS} = x ; then 430 AC_MSG_WARN([PostScript documentation cannot be regenerated!]) 431 fi 432fi 433AC_PATH_PROG(DB2PDF, db2pdf) 434if test x${USE_MAINTAINER_MODE} = xyes ; then 435 if test x${DB2PDF} = x ; then 436 AC_MSG_WARN([PDF user's guide cannot be regenerated!]) 437 fi 438fi 439AC_PATH_PROGS(DVIPDF, dvipdf dvipdfm) 440if test x${USE_MAINTAINER_MODE} = xyes ; then 441 if test x${DVIPDF} = x ; then 442 AC_MSG_WARN([PDF documentation cannot be regenerated!]) 443 fi 444fi 445AC_PATH_PROG(DB2PS, db2ps) 446if test x${USE_MAINTAINER_MODE} = xyes ; then 447 if test x${DB2PS} = x ; then 448 AC_MSG_WARN([PostScript user's guide cannot be regenerated!]) 449 fi 450fi 451AC_PATH_PROG(DB2HTML, db2html) 452if test x${USE_MAINTAINER_MODE} = xyes ; then 453 if test x${DB2PS} = x ; then 454 AC_MSG_WARN([HTML user's guide cannot be regenerated!]) 455 fi 456fi 457dnl foomatic checks 458if test x${BUILD_FOOMATIC} = xyes ; then 459 AC_PATH_PROG(FOOMATIC_KITLOAD, foomatic-kitload,,$PATH:/usr/sbin:/usr/local/sbin) 460 if test -z "$FOOMATIC_KITLOAD" ; then 461 AC_MSG_WARN(Cannot find foomatic-kitload; attempt to install foomatic will fail) 462 fi 463fi 464 465dnl ijs checks 466if test x${BUILD_IJS} = xyes ; then 467 if test -z "$IJS_CONFIG" ; then 468 AC_MSG_ERROR(Cannot find ijs-config; please ensure ijs 0.30 is installed); 469 fi 470 IJS_CFLAGS=`$IJS_CONFIG --cflags` 471 IJS_LIBS=`$IJS_CONFIG --libs` 472fi 473 474dnl Set up libtool scripts. 475dnl Disable static library building to speed up the build 476dnl MRS: This causes problems with --disable-shared 477# AC_DISABLE_STATIC 478AM_PROG_LIBTOOL 479AC_SUBST(LIBTOOL_DEPS) 480dnl define HAVE_GNU_LD if GNU ld is present 481if test "$ac_cv_prog_gnu_ld" = "yes" ; then 482 AC_DEFINE(HAVE_GNU_LD,, [Define if GNU ld is present.]) 483fi 484 485AM_CONDITIONAL(BUILD_GENPPD_STATIC, test x"$enable_static" = xyes) 486 487if test "$enable_static" = no -a "$BUILD_CUPS" = yes ; then 488 AC_MSG_WARN([--enable-static is disabled, but CUPS is being built.]) 489 AC_MSG_WARN([This may result in a *SILENTLY* incorrect build.]) 490 AC_MSG_WARN([Please read the release notes carefully!]) 491fi 492 493dnl GNU gettext checks. 494AM_GNU_GETTEXT 495 496if test x${USE_INCLUDED_LIBINTL} = xyes ; then 497 : 498else 499 GIMPPRINT_DEPLIBS="${GIMPPRINT_DEPLIBS} ${INTLLIBS}" 500fi 501 502dnl Set PACKAGE_LOCALE_DIR in config.h 503if test "x${prefix}" = "xNONE"; then 504 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale") 505else 506 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale") 507fi 508 509dnl Compiler flags 510if test "$CC" = "gcc" ; then 511 : 512else 513 if test x$ENABLE_DEBUG = xyes ; then 514 CFLAGS="${CFLAGS:=} -g" 515 else 516 CFLAGS="${CFLAGS:=} -O" 517 fi 518fi 519if test "$CC" = "gcc" ; then 520 GNUCFLAGS="-Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wwrite-strings -pedantic" 521fi 522AC_SUBST(GNUCFLAGS) 523 524dnl Checks for libraries. 525dnl When checking readline, check using extra libraries first. 526dnl We want to protect against the link somehow succeeding, but only 527dnl failing at runtime, as seems to happen on some BSD systems. 528if test "$USE_READLINE" = yes ; then 529 if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then 530 unset ac_cv_lib_readline_readline 531 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 532 HAVE_LIBREADLINE=false, -lncurses) 533 if test x${HAVE_LIBREADLINE} = xtrue ; then 534 echo " Using -lreadline -lncurses" 535 EXTRA_LIBREADLINE_DEPS=-lncurses 536 AC_DEFINE(HAVE_LIBREADLINE, [1]) 537 else 538 unset ac_cv_lib_readline_readline 539 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 540 HAVE_LIBREADLINE=false, -lcurses) 541 if test x${HAVE_LIBREADLINE} = xtrue ; then 542 echo " Using -lreadline -lcurses" 543 EXTRA_LIBREADLINE_DEPS=-lcurses 544 AC_DEFINE(HAVE_LIBREADLINE, [1]) 545 else 546 unset ac_cv_lib_readline_readline 547 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 548 HAVE_LIBREADLINE=false, -ltermcap) 549 if test x${HAVE_LIBREADLINE} = xtrue ; then 550 echo " Using -lreadline -ltermcap" 551 EXTRA_LIBREADLINE_DEPS=-ltermcap 552 AC_DEFINE(HAVE_LIBREADLINE, [1]) 553 else 554 unset ac_cv_lib_readline_readline 555 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 556 HAVE_LIBREADLINE=false) 557 if test x${HAVE_LIBREADLINE} = xtrue ; then 558 AC_DEFINE(HAVE_LIBREADLINE, [1]) 559 else 560 AC_DEFINE(HAVE_LIBREADLINE, [0]) 561 fi 562 fi 563 fi 564 fi 565 else 566 unset ac_cv_lib_readline_readline 567 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 568 HAVE_LIBREADLINE=false, ${EXTRA_LIBREADLINE_DEPS}) 569 if test x${HAVE_LIBREADLINE} = xtrue ; then 570 echo " Using -lreadline ${EXTRA_LIBREADLINE_DEPS}" 571 AC_DEFINE(HAVE_LIBREADLINE, [1]) 572 else 573 AC_DEFINE(HAVE_LIBREADLINE, [0]) 574 fi 575 fi 576else 577 HAVE_LIBREADLINE=false 578 AC_DEFINE(HAVE_LIBREADLINE, [0]) 579fi 580 581dnl check for libm, and also add to CUPS LIBS 582AC_CHECK_LIB(m,pow, 583 GIMPPRINT_DEPLIBS="${GIMPPRINT_DEPLIBS} ${LIBM}" 584 CUPS_LIBS="${CUPS_LIBS} ${LIBM}") 585dnl CUPS library checks 586if test x${BUILD_CUPS} = xyes ; then 587 AC_CHECK_LIB(z,gzgets, 588 HAVE_LIBZ=true, HAVE_LIBZ=false) 589 if test x${HAVE_LIBZ} = xtrue ; then 590 CUPS_LIBS="${CUPS_LIBS} -lz" 591 LIBS="$LIBS -lz" 592 AC_DEFINE(HAVE_LIBZ,, [Define if libz is present.]) 593 fi 594 AC_PATH_PROG(CUPS_CONFIG, cups-config) 595 if test "x$CUPS_CONFIG" != x; then 596 dnl Use values from CUPS config... 597 CUPS_LIBS="`$CUPS_CONFIG --ldflags` `$CUPS_CONFIG --image --libs`" 598 CUPS_CFLAGS="`$CUPS_CONFIG --cflags`" 599 else 600 dnl Save current library list... 601 SAVELIBS="$LIBS" 602 LIBS="$LIBS ${CUPS_LIBS}" 603 AC_CHECK_LIB(socket,socket, 604 if test x${OSTYPE} != xirix ; then 605 CUPS_LIBS="${CUPS_LIBS} -lsocket" 606 LIBS="$LIBS -lsocket" 607 fi) 608 AC_CHECK_LIB(nsl,gethostbyaddr, 609 if test x${OSTYPE} != xirix ; then 610 CUPS_LIBS="${CUPS_LIBS} -lnsl" 611 LIBS="$LIBS -lnsl" 612 fi) 613 614 dnl Some OS's need to link against crypto stuff too if CUPS is compiled 615 dnl with crypto support... :( 616 AC_CHECK_HEADER(openssl/ssl.h, 617 dnl Some ELF systems can't resolve all the symbols in libcrypto 618 dnl if libcrypto was linked against RSAREF, and fail to link the 619 dnl test program correctly, even though a correct installation 620 dnl of OpenSSL exists. So we test the linking three times in 621 dnl case the RSAREF libraries are needed. 622 623 SSL="no" 624 625 for libcrypto in \ 626 "-lcrypto" \ 627 "-lcrypto -lrsaref" \ 628 "-lcrypto -lRSAglue -lrsaref" 629 do 630 AC_CHECK_LIB(ssl,SSL_new, 631 [CUPS_LIBS="${CUPS_LIBS} -lssl $libcrypto" 632 SSL="yes"],, 633 $libcrypto) 634 635 if test x$SSL = xyes; then 636 break 637 fi 638 done) 639 640 dnl Require CUPS 1.1... 641 AC_CHECK_LIB(cups,cupsPrintFiles, 642 CUPS_LIBS="${CUPS_LIBS} -lcups", 643 LIBS="$LIBS -lcups" 644 AC_MSG_ERROR([Cannot find CUPS libraries (libcups)])) 645 AC_CHECK_LIB(cupsimage,cupsRasterOpen, 646 CUPS_LIBS="${CUPS_LIBS} -lcupsimage", 647 AC_MSG_ERROR([Cannot find CUPS libraries (libcupsimage)]), 648 -lcups) 649 dnl Restore old library list... 650 LIBS="$SAVELIBS" 651 652 dnl Add CUPS include directory as needed... 653 if test "x${cups_prefix}" != "x/usr" -a "x${cups_prefix}" != x; then 654 CUPS_CFLAGS="-I${cups_prefix}/include" 655 else 656 CUPS_CFLAGS="" 657 fi 658 fi 659fi 660 661dnl GIMP library checks 662if test x${BUILD_GIMP} = xyes -o -n "${BUILD_PACKAGE}" ; then 663 STP_PATH_GIMP(1.2.0, 664 [SAVE_GTK_LIBS="$GIMP_LIBS" 665 SAVE_GTK_CFLAGS="$GIMP_CFLAGS"], 666 AC_MSG_ERROR(Cannot find GIMP libraries: Please run ldconfig as root, make sure gimptool is on your PATH, and if applicable ensure that you have the GIMP, GTK, and GLIB development packages installed.)) 667fi 668 669# Locate the GIMP plugin directory using libtool 670# Extract directory using --dry-run and sed 671if test x${BUILD_GIMP} = xyes ; then 672 AC_MSG_CHECKING([for GIMP plug-in directory]) 673# create temporary "plug-in" to install 674 touch print 675 chmod 755 print 676 GIMPTOOL_OUTPUT=`$GIMPTOOL --dry-run --install-${PLUG_IN_PATH} print` 677 rm print 678 gimp_plug_indir=`echo "$GIMPTOOL_OUTPUT" | sed -e 's/.* \(.*\)\/print/\1/'` 679 AC_MSG_RESULT([$gimp_plug_indir]) 680else 681 gimp_plug_indir="$libdir/gimp/1.2/plug-ins" 682fi 683 684dnl Checks for header files. 685AC_HEADER_STDC 686AC_CHECK_HEADER(readline/readline.h, 687 HAVE_READLINE_READLINE_H=true, 688 HAVE_READLINE_READLINE_H=false) 689if test x${HAVE_READLINE_READLINE_H} = xtrue ; then 690 AC_DEFINE(HAVE_READLINE_READLINE_H,, [Define if libreadline header is present.]) 691 if test x${HAVE_LIBREADLINE} = xtrue ; then 692 LIBREADLINE_DEPS="-lreadline $EXTRA_LIBREADLINE_DEPS" 693 fi 694fi 695 696AC_CHECK_HEADERS(varargs.h) 697AC_CHECK_HEADERS(stdarg.h) 698AC_CHECK_HEADERS(fcntl.h) 699AC_CHECK_HEADERS(sys/time.h sys/types.h) 700AC_CHECK_HEADERS(time.h) 701AC_CHECK_HEADERS(unistd.h) 702AC_CHECK_HEADERS(varargs.h) 703 704dnl Checks for typedefs, structures, and compiler characteristics. 705AC_C_CONST 706AC_C_INLINE 707AC_TYPE_OFF_T 708AC_TYPE_SIZE_T 709AC_TYPE_SIGNAL 710 711dnl Checks for library functions. 712AC_FUNC_ALLOCA 713dnl [commented out while I find a memcmp.c for lib/] AC_FUNC_MEMCMP 714dnl GNU libc memcmp.c is too glibc-dependent to include. 715AC_CHECK_FUNCS(nanosleep poll usleep) 716dnl The following is used to build a "utility library" in lib/ 717AC_REPLACE_FUNCS(xgetcwd xmalloc) 718AC_CHECK_FUNC(asprintf, 719 AC_DEFINE(HAVE_ASPRINTF,, [Define if you have the asprintf function.]), 720 LIBOBJS="${LIBOBJS} vasprintf.o") 721AC_CHECK_FUNC(vasprintf, 722 AC_DEFINE(HAVE_VASPRINTF,, [Define if you have the vasprintf function.]), 723 LIBOBJS="${LIBOBJS} vasprintf.o") 724AC_SUBST(PRINT_VASPRINTF) 725AC_CHECK_FUNC(getopt_long, 726 AC_DEFINE(HAVE_GETOPT_LONG,, [Define if you have the getopt_long function.]), 727 LIBOBJS="${LIBOBJS} getopt.o getopt1.o") 728 729dnl Define what has to be built 730if test x${BUILD_FOOMATIC} = xyes ; then 731 FOOMATIC_NOINST_BIN='$(FOOMATIC_NOINST_BIN)' 732fi 733AM_CONDITIONAL(BUILD_FOOMATIC, test x${BUILD_FOOMATIC} = xyes) 734 735if test x${BUILD_FOOMATIC_3} = xyes ; then 736 FOOMATIC_3_NOINST_BIN='$(FOOMATIC_3_NOINST_BIN)' 737fi 738AM_CONDITIONAL(BUILD_FOOMATIC_3, test x${BUILD_FOOMATIC_3} = xyes) 739 740if test x${BUILD_FOOMATIC_OLDIDS} = xyes ; then 741 FOOMATIC_OLDIDS_NOINST_BIN='$(FOOMATIC_OLDIDS_NOINST_BIN)' 742fi 743AM_CONDITIONAL(BUILD_FOOMATIC_OLDIDS, test x${BUILD_FOOMATIC_OLDIDS} = xyes) 744 745if test x${BUILD_IJS} = xyes ; then 746 IJS_BIN='$(IJS_BIN)' 747fi 748AM_CONDITIONAL(BUILD_IJS, test x${BUILD_IJS} = xyes) 749 750if test x${BUILD_CUPS} = xyes ; then 751 CUPS_BIN='$(CUPS_BIN)' 752 CUPS_BACKEND_BIN='$(CUPS_BACKEND_BIN)' 753 CUPS_FILTER_BIN='$(CUPS_FILTER_BIN)' 754 CUPS_NOINST_BIN='$(CUPS_NOINST_BIN)' 755 CUPS_MAN='$(CUPS_MAN)' 756 CUPS_PKG='$(CUPS_PKG)' 757 CUPS_CONF='$(CUPS_CONF)' 758fi 759AM_CONDITIONAL(BUILD_CUPS, test x${BUILD_CUPS} = xyes) 760 761AM_CONDITIONAL(BUILD_TRANSLATED_PPDS, test x${BUILD_TRANSLATED_PPDS} = xyes) 762 763if test x${USE_LEVEL3_PS} = xyes ; then 764 CUPS_PPD_PS_LEVEL=3 765else 766 CUPS_PPD_PS_LEVEL=2 767fi 768 769AM_CONDITIONAL(USE_LEVEL3_PS, test x${USE_LEVEL3_PS} = xyes) 770 771AM_CONDITIONAL(BUILD_GHOST, test x${BUILD_GHOST} = xyes) 772 773if test x${BUILD_ESCPUTIL} = xyes ; then 774 ESCPUTIL_BIN='$(ESCPUTIL_BIN)' 775 ESCPUTIL_MAN='$(ESCPUTIL_MAN)' 776fi 777AM_CONDITIONAL(BUILD_ESCPUTIL, test x${BUILD_ESCPUTIL} = xyes) 778 779if test x${BUILD_TEST} = xyes ; then 780 TEST_BIN='$(TEST_BIN)' 781fi 782AM_CONDITIONAL(BUILD_TEST, test x${BUILD_TEST} = xyes) 783 784if test x${BUILD_TESTPATTERN} = xyes ; then 785 TESTPATTERN_BIN='$(TESTPATTERN_BIN)' 786fi 787AM_CONDITIONAL(BUILD_TESTPATTERN, test x${BUILD_TESTPATTERN} = xyes) 788 789if test x${BUILD_GIMP} = xyes ; then 790 GIMP_BIN='$(GIMP_BIN)' 791fi 792AM_CONDITIONAL(BUILD_GIMP, test x${BUILD_GIMP} = xyes) 793 794LIBGIMPPRINT_LIBS="\$(top_builddir)/src/main/libgimpprint.la" 795INCLUDE_GIMP_PRINT_H="\"gimp-print/gimp-print.h\"" 796 797if test x${INSTALL_SAMPLES} = xyes ; then 798 SAMPLE_IMAGES='$(SAMPLE_IMAGES)' 799fi 800AM_CONDITIONAL(INSTALL_SAMPLES, test x${INSTALL_SAMPLES} = xyes) 801 802if test x${INSTALL_USER_GUIDE} = xyes ; then 803 USER_GUIDE='$(USER_GUIDE)' 804fi 805AM_CONDITIONAL(INSTALL_USER_GUIDE, test x${INSTALL_USER_GUIDE} = xyes) 806 807 808dnl CUPS path setup 809dnl Fix "prefix" variable if it hasn't been specified... 810if test x${cups_prefix} = xNONE ; then 811 cups_prefix="/usr" 812fi 813dnl Fix "exec_prefix" variable if it hasn't been specified... 814if test x${exec_prefix} = xNONE ; then 815 if test "${cups_prefix}" = "/" ; then 816 cups_exec_prefix="/usr" 817 else 818 cups_exec_prefix="${cups_prefix}" 819 fi 820fi 821dnl Fix "bindir" variable if it hasn't been specified... 822if test "${bindir}" = "\${prefix}/bin" -a "${cups_prefix}" = "/" ; then 823 cups_bindir="/usr/bin" 824else 825 cups_bindir="${cups_prefix}/bin" 826fi 827 828dnl Get explicit CUPS directories if possible 829if test "x$CUPS_CONFIG" != x; then 830 cups_conf_datadir="`$CUPS_CONFIG --datadir`" 831 cups_conf_serverbin="`$CUPS_CONFIG --serverbin`" 832 cups_conf_serverroot="`$CUPS_CONFIG --serverroot`" 833else 834dnl Some logical guessing 835 if test "${datadir}" = "\${prefix}/share" -a "${cups_prefix}" = "/" ; then 836 cups_conf_datadir="/usr/share/cups" 837 else 838 cups_conf_datadir="${cups_prefix}/share/cups" 839 fi 840 if test "${libdir}" = "\${prefix}/lib" -a "${cups_prefix}" = "/" ; then 841 cups_conf_serverbin="/usr/lib/cups" 842 else 843 cups_conf_serverbin="${cups_prefix}/lib/cups" 844 fi 845 if test "${sysconfdir}" = "\${prefix}/etc"; then 846 if test "${cups_prefix}" = "/usr" ; then 847 cups_conf_serverroot="/etc/cups" 848 else 849 cups_conf_serverroot="${cups_prefix}/etc/cups" 850 fi 851 fi 852fi 853 854 855AM_CONDITIONAL(USE_NLS, test x${USE_NLS} = xyes) 856 857 858dnl Define LTLIBOBJS 859LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'` 860LTALLOCA=`echo "$ALLOCA" | sed 's/\.o/.lo/g'` 861 862dnl Definitions 863AC_DEFINE_UNQUOTED(CUPS_DATADIR, "$cups_conf_datadir", [CUPS data directory.]) 864AC_DEFINE_UNQUOTED(CUPS_PPD_PS_LEVEL, ${CUPS_PPD_PS_LEVEL}, [CUPS PPD PostScript level]) 865 866AC_DEFINE_UNQUOTED(INCLUDE_GIMP_PRINT_H, ${INCLUDE_GIMP_PRINT_H}, [GIMP-Print header to include.]) 867RELEASE_DATE="15 Jul 2004" 868AC_DEFINE_UNQUOTED(RELEASE_DATE, "${RELEASE_DATE}", [Package release date.]) 869 870dnl Some versions of make get very grouchy about $(RM) 871RM='rm' 872 873dnl Substitutions 874AC_SUBST(cups_prefix) 875AC_SUBST(cups_exec_prefix) 876AC_SUBST(cups_bindir) 877AC_SUBST(cups_conf_datadir) 878AC_SUBST(cups_conf_serverbin) 879AC_SUBST(cups_conf_serverroot) 880AC_SUBST(CUPS_BIN) 881AC_SUBST(CUPS_BACKEND_BIN) 882AC_SUBST(CUPS_FILTER_BIN) 883AC_SUBST(CUPS_PKG) 884AC_SUBST(CUPS_CONF) 885AC_SUBST(CUPS_INSTALL) 886AC_SUBST(CUPS_CFLAGS) 887AC_SUBST(CUPS_LIBS) 888AC_SUBST(CUPS_MAN) 889AC_SUBST(CUPS_PPD_PS_LEVEL) 890AC_SUBST(CUPS_NOINST_BIN) 891AC_SUBST(FOOMATIC_NOINST_BIN) 892AC_SUBST(FOOMATIC_3_NOINST_BIN) 893AC_SUBST(FOOMATIC_OLDIDS_NOINST_BIN) 894AC_SUBST(FOOMATIC_INSTALL) 895AC_SUBST(IJS_BIN) 896AC_SUBST(IJS_INSTALL) 897AC_SUBST(IJS_CFLAGS) 898AC_SUBST(IJS_LIBS) 899AC_SUBST(TEST_BIN) 900AC_SUBST(TESTPATTERN_BIN) 901AC_SUBST(RM) 902AC_SUBST(ESCPUTIL_BIN) 903AC_SUBST(ESCPUTIL_MAN) 904AC_SUBST(GIMP_BIN) 905AC_SUBST(GIMP_CFLAGS) 906AC_SUBST(GIMP_LIBS) 907AC_SUBST(gimp_plug_indir) 908AC_SUBST(GIMPPRINT_CFLAGS) 909AC_SUBST(GIMPPRINT_LIBS) 910AC_SUBST(GIMPPRINT_DEPLIBS) 911AC_SUBST(GIMPPRINT_VERSION) 912AC_SUBST(gimpprint_cflags) 913gimpprint_libs="${GIMPPRINT_LIBS} ${GIMPPRINT_DEPLIBS}" 914AC_SUBST(gimpprint_libs) 915AC_SUBST(INCLUDES) 916AC_SUBST(LIBM) 917LIBGIMPPRINT_LIBS="${LIBGIMPPRINT_LIBS}" 918AC_SUBST(LIBGIMPPRINT_LIBS) 919AC_SUBST(LIBREADLINE_DEPS) 920AC_SUBST(LTLIBOBJS) 921AC_SUBST(LTALLOCA) 922AC_SUBST(MAIN_BIN) 923AC_SUBST(MAIN_DAT) 924AC_SUBST(MAIN_MAN) 925AC_SUBST(MAIN_SCR) 926AC_SUBST(MAINTAINER_CFLAGS) 927AC_SUBST(PLUG_IN_PATH) 928AC_SUBST(RELEASE_DATE) 929AC_SUBST(SAMPLE_IMAGES) 930AC_SUBST(USER_GUIDE) 931 932AC_OUTPUT_COMMANDS([],[ 933exec_prefix=`eval echo ${exec_prefix}` 934prefix=${prefix} 935]) 936 937dnl Output files 938dnl po/Makefile.in *MUST* be surrounded by spaces to work with buggy 939dnl gettext 0.10.36. Do not move this file to the beginning or end 940dnl of a line. 941 942AC_OUTPUT([ 943Makefile doc/Makefile doc/users_guide/Makefile 944include/Makefile include/gimp-print/Makefile include/gimp-print/gimp-print.h 945intl/Makefile lib/Makefile man/Makefile man/escputil.1 946man/gimpprint.3 man/gimpprint-config.1 947man/gimpprint-color.7 man/gimpprint-dithers.7 948man/gimpprint-imagetypes.7 man/gimpprint-inktypes.7 949man/gimpprint-mediasizes.7 man/gimpprint-mediasources.7 950man/gimpprint-mediatypes.7 man/gimpprint-models.7 man/gimpprint-resolutions.7 951man/ijsgimpprint.1 po/Makefile.in samples/Makefile 952src/Makefile src/escputil/Makefile src/gimp/Makefile 953cups-gimpprint.list man/cups-calibrate.8 src/testpattern/Makefile 954src/cups/Makefile src/foomatic/Makefile test/Makefile 955src/foomatic/foomatic-generator src/ghost/Makefile src/ghost/contrib.mak.addon 956src/main/Makefile src/main/gimpprint-config src/printdef/Makefile 957],[ 958chmod +x src/main/gimpprint-config 959chmod +x src/foomatic/foomatic-generator 960if test -f src/ghost/contrib.mak.addon ; then 961 sed -e 's;${exec_prefix};'"${exec_prefix};" -e 's;${prefix};'"${prefix};" src/ghost/contrib.mak.addon > src/ghost/contrib.mak.addon.tmp 962 mv src/ghost/contrib.mak.addon.tmp src/ghost/contrib.mak.addon 963fi 964echo "Finished configuring." 965echo "Type 'make' to build the package" 966echo "then 'make install' to install it." 967]) 968